]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: Remove unused function rtw_ch2freq
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Tue, 10 Sep 2024 05:57:56 +0000 (07:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Sep 2024 13:57:48 +0000 (15:57 +0200)
Remove unused function rtw_ch2freq with array ch_freq_map and comments.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/53a8ee320803ae3efe22b648f2a4555482efaf46.1725826273.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_cmd.c
drivers/staging/rtl8723bs/core/rtw_rf.c
drivers/staging/rtl8723bs/include/rtw_rf.h

index 6c49bfa005788c609369f45e2a5101a541d99a29..84ce7307d8f3dfe1a1733d1ff65e8f523171a4e4 100644 (file)
@@ -1883,9 +1883,6 @@ void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd)
                /*  copy pdev_network information to    pmlmepriv->cur_network */
                memcpy(&tgt_network->network, pnetwork, (get_wlan_bssid_ex_sz(pnetwork)));
 
-               /*  reset ds_config */
-               /* tgt_network->network.configuration.ds_config = (u32)rtw_ch2freq(pnetwork->configuration.ds_config); */
-
                _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING);
 
                spin_unlock_bh(&pmlmepriv->scanned_queue.lock);
index 4f120c894998d25ee908897ce5c5aca6144654cc..2aca45de298e431a067d5898cf6a6e1a7f68c5ff 100644 (file)
@@ -7,28 +7,3 @@
 
 #include <drv_types.h>
 #include <linux/kernel.h>
-
-static const u32 ch_freq_map[] = {
-       2412,
-       2417,
-       2422,
-       2427,
-       2432,
-       2437,
-       2442,
-       2447,
-       2452,
-       2457,
-       2462,
-       2467,
-       2472,
-       2484
-};
-
-u32 rtw_ch2freq(u32 channel)
-{
-       if (channel == 0 || channel > ARRAY_SIZE(ch_freq_map))
-               return 2412;
-
-       return ch_freq_map[channel - 1];
-}
index 718275ee4500af8c9983d8b662068a271a5e186c..9f98b3f5a2e357db2e1e281dbeea874d53c25cce 100644 (file)
@@ -97,6 +97,4 @@ enum {
        HT_DATA_SC_20_LOWER_OF_40MHZ = 2,
 };
 
-u32 rtw_ch2freq(u32 ch);
-
 #endif /* _RTL8711_RF_H_ */