staging: rtl8723bs: core: Remove code valid only for 5GHz
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sun, 14 Jul 2019 17:28:26 +0000 (22:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jul 2019 05:34:14 +0000 (07:34 +0200)
As per TODO ,remove code valid only for 5 GHz(channel > 14).

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Link: https://lore.kernel.org/r/20190714172826.GA6950@hari-Inspiron-1545
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c

index 4285844420cb8af97392821435ddc0ac8975b42e..967da715ffa4875fa626d185f0836b2ba41cb6c4 100644 (file)
@@ -295,11 +295,7 @@ static void init_mlme_ext_priv_value(struct adapter *padapter)
 
        init_mlme_default_rate_set(padapter);
 
-       if (pmlmeext->cur_channel > 14)
-               pmlmeext->tx_rate = IEEE80211_OFDM_RATE_6MB;
-       else
-               pmlmeext->tx_rate = IEEE80211_CCK_RATE_1MB;
-
+       pmlmeext->tx_rate = IEEE80211_CCK_RATE_1MB;
        pmlmeext->sitesurvey_res.state = SCAN_DISABLE;
        pmlmeext->sitesurvey_res.channel_idx = 0;
        pmlmeext->sitesurvey_res.bss_cnt = 0;