Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
madwifi-ng - interface never comes up first try? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
volumen1
Guru
Guru


Joined: 01 Mar 2003
Posts: 393
Location: Missoula, MT

PostPosted: Wed Feb 21, 2007 8:49 pm    Post subject: madwifi-ng - interface never comes up first try? [SOLVED] Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum