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. The code does not indicate that the PSK is wrong. Signed-off-by: Beniamino Galvani <bgalvani@xxxxxxxxxx> --- wpa_supplicant/events.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index d388f31ff..1c1894f87 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -4681,6 +4681,8 @@ static int could_be_psk_mismatch(struct wpa_supplicant *wpa_s, u16 reason_code, 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; -- 2.49.0 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap