Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
atheros wireless won't connect to AP [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
BootNinja
n00b
n00b


Joined: 19 Mar 2004
Posts: 53
Location: Lubbock, TX

PostPosted: Fri Sep 08, 2006 1:32 am    Post subject: atheros wireless won't connect to AP [solved] Reply with quote

I'm working with a brand new gentoo 2006.1 install on an Athlon 64 3000 with 1GB RAM. The wireless card is a DWL-G510 from D-Link. I have installed madwifi-ng v. 0.0.1442.20060207 which seem to be the latest drivers. I'm using wireless tools v 28. here's the output of lsmod:
Quote:

Module Size Used by
wlan_wep 6080 1
fglrx 445108 0
ath_pci 81708 0
ath_rate_sample 10752 1 ath_pci
wlan 165856 4 wlan_wep,ath_pci,ath_rate_sample
ath_hal 223472 3 ath_pci,ath_rate_sample
snd_intel8x0 30312 1
snd_ac97_codec 96984 1 snd_intel8x0
snd_ac97_bus 2560 1 snd_ac97_codec
snd_pcm 74508 2 snd_intel8x0,snd_ac97_codec
snd_timer 18504 1 snd_pcm
snd 47208 6 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc 7760 2 snd_intel8x0,snd_pcm
radeonfb 97664 0
fb 42928 1 radeonfb
i2c_algo_bit 8392 1 radeonfb
cfbcopyarea 3584 1 radeonfb
cfbimgblt 2752 1 radeonfb
cfbfillrect 3968 1 radeonfb
i2c_core 17560 2 radeonfb,i2c_algo_bit


My AP uses open WEP encryption, but I disabled it temporarily to try and get it to connect. still no dice. I'm setting parameters with iwconfig. but, DHCP won't pull an address, and iwconfig always says "not associated". It's always just worked before. oh, and here's the output of ifconfig and iwconfig:

ifconfig:
Quote:

ath0 Link encap:Ethernet HWaddr 00:11:95:E6:B4:1C
inet6 addr: fe80::211:95ff:fee6:b41c/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth0 Link encap:Ethernet HWaddr 00:11:D8:65:AF:E9
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:d8ff:fe65:afe9/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9386 errors:0 dropped:0 overruns:0 frame:0
TX packets:3389 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5042257 (4.8 Mb) TX bytes:603243 (589.1 Kb)
Interrupt:177 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

wifi0 Link encap:Ethernet HWaddr 00:11:95:E6:B4:1C
inet6 addr: fe80::211:95ff:fee6:b41c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2400 errors:0 dropped:0 overruns:0 frame:70482
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:189824 (185.3 Kb) TX bytes:0 (0.0 b)
Interrupt:209 Memory:ffffc20000040000-ffffc20000050000



iwconfig:

Quote:

ath0 IEEE 802.11b ESSID:"padishah"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power=off Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:8989-1821-8989-1821-8989-1821-89 Security mode:open
Power Management:off
Link Quality=0/94 Signal level=-95 dBm Noise level=-95 dBm
Rx invalid nwid:2402 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


also while the key looks like ascii, it is indeed hex.
Any ideas? I'm stumped.


Last edited by BootNinja on Mon Sep 11, 2006 5:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Sep 08, 2006 7:15 am    Post subject: Re: atheros wireless won't connect to AP Reply with quote

BootNinja wrote:
I have installed madwifi-ng v. 0.0.1442.20060207 which seem to be the latest drivers.


Those are latest stable drivers.
Try 0.9.2
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
BootNinja
n00b
n00b


Joined: 19 Mar 2004
Posts: 53
Location: Lubbock, TX

PostPosted: Fri Sep 08, 2006 6:30 pm    Post subject: Reply with quote

Progress! I tried updating madwifi-ng and it didn't do anything, so I ran through /var/log/messages and found the following lines:

Quote:

