Commit 717ab65e authored by Philipp Hortmann's avatar Philipp Hortmann Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723bs: Remove unused function rtw_ch2freq

parent 211b4ed0
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);
+0 −25
Original line number Diff line number Diff line
@@ -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];
}
+0 −2
Original line number Diff line number Diff line
@@ -97,6 +97,4 @@ enum {
	HT_DATA_SC_20_LOWER_OF_40MHZ = 2,
};

u32 rtw_ch2freq(u32 ch);

#endif /* _RTL8711_RF_H_ */