developer | 88605f7 | 2023-02-15 16:38:49 +0800 | [diff] [blame] | 1 | From 93b4d02dcb26ba9e655acb00ab2a6e28f9cb4d54 Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Fri, 30 Sep 2022 00:16:21 +0800 |
| 4 | Subject: [PATCH] hostapd add eht oper |
| 5 | |
| 6 | --- |
| 7 | src/ap/ieee802_11_eht.c | 5 +++-- |
| 8 | src/common/ieee802_11_defs.h | 1 + |
| 9 | 2 files changed, 4 insertions(+), 2 deletions(-) |
| 10 | |
| 11 | diff --git a/src/ap/ieee802_11_eht.c b/src/ap/ieee802_11_eht.c |
| 12 | index ec36a9e..fc472b8 100644 |
| 13 | --- a/src/ap/ieee802_11_eht.c |
| 14 | +++ b/src/ap/ieee802_11_eht.c |
| 15 | @@ -183,7 +183,7 @@ u8 * hostapd_eid_eht_operation(struct hostapd_data *hapd, u8 *eid) |
| 16 | return eid; |
| 17 | |
| 18 | *pos++ = WLAN_EID_EXTENSION; |
| 19 | - *pos++ = 5; |
| 20 | + *pos++ = 9; |
| 21 | *pos++ = WLAN_EID_EXT_EHT_OPERATION; |
| 22 | |
| 23 | oper = (struct ieee80211_eht_operation *) pos; |
| 24 | @@ -224,10 +224,11 @@ u8 * hostapd_eid_eht_operation(struct hostapd_data *hapd, u8 *eid) |
| 25 | return eid; |
| 26 | } |
| 27 | |
| 28 | + oper->mcs_nss_set = 0x11111111; |
| 29 | oper->oper_info.ccfs0 = seg0 ? seg0 : hapd->iconf->channel; |
| 30 | oper->oper_info.ccfs1 = seg1; |
| 31 | |
| 32 | - return pos + 4; |
| 33 | + return pos + 8; |
| 34 | } |
| 35 | |
| 36 | |
| 37 | diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h |
| 38 | index 65e125e..d240b87 100644 |
| 39 | --- a/src/common/ieee802_11_defs.h |
| 40 | +++ b/src/common/ieee802_11_defs.h |
| 41 | @@ -2432,6 +2432,7 @@ struct ieee80211_eht_oper_info { |
| 42 | /* Figure 9-1002a: EHT Operation element format */ |
| 43 | struct ieee80211_eht_operation { |
| 44 | u8 oper_params; /* EHT Operation Parameters: EHT_OPER_* bits */ |
| 45 | + le32 mcs_nss_set; |
| 46 | struct ieee80211_eht_oper_info oper_info; /* 0 or 3 or 5 octets */ |
| 47 | } STRUCT_PACKED; |
| 48 | |
| 49 | -- |
| 50 | 2.18.0 |
| 51 | |