LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-27-2013, 10:30 AM   #1
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Rep: Reputation: 32
Ar9485 - SET failed on device wlan0


I am trying out Crux linux and seem to be stuck on enabling my wireless internet.

My card : Atheros AR9485
kernel : 3.6.11

I believe that the module is the ath9k which I have enabled.
ifconfig and iwconfig show the device as wlan0.
However, when I try to set the device via iwconfig, I receive a SET failure.
Code:
iwconfig wlan0 essid any
Cannot read /proc/net/wireless
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device wlan0 ; Invalid argument.
I've searched online without a clear answer. Any help would be appreciated.

Thank You
 
Old 02-28-2013, 04:39 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Run lsmod and check if the ath9k and ath9k_hw modules are loaded. Run "modinfo ath9k" for more info, such as firmware files if any.

If /proc/net/wireless doesn't exist, you may be missing some even more basic wireless modules. Make sure wireless isn't disabled in bios or a switch.
 
Old 02-28-2013, 02:53 PM   #3
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Original Poster
Rep: Reputation: 32
Code:
modinfo ath9k
filename:       /lib/modules/3.6.11/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko
license:        Dual BSD/GPL
description:    Support for Atheros 802.11n wireless LAN cards.
author:         Atheros Communications
alias:          pci:v0000168Cd00000037sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000034sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000033sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000032sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000030sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000002Esv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000002Dsv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000002Csv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000002Bsv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000002Asv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000029sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000027sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000024sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000023sv*sd*bc*sc*i*
depends:        ath9k_hw,ath9k_common,ath
intree:         Y
vermagic:       3.6.11 SMP mod_unload 
parm:           debug:Debugging mask (uint)
parm:           nohwcrypt:Disable hardware encryption (int)
parm:           blink:Enable LED blink on activity (int)
parm:           btcoex_enable:Enable wifi-BT coexistence (int)
Code:
lsmod | grep ath9k
ath9k                  94453  0 
ath9k_common            1809  1 ath9k
ath9k_hw              330209  2 ath9k_common,ath9k
ath                    14690  3 ath9k_common,ath9k,ath9k_hw
 
Old 03-05-2013, 12:56 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
It looks like your kernel modules are present. Does /proc/net/wireless exist? If so, did you run iwconfig as root?
 
Old 03-05-2013, 10:30 AM   #5
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Original Poster
Rep: Reputation: 32
Quote:
It looks like your kernel modules are present. Does /proc/net/wireless exist? If so, did you run iwconfig as root?
No /proc/net/wireless does not exist and yes, I ran iwconfig as root.
 
Old 03-07-2013, 01:57 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
It doesn't seem to make sense that the kernel module is loaded but /proc/net/wireless isn't created by the kernel. Look through your boot up logs for clues. Check your kernel config file in /boot/. Is a related networking module not enabled? Do you have a /proc /proc line in fstab?
 
Old 03-07-2013, 10:22 AM   #7
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Original Poster
Rep: Reputation: 32
Yes, there is a proc line in fstab.
/proc/net does exist and is populated with many items, but wirless is NOT one of them

The only entries in boot logs that refer to the wireless are below:
Code:
[    3.598434] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
[    3.643675] devtmpfs: mounted
[    3.643915] Freeing unused kernel memory: 556k freed
[    4.317928] udevd[64]: starting version 182
[    4.788136] atl1c 0000:06:00.0: version 1.0.1.0-NAPI
[    4.946242] ath: phy0: ASPM enabled: 0x43
[    4.946252] ath: EEPROM regdomain: 0x6c
[    4.946254] ath: EEPROM indicates we should expect a direct regpair map
[    4.946260] ath: Country alpha2 being used: 00
[    4.946262] ath: Regpair used: 0x6c
[    4.948956] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    4.949425] Registered led device: ath9k-phy0
[    4.949439] ieee80211 phy0: Atheros AR9485 Rev:1 mem=0xffffc90005100000, irq=19
[    4.968792] snd_hda_intel 0000:00:01.1: irq 40 for MSI/MSI-X
[    5.144357] snd_hda_intel 0000:00:14.2: setting latency timer to 64
[    5.430041] hda_codec: CX20588: BIOS auto-probing.
[    7.171052] device-mapper: ioctl: 4.23.0-ioctl (2012-07-25) initialised: dm-devel@redhat.com
[    7.449960] EXT4-fs (sda1): re-mounted. Opts: (null)
[    7.697554] EXT4-fs (sda1): re-mounted. Opts: (null)
[    7.872681] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
[    7.905179] Adding 4194300k swap on /dev/sda2.  Priority:-1 extents:1 across:4194300k
as far as a related networking module not being installed. I have no idea what that would be.
I followed instructions here:
http://linuxwireless.org/en/users/Drivers/ath9k

Last edited by glenn69; 03-07-2013 at 10:23 AM.
 
Old 03-12-2013, 05:56 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The mac80211 driver is what I was thinking of. It looks like it is present. What is your kernel version?

Does /proc/net/devices exist? Another post asked if ath9k_pci is enabled in the kernel.

Last edited by jschiwal; 03-12-2013 at 06:06 AM.
 
Old 03-12-2013, 10:16 AM   #9
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Original Poster
Rep: Reputation: 32
kernel 3.6.11
 
Old 03-13-2013, 05:32 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
http://forums.gentoo.org/viewtopic-t...2-start-0.html

This thread ona Gentoo forum is maybe similar.
You seem to be missing the same kernel module.
 
Old 03-13-2013, 05:12 PM   #11
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Original Poster
Rep: Reputation: 32
I followed the thread. I do have the ath9k_pci enabled, so that didn't help.

Here is the output of # zgrep _ATH /usr/src/linux-3.6.11/.config
Code:
CONFIG_NET_VENDOR_ATHEROS=y
CONFIG_ATH_COMMON=m
# CONFIG_ATH_DEBUG is not set
# CONFIG_ATH5K is not set
# CONFIG_ATH5K_PCI is not set
CONFIG_ATH9K_HW=m
CONFIG_ATH9K_COMMON=m
CONFIG_ATH9K_BTCOEX_SUPPORT=y
CONFIG_ATH9K=m
CONFIG_ATH9K_PCI=y
# CONFIG_ATH9K_AHB is not set
# CONFIG_ATH9K_DEBUGFS is not set
CONFIG_ATH9K_RATE_CONTROL=y
CONFIG_ATH9K_HTC=m
# CONFIG_ATH9K_HTC_DEBUGFS is not set
# CONFIG_ATH6KL is not set
I'm not sure that I see anything missing?
 
  


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
SET failed on device wlan0 ; Invalid argument kashifchughtai Linux - Networking 2 03-22-2011 07:26 AM
SET failed on device wlan0 ; Invalid argument kashifchughtai Linux - Newbie 7 10-01-2010 01:11 PM
SET failed on device eth1 benchcomptons Linux - Wireless Networking 2 12-07-2008 03:25 PM
"SET failed on device wlan0." What does this mean? tbbmw Linux - Wireless Networking 2 08-01-2008 12:55 AM
Failed to activate interface : SIOCSIFADDR: No such device wlan0: hasnain Linux - Wireless Networking 1 04-11-2005 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:09 PM.

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