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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 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


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux