Subject: Re: port-sparc/25604: ifconfig wi0 media DS11 panics system
To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 05/20/2004 22:26:54
from http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=25604
>I think that this happens because a ieee80211_ieee2mode dereferences
>ic->ic_bss->ni_chan while it is set to IEEE80211_CHAN_ANYC.
>
>
>Please try this patch.
[...]
This helps - the panic is gone.
But, on the other hand, an /etc/ifconfig.wi0 like
<snip>
[hauke@pizza] ~ > cat /etc/ifconfig.wi0
# $Id: ifconfig.wi0,v 1.1 2004/05/20 18:24:03 hauke Exp hauke $
#
# Set up wlan accesspoint
chan 11
media DS11
nwid BallPark nwkey "1234512345123"
# Be an accesspoint
mediaopt hostap
up
</snip>
gives me a "SIOCSIFMEDIA: Invalid argument" during boot no matter how I
place the "media DS11".
The ifconfig(8) and ifmedia(4) man pages tell me nothing about
preconditions, and an "ifconfig wi0 media DS11" from the command line works
just fine - although I noticed that it wipes out the "mediaopt hostap"
unless I add that to the ifconfig parameters.
hauke
--
/~\ The ASCII Ribbon Campaign
\ / No HTML/RTF in email
X No Word docs in email
/ \ Respect for open standards