Do not re-associate on SELECT_NETWORK to current network
Signed-off-by: Jithu Jance <jithu@broadcom.com>
This commit is contained in:
parent
1473f95e98
commit
2a6f78fbbe
1 changed files with 8 additions and 0 deletions
|
@ -1660,6 +1660,14 @@ void wpa_supplicant_select_network(struct wpa_supplicant *wpa_s,
|
||||||
if (was_disabled != other_ssid->disabled)
|
if (was_disabled != other_ssid->disabled)
|
||||||
wpas_notify_network_enabled_changed(wpa_s, other_ssid);
|
wpas_notify_network_enabled_changed(wpa_s, other_ssid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ssid && ssid == wpa_s->current_ssid && wpa_s->current_ssid) {
|
||||||
|
/* We are already associated with the selected network */
|
||||||
|
wpa_printf(MSG_DEBUG, "Already associated with the "
|
||||||
|
"selected network - do nothing");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
wpa_s->connect_without_scan = NULL;
|
wpa_s->connect_without_scan = NULL;
|
||||||
wpa_s->disconnected = 0;
|
wpa_s->disconnected = 0;
|
||||||
wpa_s->reassociate = 1;
|
wpa_s->reassociate = 1;
|
||||||
|
|
Loading…
Reference in a new issue