mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-20 02:53:03 -05:00
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
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user