Make selection of current opclass more generic for 20 MHz UNI-III channels

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>
This commit is contained in:
Amith A 2024-04-08 14:41:16 +05:30 committed by Jouni Malinen
parent b9113105ad
commit 195cc3d919

View file

@ -1487,8 +1487,6 @@ ieee80211_freq_to_channel_ext(unsigned int freq, int sec_channel,
*op_class = 126; *op_class = 126;
else if (sec_channel == -1) else if (sec_channel == -1)
*op_class = 127; *op_class = 127;
else if (freq <= 5805)
*op_class = 124;
else else
*op_class = 125; *op_class = 125;