NetBSD Problem Report #23311

Received: (qmail 1793 invoked by uid 605); 29 Oct 2003 23:40:53 -0000
Message-Id: <20031029233825.AF3729225@panser>
Date: Wed, 29 Oct 2003 23:38:25 +0000 (UTC)
From: pancake <pancake@phreaker.net>
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: pancake <pancake@phreaker.net>
To: gnats-bugs@gnats.netbsd.org
Subject: Re: Subject: kern/26038 Kernel Segmentation Fault on wireless cards
X-Send-Pr-Version: 3.95

>Number:         23311
>Category:       kern
>Synopsis:       Some channel modes panic the kernel
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 29 23:41:00 +0000 2003
>Closed-Date:    
>Last-Modified:  Sat Nov 12 17:00:28 +0000 2005
>Originator:     localhost :)
>Release:        NetBSD 1.6ZD
>Organization:
>Environment:
System: NetBSD pl2 1.6ZD NetBSD 1.6ZD (PANCAKE_LAPTOP) #1: Sun Oct 26 02:32:21 UTC 2003 root@pl2:/usr/src/sys/arch/i386/compile/PANCAKE_LAPTOP i386
Architecture: i386
Machine: i386
>Description:

	I send another patch before, that doesn't solve everything, and was
	not fully tested. This new patch solves better the problem and
	is tested :)
>How-To-Repeat:
	The same as before:
	# ifconfig wi0 media DS11 mediaopt hostap

>Fix:
	Apply this patch:

--- sys/net80211/ieee80211.c.orig	2003-10-16 23:25:00.000000000 +0100
+++ sys/net80211/ieee80211.c	2003-10-29 22:42:38.000000000 +0000
@@ -77,6 +77,7 @@

 #include <net80211/ieee80211_var.h>
 #include <net80211/ieee80211_compat.h>
+#include <dev/ic/icpreg.h>

 #include <net/bpf.h>

@@ -794,6 +795,9 @@
 	 */
 	if (ic->ic_curmode != IEEE80211_MODE_AUTO)
 		return ic->ic_curmode;
+
+	if (chan == ICP_INVALID_CHANNEL)
+		return ic->ic_curmode;
 	/*
 	 * In autoselect mode; deduce a mode based on the channel
 	 * characteristics.  We assume that turbo-only channels
>Release-Note:
>Audit-Trail:
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.