aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorYoni Divinsky <yoni.divinsky@ti.com>2012-08-12 08:34:07 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-12 08:34:07 (GMT)
commitc26effe15f8bfd784ea2cceab7a43d028b380b8c (patch)
treeec935eb4e079af63e0e0b00449238c1b679fe193 /wpa_supplicant/ap.c
parenteda070f14ffb522ab8f870e25522998bfa3e0286 (diff)
downloadhostap-c26effe15f8bfd784ea2cceab7a43d028b380b8c.zip
hostap-c26effe15f8bfd784ea2cceab7a43d028b380b8c.tar.gz
hostap-c26effe15f8bfd784ea2cceab7a43d028b380b8c.tar.bz2
wpa_supplicant AP/P2P: Enable WMM param configuration
In case of P2P GO and AP mode, wpa_supplicant uses the default hostapd parameters for WMM. In the default parameters the ACM bit for video and voice are set to 1, meaning, P2P devices and stations which are connected to the GO cannot pass voice or video data packets. Allow this to be changed through wpa_supplicant configuration file with wmm_ac_* parameters. Signed-hostap: Yoni Divinsky <yoni.divinsky@ti.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 80c1783..6179482 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -490,6 +490,10 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
return -1;
}
+ os_memcpy(wpa_s->ap_iface->conf->wmm_ac_params,
+ wpa_s->conf->wmm_ac_params,
+ sizeof(wpa_s->conf->wmm_ac_params));
+
if (params.uapsd > 0) {
conf->bss->wmm_enabled = 1;
conf->bss->wmm_uapsd = 1;