mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 10:14:55 +00:00
Add missing bg scanning bits; update ic_lastdata and cancel any
bg scan when there's outbound traffic. Approved by: re (blanket wireless)
This commit is contained in:
parent
2b9411e29f
commit
5c096cfbe5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172061
|
@ -2300,6 +2300,11 @@ zyd_start(struct ifnet *ifp)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
IFQ_DEQUEUE(&ifp->if_snd, m0);
|
IFQ_DEQUEUE(&ifp->if_snd, m0);
|
||||||
|
/*
|
||||||
|
* Cancel any background scan.
|
||||||
|
*/
|
||||||
|
if (ic->ic_flags & IEEE80211_F_SCAN)
|
||||||
|
ieee80211_cancel_scan(ic);
|
||||||
|
|
||||||
if (m0->m_len < sizeof(struct ether_header) &&
|
if (m0->m_len < sizeof(struct ether_header) &&
|
||||||
!(m0 = m_pullup(m0, sizeof(struct ether_header))))
|
!(m0 = m_pullup(m0, sizeof(struct ether_header))))
|
||||||
|
@ -2328,6 +2333,7 @@ zyd_start(struct ifnet *ifp)
|
||||||
}
|
}
|
||||||
|
|
||||||
sc->tx_timer = 5;
|
sc->tx_timer = 5;
|
||||||
|
ic->ic_lastdata = ticks;
|
||||||
callout_reset(&sc->sc_watchdog_ch, hz, zyd_watchdog, sc);
|
callout_reset(&sc->sc_watchdog_ch, hz, zyd_watchdog, sc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue