Bug fix of 6G band channelization
Apply the following patch for 6G band channelization as defined in
802.11ax draft 6.1 Annex E table E-4 where channel 1 is now centered
at 5955MHz instead of 5945MHz.
https://w1.fi/cgit/hostap/commit/?id=52a32576218e88450e8460792ff9600f1ba9eeb7
Bug: 167426957
Test: manual test to ensure wifi connection works in various modes.
Change-Id: I9ed66fa55d70d2e49cd7680cbbc28dea0023e4ab
diff --git a/wpa_supplicant/op_classes.c b/wpa_supplicant/op_classes.c
index 983801f..bd97fee 100644
--- a/wpa_supplicant/op_classes.c
+++ b/wpa_supplicant/op_classes.c
@@ -22,13 +22,13 @@
unsigned int *flags)
{
int i;
- int is_6ghz = op_class >= 131 && op_class <= 135;
+ int is_6ghz = op_class >= 131 && op_class <= 136;
for (i = 0; i < mode->num_channels; i++) {
int chan_is_6ghz;
- chan_is_6ghz = mode->channels[i].freq > 5940 &&
- mode->channels[i].freq <= 7105;
+ chan_is_6ghz = mode->channels[i].freq >= 5935 &&
+ mode->channels[i].freq <= 7115;
if (is_6ghz == chan_is_6ghz && mode->channels[i].chan == chan)
break;
}