aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-02-10 20:10:40 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-10 20:10:40 (GMT)
commit810f08bab4a891b45c24746cbc335356c566b377 (patch)
treeb84605ec997d44ff6db19e5a0362204d62e9bd3a /src
parent50b16da13f4cffa8f246027d2f5bf8f58f0f95be (diff)
downloadhostap-810f08bab4a891b45c24746cbc335356c566b377.zip
hostap-810f08bab4a891b45c24746cbc335356c566b377.tar.gz
hostap-810f08bab4a891b45c24746cbc335356c566b377.tar.bz2
Make sure reserved field in WMM IE is set to 0
This was previously left uninitialized for Beacon frames and could potentially have any value.
Diffstat (limited to 'src')
-rw-r--r--src/ap/wmm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ap/wmm.c b/src/ap/wmm.c
index 7e9e5ba..a6d9b89 100644
--- a/src/ap/wmm.c
+++ b/src/ap/wmm.c
@@ -75,6 +75,8 @@ u8 * hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid)
if (hapd->conf->wmm_uapsd)
wmm->qos_info |= 0x80;
+ wmm->reserved = 0;
+
/* fill in a parameter set record for each AC */
for (e = 0; e < 4; e++) {
struct wmm_ac_parameter *ac = &wmm->ac[e];