aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-02-17 11:15:29 (GMT)
committerJouni Malinen <j@w1.fi>2014-02-17 11:15:29 (GMT)
commit94a3df500feba92d7edbf761a53c8a5fb7cd2b45 (patch)
treea0588b1ec38478ea1b8dc82af71098486b35739d /wpa_supplicant/ap.c
parenta5527a49e873ce19fb8faa9f0c8809e893634087 (diff)
downloadhostap-94a3df500feba92d7edbf761a53c8a5fb7cd2b45.zip
hostap-94a3df500feba92d7edbf761a53c8a5fb7cd2b45.tar.gz
hostap-94a3df500feba92d7edbf761a53c8a5fb7cd2b45.tar.bz2
P2P: Enable U-APSD support on GO automatically
Since P2P specification mandates P2P GO to support WMM-PS with legacy STAs, enable this automatically if the driver indicates support for U-APSD in AP mode. The "P2P_SET go_apsd 0" command can still be used to disable this if needed. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 4ff27d6..f150679 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -542,6 +542,8 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
if (wpa_s->parent->set_ap_uapsd)
params.uapsd = wpa_s->parent->ap_uapsd;
+ else if (params.p2p && (wpa_s->drv_flags & WPA_DRIVER_FLAGS_AP_UAPSD))
+ params.uapsd = 1; /* mandatory for P2P GO */
else
params.uapsd = -1;