From cb8bac4aeea8707551862c9c8ea2965cfef8d119 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Sat, 16 Jun 2007 05:13:48 +0000 Subject: [PATCH] Correct state machine handling of AUTH -> AUTH transitions that pass through wpa_supplcant. If a sta is deauth'd (e.g. due to inactivity) with roaming mode set to manual then a subsequent MLME assoc request will be incorrectly handled and the station will never reauthenticate. To fix this interpret a reason code of zero as sufficient to send an auth request frame. --- sys/net80211/ieee80211_proto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index 40fef21845f..4a2b8f92994 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -1065,6 +1065,7 @@ static void sta_authretry(struct ieee80211com *ic, struct ieee80211_node *ni, int reason) { switch (reason) { + case IEEE80211_STATUS_SUCCESS: case IEEE80211_STATUS_TIMEOUT: case IEEE80211_REASON_ASSOC_EXPIRE: case IEEE80211_REASON_NOT_AUTHED: