| From 93b4d02dcb26ba9e655acb00ab2a6e28f9cb4d54 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 add eht oper |
| |
| --- |
| 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 65e125e..d240b87 100644 |
| --- a/src/common/ieee802_11_defs.h |
| +++ b/src/common/ieee802_11_defs.h |
| @@ -2432,6 +2432,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 |
| |