]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Fix p2p_intra_bss with nl80211
authorJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2011 14:13:44 +0000 (17:13 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 15 Jul 2011 14:13:44 +0000 (17:13 +0300)
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@intel.com>
wpa_supplicant/ap.c

index 41dbe233e74c118b9809faede4f78828461f297e..b7e1175069873f49ac5c0240294b7d28903f93b2 100644 (file)
@@ -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) {