Skip to content

Commit 37c9cb1

Browse files
committed
Only retry when current state is AUTH. ASSOCIATION state should be another type of handler.
1 parent 99cab52 commit 37c9cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

itl80211/openbsd/net80211/ieee80211.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ ieee80211_watchdog(struct _ifnet *ifp)
898898
if (ni)
899899
ni->ni_fails++;
900900
/* Try more times to join, some drivers will timeout when doing auth/assoc */
901-
if (ni && ni->ni_fails < 3) {
901+
if (ic->ic_state == IEEE80211_S_AUTH && ni && ni->ni_fails < 3) {
902902
ieee80211_node_join_bss(ic, ni);
903903
goto done;
904904
}

0 commit comments

Comments
 (0)