Sep 8 13:12:46 localhost ath_hal: module license 'Proprietary' taints kernel.
Sep 8 13:12:46 localhost ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
Sep 8 13:12:46 localhost wlan: 0.8.4.2 (0.9.2)
Sep 8 13:12:46 localhost ath_rate_sample: 1.2 (0.9.2)
Sep 8 13:12:46 localhost ath_pci: 0.9.4.5 (0.9.2)
Sep 8 13:12:46 localhost ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 18
Sep 8 13:12:46 localhost GSI 20 sharing vector 0xD1 and IRQ 20
Sep 8 13:12:46 localhost ACPI: PCI Interrupt 0000:02:09.0[A] -> Link [LNKD] -> GSI 18 (level, low) -> IRQ 209
Sep 8 13:12:46 localhost wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Sep 8 13:12:46 localhost wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Sep 8 13:12:46 localhost wifi0: H/W encryption support: WEP AES AES_CCM TKIP
Sep 8 13:12:46 localhost wifi0: mac 7.8 phy 4.5 radio 5.6
Sep 8 13:12:46 localhost wifi0: Use hw queue 1 for WME_AC_BE traffic
Sep 8 13:12:46 localhost wifi0: Use hw queue 0 for WME_AC_BK traffic
Sep 8 13:12:46 localhost wifi0: Use hw queue 2 for WME_AC_VI traffic
Sep 8 13:12:46 localhost wifi0: Use hw queue 3 for WME_AC_VO traffic
Sep 8 13:12:46 localhost wifi0: Use hw queue 8 for CAB traffic
Sep 8 13:12:46 localhost wifi0: Use hw queue 9 for beacons
Sep 8 13:12:46 localhost couldn't load module 'wlan_scan_sta' (-38)
Sep 8 13:12:46 localhost unable to load wlan_scan_sta

Sep 8 13:12:46 localhost wifi0: Atheros 5212: mem=0xff5f0000, irq=209
Sep 8 13:12:46 localhost kjournald starting. Commit interval 5 seconds
Sep 8 13:12:46 localhost EXT3 FS on hda4, internal journal
Sep 8 13:12:46 localhost EXT3-fs: mounted filesystem with ordered data mode.
Sep 8 13:12:46 localhost rc-scripts: ERROR: cannot start netmount as net.ath0 could not start
Sep 8 13:12:49 localhost rc-scripts: ath0 does not support setting keys
Sep 8 13:12:49 localhost rc-scripts: or the parameter "mac_key_padishah" or "key_padishah" is incorrect
Sep 8 13:12:49 localhost rc-scripts: Failed to configure wireless for ath0


so I manually loaded module wlan_scan_sta, via modprobe and now I can use iwconfig to get my wireless card up and running. How can I find out why that module is not loading at boot time, so I can set up wireless to start automatically at boot?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Sep 11, 2006 9:04 am    Post subject: Reply with quote

You can always add it to /etc/modules.autoload.d/<kernel-version>
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
BootNinja
n00b
n00b


Joined: 19 Mar 2004
Posts: 53
Location: Lubbock, TX

PostPosted: Mon Sep 11, 2006 5:52 pm    Post subject: Reply with quote

Thanks for all the help guys, I've got it working. I still haven't quite figured out how to configure it to work at boot, but I created a script called wireless that I set to run when gnome loads, so that should do the trick. thanks for all the suggestions.
Back to top
View user's profile Send private message
qpmarl
n00b
n00b


Joined: 13 Sep 2006
Posts: 4
Location: Wyoming

PostPosted: Wed Sep 13, 2006 2:44 am    Post subject: Reply with quote

I'm having the exact same problem.
ath0 doesn't come up at boot.
I get the kernel message "unable to load wlan_scan_sta".
iwconfig shows the name of the ap, but the signal quality is 0 - it's not associated.
If I do something like this
Code:
ifconfig ath0 down
ifconfig ath0 up
dhcpcd ath0

then it works fine
it must be some bug in the init scripts or something
sure I could get it to come up automatically some other way, but I'd like the init script to work
I'm using pure-ftpd and the init script for this seems to need ath0 to be started properly
I'd say this isn't "solved" because BootNinja's init script isn't working properly either - he just fixed it with a kludge.
Back to top
View user's profile Send private message
BootNinja
n00b
n00b


Joined: 19 Mar 2004
Posts: 53
Location: Lubbock, TX

PostPosted: Wed Sep 13, 2006 6:24 am    Post subject: Reply with quote

add wlan_scan_sta to /etc/modules.autoload.d/<kernel-version> when I did that, the module loaded without problem. my init script is probably just not working because I don't have it configured correctly. I'm sure I can probably work that out on my own, I just wasn't able to get the card up at all when I posted this thread. could you post your /etc/conf.d/wireless so I could look at it?
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