mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
mesh: Avoid join if already joined a mesh group
Signed-off-by: Javier Lopez <jlopex@gmail.com> Signed-off-by: Thomas Pedersen <thomas@noack.us>
This commit is contained in:
parent
5f92659d88
commit
a3335ef518
@ -1382,6 +1382,13 @@ static int wpas_select_network_from_last_scan(struct wpa_supplicant *wpa_s,
|
|||||||
*/
|
*/
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
|
#ifdef CONFIG_MESH
|
||||||
|
if (wpa_s->ifmsh) {
|
||||||
|
wpa_msg(wpa_s, MSG_INFO,
|
||||||
|
"Avoiding join because we already joined a mesh group");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_MESH */
|
||||||
wpa_dbg(wpa_s, MSG_DEBUG, "No suitable network found");
|
wpa_dbg(wpa_s, MSG_DEBUG, "No suitable network found");
|
||||||
ssid = wpa_supplicant_pick_new_network(wpa_s);
|
ssid = wpa_supplicant_pick_new_network(wpa_s);
|
||||||
if (ssid) {
|
if (ssid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user