[PATCH 1/3] 6G: Fix enabling 40/80MHz bandwidth support in 6GHZ
Pradeep Kumar Chitrapu
pradeepc at codeaurora.org
Mon Jun 22 02:40:12 EDT 2020
Currently 40/80 MHz bandwidth setting is being rejected due to
incorrect sanity check. so fix that.
Fixes: d7c2c5c9 (AP: Add initial support for 6 GHz band)
Signed-off-by: Pradeep Kumar Chitrapu <pradeepc at codeaurora.org>
---
src/common/hw_features_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/hw_features_common.c b/src/common/hw_features_common.c
index f6c67a375037..1d9387f70b56 100644
--- a/src/common/hw_features_common.c
+++ b/src/common/hw_features_common.c
@@ -415,7 +415,7 @@ int hostapd_set_freq_params(struct hostapd_freq_params *data,
return -1;
}
- if (center_idx_to_bw_6ghz(channel) != 0) {
+ if (center_idx_to_bw_6ghz(channel) < 0) {
wpa_printf(MSG_ERROR,
"Invalid control channel for 6 GHz band");
return -1;
--
2.17.1
More information about the Hostap
mailing list