As the comment in wpa_supplicant_event_disassoc_finish() says,
mac80211-based drivers use the WLAN_REASON_DISASSOC_DUE_TO_INACTIVITY
reason code in locally generated disconnection events for cases where
the AP does not reply anymore. This case does not indicate that the PSK
is wrong.
Signed-off-by: Beniamino Galvani <bgalvani@redhat.com>
if (locally_generated) {
if (reason_code == WLAN_REASON_IE_IN_4WAY_DIFFERS)
return 0;
+ if (reason_code == WLAN_REASON_DISASSOC_DUE_TO_INACTIVITY)
+ return 0;
}
return 1;