|
@@ -490,6 +490,7 @@ void wpa_mesh_new_mesh_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
|
|
|
struct mesh_conf *conf = wpa_s->ifmsh->mconf;
|
|
|
struct hostapd_data *data = wpa_s->ifmsh->bss[0];
|
|
|
struct sta_info *sta;
|
|
|
+ struct wpa_ssid *ssid = wpa_s->current_ssid;
|
|
|
int ret = 0;
|
|
|
|
|
|
sta = ap_get_sta(data, addr);
|
|
@@ -532,6 +533,12 @@ void wpa_mesh_new_mesh_peer(struct wpa_supplicant *wpa_s, const u8 *addr,
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ if (ssid && ssid->no_auto_peer) {
|
|
|
+ wpa_msg(wpa_s, MSG_INFO, "will not initiate new peer link with "
|
|
|
+ MACSTR " because of no_auto_peer", MAC2STR(addr));
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
mesh_mpm_plink_open(wpa_s, sta, PLINK_OPEN_SENT);
|
|
|
}
|
|
|
|