Commit 4aca9e65 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman

staging: rtl8723bs: remove 5 GHz code

Acoording to the TODO code valid only for 5 GHz should be removed.

- find and remove remaining code valid only for 5 GHz. Most of the obvious
  ones have been removed, but things like channel > 14 still exist.

Remove code path only valid for channels > 14.
Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20200913162206.19477-2-straube.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7d955952
...@@ -1724,26 +1724,17 @@ void update_wireless_mode(struct adapter *padapter) ...@@ -1724,26 +1724,17 @@ void update_wireless_mode(struct adapter *padapter)
if ((pmlmeinfo->HT_info_enable) && (pmlmeinfo->HT_caps_enable)) if ((pmlmeinfo->HT_info_enable) && (pmlmeinfo->HT_caps_enable))
pmlmeinfo->HT_enable = 1; pmlmeinfo->HT_enable = 1;
if (pmlmeext->cur_channel > 14) { if (pmlmeinfo->VHT_enable)
if (pmlmeinfo->VHT_enable) network_type = WIRELESS_11AC;
network_type = WIRELESS_11AC; else if (pmlmeinfo->HT_enable)
else if (pmlmeinfo->HT_enable) network_type = WIRELESS_11_24N;
network_type = WIRELESS_11_5N;
if (rtw_is_cckratesonly_included(rate))
network_type |= WIRELESS_11A; network_type |= WIRELESS_11B;
} else { else if (rtw_is_cckrates_included(rate))
if (pmlmeinfo->VHT_enable) network_type |= WIRELESS_11BG;
network_type = WIRELESS_11AC; else
else if (pmlmeinfo->HT_enable) network_type |= WIRELESS_11G;
network_type = WIRELESS_11_24N;
if (rtw_is_cckratesonly_included(rate))
network_type |= WIRELESS_11B;
else if (rtw_is_cckrates_included(rate))
network_type |= WIRELESS_11BG;
else
network_type |= WIRELESS_11G;
}
pmlmeext->cur_wireless_mode = network_type & padapter->registrypriv.wireless_mode; pmlmeext->cur_wireless_mode = network_type & padapter->registrypriv.wireless_mode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment