aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorMasashi Honma <masashi.honma@gmail.com>2016-07-08 02:39:13 (GMT)
committerJouni Malinen <j@w1.fi>2016-07-23 18:57:15 (GMT)
commitfac72f93dd83f52fd14d7787b2fc9cf4b20762dd (patch)
tree54d3b10e264f83ec2168cd6709cb5c687c7f57c5 /wpa_supplicant/events.c
parent7035162311c7a8cc503e7c915f853fbf28642307 (diff)
downloadhostap-fac72f93dd83f52fd14d7787b2fc9cf4b20762dd.zip
hostap-fac72f93dd83f52fd14d7787b2fc9cf4b20762dd.tar.gz
hostap-fac72f93dd83f52fd14d7787b2fc9cf4b20762dd.tar.bz2
mesh: Stop joining to different frequency network
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index b94febb..50461b6 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1033,6 +1033,14 @@ struct wpa_ssid * wpa_scan_res_match(struct wpa_supplicant *wpa_s,
continue;
}
+#ifdef CONFIG_MESH
+ if (ssid->mode == IEEE80211_MODE_MESH && ssid->frequency > 0 &&
+ ssid->frequency != bss->freq) {
+ wpa_dbg(wpa_s, MSG_DEBUG, " skip - frequency not allowed (mesh)");
+ continue;
+ }
+#endif /* CONFIG_MESH */
+
if (!rate_match(wpa_s, bss)) {
wpa_dbg(wpa_s, MSG_DEBUG, " skip - rate sets do "
"not match");