You are not logged in.

#1 2013-04-02 00:48:19

Blender
Member
Registered: 2011-05-11
Posts: 36

Atheros ath9k_htc USB adapter channel issues

I've been having some strange problems with my Alfa AWUS036NHA wireless USB adapter:

[~] uname -a                                                                                                                                
Linux arch 3.8.4-1-ARCH #1 SMP PREEMPT Wed Mar 20 22:10:25 CET 2013 x86_64 GNU/Linux
[~] lsusb                                                                      
Bus 001 Device 043: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 004 Device 003: ID 046d:c068 Logitech, Inc. G500 Laser Mouse

About five minutes after I boot, NetworkManager starts frantically connecting and disconnecting from all of my saved wireless networks. Sometimes it takes 10 seconds and other times it takes five minutes. I'm within 20 feet of my main router and can connect just fine with my netbook, which has a pretty crappy wireless card compared to the Alfa.

Every time it disconencts, dmesg spits this out:

[36714.961111] usb 1-1: USB disconnect, device number 39
[36714.961343] wlp0s20u1: deauthenticating from aa:bb:cc:dd:ee:ff by local choice (reason=3)
[36715.063432] ath: phy37: Chip reset failed
[36715.063435] ath: phy37: Unable to reset channel (2412 Mhz) reset status -22
[36715.063436] ath: phy37: Unable to set channel
[36715.163999] ath: phy37: RX failed to go idle in 10 ms RXSM=0xeaffffff
[36715.264726] ath: phy37: RX failed to go idle in 10 ms RXSM=0x84195411
[36715.366706] ath: phy37: RX failed to go idle in 10 ms RXSM=0x2bfe
[36715.468649] ath: phy37: RX failed to go idle in 10 ms RXSM=0x0
[36715.485782] usb 1-1: ath9k_htc: USB layer deinitialized
[36715.765586] usb 1-1: new high-speed USB device number 40 using xhci_hcd
[36715.789720] usb 1-1: ath9k_htc: Firmware htc_9271.fw requested
[36716.071803] usb 1-1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
[36716.308961] ath9k_htc 1-1:1.0: ath9k_htc: HTC initialized with 33 credits
[36716.575195] ath9k_htc 1-1:1.0: ath9k_htc: FW Version: 1.3
[36716.575200] ath: EEPROM regdomain: 0x833a
[36716.575201] ath: EEPROM indicates we should expect a country code
[36716.575204] ath: doing EEPROM country->regdmn map search
[36716.575205] ath: country maps to regdmn code: 0x37
[36716.575207] ath: Country alpha2 being used: GB
[36716.575208] ath: Regpair used: 0x37
[36716.575666] ieee80211 phy38: Atheros AR9271 Rev:1
[36716.575678] cfg80211: Calling CRDA for country: US
[36716.581830] systemd-udevd[6202]: renamed network interface wlan0 to wlp0s20u1
[36716.887749] IPv6: ADDRCONF(NETDEV_UP): wlp0s20u1: link is not ready
[36719.557715] wlp0s20u1: authenticate with ff:ee:dd:cc:bb:aa
[36719.695480] wlp0s20u1: capabilities/regulatory prevented using AP HT/VHT configuration, downgraded
[36719.846418] wlp0s20u1: send auth to ff:ee:dd:cc:bb:aa (try 1/3)
[36719.848269] wlp0s20u1: authenticated
[36719.848440] ath9k_htc 1-1:1.0 wlp0s20u1: disabling HT/VHT due to WEP/TKIP use
[36719.848444] ath9k_htc 1-1:1.0 wlp0s20u1: disabling HT as WMM/QoS is not supported by the AP
[36719.848447] ath9k_htc 1-1:1.0 wlp0s20u1: disabling VHT as WMM/QoS is not supported by the AP
[36719.849790] wlp0s20u1: associate with ff:ee:dd:cc:bb:aa (try 1/3)
[36719.851732] wlp0s20u1: RX AssocResp from ff:ee:dd:cc:bb:aa (capab=0x411 status=0 aid=85)
[36719.861385] wlp0s20u1: associated
[36719.861415] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s20u1: link becomes ready

Here are my loaded modules:

