summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorbschmidt <bschmidt@FreeBSD.org>2010-12-19 10:36:06 +0000
committerbschmidt <bschmidt@FreeBSD.org>2010-12-19 10:36:06 +0000
commitfb1c27a83b3ccf75e8eae46e07b288ca5cc1d680 (patch)
tree27c796a19a301ffd931c75a88796ad2c21ce4242 /sys/dev
parent3a8f983977761fe457bfad0ad0891b053aa6ae81 (diff)
downloadFreeBSD-src-fb1c27a83b3ccf75e8eae46e07b288ca5cc1d680.zip
FreeBSD-src-fb1c27a83b3ccf75e8eae46e07b288ca5cc1d680.tar.gz
Fix panic 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> MFC after: 3 days
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/wpi/if_wpi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c
index 50c045c..b4f94e0 100644
--- a/sys/dev/wpi/if_wpi.c
+++ b/sys/dev/wpi/if_wpi.c
@@ -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);
OpenPOWER on IntegriCloud