LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-17-2009, 07:28 PM   #1
em21701
Member
 
Registered: Feb 2008
Location: Rhode Island, USA
Distribution: Slackware12.2 & Slackware64-13
Posts: 247

Rep: Reputation: 40
Unhappy Atheros ath9k and wicd in Slackware64...can not connect


My HP fried the north bridge so I have a brand spanking new Asus K50. Being a dedicated Slacker I promptly pulled the Vista HD and replaced it with a shiny new Slackware64 HD. It has an atheros AR9285 wireless card. I have tried using wpa_supplicant as I have done in the past with no luck. I installed wicd from /extra and restarted. I can connect to my network with the wired card with no problem, and I can see all the nearby networks in the list including my own. When I try to connect it spends a while at "Validation Authentication" then finally makes it to "Obtaining IP address". It finally ends up with "Unable to Get IP Address"

/var/log/wicd/wicd.log "cleansed"
Code:
2009/08/18 00:06:34 :: iwconfig wlan0
2009/08/18 00:06:36 :: Connecting to wireless network SSID
2009/08/18 00:06:36 :: /sbin/dhcpcd -k eth0
2009/08/18 00:06:36 :: ifconfig eth0 0.0.0.0 
2009/08/18 00:06:36 :: /sbin/ip route flush dev eth0
2009/08/18 00:06:36 :: ifconfig eth0 down
2009/08/18 00:06:36 :: ifconfig eth0 up
2009/08/18 00:06:36 :: Putting interface down
2009/08/18 00:06:36 :: ifconfig wlan0 down
2009/08/18 00:06:36 :: iwconfig wlan0
2009/08/18 00:06:36 :: Releasing DHCP leases...
2009/08/18 00:06:36 :: /sbin/dhcpcd -k wlan0
2009/08/18 00:06:36 :: Setting false IP...
2009/08/18 00:06:36 :: ifconfig wlan0 0.0.0.0 
2009/08/18 00:06:36 :: Stopping wpa_supplicant
2009/08/18 00:06:36 :: wpa_cli -i wlan0 terminate
2009/08/18 00:06:36 :: Flushing the routing table...
2009/08/18 00:06:36 :: /sbin/ip route flush dev wlan0
2009/08/18 00:06:36 :: iwconfig wlan0 mode managed
2009/08/18 00:06:36 :: Putting interface up...
2009/08/18 00:06:36 :: ifconfig wlan0 up
2009/08/18 00:06:36 :: enctype is wpa
2009/08/18 00:06:36 :: Generating psk...
2009/08/18 00:06:36 :: ['/usr/sbin/wpa_passphrase', 'SSID', 'PW']
2009/08/18 00:06:36 :: Attempting to authenticate...
2009/08/18 00:06:36 :: ['wpa_supplicant', '-B', '-i', 'wlan0', '-c', '/var/lib/wicd/configurations/0018f8bdef84', '-D', 'wext']
2009/08/18 00:06:36 :: ['iwconfig', 'wlan0', 'essid', 'SSID']
2009/08/18 00:06:36 :: iwconfig wlan0 channel 9
2009/08/18 00:06:36 :: iwconfig wlan0 ap 00:18:F8:BD:EF:84
2009/08/18 00:06:36 :: WPA_CLI RESULT IS DISCONNECTED
2009/08/18 00:06:37 :: WPA_CLI RESULT IS ASSOCIATED
2009/08/18 00:06:38 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:39 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:40 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:41 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:42 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:44 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:45 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:46 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:47 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:48 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:49 :: WPA_CLI RESULT IS ASSOCIATING
2009/08/18 00:06:50 :: WPA_CLI RESULT IS ASSOCIATED
2009/08/18 00:06:51 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:52 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:53 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:54 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:55 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:56 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:57 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:58 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:06:59 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:07:00 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:07:01 :: WPA_CLI RESULT IS DISCONNECTED
2009/08/18 00:07:02 :: WPA_CLI RESULT IS ASSOCIATING
2009/08/18 00:07:03 :: WPA_CLI RESULT IS ASSOCIATED
2009/08/18 00:07:04 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:07:05 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:07:06 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:07:07 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:07:08 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:07:09 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:07:10 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:07:11 :: WPA_CLI RESULT IS 4WAY_HANDSHAKE
2009/08/18 00:07:12 :: wpa_supplicant authentication may have failed.
2009/08/18 00:07:12 :: Running DHCP
2009/08/18 00:07:12 :: /sbin/dhcpcd wlan0
2009/08/18 00:07:32 :: err, wlan0: timed out
2009/08/18 00:07:32 :: 
2009/08/18 00:07:32 :: DHCP connection failed
2009/08/18 00:07:32 :: exiting connection thread
2009/08/18 00:07:32 :: Sending connection attempt result dhcp_failed
2009/08/18 00:07:32 :: ifconfig eth0
2009/08/18 00:07:32 :: ifconfig wlan0
...
2009/08/18 00:09:25 :: iwconfig wlan0
2009/08/18 00:09:27 :: ifconfig eth0
2009/08/18 00:09:27 :: ifconfig wlan0
2009/08/18 00:09:27 :: iwconfig wlan0
lspci | grep Wireless
Code:
   02:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
