diff options
author | sam <sam@FreeBSD.org> | 2004-08-08 17:10:54 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2004-08-08 17:10:54 +0000 |
commit | 54e744b4c4aa4709473c167b8f39f64d93d82fae (patch) | |
tree | 90579375f4bc2e590f5bfa97548650ade977d82f /sys/dev/ath | |
parent | 78751f3de69b412172534afcef95b0091c458d27 (diff) | |
download | FreeBSD-src-54e744b4c4aa4709473c167b8f39f64d93d82fae.zip FreeBSD-src-54e744b4c4aa4709473c167b8f39f64d93d82fae.tar.gz |
Add missing bit of last if_start workaround: mark scan callout
MPSAFE only debug_mpsafenet is 1 so callbacks to send management
frames hold Giant; this is another bandaid on the path to removing Giant.
Diffstat (limited to 'sys/dev/ath')
-rw-r--r-- | sys/dev/ath/if_ath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 2c04c8e..dde23cd 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -262,7 +262,7 @@ ath_attach(u_int16_t devid, struct ath_softc *sc) if_printf(ifp, "failed to allocate descriptors: %d\n", error); goto bad; } - callout_init(&sc->sc_scan_ch, CALLOUT_MPSAFE); + callout_init(&sc->sc_scan_ch, debug_mpsafenet ? CALLOUT_MPSAFE : 0); callout_init(&sc->sc_cal_ch, CALLOUT_MPSAFE); ATH_TXBUF_LOCK_INIT(sc); |