From: Johannes Berg Date: Fri, 15 Jul 2011 14:13:44 +0000 (+0300) Subject: P2P: Fix p2p_intra_bss with nl80211 X-Git-Tag: hostap-1-bp~307 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cd930cb3c0f5dba293d4562bcd3d0f4811af2cb;p=thirdparty%2Fhostap.git P2P: Fix p2p_intra_bss with nl80211 The current implementation of p2p_intra_bss doesn't work since the flag isn't propagated into the corresponding hostapd config, so AP code will never enable AP isolation and will in fact disable it again after it had been enabled by the P2P code. Signed-off-by: Johannes Berg --- diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index 41dbe233e..b7e117506 100644 --- a/wpa_supplicant/ap.c +++ b/wpa_supplicant/ap.c @@ -134,6 +134,8 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s, } conf->supported_rates = list; } + + bss->isolate = !wpa_s->conf->p2p_intra_bss; #endif /* CONFIG_P2P */ if (ssid->ssid_len == 0) {