LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ar9485 - SET failed on device wlan0 (https://www.linuxquestions.org/questions/linux-networking-3/ar9485-set-failed-on-device-wlan0-4175451921/)

glenn69 02-27-2013 10:30 AM

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

jschiwal 02-28-2013 04:39 AM

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.

glenn69 02-28-2013 02:53 PM

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


jschiwal 03-05-2013 12:56 AM

It looks like your kernel modules are present. Does /proc/net/wireless exist? If so, did you run iwconfig as root?

glenn69 03-05-2013 10:30 AM

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.

jschiwal 03-07-2013 01:57 AM

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?

glenn69 03-07-2013 10:22 AM

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

jschiwal 03-12-2013 05:56 AM

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.

glenn69 03-12-2013 10:16 AM

kernel 3.6.11

jschiwal 03-13-2013 05:32 AM

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.

glenn69 03-13-2013 05:12 PM

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?


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