aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2011-12-17 11:45:53 +0200
committerJouni Malinen <j@w1.fi>2011-12-17 11:45:53 +0200
commit70619a5d8a3d32faa43d66bcb1b670cacf0c243e (patch)
tree23c4670546359ec80a745c62f04efb693cdf32b8 /src/ap
parenta97bde0af453e5e4bbe4b1fdd6883e258730fe10 (diff)
downloadexternal_wpa_supplicant_8_ti-70619a5d8a3d32faa43d66bcb1b670cacf0c243e.zip
external_wpa_supplicant_8_ti-70619a5d8a3d32faa43d66bcb1b670cacf0c243e.tar.gz
external_wpa_supplicant_8_ti-70619a5d8a3d32faa43d66bcb1b670cacf0c243e.tar.bz2
AP: Consider U-APSD driver support
Check whether the driver advertises support for U-APSD in AP mode, and evaluate wmm_uapsd only in this case. Signed-off-by: Eliad Peller <eliad@wizery.com>
Diffstat (limited to 'src/ap')
-rw-r--r--src/ap/wmm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ap/wmm.c b/src/ap/wmm.c
index d6d8a10..1d05c4f 100644
--- a/src/ap/wmm.c
+++ b/src/ap/wmm.c
@@ -72,7 +72,8 @@ 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)
+ if (hapd->conf->wmm_uapsd &&
+ (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_UAPSD))
wmm->qos_info |= 0x80;
wmm->reserved = 0;