aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2019-07-01 13:27:09 (GMT)
committerJouni Malinen <j@w1.fi>2019-08-11 15:04:26 (GMT)
commit05822609d105f7bf5308a83a2208ad263c7bb10f (patch)
treeb4ade4e7bb71fb7b3d85c034ca8ee2b5afc342e2
parentdf4f959988b6b3fe9c9e4c8476af247b98633941 (diff)
downloadhostap-05822609d105f7bf5308a83a2208ad263c7bb10f.zip
hostap-05822609d105f7bf5308a83a2208ad263c7bb10f.tar.gz
hostap-05822609d105f7bf5308a83a2208ad263c7bb10f.tar.bz2
HE: MCS size is always a minimum of 4 bytes
The MCS set always has a minimal size of 4 bytes. Without this change HE20 failed to work. Signed-off-by: John Crispin <john@phrozen.org>
-rw-r--r--src/ap/ieee802_11_he.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ap/ieee802_11_he.c b/src/ap/ieee802_11_he.c
index a51f3fc..bb6083e 100644
--- a/src/ap/ieee802_11_he.c
+++ b/src/ap/ieee802_11_he.c
@@ -51,7 +51,7 @@ u8 * hostapd_eid_he_capab(struct hostapd_data *hapd, u8 *eid,
struct hostapd_hw_modes *mode = hapd->iface->current_mode;
u8 he_oper_chwidth = ~HE_PHYCAP_CHANNEL_WIDTH_MASK;
u8 *pos = eid;
- u8 ie_size = 0, mcs_nss_size = 0, ppet_size = 0;
+ u8 ie_size = 0, mcs_nss_size = 4, ppet_size = 0;
if (!mode)
return eid;
@@ -74,7 +74,6 @@ u8 * hostapd_eid_he_capab(struct hostapd_data *hapd, u8 *eid,
case CHANWIDTH_USE_HT:
he_oper_chwidth |= HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_IN_2G |
HE_PHYCAP_CHANNEL_WIDTH_SET_40MHZ_80MHZ_IN_5G;
- mcs_nss_size += 4;
break;
}