[PATCH] P2P: Use default driver GO WMM PS capabilities

Ilan Peer ilan.peer
Sun Mar 15 22:20:49 PDT 2015


By default, use the driver flags to determine weather to
enable GO WMM PS or not.

Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
 wpa_supplicant/ap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 7ecf7a8..44df922 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -572,7 +572,7 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
 	else if (params.p2p && (wpa_s->drv_flags & WPA_DRIVER_FLAGS_AP_UAPSD))
 		params.uapsd = 1; /* mandatory for P2P GO */
 	else
-		params.uapsd = -1;
+		params.uapsd = !!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_AP_UAPSD);
 
 	if (ieee80211_is_dfs(params.freq.freq))
 		params.freq.freq = 0; /* set channel after CAC */
-- 
1.8.3.2




More information about the Hostap mailing list