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>
This commit is contained in:
parent
e261d5a9a6
commit
d26e45a44a
1 changed files with 5 additions and 0 deletions
|
@ -421,6 +421,11 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
|
||||||
return -1;
|
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)) {
|
if (wpa_supplicant_conf_ap(wpa_s, ssid, conf)) {
|
||||||
wpa_printf(MSG_ERROR, "Failed to create AP configuration");
|
wpa_printf(MSG_ERROR, "Failed to create AP configuration");
|
||||||
wpa_supplicant_ap_deinit(wpa_s);
|
wpa_supplicant_ap_deinit(wpa_s);
|
||||||
|
|
Loading…
Reference in a new issue