Skip to content

Commit

Permalink
Only retry when current state is AUTH. ASSOCIATION state should be an…
Browse files Browse the repository at this point in the history
…other type of handler.
  • Loading branch information
zxystd committed Apr 20, 2021
1 parent 99cab52 commit 37c9cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itl80211/openbsd/net80211/ieee80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ ieee80211_watchdog(struct _ifnet *ifp)
if (ni)
ni->ni_fails++;
/* Try more times to join, some drivers will timeout when doing auth/assoc */
if (ni && ni->ni_fails < 3) {
if (ic->ic_state == IEEE80211_S_AUTH && ni && ni->ni_fails < 3) {
ieee80211_node_join_bss(ic, ni);
goto done;
}
Expand Down

0 comments on commit 37c9cb1

Please sign in to comment.