blob: bbb52ed3a3958f7eaa4c3f15b80405e8cd3b81c7 [file] [log] [blame]
From 6251cf18a39e56eb5b240f967d36a397573e5b3e Mon Sep 17 00:00:00 2001
From: Peter Chiu <chui-hao.chiu@mediatek.com>
Date: Fri, 30 Sep 2022 00:16:21 +0800
Subject: [PATCH] hostapd: mtk: update eht operation elem
---
src/ap/ieee802_11_eht.c | 5 +++--
src/common/ieee802_11_defs.h | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/ap/ieee802_11_eht.c b/src/ap/ieee802_11_eht.c
index ec36a9e..fc472b8 100644
--- a/src/ap/ieee802_11_eht.c
+++ b/src/ap/ieee802_11_eht.c
@@ -183,7 +183,7 @@ u8 * hostapd_eid_eht_operation(struct hostapd_data *hapd, u8 *eid)
return eid;
*pos++ = WLAN_EID_EXTENSION;
- *pos++ = 5;
+ *pos++ = 9;
*pos++ = WLAN_EID_EXT_EHT_OPERATION;
oper = (struct ieee80211_eht_operation *) pos;
@@ -224,10 +224,11 @@ u8 * hostapd_eid_eht_operation(struct hostapd_data *hapd, u8 *eid)
return eid;
}
+ oper->mcs_nss_set = 0x11111111;
oper->oper_info.ccfs0 = seg0 ? seg0 : hapd->iconf->channel;
oper->oper_info.ccfs1 = seg1;
- return pos + 4;
+ return pos + 8;
}
diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h
index 0bbbca9..f7ec11b 100644
--- a/src/common/ieee802_11_defs.h
+++ b/src/common/ieee802_11_defs.h
@@ -2440,6 +2440,7 @@ struct ieee80211_eht_oper_info {
/* Figure 9-1002a: EHT Operation element format */
struct ieee80211_eht_operation {
u8 oper_params; /* EHT Operation Parameters: EHT_OPER_* bits */
+ le32 mcs_nss_set;
struct ieee80211_eht_oper_info oper_info; /* 0 or 3 or 5 octets */
} STRUCT_PACKED;
--
2.18.0