Skip to content

Commit 717ab65

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8723bs: Remove unused function rtw_ch2freq
Remove unused function rtw_ch2freq with array ch_freq_map and comments. Signed-off-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/53a8ee320803ae3efe22b648f2a4555482efaf46.1725826273.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 211b4ed commit 717ab65

File tree

3 files changed

+0
-30
lines changed

3 files changed

+0
-30
lines changed

drivers/staging/rtl8723bs/core/rtw_cmd.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,9 +1883,6 @@ void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd)
18831883
/* copy pdev_network information to pmlmepriv->cur_network */
18841884
memcpy(&tgt_network->network, pnetwork, (get_wlan_bssid_ex_sz(pnetwork)));
18851885

1886-
/* reset ds_config */
1887-
/* tgt_network->network.configuration.ds_config = (u32)rtw_ch2freq(pnetwork->configuration.ds_config); */
1888-
18891886
_clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING);
18901887

18911888
spin_unlock_bh(&pmlmepriv->scanned_queue.lock);

drivers/staging/rtl8723bs/core/rtw_rf.c

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,3 @@
77

88
#include <drv_types.h>
99
#include <linux/kernel.h>
10-
11-
static const u32 ch_freq_map[] = {
12-
2412,
13-
2417,
14-
2422,
15-
2427,
16-
2432,
17-
2437,
18-
2442,
19-
2447,
20-
2452,
21-
2457,
22-
2462,
23-
2467,
24-
2472,
25-
2484
26-
};
27-
28-
u32 rtw_ch2freq(u32 channel)
29-
{
30-
if (channel == 0 || channel > ARRAY_SIZE(ch_freq_map))
31-
return 2412;
32-
33-
return ch_freq_map[channel - 1];
34-
}

drivers/staging/rtl8723bs/include/rtw_rf.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,4 @@ enum {
9797
HT_DATA_SC_20_LOWER_OF_40MHZ = 2,
9898
};
9999

100-
u32 rtw_ch2freq(u32 ch);
101-
102100
#endif /* _RTL8711_RF_H_ */

0 commit comments

Comments
 (0)