[PATCH 2/2] hostap: enable uapsd in P2P GO mode if go_apsd was set

Arik Nemtsov arik at wizery.com
Sun Jul 31 14:45:05 EDT 2011


From: Eliad Peller <eliad at wizery.com>

If uapsd is explicitly enabled, set conf->bss->wmm_enabled and
conf->bss->wmm_uapsd to enable (and advertise) uapsd.

Signed-off-by: Eliad Peller <eliad at wizery.com>
Signed-off-by: Arik Nemtsov <arik at wizery.com>
---
 wpa_supplicant/ap.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index ed31cd2..cb5925d 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -425,6 +425,11 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
 		return -1;
 	}
 
+	if (params.uapsd > 0) {
+		conf->bss->wmm_enabled = 1;
+		conf->bss->wmm_uapsd = 1;
+	}
+
 	if (wpa_supplicant_conf_ap(wpa_s, ssid, conf)) {
 		wpa_printf(MSG_ERROR, "Failed to create AP configuration");
 		wpa_supplicant_ap_deinit(wpa_s);
-- 
1.7.4.1



More information about the HostAP mailing list