Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2011 07:24:34 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r226558 - user/adrian/if_ath_tx/sys/dev/ath
Message-ID:  <201110200724.p9K7OYmI062456@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110200724.p9K7OYmI062456>