]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Make selection of current opclass more generic for 20 MHz UNI-III channels
authorAmith A <quic_amitajit@quicinc.com>
Mon, 8 Apr 2024 09:11:16 +0000 (14:41 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 23 Apr 2024 21:19:05 +0000 (00:19 +0300)
According to IEEE Std 802.11-2020, Operating classes Table E-2 (Europe)
and Table E-6 (China) map channels in the range 149 to 161 to the global
operating class 125, while Table E-1 (United States) maps these channels
to global operating classes 125 and 124 as well. The global operating
class 125 contains all channels from the global operating class 124 and
some additional channels.

Hence, to make the selection of the current operating class generic, use
operating class 125 for all 20 MHz channels in the range 149 to 161.

Signed-off-by: Amith A <quic_amitajit@quicinc.com>
src/common/ieee802_11_common.c

index 7c3a21fe5c893e781c5ef9ed70e4a2559e8d4130..9a78b634490186922aaefb2b460a54ad40a3c104 100644 (file)
@@ -1487,8 +1487,6 @@ ieee80211_freq_to_channel_ext(unsigned int freq, int sec_channel,
                        *op_class = 126;
                else if (sec_channel == -1)
                        *op_class = 127;
-               else if (freq <= 5805)
-                       *op_class = 124;
                else
                        *op_class = 125;