iwconfig
Code:
wlan0     IEEE 802.11bgn  Mode:Managed  Frequency:2.452 GHz  
          Access Point: Not-Associated   Tx-Power=27 dBm     
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B   
          Encryption key:off                                      
          Power Management:off                                    
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
I've googled my fingers off and I am still tethered to the wall. Please point me in the right direction.

Thanks,
Eric
 
Old 08-17-2009, 07:29 PM   #2
em21701
Member
 
Registered: Feb 2008
Location: Rhode Island, USA
Distribution: Slackware12.2 & Slackware64-13
Posts: 247

Original Poster
Rep: Reputation: 40
oh yea,
lsmod | grep ath
Code:
ath9k                 328688  0
mac80211              171288  1 ath9k
rfkill                 11316  2 ath9k
led_class               4360  2 ath9k,asus_laptop
 
Old 08-17-2009, 10:06 PM   #3
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo
Posts: 225
Blog Entries: 7

Rep: Reputation: 50
I haven't tried wicd, but I might be able to help you with wpa_supplicant. Judging from your output, it looks like you can't authenticate with the password you gave. I know that seems obvious, but I didn't see the line I always get: wlan0 authenticated. I always use wpa_passphrase <ssid> <password>, then take that hex output and put it in my wpa_supplicant.conf file.

If that doesn't work, I have an ASUS motherboard with an ethernet controller and a wifi card. For Slackware 12.2, my problem was that Slackware was trying to use the ethernet card even without a cable plugged in. My solution in /etc/rc.d/inetd.conf was to comment out the wired controller so that Slackware would use the wireless controller. Might work for you.

Last edited by vik; 08-17-2009 at 10:14 PM.
 
Old 08-18-2009, 06:05 AM   #4
em21701
Member
 
Registered: Feb 2008
Location: Rhode Island, USA
Distribution: Slackware12.2 & Slackware64-13
Posts: 247

Original Poster
Rep: Reputation: 40
I haven't had to do do that in the past, but I'll certainly give it a try. I have always used wpa_gui to fire up which ever network I was on, from there I could re-connect from the CLI. I'll see what happens.

Thanks,
Eric
 
Old 08-18-2009, 11:07 AM   #5
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo
Posts: 225
Blog Entries: 7

Rep: Reputation: 50
Looking at your output from wicd, it looks like it's doing wpa_passphrase already.
Quote:
'/usr/sbin/wpa_passphrase', 'SSID', 'PW'
Do you have mac filtering setup on your wireless router? Did you add the new card to your list?

This might help you too:
http://alien.slackbook.org/dokuwiki/...ckware:network

Last edited by vik; 08-18-2009 at 11:10 AM.
 
Old 08-18-2009, 01:10 PM   #6
em21701
Member
 
Registered: Feb 2008
Location: Rhode Island, USA
Distribution: Slackware12.2 & Slackware64-13
Posts: 247

Original Poster
Rep: Reputation: 40
I do not have mac filtering on my router. I get the same result trying to connect to the wireless network here at work. I did re-read the log as you did and noticed that wicd was also handling the wpa_passphrase. I have read through the wireless section of slackbook, but I'm going to re-read it and look for something I missed.

Thanks again,
Eric
 
Old 08-18-2009, 02:08 PM   #7
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo
Posts: 225
Blog Entries: 7

Rep: Reputation: 50
Or maybe wicd is failing in detecting the encryption algorithm; wicd successfully detects that you're using WPA, but maybe it doesn't know if you're using TKIP or AES.

Also, you might want to try using a fixed IP in wicd (if possible), so you have less variables that can go wrong.

