svn commit: r226558 - user/adrian/if_ath_tx/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Thu Oct 20 07:24:34 UTC 2011
Author: adrian
Date: Thu Oct 20 07:24:33 2011
New Revision: 226558
URL: http://svn.freebsd.org/changeset/base/226558
Log:
Re-add this locking for now, just so I don't have to undo the locking
I've added around ath_reset() and ath_reset_locked().
This fixes the panic I was seeing in ath_startrecv().
Modified:
user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath.c
==============================================================================
--- user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Thu Oct 20 06:55:59 2011 (r226557)
+++ user/adrian/if_ath_tx/sys/dev/ath/if_ath.c Thu Oct 20 07:24:33 2011 (r226558)
@@ -5011,6 +5011,7 @@ ath_chan_change(struct ath_softc *sc, st
{
enum ieee80211_phymode mode;
+ ATH_LOCK(sc);
/*
* Change channels and update the h/w rate map
* if we're switching; e.g. 11a to 11b/g.
@@ -5019,6 +5020,7 @@ ath_chan_change(struct ath_softc *sc, st
if (mode != sc->sc_curmode)
ath_setcurmode(sc, mode);
sc->sc_curchan = chan;
+ ATH_UNLOCK(sc);
}
/*
More information about the svn-src-user
mailing list