Allow advertising of U-APSD functionality in Beacon
[libeap.git] / src / ap / wmm.c
index bbed83d..3668130 100644 (file)
@@ -71,6 +71,9 @@ u8 * hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid)
        wmm->version = WMM_VERSION;
        wmm->qos_info = hapd->parameter_set_count & 0xf;
 
+       if (hapd->conf->wmm_uapsd)
+               wmm->qos_info |= 0x80;
+
        /* fill in a parameter set record for each AC */
        for (e = 0; e < 4; e++) {
                struct wmm_ac_parameter *ac = &wmm->ac[e];