From: Jouni Malinen Date: Thu, 10 Feb 2011 20:10:40 +0000 (+0200) Subject: Make sure reserved field in WMM IE is set to 0 X-Git-Tag: hostap-1-bp~585 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=810f08bab4a891b45c24746cbc335356c566b377;p=thirdparty%2Fhostap.git 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. --- diff --git a/src/ap/wmm.c b/src/ap/wmm.c index 7e9e5ba3b..a6d9b8985 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];