LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-08-2010, 02:40 PM   #1
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Rep: Reputation: 61
ath9k in centos 5.5


I just installed CentOS 5.5 and I am trying to get a D-Link DWA-556 wireless NIC to work with it. The release notes state that the ath9k driver for Atheros 802.11n wireless LAN adapters has been enabled (http://www.centos.org/docs/5/html/5.....html#id475110). When I do a lspci I don't see the device listed. Any ideas or suggestions?

Thanks!
 
Old 06-10-2010, 08:27 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Some other commands most with their own man pages
ifconfig - tells you about network interfaces
lsmod |grep ath9k - should check module is loaded
system-config-network - set up the thing
iwconfig - adjusts for wireless devices
lshal |grep info\.product shows you everything in the box under every conceivable heading. Here's my broadcom 4312

info.product = 'USB Wireless Interface' (string)
info.product = 'USB Wireless Interface' (string)
info.product = 'Bluetooth Host Controller Interface' (string)
and later
info.product = 'BCM4312 802.11a/b/g' (string)
info.product = 'WLAN Interface' (string)

Now take any term there, e.g. 802.11 and try

lshal |grep -C10 802\.11
and you will see stuff about your wireless card.
 
Old 06-11-2010, 04:18 AM   #3
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
I'll give lshal a try. I think my first problem is that the system isn't seeing the NIC. I was doing an lspci and could only see the two on-board Ethernet devices. I tried moving it to a different slot (it is a PCIEx1 device and I had it in a PCIEx16 slot), but that didn't seem to make a difference.

Thanks for the suggestions. I'll give it a shot tonight after work.
 
Old 06-12-2010, 02:52 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
If it's not seeing the nic it's usually a module problem. I have seen interrupt issues, and of course, hardware issues.
 
Old 06-14-2010, 06:11 AM   #5
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
I've made some progress. After running kudzu -p, the system was finally able to see the nic. I can run iwlist wlan0 scan and it is seeing the network. I'm just trying to get the wpa_supplicant set up properly. The documentation on wireless.kernel.org talks about enabling mac80211, but I'm not really following their instructions. I'm going to look at it closer this afternoon.

Thanks!
 
Old 06-15-2010, 03:01 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Favourite mistake with wpa_supplicant is not to use wpa_passphrase
man wpa_passphrase
 
Old 06-15-2010, 07:05 PM   #7
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
I thought wpa_passphrase just encrypted the phrase in the conf file so that it wasn't directly visible. I was going to do that after I got it working. I know I'm close. The system sees the nic. The ath9k and mac80211 kernel modules are loaded:

Code:
lsmod | grep ath9k
Module    Size  Used by
ath9k    299893   0
mac80211 183617   1 ath9k
ath       43585   1 ath9k
cfg80211 191113   3 ath9k,mac80211,ath
In /etc/sysconfig/network-scripts/ifcfg-wlan0 I have:
Code:
DEVICE=wlan0
BOOTPROTO=dhcp
HWADDR=00:26:5a:e8:f8:db
TYPE=Wireless
USERCTL=no
ESSID="my SSID"
MODE=Master  (I think I need to change this to Managed)
SECURITYMODE=off
RATE=54Mb/s
My router has channel set to auto and I am using WPA2. Do I need to just select a channel in ifcfg-wlan0?

In my /etc/sysconfig/wpa_supplicant file I have:

Code:
INTERFACES="-i wlan0"
DRIVERS="-D wext"
OTHER_ARGS="-w -K -d -u -f /var/log/wpa_supplicant.log"
My /etc/wpa_supplicant/wpa_supplicant.conf has:

Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root

network={
   ssid="My ssid"
   key_mgmt=WPA_PSK
   psk="mypassword"
   pairwise=TKIP CCMP
   group=TKIP CCMP
   scan_ssid=1
}
I'm not sure the scan_ssid should be set to 1. I have my ssid invisible.

I'm pretty sure it is talking to the router, just not receiving an ip address. I'll do some more research and check out the wpa_passphrase.

Thanks!
 
Old 06-15-2010, 08:10 PM   #8
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
OK, a little more progress. I secured the pass phrase with wpa_passphrase. I see in my router log that

Code:
SSID: Wireless system with MAC address 00265AE8F8DB associated
SSID: Wireless system with MAC address 00265AE8F8DB secured and linked
and in my wireless clients page, I see this MAC with an assigned ip address. I'm just not getting my centos system to grab the ip address.
 
Old 06-16-2010, 02:52 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Well if
iwconfig wlan0 shows you are associated (like this one)

Quote:
Mode:Managed Frequency:2.417 GHz Access Point: 00:22:B0:90:0B:4B
Just start dhclient or dhcpcd with wlan0 as the interface
 
Old 06-16-2010, 06:18 AM   #10
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
Yes, it might be my dhcp setup. After I saw that the router gave an ip address, I made a reservation for it and then went back to my CentOS computer and statically set up the ip address. It works. I'll take a look tonight and see if I can't figure out why dhcp wasn't working.

Thanks!
 
Old 06-17-2010, 03:21 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
If the router gave an ip address you are in. DHCP has connected you.

Next ping some website, and ping some server you know the ip of. 208.67.222.222 is opendns.org and answers
If you can ping the IP but nit the website, you have a problem with resolv.conf being overwritten, or not set.
 
Old 06-17-2010, 05:02 AM   #12
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
The router assigned an ip address, but the centos system never picked it up. I think I'll have to snoop the packets to try and figure out where it is going wrong. I statically assigned the ip address the router gave and I can get to the Internet alright. I just can't get it to work dynamically. Not a big deal, I reserved the ip on the router.

Let's call this one closed. I got the wireless connection to work. You've been a big help. I appreciate it!

Thanks!
 
  


Reply



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] Master mode on AR928X using ath9k driver. Jophish Linux - Networking 1 10-26-2010 06:05 AM
ath9k + ar9280 oddness bobb.harley Linux - Networking 2 02-09-2010 06:54 AM
Wireless + IPTV with Atheros ath9k zibalas Linux - Networking 23 01-09-2010 02:21 AM
Slackware 13 wireless not working (ath9k) Cryophile Slackware 9 12-17-2009 06:10 PM
WG111T with new atheros kerneldriver ath9k barrios Linux - Networking 1 10-12-2009 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:42 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration