Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net80211 Fix for kern/25604: ifconfig wi0 media DS11 pan...



details:   https://anonhg.NetBSD.org/src/rev/deaedbfd6d15
branches:  trunk
changeset: 567240:deaedbfd6d15
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Sun Jun 06 05:28:58 2004 +0000

description:
Fix for kern/25604: ifconfig wi0 media DS11 panics system.

In ieee80211_chan2mode, do not dereference the marker for "any
channel," IEEE80211_CHAN_ANYC.

diffstat:

 sys/net80211/ieee80211.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 661b3e32e750 -r deaedbfd6d15 sys/net80211/ieee80211.c
--- a/sys/net80211/ieee80211.c  Sun Jun 06 04:53:14 2004 +0000
+++ b/sys/net80211/ieee80211.c  Sun Jun 06 05:28:58 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211.c,v 1.15 2004/05/25 04:33:59 atatat Exp $    */
+/*     $NetBSD: ieee80211.c,v 1.16 2004/06/06 05:28:58 dyoung Exp $    */
 /*-
  * Copyright (c) 2001 Atsushi Onoe
  * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
@@ -35,7 +35,7 @@
 #ifdef __FreeBSD__
 __FBSDID("$FreeBSD: src/sys/net80211/ieee80211.c,v 1.11 2004/04/02 20:19:20 sam Exp $");
 #else
-__KERNEL_RCSID(0, "$NetBSD: ieee80211.c,v 1.15 2004/05/25 04:33:59 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211.c,v 1.16 2004/06/06 05:28:58 dyoung Exp $");
 #endif
 
 /*
@@ -786,7 +786,8 @@
         * NB: this assumes the channel would not be supplied to us
         *     unless it was already compatible with the current mode.
         */
-       if (ic->ic_curmode != IEEE80211_MODE_AUTO)
+       if (ic->ic_curmode != IEEE80211_MODE_AUTO ||
+           chan == IEEE80211_CHAN_ANYC)
                return ic->ic_curmode;
        /*
         * In autoselect mode; deduce a mode based on the channel



Home | Main Index | Thread Index | Old Index