Pickup Giant in ath_rx_proc and when handling a beacon miss in order to

satisfy the assertion in if_start.
This commit is contained in:
Sam Leffler 2004-08-07 00:45:05 +00:00
parent 1a6f777efe
commit b5f4adb32e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133240

View file

@ -532,7 +532,9 @@ ath_bmiss_proc(void *arg, int pending)
* machine will drop us into scanning after timing
* out waiting for a probe response.
*/
NET_LOCK_GIANT();
ieee80211_new_state(ic, IEEE80211_S_ASSOC, -1);
NET_UNLOCK_GIANT();
}
}
@ -1662,6 +1664,8 @@ ath_rx_proc(void *arg, int npending)
u_int phyerr;
HAL_STATUS status;
NET_LOCK_GIANT(); /* XXX */
DPRINTF(ATH_DEBUG_RX_PROC, ("%s: pending %u\n", __func__, npending));
do {
bf = TAILQ_FIRST(&sc->sc_rxbuf);
@ -1815,6 +1819,8 @@ ath_rx_proc(void *arg, int npending)
ath_hal_rxmonitor(ah); /* rx signal state monitoring */
ath_hal_rxena(ah); /* in case of RXEOL */
NET_UNLOCK_GIANT(); /* XXX */
#undef PA2DESC
}