Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Nov 2011 07:12:26 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227872 - head/sys/dev/ath
Message-ID:  <201111230712.pAN7CQ64032078@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Wed Nov 23 07:12:26 2011
New Revision: 227872
URL: http://svn.freebsd.org/changeset/base/227872

Log:
  Re-lock the ath lock after ath_reset() has been called.
  The calibrate callout is done with the sc lock held.
  
  This only showed up when using an older NIC (AR5212) whose
  radio/phy requires the rfgain adjustment.
  
  Pointy-hat-to:	adrian
  Sponsored by:	Hobnob, Inc.

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Wed Nov 23 05:34:01 2011	(r227871)
+++ head/sys/dev/ath/if_ath.c	Wed Nov 23 07:12:26 2011	(r227872)
@@ -5370,6 +5370,7 @@ ath_calibrate(void *arg)
 			sc->sc_doresetcal = AH_TRUE;
 			ATH_UNLOCK(sc);
 			ath_reset(ifp, ATH_RESET_NOLOSS);
+			ATH_LOCK(sc);
 			return;
 		}
 		/*



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