Saw another thread that mentions there might be a conflict between inetd.conf and wicd...he just used the default inetd.conf and things worked fine.

If you're not broadcasting the SSID, this can make things a little more tricky as well...

Last edited by vik; 08-18-2009 at 02:24 PM.
 
Old 08-18-2009, 07:50 PM   #8
em21701
Member
 
Registered: Feb 2008
Location: Rhode Island, USA
Distribution: Slackware12.2 & Slackware64-13
Posts: 247

Original Poster
Rep: Reputation: 40
I may have narrowed it down to dhclient

dhclient wlan0
Code:
wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:24:23:0a:2b:1b
Sending on   LPF/wlan0/00:24:23:0a:2b:1b
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
wmaster0 is unknown to me. I don't know why it would get polled when I told it to broadcast on wlan0

My ssid is broadcast and shows up readily in wicd.
 
Old 08-19-2009, 10:37 AM   #9
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo
Posts: 225
Blog Entries: 7

Rep: Reputation: 50
A quick search on wmaster0 revealed this: http://ubuntuforums.org/showthread.php?t=697807. Anyway, dhclient will probably ignore it since it doesn't know what it is. Those DHCPDISCOVER lines look strange--hopefully you just sanitized the output or do they point to your router (x.x.x.1)?

After looking at wicd posts, can you post the output (sanitized) of /var/lib/wicd/configurations/0018f8bdef84 (or whatever the filename is when you run wicd)?

This post gave me the idea: http://wicd.net/punbb/viewtopic.php?pid=1545

Last edited by vik; 08-19-2009 at 11:13 AM.
 
Old 08-19-2009, 11:08 AM   #10
em21701
Member
 
Registered: Feb 2008
Location: Rhode Island, USA
Distribution: Slackware12.2 & Slackware64-13
Posts: 247

Original Poster
Rep: Reputation: 40
My router happily gives my wifes machine an IP address so I know the router is working fine. The more I read the less I am convinced that ath9k is ready to handle my wireless card. This being an N card, it's pretty new. I have seen many questions similar to mine all with no resolution at this time. I have 2 broadcom cards at home that I am strongly considering swapping in. I have successfully setup b43 in the past, so I'm sure I can do it again.

DHCPDISCOVER is always broadcast to 255.255.255.255 as the card does not yet know the ip address of the router to which it is trying to connect.

http://support.microsoft.com/kb/169289

Per the article, it appears that all negotiation is at this address and at 0.0.0.0.
 
Old 08-19-2009, 11:15 AM   #11
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo
Posts: 225
Blog Entries: 7

Rep: Reputation: 50
After looking at wicd posts, can you post the output (sanitized) of /var/lib/wicd/configurations/0018f8bdef84 (or whatever the filename is when you run wicd)? This post gave me the idea: http://wicd.net/punbb/viewtopic.php?pid=1545.
 
Old 08-19-2009, 05:12 PM   #12
em21701
Member
 
Registered: Feb 2008
Location: Rhode Island, USA
Distribution: Slackware12.2 & Slackware64-13
Posts: 247

Original Poster
Rep: Reputation: 40
I put my known good broadcom b/g card in and setup the firmware, I now have wireless! I won't mark this thread as solved since I still didn't get the athreos card working. A bonus though, wicd works which was not true with my old machine.

Thanks vik for all your help.

Eric
 
Old 08-19-2009, 06:05 PM   #13
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo
Posts: 225
Blog Entries: 7

Rep: Reputation: 50
No problem. Sorry I couldn't be of more assistance...
 
Old 09-01-2009, 01:18 AM   #14
matkar
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Resolved

I had the exact same error, however the wlan works like a charm with the latest compat drivers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware64 12.2. Atheros wireless troubles. val3xiv Slackware 7 08-23-2009 04:47 PM
[SOLVED] Slackware64-C client wont detect Slackware64-C Samba server slackass Slackware 5 08-07-2009 11:23 PM
Wicd on Fedora 10 will not connect to WPA/WPA2 network after install Mikazo Linux - Wireless Networking 2 04-11-2009 12:38 PM
Cannot connect to wireless network with wicd on Zenwalk Kenny_C Linux - Wireless Networking 1 04-07-2009 02:11 PM
Atheros sees network but will not connect Moomtaz Linux - Wireless Networking 5 11-14-2008 06:05 PM


All times are GMT -5. The time now is 04:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration