aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Shi <kaishi@google.com>2020-09-16 20:05:13 -0700
committerKai Shi <kaishi@google.com>2020-09-17 16:45:04 +0000
commit935ce1e1675a9f0894242fabae6bac82359add0c (patch)
tree489c5a6caaf3c09ebf4e01665a6c52a26cdcd76a
parentc85aa52861652697232f23a15d3e6828c7fbb090 (diff)
downloadwpa_supplicant_8-935ce1e1675a9f0894242fabae6bac82359add0c.tar.gz
Bug fix of 6GHz band channelization
Add the special case of 6G band channel 2. Bug: 167426957 Test: manual test with 6GHz capable STA and AP Change-Id: I0a74591d9102f76b2c3ab13b181825314eb82b92 Merged-In: I0a74591d9102f76b2c3ab13b181825314eb82b92
-rw-r--r--hostapd/hidl/1.2/hostapd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/hostapd/hidl/1.2/hostapd.cpp b/hostapd/hidl/1.2/hostapd.cpp
index 537353a7..7789ed69 100644
--- a/hostapd/hidl/1.2/hostapd.cpp
+++ b/hostapd/hidl/1.2/hostapd.cpp
@@ -196,6 +196,10 @@ int getOpClassForChannel(int channel, int band, bool support11n, bool support11a
// 160MHz channel
return 134;
}
+ if (channel == 2) {
+ // 20MHz channel
+ return 136;
+ }
// Error
return 0;
}