[~] lsmod                                                                                                                                                           
Module                  Size  Used by
fuse                   69290  7 
arc4                    2007  2 
ath9k_htc              57917  0 
ath9k_common            2096  1 ath9k_htc
ath9k_hw              361325  2 ath9k_common,ath9k_htc
ath                    15361  3 ath9k_common,ath9k_htc,ath9k_hw
nvidia               9119600  53 
mac80211              467685  1 ath9k_htc
coretemp                6198  0 
kvm_intel             124204  0 
joydev                  9727  0 
cfg80211              433688  3 ath,mac80211,ath9k_htc
hid_generic             1145  0 
kvm                   392222  1 kvm_intel
crc32c_intel           14313  0 
ghash_clmulni_intel     4597  0 
rfkill                 15996  4 cfg80211
aesni_intel            46103  0 
aes_x86_64              7555  1 aesni_intel
xts                     3135  1 aesni_intel
lrw                     3661  1 aesni_intel
gf128mul                6050  2 lrw,xts
ablk_helper             1972  1 aesni_intel
cryptd                  8741  3 ghash_clmulni_intel,aesni_intel,ablk_helper
iTCO_wdt                5447  0 
iTCO_vendor_support     1929  1 iTCO_wdt
microcode              14465  0 
i2c_i801               11077  0 
pcspkr                  1995  0 
snd_hda_codec_hdmi     27848  2 
usbhid                 41357  0 
hid                    87118  2 hid_generic,usbhid
snd_hda_codec_realtek    62745  1 
acpi_cpufreq           10630  0 
i2c_core               23171  2 i2c_i801,nvidia
mperf                   1267  1 acpi_cpufreq
sky2                   49987  0 
snd_hda_intel          34194  2 
snd_hda_codec         102453  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               6428  1 snd_hda_codec
snd_pcm                78146  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc          7426  2 snd_pcm,snd_hda_intel
snd_timer              18934  1 snd_pcm
thermal                 8577  0 
snd                    60156  11 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
fan                     2785  0 
mei                    59991  0 
soundcore               5442  1 snd
processor              27431  1 acpi_cpufreq
evdev                  10136  7 
lpc_ich                11601  0 
ext4                  478274  1 
crc16                   1359  1 ext4
jbd2                   77917  1 ext4
mbcache                 6026  1 ext4
usb_storage            47576  0 
ata_generic             3338  0 
pata_acpi               3451  0 
sr_mod                 14823  0 
cdrom                  35520  1 sr_mod
sd_mod                 31258  4 
pata_marvell            3035  0 
ahci                   22160  2 
libahci                20906  1 ahci
libata                168683  5 ahci,pata_acpi,pata_marvell,libahci,ata_generic
scsi_mod              130797  4 usb_storage,libata,sd_mod,sr_mod
ehci_pci                4120  0 
xhci_hcd               89405  0 
ehci_hcd               47423  1 ehci_pci
mxm_wmi                 1467  0 
usbcore               175061  6 usb_storage,ehci_hcd,ehci_pci,usbhid,ath9k_htc,xhci_hcd
usb_common               954  1 usbcore
video                  11363  0 
wmi                     8379  1 mxm_wmi
button                  4701  0 

Aircrack reports channel problems as well when I put the card into monitor mode and scan on a fixed channel:

[~] sudo systemctl stop NetworkManager                                         
[~] sudo killall wpa_supplicant                                                
[~] sudo airmon-ng start wlp0s20u1                                             


Interface   Chipset     Driver

wlp0s20u1       Atheros     ath9k - [phy41]
                (monitor mode enabled on mon0)

