Browse Source

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 <eliad@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Eliad Peller 13 years ago
parent
commit
d26e45a44a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      wpa_supplicant/ap.c

+ 5 - 0
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);