You are not logged in.
For a while now, I've had an issue where my wireless is abysmally slow. I've got a 30mbps external connection on an 802.11n network and I'm consistently getting less than 1mbps.
The wireless card is a USB attached TP-Link TL-WN722N.
Relevant output from "lsusb -v"
Bus 005 Device 006: ID 0cf3:9271 Atheros Communications, Inc. AR9271 802.11n
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass
bDeviceProtocol 255 Vendor Specific Protocol
bMaxPacketSize0 64
idVendor 0x0cf3 Atheros Communications, Inc.
idProduct 0x9271 AR9271 802.11n
bcdDevice 1.08
iManufacturer 16
iProduct 32
iSerial 48
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 60
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 6
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0I'm hoping someone can help point me in the right direction here. Any advice?
Offline
Try disabling the hardware-based encryption, as outlined here:
https://wiki.archlinux.org/index.php/Wi … tion#ath9k
(I am presuming the ath9k driver is being used)
Last edited by Head_on_a_Stick (2016-02-02 19:51:26)
Jin, Jîyan, Azadî
Offline
I think it should be the ath9k_htc, but I haven't been able to figure out where that would be listed. If I'm reading the wiki right, what driver it's using should have been in the output of "lsusb -v", but I'm not seeing it.
I've tried setting that option in /etc/modprobe.d/ath9k.conf and ath9k_htc.conf and it doesn't appear to have had any affect.
Offline
The name of the file is irrelevant, the module is defined after "options"
You could try running `udevadm monitor` and then plug the device in and see if the loaded module is listed by the kernel ring buffer or the usb-modeswitch udev rule.
I don't have any USB wi-fi devices handy to check.
Jin, Jîyan, Azadî
Offline
The name of the file is irrelevant, the module is defined after "options"
Good to know. That's how I've always seen it. In any case, I've done that for both ath9k and ath9k_htc and it hasn't had any effect.
Here's what I get as output from "udevadm monitor" when plugging it in:
KERNEL[560.967670] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4 (usb)
KERNEL[560.969930] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0 (usb)
UDEV [560.990905] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4 (usb)
UDEV [560.993654] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0 (usb)
KERNEL[562.386661] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/ieee80211/phy2 (ieee80211)
KERNEL[562.386866] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/ieee80211/phy2/rfkill2 (rfkill)
KERNEL[562.387261] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlan0 (net)
KERNEL[562.387406] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlan0/queues/rx-0 (queues)
KERNEL[562.387539] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlan0/queues/tx-0 (queues)
KERNEL[562.387672] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlan0/queues/tx-1 (queues)
KERNEL[562.387874] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlan0/queues/tx-2 (queues)
KERNEL[562.388008] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlan0/queues/tx-3 (queues)
KERNEL[562.388477] change /devices/platform/regulatory.0 (platform)
UDEV [562.391095] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/ieee80211/phy2 (ieee80211)
KERNEL[562.392017] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/leds/ath9k_htc-phy2 (leds)
KERNEL[562.392108] change /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/leds/ath9k_htc-phy2 (leds)
UDEV [562.392644] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/ieee80211/phy2/rfkill2 (rfkill)
KERNEL[562.395040] move /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlp11s0u1u1u4 (net)
UDEV [562.395060] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/leds/ath9k_htc-phy2 (leds)
UDEV [562.395565] change /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/leds/ath9k_htc-phy2 (leds)
UDEV [562.420520] change /devices/platform/regulatory.0 (platform)
UDEV [562.422315] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlp11s0u1u1u4 (net)
UDEV [562.427986] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlan0/queues/tx-1 (queues)
UDEV [562.430746] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlan0/queues/tx-0 (queues)
UDEV [562.430813] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlan0/queues/rx-0 (queues)
UDEV [562.431239] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlan0/queues/tx-3 (queues)
UDEV [562.431957] add /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlan0/queues/tx-2 (queues)
UDEV [562.433050] move /devices/pci0000:00/0000:00:15.2/0000:0b:00.0/usb5/5-1/5-1.1/5-1.1.4/5-1.1.4:1.0/net/wlp11s0u1u1u4 (net)
KERNEL[564.855604] change /devices/platform/regulatory.0 (platform)
UDEV [564.859338] change /devices/platform/regulatory.0 (platform)
KERNEL[566.516349] change /devices/platform/regulatory.0 (platform)
KERNEL[566.520460] change /devices/platform/regulatory.0 (platform)
UDEV [566.520629] change /devices/platform/regulatory.0 (platform)
UDEV [566.523464] change /devices/platform/regulatory.0 (platform)
KERNEL[568.323622] change /devices/platform/regulatory.0 (platform)
UDEV [568.328304] change /devices/platform/regulatory.0 (platform)Offline
How about:
# lsmod|grep athFrom your output, it looks like it's called "ath9k_htc"
Jin, Jîyan, Azadî
Offline
ath9k_htc 65536 0
ath9k_common 32768 1 ath9k_htc
ath9k_hw 434176 2 ath9k_common,ath9k_htc
ath 28672 3 ath9k_common,ath9k_htc,ath9k_hw
mac80211 647168 1 ath9k_htc
cfg80211 466944 4 ath,ath9k_common,mac80211,ath9k_htc
led_class 16384 3 ath9k_htc,input_leds,asus_wmi
dm_multipath 24576 0
usbcore 196608 13 usblp,snd_usb_audio,uvcvideo,ohci_hcd,ohci_pci,snd_usbmidi_lib,ehci_hcd,ehci_pci,hid_roccat_common,usbhid,ath9k_htc,xhci_hcd,xhci_pci
scsi_mod 151552 4 dm_multipath,libata,sd_mod,sr_mod
dm_mod 98304 9 dm_multipathOffline
Well, there we go.
But it doesn't work?
![]()
You can check any other options with:
# modinfo ath9k_htcJin, Jîyan, Azadî
Offline
The adapter works, but the connection speed on it is abysmal. I'm consistently getting less that 1mbps up and down where other devices connected to the same network get over 20mbps.
Here's the output of "modinfo ath9k_htc":
filename: /lib/modules/4.3.3-3-ARCH/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko.gz
firmware: htc_9271.fw
firmware: htc_7010.fw
description: Atheros driver 802.11n HTC based wireless devices
license: Dual BSD/GPL
author: Atheros Communications
alias: usb:v0CF3p20FFd*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v04DAp3904d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0411p0197d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0411p017Fd*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v083ApA704d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0846p9018d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0CF3p7010d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v1668p1200d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0CF3p7015d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0471p209Ed*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v057Cp8403d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0CF3pB002d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0CF3pB003d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v040Dp3801d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v04CAp4605d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v13D3p3350d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v13D3p3349d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v13D3p3348d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v13D3p3346d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v13D3p3328d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v13D3p3327d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v07D1p3A10d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0846p9030d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0CF3p1006d*dc*dsc*dp*ic*isc*ip*in*
alias: usb:v0CF3p9271d*dc*dsc*dp*ic*isc*ip*in*
depends: mac80211,ath9k_hw,ath9k_common,led-class,ath,cfg80211,usbcore
intree: Y
vermagic: 4.3.3-3-ARCH SMP preempt mod_unload modversions
parm: debug:Debugging mask (uint)
parm: nohwcrypt:Disable hardware encryption (int)
parm: btcoex_enable:Enable wifi-BT coexistence (int)
parm: ps_enable:Enable WLAN PowerSave (int)
parm: blink:Enable LED blink on activity (int)If I'm reading this right, it looks like the hardware encryption is disabled.
Last edited by cypher_zero (2016-02-02 22:10:53)
Offline
Try disabling the power saving option:
options ath9k-htc nohwcrypt=1 ps_enable=0Perhaps also toggle the btcoex_enable option.
Jin, Jîyan, Azadî
Offline
No dice. Same results.
Offline
Well, I think I'm giving up on this adapter. I've grabbed a different one and I'm seeing much better speeds now. Still have no clue why the other is running so terribly.
Offline