wi (Lucent) panics on ifconfig wi0 up

Doug Barton dougb at FreeBSD.org
Sun Jan 24 07:04:14 UTC 2010


On 01/21/10 08:29, knowtree at aloha.com wrote:
>     ifconfig wlan0 ssid MYNET
> 
> sets the ssid but
> 
>     ifconfig wlan0 up
> 
> does nothing ... no carrier. 

You want to up the wlan0 interface first thing, otherwise you will get
weirdness. When testing manually I can usually do:
ifconfig wlan0 up ssid blah
with a good success rate, but if you're still having problems with that
then you may have to do it as;
ifconfig wlan0 up
ifconfig wlan0 ssid blah

Also, if you're testing with a lot of different configurations I find it
useful to completely reset the thing each time, otherwise, once again,
weirdness. I use the attached script (which I think I've cleaned up
enough to make it usable for you). After you run this you should be able
to do 'ifconfig wlan0 up' and start fresh.

Also, please be aware that wi cards are very limited, and since they are
not in wide use anymore the code hasn't had a lot of love and attention
in recent years.


Good luck,

Doug

-- 

	Improve the effectiveness of your Internet presence with
	a domain name makeover!    http://SupersetSolutions.com/

	Computers are useless. They can only give you answers.
			-- Pablo Picasso

-------------- next part --------------
#!/bin/sh

wif=wi0
[ -n "$1" ] && wif=$1

if [ -z "$wif" ]; then
	echo "Need a wireless interface name"
	exit 1
fi

pkill dhclient

ifconfig wlan0 down
sleep 1
ifconfig wlan0 destroy

ifconfig $wif down
sleep 1

ifconfig $wif up
ifconfig wlan0 create wlandev $wif

ifconfig $wif
ifconfig wlan0

exit 0


More information about the freebsd-mobile mailing list