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

staging: rtl8723bs: remove 5 GHz code

According to the TODO 5 GHz code 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 for channels > 14 from rtw_get_center_ch().
Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20200813065053.13883-1-straube.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent acac75bb
...@@ -374,20 +374,7 @@ u8 rtw_get_center_ch(u8 channel, u8 chnl_bw, u8 chnl_offset) ...@@ -374,20 +374,7 @@ u8 rtw_get_center_ch(u8 channel, u8 chnl_bw, u8 chnl_offset)
u8 center_ch = channel; u8 center_ch = channel;
if (chnl_bw == CHANNEL_WIDTH_80) { if (chnl_bw == CHANNEL_WIDTH_80) {
if ((channel == 36) || (channel == 40) || (channel == 44) || (channel == 48)) center_ch = 7;
center_ch = 42;
if ((channel == 52) || (channel == 56) || (channel == 60) || (channel == 64))
center_ch = 58;
if ((channel == 100) || (channel == 104) || (channel == 108) || (channel == 112))
center_ch = 106;
if ((channel == 116) || (channel == 120) || (channel == 124) || (channel == 128))
center_ch = 122;
if ((channel == 132) || (channel == 136) || (channel == 140) || (channel == 144))
center_ch = 138;
if ((channel == 149) || (channel == 153) || (channel == 157) || (channel == 161))
center_ch = 155;
else if (channel <= 14)
center_ch = 7;
} else if (chnl_bw == CHANNEL_WIDTH_40) { } else if (chnl_bw == CHANNEL_WIDTH_40) {
if (chnl_offset == HAL_PRIME_CHNL_OFFSET_LOWER) if (chnl_offset == HAL_PRIME_CHNL_OFFSET_LOWER)
center_ch = channel + 2; center_ch = channel + 2;
......
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