Ignore disassociation event in wpa_supplicant AP mode
If the driver was associated in station mode just before the AP mode was started, the station mode disassociation event may end up getting delivered to wpa_supplicant only after the AP mode has been started. This can result in unexpected attempt to reassociate back to the network that was previously used in station mode. Avoid this by ignoring the disassociation event. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
d9bdba9f86
commit
4551dd9060
1 changed files with 10 additions and 0 deletions
|
@ -2039,6 +2039,11 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
|
|||
data->disassoc_info.addr);
|
||||
break;
|
||||
}
|
||||
if (wpa_s->ap_iface) {
|
||||
wpa_dbg(wpa_s, MSG_DEBUG, "Ignore disassoc event in "
|
||||
"AP mode");
|
||||
break;
|
||||
}
|
||||
#endif /* CONFIG_AP */
|
||||
if (data) {
|
||||
reason_code = data->disassoc_info.reason_code;
|
||||
|
@ -2088,6 +2093,11 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
|
|||
data->deauth_info.addr);
|
||||
break;
|
||||
}
|
||||
if (wpa_s->ap_iface) {
|
||||
wpa_dbg(wpa_s, MSG_DEBUG, "Ignore deauth event in "
|
||||
"AP mode");
|
||||
break;
|
||||
}
|
||||
#endif /* CONFIG_AP */
|
||||
wpa_supplicant_event_disassoc(wpa_s, reason_code);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue