volumen1 Guru


Joined: 01 Mar 2003 Posts: 393 Location: Missoula, MT
|
Posted: Wed Feb 21, 2007 8:49 pm Post subject: madwifi-ng - interface never comes up first try? [SOLVED] |
|
|
I have a Dell Latitude D620 Laptop. I replaced the crappy Intel mini PCI express wireless card with a nice Atheros-based chipset. What I've noticed, though, is that my wireless interface never comes up correctly the first time. Here's an example:
| Code: | # /etc/init.d/net.ath0 restart
* Starting ath0
* Configuring wireless network for ath0
* ath0 connected to ESSID "Downstairs" at 00:00:00:00:00:00
* in managed mode on channel 7 (WEP enabled - restricted)
* Configuration not set for ath0 - assuming DHCP
* Bringing up ath0
* dhcp
* Running dhcpcd ... |
Notice how the APs MAC is all 0s? Of course, DHCP eventually fails. Then, all I have to do to make it work is this:
| Code: | # ifconfig ath0 up
# /etc/init.d/net.ath0 restart
* Starting ath0
* Configuring wireless network for ath0
* ath0 connected to ESSID "Downstairs" at 00:16:AF:C9:AA:A0
* in managed mode on channel 6 (WEP enabled - restricted)
* Configuration not set for ath0 - assuming DHCP
* Bringing up ath0
* dhcp
* Running dhcpcd ... [ ok ]
* ath0 received address 10.1.1.92/24
|
So, to make it work, I have to first use ifconfig to bring up ath0, then when I restart net.ath0 it connects to my ESSID and it displays the correct MAC this time. Here's my conf.d/net in entirety (although obfuscated):
| Code: |
preferred_aps=( "Downstairs" "Office" )
key_Downstairs="8888-8888-8888-8888-8888-8888-88"
associate_order="forcepreferred"
|
From what I've seen, it doesn't seem to matter whether I'm connecting to the WEP encrypted SSID of Downstairs or the open network of Office, it will always fail unless I bring the interface up first. Sure, I could modify the net.ath0 script and put that in there, but I'd like to know why it's doing it. Is anyone else seeing this?
EDIT: Nevermind. I went wpa_supplicant and I'm never going back! _________________ I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com |
|