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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 29 23:41:00 +0000 2003
>Closed-Date:    Sat May 13 17:44:32 +0000 2023
>Last-Modified:  Sat May 13 17:44:32 +0000 2023
>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:
State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Sat, 13 May 2023 17:44:32 +0000
State-Changed-Why:
Code in that area has greatly changed (the patched code does not exist any
more) - and will change more dramatically in the near future.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.