From: Eliad Peller Date: Sun, 31 Jul 2011 18:45:05 +0000 (+0300) Subject: wpa_supplicant AP: Enable uapsd in P2P GO mode if go_apsd was set X-Git-Tag: hostap-1-bp~276 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d26e45a44a1403dc6145a29f2502fb8469325a15;p=thirdparty%2Fhostap.git wpa_supplicant AP: Enable uapsd in P2P GO mode if go_apsd was set 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 Signed-off-by: Arik Nemtsov --- diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index f6a03bacf..9eb2ba6f5 100644 --- a/wpa_supplicant/ap.c +++ b/wpa_supplicant/ap.c @@ -421,6 +421,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);