diff mbox series

[1/3] 6G: Fix enabling 40/80MHz bandwidth support in 6GHZ

Message ID 20200622064014.25012-1-pradeepc@codeaurora.org
State Accepted
Headers show
Series [1/3] 6G: Fix enabling 40/80MHz bandwidth support in 6GHZ | expand

Commit Message

Pradeep Kumar Chitrapu June 22, 2020, 6:40 a.m. UTC
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@codeaurora.org>
---
 src/common/hw_features_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;