aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_11_ht.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-12-22 18:41:19 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-22 18:41:19 (GMT)
commit2a32ad66da9e2b318bc994222441cdd38d2ef7ec (patch)
tree3a528edb9c686019bd684ec8b0f93eca9d2c64ab /src/ap/ieee802_11_ht.c
parent6ac593ec4758ce06da76876d23a46ccb87c7dc47 (diff)
downloadhostap-2a32ad66da9e2b318bc994222441cdd38d2ef7ec.zip
hostap-2a32ad66da9e2b318bc994222441cdd38d2ef7ec.tar.gz
hostap-2a32ad66da9e2b318bc994222441cdd38d2ef7ec.tar.bz2
HT: Fix 20/40 coex Action frame parsing
Commit 5ce3ae4c8f2a07c28e0bbae1b68e5524ee034387 tried to clean up fetching a pointer to the action code field, but it forgot to add IEEE80211_HDRLEN to the pointer. This resulted in the coex report elements being read from too early in the frame. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/ieee802_11_ht.c')
-rw-r--r--src/ap/ieee802_11_ht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/ieee802_11_ht.c b/src/ap/ieee802_11_ht.c
index fe87883..f549421 100644
--- a/src/ap/ieee802_11_ht.c
+++ b/src/ap/ieee802_11_ht.c
@@ -211,7 +211,7 @@ void hostapd_2040_coex_action(struct hostapd_data *hapd,
struct ieee80211_2040_intol_chan_report *ic_report;
int is_ht_allowed = 1;
int i;
- const u8 *data = ((const u8 *) mgmt) + 1;
+ const u8 *data = ((const u8 *) mgmt) + IEEE80211_HDRLEN + 1;
hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211,
HOSTAPD_LEVEL_DEBUG, "hostapd_public_action - action=%d",