iwm - Avoid Tx watchdog timeout, when dropping a connection.
Submitted by: Augustin Cavalier <waddlesplash@gmail.com> (Haiku) Obtained from: DragonFlyBSD (3e12596fb5c55351517cdd741d72979388a8c75c)
This commit is contained in:
parent
8d969c53d2
commit
002c4a619b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343382
@ -4329,6 +4329,10 @@ iwm_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
|
||||
IEEE80211_UNLOCK(ic);
|
||||
IWM_LOCK(sc);
|
||||
|
||||
/* Avoid Tx watchdog triggering, when a connectionm is dropped. */
|
||||
if (vap->iv_state == IEEE80211_S_RUN && nstate != IEEE80211_S_RUN)
|
||||
sc->sc_tx_timer = 0;
|
||||
|
||||
if ((sc->sc_flags & IWM_FLAG_SCAN_RUNNING) &&
|
||||
(nstate == IEEE80211_S_AUTH ||
|
||||
nstate == IEEE80211_S_ASSOC ||
|
||||
|
Loading…
Reference in New Issue
Block a user