mesh: Stop joining to different frequency network
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
7035162311
commit
fac72f93dd
1 changed files with 8 additions and 0 deletions
|
@ -1033,6 +1033,14 @@ struct wpa_ssid * wpa_scan_res_match(struct wpa_supplicant *wpa_s,
|
||||||
continue;
|
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)) {
|
if (!rate_match(wpa_s, bss)) {
|
||||||
wpa_dbg(wpa_s, MSG_DEBUG, " skip - rate sets do "
|
wpa_dbg(wpa_s, MSG_DEBUG, " skip - rate sets do "
|
||||||
"not match");
|
"not match");
|
||||||
|
|
Loading…
Reference in a new issue