svn commit: r216710 - releng/8.2/sys/dev/wpi

Bernhard Schmidt bschmidt at FreeBSD.org
Sun Dec 26 14:10:13 UTC 2010


Author: bschmidt
Date: Sun Dec 26 14:10:12 2010
New Revision: 216710
URL: http://svn.freebsd.org/changeset/base/216710

Log:
  MFC r216557:
  Fix panic while trying to use monitor mode. The iwn_cmd() calls issued by
  iwn_config() want to msleep() on the mutex.
  
  PR:		kern/138427
  Submitted by:	Henry Hu <henry.hu.sh at gmail.com>
  Approved by:	re (kib)

Modified:
  releng/8.2/sys/dev/wpi/if_wpi.c
Directory Properties:
  releng/8.2/sys/   (props changed)
  releng/8.2/sys/amd64/include/xen/   (props changed)
  releng/8.2/sys/cddl/contrib/opensolaris/   (props changed)
  releng/8.2/sys/contrib/dev/acpica/   (props changed)
  releng/8.2/sys/contrib/pf/   (props changed)

Modified: releng/8.2/sys/dev/wpi/if_wpi.c
==============================================================================
--- releng/8.2/sys/dev/wpi/if_wpi.c	Sun Dec 26 14:09:06 2010	(r216709)
+++ releng/8.2/sys/dev/wpi/if_wpi.c	Sun Dec 26 14:10:12 2010	(r216710)
@@ -3561,7 +3561,9 @@ wpi_set_channel(struct ieee80211com *ic)
 	 * are already taken care of by their respective firmware commands.
 	 */
 	if (ic->ic_opmode == IEEE80211_M_MONITOR) {
+		WPI_LOCK(sc);
 		error = wpi_config(sc);
+		WPI_UNLOCK(sc);
 		if (error != 0)
 			device_printf(sc->sc_dev,
 			    "error %d settting channel\n", error);


More information about the svn-src-all mailing list