[~] sudo airodump-ng -c 1 mon0
 CH  1 ][ Elapsed: 0 s ][ 2013-04-01 20:27 ][ fixed channel mon0: -1                                         
                                                                                                                                            
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH ESSID                                                         
                                                                                                                                            
 ...

My interface name also randomly changed from wlan0 to wlp0s20u1 before this all started, so I'm not sure what's going on at all.

Here's my update log:

[~] tail -n 100 /var/log/pacman.log                                                                                                         
[2013-03-28 20:07] upgraded libffi (3.0.12-1 -> 3.0.13-1)
[2013-03-28 20:07] upgraded libmatroska (1.3.0-2 -> 1.4.0-1)
[2013-03-28 20:07] upgraded libmysqlclient (5.5.30-6 -> 5.5.30-7)
[2013-03-28 20:07] upgraded libsasl (2.1.23-9 -> 2.1.23-10)
[2013-03-28 20:07] upgraded libtorrent-rasterbar (1:0.16.8-1 -> 1:0.16.9-1)
[2013-03-28 20:07] upgraded libwacom (0.6-1 -> 0.7-1)
[2013-03-28 20:07] upgraded mysql-clients (5.5.30-6 -> 5.5.30-7)
[2013-03-28 20:07] upgraded mysql (5.5.30-6 -> 5.5.30-7)
[2013-03-28 20:07] upgraded mysql-python (1.2.4-1 -> 1.2.4-2)
[2013-03-28 20:07] upgraded openssh (6.1p1-6 -> 6.2p1-1)
[2013-03-28 20:07] upgraded parole (0.5.0-2 -> 0.5.0-3)
[2013-03-28 20:07] upgraded php (5.4.13-2 -> 5.4.13-3)
[2013-03-28 20:07] upgraded php-apache (5.4.13-2 -> 5.4.13-3)
[2013-03-28 20:07] upgraded php-mcrypt (5.4.13-2 -> 5.4.13-3)
[2013-03-28 20:07] upgraded procps-ng (3.3.5-1 -> 3.3.7-1)
[2013-03-28 20:07] upgraded sip (4.14.4-1 -> 4.14.5-1)
[2013-03-28 20:07] upgraded python-sip (4.14.4-1 -> 4.14.5-1)
[2013-03-28 20:07] upgraded python2-sip (4.14.4-1 -> 4.14.5-1)
[2013-03-28 20:07] upgraded python2-sqlalchemy (0.7.9-1 -> 0.8.0-1)
[2013-03-28 20:07] upgraded qt4 (4.8.4-13 -> 4.8.4-16)
[2013-03-28 20:07] upgraded raptor (2.0.9-1 -> 2.0.9-2)
[2013-03-28 20:07] upgraded ruby-highline (1.6.15-2 -> 1.6.16-1)
[2013-03-28 20:07] upgraded systemd-sysvcompat (198-1 -> 198-2)
[2013-03-28 20:07] upgraded vlc (2.0.5-4 -> 2.0.5-5)
[2013-03-28 20:07] upgraded webkitgtk2 (1.10.2-2 -> 1.10.2-3)
[2013-03-28 20:07] upgraded webkitgtk3 (1.10.2-2 -> 1.10.2-3)
[2013-03-28 20:07] upgraded xf86-input-evdev (2.7.3-3 -> 2.8.0-1)
[2013-03-30 00:03] Running 'pacman -S gparted'
[2013-03-30 00:04] installed libsigc++ (2.2.11-1)
[2013-03-30 00:04] installed glibmm (2.34.1-1)
[2013-03-30 00:04] installed cairomm (1.10.0-2)
[2013-03-30 00:04] installed pangomm (2.28.4-1)
[2013-03-30 00:04] installed atkmm (2.22.6-1)
[2013-03-30 00:04] installed gtkmm (2.24.2-2)
[2013-03-30 00:04] If you use a lightweight windowmanager, remember to run
[2013-03-30 00:04] /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 to enable
[2013-03-30 00:04] graphical authentication, which may be needed for pkexec to work.
[2013-03-30 00:04] installed gparted (0.15.0-1)
[2013-03-30 00:05] Running 'pacman -S dosfstools'
[2013-03-30 00:05] installed dosfstools (3.0.16-1)
[2013-03-30 00:05] Running 'pacman -S mtools'
[2013-03-30 00:05] installed mtools (4.0.18-1)
[2013-03-30 00:15] Running 'pacman -S python2-ipy'
[2013-03-30 00:15] installed python2-ipy (0.75-1)
[2013-03-30 02:08] Running 'pacman -S xsel xclip'
[2013-03-30 02:08] installed xsel (1.2.0-5)
[2013-03-30 02:08] installed xclip (0.12-3)
[2013-03-30 03:09] Running 'pacman -S flashplugin'
[2013-03-30 03:09]  >> 
[2013-03-30 03:09]  >> If you have an NVIDIA card that supports libvdpau or Broadcom Crystal HD chips,
[2013-03-30 03:09]  >> uncomment EnableLinuxHWVideoDecode=1 from /etc/adobe/mms.cfg.
[2013-03-30 03:09]  >> If you run into problems, please contact nVidia or Broadcom along with your system config info / driver version.
[2013-03-30 03:09]  >> 
[2013-03-30 03:09] installed flashplugin (11.2.202.275-1)
[2013-03-30 16:26] Running 'pacman -S inkscape'
[2013-03-30 16:29] installed gsl (1.15-2)
[2013-03-30 16:29] installed inkscape (0.48.4-5)
[2013-03-30 18:02] Running 'pacman -S -- jhead'
[2013-03-30 18:02] installed jhead (2.97-1)
[2013-03-31 04:41] Running 'pacman -S python2-nltk'
[2013-03-31 04:41] ==> Note that even though this package uses libyaml library,
[2013-03-31 04:41] ==> slower pure python implementation is used by default.
[2013-03-31 04:41] ==> See http://pyyaml.org/wiki/PyYAMLDocumentation
[2013-03-31 04:41] installed python2-yaml (3.10-3)
[2013-03-31 04:41] installed python2-nltk (2.0.4-1)
[2013-03-31 04:42] Running 'pacman -S nltk-data'
[2013-03-31 04:44] installed nltk-data (2.0-7)
[2013-03-31 17:41] Running 'pacman -S baobab'
[2013-03-31 17:41] installed baobab (3.6.4-1)
[2013-03-31 17:48] Running 'pacman -Sc'
[2013-04-01 20:09] Running 'pacman -Syy'
[2013-04-01 20:09] synchronizing package lists
[2013-04-01 20:09] Running 'pacman -Syy'
[2013-04-01 20:09] synchronizing package lists
[2013-04-01 20:09] Running 'pacman -Su'
[2013-04-01 20:09] starting full system upgrade
[2013-04-01 20:11] Running 'pacman -Su'
[2013-04-01 20:11] starting full system upgrade
[2013-04-01 20:11] Running 'pacman -Su'
[2013-04-01 20:11] starting full system upgrade
[2013-04-01 20:13] Running 'pacman -R wine'
[2013-04-01 20:13] Running 'pacman -Rc wine'
[2013-04-01 20:13] removed winetricks-svn (943-1)
[2013-04-01 20:13] removed wine (1.5.26-1)
[2013-04-01 20:13] Running 'pacman -Su'
[2013-04-01 20:13] starting full system upgrade
[2013-04-01 20:13] upgraded boost-libs (1.52.0-3 -> 1.53.0-2)
[2013-04-01 20:14] upgraded boost (1.52.0-3 -> 1.53.0-2)
[2013-04-01 20:14] upgraded chromium (26.0.1410.43-1 -> 26.0.1410.43-2)
[2013-04-01 20:14] upgraded libpulse (3.0-2 -> 3.0-3)
[2013-04-01 20:14] upgraded ffmpeg (1:1.1.3-1 -> 1:1.2-2)
[2013-04-01 20:14] upgraded libtorrent-rasterbar (1:0.16.9-1 -> 1:0.16.9-2)
[2013-04-01 20:14] upgraded libxkbcommon (0.2.0-3 -> 0.3.0-1)
[2013-04-01 20:14] upgraded luxrays (1.2-1 -> 1.2-2)
[2013-04-01 20:14] upgraded luxrender (1.2-1 -> 1.2.1-1)
[2013-04-01 20:14] upgraded nodejs (0.10.1-1 -> 0.10.2-1)
[2013-04-01 20:14] upgraded openimageio (1.1.7-2 -> 1.1.8-1)
[2013-04-01 20:14] upgraded openshadinglanguage (1.3.0-2 -> 1.3.0-3)
[2013-04-01 20:14] upgraded sqlite (3.7.16-1 -> 3.7.16.1-1)
[2013-04-01 20:14] upgraded xproto (7.0.23-1 -> 7.0.24-1)

I'm completely out of ideas here. Is it a hardware problem? All help is appreciated!

Last edited by Blender (2013-04-02 00:54:15)

Offline

Board footer

Powered by FluxBB