[PATCH] P2P: fix p2p_intra_bss

Johannes Berg johannes at sipsolutions.net
Fri Jul 15 08:54:08 EDT 2011


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 <johannes.berg at intel.com>
---
 wpa_supplicant/ap.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 41dbe23..b7e1175 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) {
-- 
1.7.5.4





More information about the HostAP mailing list