]> www.infradead.org Git - linux.git/commitdiff
Staging: rtl8723bs: Rename function SelectChannel()
authorvivek t s <vivek6429.ts@gmail.com>
Thu, 5 Sep 2024 10:12:02 +0000 (15:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Sep 2024 14:44:59 +0000 (16:44 +0200)
Rename function SelectChannel() to r8723bs_select_channel(), to avoid
CamelCase and to improve cleanliness of the global namespace.

Signed-off-by: vivek t s <vivek6429.ts@gmail.com>
Link: https://lore.kernel.org/r/ZtmD8i7YZLRIcaI9@victor-IdeaPad-Gaming-3-16IAH7
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ap.c
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
drivers/staging/rtl8723bs/core/rtw_wlan_util.c
drivers/staging/rtl8723bs/include/rtw_mlme_ext.h

index e4063713fecc02cd924bf231fc0375f98d51801a..23268ec502a74da0d578ca33503a83f23bca150b 100644 (file)
@@ -277,7 +277,7 @@ void expire_timeout_chk(struct adapter *padapter)
                /* switch to correct channel of current network  before issue keep-alive frames */
                if (rtw_get_oper_ch(padapter) != pmlmeext->cur_channel) {
                        backup_oper_channel = rtw_get_oper_ch(padapter);
-                       SelectChannel(padapter, pmlmeext->cur_channel);
+                       r8723bs_select_channel(padapter, pmlmeext->cur_channel);
                }
 
                /* issue null data to check sta alive*/
@@ -315,7 +315,7 @@ void expire_timeout_chk(struct adapter *padapter)
                }
 
                if (backup_oper_channel > 0) /* back to the original operation channel */
-                       SelectChannel(padapter, backup_oper_channel);
+                       r8723bs_select_channel(padapter, backup_oper_channel);
        }
 
        associated_clients_update(padapter, updated);
index 6c52a856c9e75f7e78cc00c4fb87d39be7fe1acb..834b53c0ee1dd92ec0613f943a95cfdc389063a8 100644 (file)
@@ -3831,10 +3831,10 @@ void site_survey(struct adapter *padapter)
                } else {
 #ifdef DBG_FIXED_CHAN
                        if (pmlmeext->fixed_chan != 0xff)
-                               SelectChannel(padapter, pmlmeext->fixed_chan);
+                               r8723bs_select_channel(padapter, pmlmeext->fixed_chan);
                        else
 #endif
-                               SelectChannel(padapter, survey_channel);
+                               r8723bs_select_channel(padapter, survey_channel);
                }
 
                if (ScanType == SCAN_ACTIVE) { /* obey the channel plan setting... */
index 7fac9ca3e9a01b792909605754377ed95a9886fd..87ce4a9b3aad2541cf08d4bd3dcc8692c420ec51 100644 (file)
@@ -333,7 +333,7 @@ inline unsigned long rtw_get_on_cur_ch_time(struct adapter *adapter)
                return 0;
 }
 
-void SelectChannel(struct adapter *padapter, unsigned char channel)
+void r8723bs_select_channel(struct adapter *padapter, unsigned char channel)
 {
        if (mutex_lock_interruptible(&(adapter_to_dvobj(padapter)->setch_mutex)))
                return;
index 720aeeb002b0676daa4884c8de21e345107df1ea..8315399b64fdb56c02d6503fc7127935d2b3a826 100644 (file)
@@ -455,7 +455,7 @@ u8 rtw_get_center_ch(u8 channel, u8 chnl_bw, u8 chnl_offset);
 unsigned long rtw_get_on_cur_ch_time(struct adapter *adapter);
 
 void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigned char channel_offset, unsigned short bwmode);
-void SelectChannel(struct adapter *padapter, unsigned char channel);
+void r8723bs_select_channel(struct adapter *padapter, unsigned char channel);
 
 unsigned int decide_wait_for_beacon_timeout(unsigned int bcn_interval);