]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Make sure reserved field in WMM IE is set to 0
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 10 Feb 2011 20:10:40 +0000 (22:10 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 10 Feb 2011 20:10:40 +0000 (22:10 +0200)
This was previously left uninitialized for Beacon frames and could
potentially have any value.

src/ap/wmm.c

index 7e9e5ba3b8b17341a3a212a948e035d4f131f3e7..a6d9b89855a1e9423298094c7530abeb7d8085d6 100644 (file)
@@ -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];