Subject: Re: 80211 network kernel panics on "mediaopt hostap"?
To: Peter Seebach <seebs@plethora.net>
From: Gilbert Fernandes <gilbertf@netbsd-fr.org>
List: current-users
Date: 05/05/2004 16:04:14
On Tue, May 04, 2004 at 08:55:45AM -0500, Peter Seebach wrote:

update people. talked with fxkennedy of this
and he gave me the following patch. i have built
a new 2.0E kernel and i booted without the panic.

please apply and check :

Date: Wed, 5 May 2004 17:52:46 +0200 (CEST)
From: <cube@cubidou.net>

Index: ieee80211_ioctl.c
===================================================================
RCS file: /cvsroot/src/sys/net80211/ieee80211_ioctl.c,v
retrieving revision 1.10
diff -u -r1.10 ieee80211_ioctl.c
--- ieee80211_ioctl.c	30 Apr 2004 23:58:11 -0000	1.10
+++ ieee80211_ioctl.c	5 May 2004 15:52:45 -0000
@@ -1375,7 +1375,8 @@
 		case AF_INET:
 			if ((ifp->if_flags & IFF_UP) == 0) {
 				ifp->if_flags |= IFF_UP;
-				ifp->if_init(ifp->if_softc);
+				/* XXX should check for return value */
+				ifp->if_init(ifp);
 			}
 			arp_ifinit(ifp, ifa);
 			break;
@@ -1401,7 +1402,8 @@
 		default:
 			if ((ifp->if_flags & IFF_UP) == 0) {
 				ifp->if_flags |= IFF_UP;
-				ifp->if_init(ifp->if_softc);
+				/* XXX should check for return value */
+				ifp->if_init(ifp);
 			}
 			break;
 		}


-- 
Gilbert Fernandes