The following reply was made to PR kern/138427; it has been noted by GNATS.

From: dfil...@freebsd.org (dfilter service)
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: kern/138427: commit references a PR
Date: Sun, 19 Dec 2010 10:36:11 +0000 (UTC)

 Author: bschmidt
 Date: Sun Dec 19 10:36:06 2010
 New Revision: 216557
 URL: http://svn.freebsd.org/changeset/base/216557
 
 Log:
   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
 
 Modified:
   head/sys/dev/wpi/if_wpi.c
 
 Modified: head/sys/dev/wpi/if_wpi.c
 ==============================================================================
 --- head/sys/dev/wpi/if_wpi.c  Sun Dec 19 09:18:14 2010        (r216556)
 +++ head/sys/dev/wpi/if_wpi.c  Sun Dec 19 10:36:06 2010        (r216557)
 @@ -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);
 _______________________________________________
 svn-src-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
 
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to