[PATCH] Fix for the HE Channel Center Freq Seg0/Seg1 within HE 6GHz Operation Information field

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

 



As downgrade of bandwidths for VHT and HE when using puncturing is TODO for 320 MHz and/or
if puncturing is disabled and bandwidth is 320 MHz, the same rules as for 160 MHz
should be applied for Channel Center Freq Seg0/Seg1 within 6 GHz Operation Information field.

Signed-off-by: Jurijs Soloveckis <jsoloveckis@xxxxxxxxxxxxx>
---
 src/ap/ieee802_11_he.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ap/ieee802_11_he.c b/src/ap/ieee802_11_he.c
index 548a44821..f308a6daf 100644
--- a/src/ap/ieee802_11_he.c
+++ b/src/ap/ieee802_11_he.c
@@ -263,7 +263,8 @@ u8 * hostapd_eid_he_operation(struct hostapd_data *hapd, u8 *eid)
 		*pos++ = control;
 
 		/* Channel Center Freq Seg0/Seg1 */
-		if (oper_chwidth == 2) {
+		if (oper_chwidth == CONF_OPER_CHWIDTH_160MHZ ||
+		    oper_chwidth == CONF_OPER_CHWIDTH_320MHZ) {
 			/*
 			 * Seg 0 indicates the channel center frequency index of
 			 * the 160 MHz channel.
-- 
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