#StackBounty: #networking #ssh #scp #wsl WSL – Can't scp-ssh a file from a remote machine to a local machine

Bounty: 50

I use a WSL Ubuntu 16.04.02 (fully updated and upgraded) and I Can’t secure copy a file via an scp-ssh sequence.

I already created host keys in WSL via sudo ssh-keygen -A and I already tried to login while the OpenSSH seerver is on, on WSL (I made that sure sudo service ssh start).

My problem:

sudo scp /var/www/html/tiesto USER@IP:/mnt/c/Users/USER/Desktop/

Brings:

connection timed out

As you can see, I try to copy the file “tiesto” from inside a remote machine, into my local WSL machine but the connection is timed out.

This does not happen when I try to do the same action between two other machines.

Things I already tried to solve it:

  • I already made sure OpenSSH is installed (sudo apt-get install openssh-server).
  • I tried to remove fail2ban (the only IPS I installed) but still couldn’t scp’ing.
  • I didn’t change the native ssh port from 22 to something else.
  • I tried scp’ing into this amchine from 2 different remote machines and in both cases had the same error.

My question:

What might be missing (if at all) in WSL that I could try to add someway so to bring back the scp-ssh functionality?


Get this bounty!!!

#StackBounty: #networking #16.04 #server #hostapd Is there a way to debug wireless access point issues that was setup with hostapd?

Bounty: 50

I am trying to setup a wireless access point with a home PC. I replaced my old Intel wifi link 5100 with Atheros AR9462. I recently did a fresh Ubuntu Server 16.04 install.

To setup wireless access point I installed hostapd and created a simple configuration

# cat /etc/hostapd/hostapd.conf 
interface=wlp3s0
driver=nl80211
ssid=mytestnetwork
channel=1
auth_algs=1
ignore_broadcast_ssid=0
wpa=0

And here is how my network interfaces are configured:

# cat /etc/network/interfaces
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto enp1s0
iface enp1s0 inet dhcp

auto wlp3s0
iface wlp3s0 inet static
address 10.10.0.1
netmask 255.255.255.0

After these configurations, I rebooted the device. My network is active (checked via /etc/init.d/networking status). hostapd (checked via service hostapd status) seems to be running fine. However, I cannot event detect the wireless access point from any other device.

My wireless card is functioning in master mode:

# iwconfig
wlp3s0    IEEE 802.11abgn  Mode:Master  Tx-Power=19 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

lo        no wireless extensions.

enp1s0    no wireless extensions.

My network hardware results look like the following:

# lshw -C network
  *-network               
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: enp1s0
       version: 07
       serial: 00:e0:4c:68:18:fd
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=192.168.1.6 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
       resources: irq:120 ioport:e000(size=256) memory:a0004000-a0004fff memory:a0000000-a0003fff
  *-network
       description: Wireless interface
       product: AR9462 Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlp3s0
       version: 01
       serial: 44:c3:06:31:a7:b0
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=4.4.0-62-generic firmware=N/A ip=10.10.0.1 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
       resources: irq:18 memory:81200000-8127ffff memory:81280000-8128ffff

How can I troubleshoot this issue further and find out what is going wrong?


Get this bounty!!!

#StackBounty: #networking #virtual-machine #dns #vmware #vmware-workstation Virtual Network Adapter Sometimes Causes DNS_PROBE_FINISHED…

Bounty: 50

After setting up a Virtual Network Adapter in VMWare Workstation Pro 12, I have recently been getting DNS_PROBE_FINISHED_NXDOMAIN errors in the Host OS sporadically.

What is the cause of this (Did I make a configuration error?) and is there a fix?

Notes:

  • The error does not occur within the Guest OS
  • Disabling the Virtual Network Adapter in the Host OS resolves the issue
  • Both networks are connecting through IPv4 to the internet
  • The errors appear to occur randomly and last between 1 and 5 minutes
  • The DNS Cache on the Host appears to be functioning normally

The following appears in Windows Event Viewer (Some output is omitted):

Level: Warning
Source: DNS Client Events
Name resolution for the name www.example.com timed out after none of the configured DNS servers responded.

What I have tried so far:

  • In both the Virtual Network Adapter and the Host Adapter, I have added DNS Servers from Level3, Verisign, and Google (Each individually and all at once)
  • In both the Host and Guest, I have run ipconfig /release, ipconfig /flushdns, and ipconfig /renew
  • In both the Host and Guest, in an elevated instance of Command Prompt, I have run netsh winsock reset and restarted both the Guest and Host
  • In both the Host and Guest, I have disabled the Firewall and Antivirus
  • On both Chrome and Firefox, I have cleared all cached data

Network Configs:

Guest:

The following is what is configured inside VMWare Workstation 12 Pro:

  • Network is running as NAT
  • Network IP is 172.16.0.1/16
  • DHCP is Enabled, with lease IP addresses in the range of 172.16.128.0 to 172.16.255.254
  • Gateway in Guest OS is set to 172.16.0.1
  • No ports are currently forwarded
  • Preferred and Alternative DNS servers are currently set to 8.8.8.8 and 8.8.4.4

Output of ipconfig /all can be found Here

Host:

Output of ipconfig /all can be found Here (Sensitive and irrelevant information is replaced with #)

System Information:

  • Host OS: Windows 10 Home (Version 1607, Build 14393.953)
  • Guest OS: Windows Server 2016 Datacenter (Version 1607, Build 14393.447)
  • VMWare Workstation 12 Pro (Version 12.5.5, Build 5234757)


Get this bounty!!!

#StackBounty: #networking #network-manager #dns #dnsmasq dnsmasq not working when plugging in wired network

Bounty: 50

When connecting my Dell XPS13 laptop to a wired network via a Dell WD15 docking station, I’m unable to use the internet.

I’ve identified that it’s a DNS issue and dnsmasq is misbehaving. Killing dnsmasq (which automatically starts a new process) solves the problem temporarily.

The problem doesn’t occur with a wireless connection. Note that the laptop doesn’t have a build-in ethernet port. A wired connect is always done through the USB-C port.

Disabling dnsmasq would be a workaround, but I prefer not to do that.

enxd481d72d354a Link encap:Ethernet  HWaddr d4:81:d7:2d:35:4a  
          inet addr:192.168.224.125  Bcast:192.168.224.255  Mask:255.255.255.0
          inet6 addr: fe80::8bdf:9a83:50e9:c4b4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5143 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1329 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1399042 (1.3 MB)  TX bytes:405167 (405.1 KB)

How can I solve this, without disabling dnsmasq altogether?


Get this bounty!!!

#StackBounty: #12.04 #wireless #networking #drivers #atheros Can't control connection bit rate using iwconfig with Atheros TL-WN821…

Bounty: 50

I’m trying to reduce the connection bit rate on my Atheros TP-Link TL-WN821N v3 usb wifi adapter due to frequent instability issues (reported connection speed goes down to 1Mb/s and I have to physically reconnect the adapter to regain a connection). I know this is a common problem with this device, and I have tried everything I can think of to fix it, including using drivers from linux-backports; compiling and installing a custom firmware (following instructions on https://wiki.debian.org/ath9k_htc#fw-free) and (as a last resort) using ndiswrapper.

When using ndiswrapper, the wifi adapter is stable and operates in g mode at 54Mb/s (whilst when using the default ath9k_htc module, the adapter connects in n mode and the bit rate fluctuates constantly). Unfortunately, with this setup I have to run my processor using only one core, since using SMP with ndiswrapper causes a kernel oops on my system.

So I want to lock my bit rate to 54Mb/s (or less, if need be) for connection stability, using the ath9k_htc module.

I’ve tried ‘sudo iwconfig wlan0 rate 54M’; the command runs with no error but when I check the bit rate with ‘sudo iwlist wlan0 bitrate’ the command returns:

wlan0 unknown bit-rate information. 
          Current Bit Rate:78 Mb/s

Any ideas? Here’s some info (hopefully relevant) on my setup:

Xubuntu (12.04.3) 64bit (kernel 3.2.0-55.85-generic) using Network Manager. My Router is from Virgin Media, the VMDG480.

lshw -C network :

  *-network               
       description: Wireless interface 
       physical id: 1 
       bus info: usb@1:4 
       logical name: wlan0 
       serial: 74:ea:3a:8f:16:b6 
       capabilities: ethernet physical wireless 
       configuration: broadcast=yes driver=ath9k_htc driverversion=3.2.0-55 firmware=1.3 ip=192.168.0.9 link=yes multicast=yes wireless=IEEE 802.11bgn
lsusb -v:

Bus 001 Device 003: ID 0cf3:7015 Atheros Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] 
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          0x7015 TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] 
  bcdDevice            2.02 
  iManufacturer          16 ATHEROS 
  iProduct               32 UB95 
  iSerial                48 12345 
  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               0 
Device Qualifier (for other device speed): 
  bLength                10 
  bDescriptorType         6 
  bcdUSB               2.00 
  bDeviceClass          255 Vendor Specific Class 
  bDeviceSubClass       255 Vendor Specific Subclass 
  bDeviceProtocol       255 Vendor Specific Protocol 
  bMaxPacketSize0        64 
  bNumConfigurations      1 
Device Status:     0x0000 
  (Bus Powered)
iwlist wlan0 scanning:

wlan0     Scan completed : 
          Cell 01 - Address: C4:3D:C7:3A:1F:5D 
                    Channel:1 
                    Frequency:2.412 GHz (Channel 1) 
                    Quality=37/70  Signal level=-73 dBm  
                    Encryption key:on 
                    ESSID:"my essid" 
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 
                              24 Mb/s; 36 Mb/s; 54 Mb/s 
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s 
                    Mode:Master 
                    Extra:tsf=00000070cca77186 
                    Extra: Last beacon: 5588ms ago 
                    IE: Unknown: 0007756E69636F726E 
                    IE: Unknown: 010882848B962430486C 
                    IE: Unknown: 030101 
                    IE: Unknown: 2A0100 
                    IE: Unknown: 2F0100 
                    IE: IEEE 802.11i/WPA2 Version 1 
                        Group Cipher : TKIP 
                        Pairwise Ciphers (2) : CCMP TKIP 
                        Authentication Suites (1) : PSK 
                    IE: Unknown: 32040C121860 
                    IE: Unknown: 2D1AFC181BFFFF000000000000000000000000000000000000000000 
                    IE: Unknown: 3D1601080400000000000000000000000000000000000000 
                    IE: Unknown: DD7E0050F204104A0001101044000102103B00010310470010F99C335D7BAC57FB00137DFA79600220102100074E657467656172102300074E6574676561721024000631323334353610420007303030303030311054000800060050F20400011011000743473331303144100800022008103C0001011049000600372A000120 
                    IE: Unknown: DD090010180203F02C0000 
                    IE: WPA Version 1 
                        Group Cipher : TKIP 
                        Pairwise Ciphers (2) : CCMP TKIP 
                        Authentication Suites (1) : PSK 
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
iwconfig:

lo        no wireless extensions. 

wlan0     IEEE 802.11bgn  ESSID:"my essid"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: C4:3D:C7:3A:1F:5D   
          Bit Rate=78 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off 
          Power Management:off 
          Link Quality=36/70  Signal level=-74 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0,


Get this bounty!!!

#StackBounty: #12.04 #wireless #networking #drivers #atheros Can't control connection bit rate using iwconfig with Atheros TL-WN821…

Bounty: 50

I’m trying to reduce the connection bit rate on my Atheros TP-Link TL-WN821N v3 usb wifi adapter due to frequent instability issues (reported connection speed goes down to 1Mb/s and I have to physically reconnect the adapter to regain a connection). I know this is a common problem with this device, and I have tried everything I can think of to fix it, including using drivers from linux-backports; compiling and installing a custom firmware (following instructions on https://wiki.debian.org/ath9k_htc#fw-free) and (as a last resort) using ndiswrapper.

When using ndiswrapper, the wifi adapter is stable and operates in g mode at 54Mb/s (whilst when using the default ath9k_htc module, the adapter connects in n mode and the bit rate fluctuates constantly). Unfortunately, with this setup I have to run my processor using only one core, since using SMP with ndiswrapper causes a kernel oops on my system.

So I want to lock my bit rate to 54Mb/s (or less, if need be) for connection stability, using the ath9k_htc module.

I’ve tried ‘sudo iwconfig wlan0 rate 54M’; the command runs with no error but when I check the bit rate with ‘sudo iwlist wlan0 bitrate’ the command returns:

wlan0 unknown bit-rate information. 
          Current Bit Rate:78 Mb/s

Any ideas? Here’s some info (hopefully relevant) on my setup:

Xubuntu (12.04.3) 64bit (kernel 3.2.0-55.85-generic) using Network Manager. My Router is from Virgin Media, the VMDG480.

lshw -C network :

  *-network               
       description: Wireless interface 
       physical id: 1 
       bus info: usb@1:4 
       logical name: wlan0 
       serial: 74:ea:3a:8f:16:b6 
       capabilities: ethernet physical wireless 
       configuration: broadcast=yes driver=ath9k_htc driverversion=3.2.0-55 firmware=1.3 ip=192.168.0.9 link=yes multicast=yes wireless=IEEE 802.11bgn
lsusb -v:

Bus 001 Device 003: ID 0cf3:7015 Atheros Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] 
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          0x7015 TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] 
  bcdDevice            2.02 
  iManufacturer          16 ATHEROS 
  iProduct               32 UB95 
  iSerial                48 12345 
  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               0 
Device Qualifier (for other device speed): 
  bLength                10 
  bDescriptorType         6 
  bcdUSB               2.00 
  bDeviceClass          255 Vendor Specific Class 
  bDeviceSubClass       255 Vendor Specific Subclass 
  bDeviceProtocol       255 Vendor Specific Protocol 
  bMaxPacketSize0        64 
  bNumConfigurations      1 
Device Status:     0x0000 
  (Bus Powered)
iwlist wlan0 scanning:

wlan0     Scan completed : 
          Cell 01 - Address: C4:3D:C7:3A:1F:5D 
                    Channel:1 
                    Frequency:2.412 GHz (Channel 1) 
                    Quality=37/70  Signal level=-73 dBm  
                    Encryption key:on 
                    ESSID:"my essid" 
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 
                              24 Mb/s; 36 Mb/s; 54 Mb/s 
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s 
                    Mode:Master 
                    Extra:tsf=00000070cca77186 
                    Extra: Last beacon: 5588ms ago 
                    IE: Unknown: 0007756E69636F726E 
                    IE: Unknown: 010882848B962430486C 
                    IE: Unknown: 030101 
                    IE: Unknown: 2A0100 
                    IE: Unknown: 2F0100 
                    IE: IEEE 802.11i/WPA2 Version 1 
                        Group Cipher : TKIP 
                        Pairwise Ciphers (2) : CCMP TKIP 
                        Authentication Suites (1) : PSK 
                    IE: Unknown: 32040C121860 
                    IE: Unknown: 2D1AFC181BFFFF000000000000000000000000000000000000000000 
                    IE: Unknown: 3D1601080400000000000000000000000000000000000000 
                    IE: Unknown: DD7E0050F204104A0001101044000102103B00010310470010F99C335D7BAC57FB00137DFA79600220102100074E657467656172102300074E6574676561721024000631323334353610420007303030303030311054000800060050F20400011011000743473331303144100800022008103C0001011049000600372A000120 
                    IE: Unknown: DD090010180203F02C0000 
                    IE: WPA Version 1 
                        Group Cipher : TKIP 
                        Pairwise Ciphers (2) : CCMP TKIP 
                        Authentication Suites (1) : PSK 
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
iwconfig:

lo        no wireless extensions. 

wlan0     IEEE 802.11bgn  ESSID:"my essid"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: C4:3D:C7:3A:1F:5D   
          Bit Rate=78 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off 
          Power Management:off 
          Link Quality=36/70  Signal level=-74 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0,


Get this bounty!!!

#StackBounty: #12.04 #wireless #networking #drivers #atheros Can't control connection bit rate using iwconfig with Atheros TL-WN821…

Bounty: 50

I’m trying to reduce the connection bit rate on my Atheros TP-Link TL-WN821N v3 usb wifi adapter due to frequent instability issues (reported connection speed goes down to 1Mb/s and I have to physically reconnect the adapter to regain a connection). I know this is a common problem with this device, and I have tried everything I can think of to fix it, including using drivers from linux-backports; compiling and installing a custom firmware (following instructions on https://wiki.debian.org/ath9k_htc#fw-free) and (as a last resort) using ndiswrapper.

When using ndiswrapper, the wifi adapter is stable and operates in g mode at 54Mb/s (whilst when using the default ath9k_htc module, the adapter connects in n mode and the bit rate fluctuates constantly). Unfortunately, with this setup I have to run my processor using only one core, since using SMP with ndiswrapper causes a kernel oops on my system.

So I want to lock my bit rate to 54Mb/s (or less, if need be) for connection stability, using the ath9k_htc module.

I’ve tried ‘sudo iwconfig wlan0 rate 54M’; the command runs with no error but when I check the bit rate with ‘sudo iwlist wlan0 bitrate’ the command returns:

wlan0 unknown bit-rate information. 
          Current Bit Rate:78 Mb/s

Any ideas? Here’s some info (hopefully relevant) on my setup:

Xubuntu (12.04.3) 64bit (kernel 3.2.0-55.85-generic) using Network Manager. My Router is from Virgin Media, the VMDG480.

lshw -C network :

  *-network               
       description: Wireless interface 
       physical id: 1 
       bus info: usb@1:4 
       logical name: wlan0 
       serial: 74:ea:3a:8f:16:b6 
       capabilities: ethernet physical wireless 
       configuration: broadcast=yes driver=ath9k_htc driverversion=3.2.0-55 firmware=1.3 ip=192.168.0.9 link=yes multicast=yes wireless=IEEE 802.11bgn
lsusb -v:

Bus 001 Device 003: ID 0cf3:7015 Atheros Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] 
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          0x7015 TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] 
  bcdDevice            2.02 
  iManufacturer          16 ATHEROS 
  iProduct               32 UB95 
  iSerial                48 12345 
  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               0 
Device Qualifier (for other device speed): 
  bLength                10 
  bDescriptorType         6 
  bcdUSB               2.00 
  bDeviceClass          255 Vendor Specific Class 
  bDeviceSubClass       255 Vendor Specific Subclass 
  bDeviceProtocol       255 Vendor Specific Protocol 
  bMaxPacketSize0        64 
  bNumConfigurations      1 
Device Status:     0x0000 
  (Bus Powered)
iwlist wlan0 scanning:

wlan0     Scan completed : 
          Cell 01 - Address: C4:3D:C7:3A:1F:5D 
                    Channel:1 
                    Frequency:2.412 GHz (Channel 1) 
                    Quality=37/70  Signal level=-73 dBm  
                    Encryption key:on 
                    ESSID:"my essid" 
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 
                              24 Mb/s; 36 Mb/s; 54 Mb/s 
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s 
                    Mode:Master 
                    Extra:tsf=00000070cca77186 
                    Extra: Last beacon: 5588ms ago 
                    IE: Unknown: 0007756E69636F726E 
                    IE: Unknown: 010882848B962430486C 
                    IE: Unknown: 030101 
                    IE: Unknown: 2A0100 
                    IE: Unknown: 2F0100 
                    IE: IEEE 802.11i/WPA2 Version 1 
                        Group Cipher : TKIP 
                        Pairwise Ciphers (2) : CCMP TKIP 
                        Authentication Suites (1) : PSK 
                    IE: Unknown: 32040C121860 
                    IE: Unknown: 2D1AFC181BFFFF000000000000000000000000000000000000000000 
                    IE: Unknown: 3D1601080400000000000000000000000000000000000000 
                    IE: Unknown: DD7E0050F204104A0001101044000102103B00010310470010F99C335D7BAC57FB00137DFA79600220102100074E657467656172102300074E6574676561721024000631323334353610420007303030303030311054000800060050F20400011011000743473331303144100800022008103C0001011049000600372A000120 
                    IE: Unknown: DD090010180203F02C0000 
                    IE: WPA Version 1 
                        Group Cipher : TKIP 
                        Pairwise Ciphers (2) : CCMP TKIP 
                        Authentication Suites (1) : PSK 
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
iwconfig:

lo        no wireless extensions. 

wlan0     IEEE 802.11bgn  ESSID:"my essid"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: C4:3D:C7:3A:1F:5D   
          Bit Rate=78 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off 
          Power Management:off 
          Link Quality=36/70  Signal level=-74 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0,


Get this bounty!!!

#StackBounty: #12.04 #wireless #networking #drivers #atheros Can't control connection bit rate using iwconfig with Atheros TL-WN821…

Bounty: 50

I’m trying to reduce the connection bit rate on my Atheros TP-Link TL-WN821N v3 usb wifi adapter due to frequent instability issues (reported connection speed goes down to 1Mb/s and I have to physically reconnect the adapter to regain a connection). I know this is a common problem with this device, and I have tried everything I can think of to fix it, including using drivers from linux-backports; compiling and installing a custom firmware (following instructions on https://wiki.debian.org/ath9k_htc#fw-free) and (as a last resort) using ndiswrapper.

When using ndiswrapper, the wifi adapter is stable and operates in g mode at 54Mb/s (whilst when using the default ath9k_htc module, the adapter connects in n mode and the bit rate fluctuates constantly). Unfortunately, with this setup I have to run my processor using only one core, since using SMP with ndiswrapper causes a kernel oops on my system.

So I want to lock my bit rate to 54Mb/s (or less, if need be) for connection stability, using the ath9k_htc module.

I’ve tried ‘sudo iwconfig wlan0 rate 54M’; the command runs with no error but when I check the bit rate with ‘sudo iwlist wlan0 bitrate’ the command returns:

wlan0 unknown bit-rate information. 
          Current Bit Rate:78 Mb/s

Any ideas? Here’s some info (hopefully relevant) on my setup:

Xubuntu (12.04.3) 64bit (kernel 3.2.0-55.85-generic) using Network Manager. My Router is from Virgin Media, the VMDG480.

lshw -C network :

  *-network               
       description: Wireless interface 
       physical id: 1 
       bus info: usb@1:4 
       logical name: wlan0 
       serial: 74:ea:3a:8f:16:b6 
       capabilities: ethernet physical wireless 
       configuration: broadcast=yes driver=ath9k_htc driverversion=3.2.0-55 firmware=1.3 ip=192.168.0.9 link=yes multicast=yes wireless=IEEE 802.11bgn
lsusb -v:

Bus 001 Device 003: ID 0cf3:7015 Atheros Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] 
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          0x7015 TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] 
  bcdDevice            2.02 
  iManufacturer          16 ATHEROS 
  iProduct               32 UB95 
  iSerial                48 12345 
  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               0 
Device Qualifier (for other device speed): 
  bLength                10 
  bDescriptorType         6 
  bcdUSB               2.00 
  bDeviceClass          255 Vendor Specific Class 
  bDeviceSubClass       255 Vendor Specific Subclass 
  bDeviceProtocol       255 Vendor Specific Protocol 
  bMaxPacketSize0        64 
  bNumConfigurations      1 
Device Status:     0x0000 
  (Bus Powered)
iwlist wlan0 scanning:

wlan0     Scan completed : 
          Cell 01 - Address: C4:3D:C7:3A:1F:5D 
                    Channel:1 
                    Frequency:2.412 GHz (Channel 1) 
                    Quality=37/70  Signal level=-73 dBm  
                    Encryption key:on 
                    ESSID:"my essid" 
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 
                              24 Mb/s; 36 Mb/s; 54 Mb/s 
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s 
                    Mode:Master 
                    Extra:tsf=00000070cca77186 
                    Extra: Last beacon: 5588ms ago 
                    IE: Unknown: 0007756E69636F726E 
                    IE: Unknown: 010882848B962430486C 
                    IE: Unknown: 030101 
                    IE: Unknown: 2A0100 
                    IE: Unknown: 2F0100 
                    IE: IEEE 802.11i/WPA2 Version 1 
                        Group Cipher : TKIP 
                        Pairwise Ciphers (2) : CCMP TKIP 
                        Authentication Suites (1) : PSK 
                    IE: Unknown: 32040C121860 
                    IE: Unknown: 2D1AFC181BFFFF000000000000000000000000000000000000000000 
                    IE: Unknown: 3D1601080400000000000000000000000000000000000000 
                    IE: Unknown: DD7E0050F204104A0001101044000102103B00010310470010F99C335D7BAC57FB00137DFA79600220102100074E657467656172102300074E6574676561721024000631323334353610420007303030303030311054000800060050F20400011011000743473331303144100800022008103C0001011049000600372A000120 
                    IE: Unknown: DD090010180203F02C0000 
                    IE: WPA Version 1 
                        Group Cipher : TKIP 
                        Pairwise Ciphers (2) : CCMP TKIP 
                        Authentication Suites (1) : PSK 
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
iwconfig:

lo        no wireless extensions. 

wlan0     IEEE 802.11bgn  ESSID:"my essid"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: C4:3D:C7:3A:1F:5D   
          Bit Rate=78 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off 
          Power Management:off 
          Link Quality=36/70  Signal level=-74 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0,


Get this bounty!!!

#StackBounty: #12.04 #wireless #networking #drivers #atheros Can't control connection bit rate using iwconfig with Atheros TL-WN821…

Bounty: 50

I’m trying to reduce the connection bit rate on my Atheros TP-Link TL-WN821N v3 usb wifi adapter due to frequent instability issues (reported connection speed goes down to 1Mb/s and I have to physically reconnect the adapter to regain a connection). I know this is a common problem with this device, and I have tried everything I can think of to fix it, including using drivers from linux-backports; compiling and installing a custom firmware (following instructions on https://wiki.debian.org/ath9k_htc#fw-free) and (as a last resort) using ndiswrapper.

When using ndiswrapper, the wifi adapter is stable and operates in g mode at 54Mb/s (whilst when using the default ath9k_htc module, the adapter connects in n mode and the bit rate fluctuates constantly). Unfortunately, with this setup I have to run my processor using only one core, since using SMP with ndiswrapper causes a kernel oops on my system.

So I want to lock my bit rate to 54Mb/s (or less, if need be) for connection stability, using the ath9k_htc module.

I’ve tried ‘sudo iwconfig wlan0 rate 54M’; the command runs with no error but when I check the bit rate with ‘sudo iwlist wlan0 bitrate’ the command returns:

wlan0 unknown bit-rate information. 
          Current Bit Rate:78 Mb/s

Any ideas? Here’s some info (hopefully relevant) on my setup:

Xubuntu (12.04.3) 64bit (kernel 3.2.0-55.85-generic) using Network Manager. My Router is from Virgin Media, the VMDG480.

lshw -C network :

  *-network               
       description: Wireless interface 
       physical id: 1 
       bus info: usb@1:4 
       logical name: wlan0 
       serial: 74:ea:3a:8f:16:b6 
       capabilities: ethernet physical wireless 
       configuration: broadcast=yes driver=ath9k_htc driverversion=3.2.0-55 firmware=1.3 ip=192.168.0.9 link=yes multicast=yes wireless=IEEE 802.11bgn
lsusb -v:

Bus 001 Device 003: ID 0cf3:7015 Atheros Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] 
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          0x7015 TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] 
  bcdDevice            2.02 
  iManufacturer          16 ATHEROS 
  iProduct               32 UB95 
  iSerial                48 12345 
  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               0 
Device Qualifier (for other device speed): 
  bLength                10 
  bDescriptorType         6 
  bcdUSB               2.00 
  bDeviceClass          255 Vendor Specific Class 
  bDeviceSubClass       255 Vendor Specific Subclass 
  bDeviceProtocol       255 Vendor Specific Protocol 
  bMaxPacketSize0        64 
  bNumConfigurations      1 
Device Status:     0x0000 
  (Bus Powered)
iwlist wlan0 scanning:

wlan0     Scan completed : 
          Cell 01 - Address: C4:3D:C7:3A:1F:5D 
                    Channel:1 
                    Frequency:2.412 GHz (Channel 1) 
                    Quality=37/70  Signal level=-73 dBm  
                    Encryption key:on 
                    ESSID:"my essid" 
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 
                              24 Mb/s; 36 Mb/s; 54 Mb/s 
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s 
                    Mode:Master 
                    Extra:tsf=00000070cca77186 
                    Extra: Last beacon: 5588ms ago 
                    IE: Unknown: 0007756E69636F726E 
                    IE: Unknown: 010882848B962430486C 
                    IE: Unknown: 030101 
                    IE: Unknown: 2A0100 
                    IE: Unknown: 2F0100 
                    IE: IEEE 802.11i/WPA2 Version 1 
                        Group Cipher : TKIP 
                        Pairwise Ciphers (2) : CCMP TKIP 
                        Authentication Suites (1) : PSK 
                    IE: Unknown: 32040C121860 
                    IE: Unknown: 2D1AFC181BFFFF000000000000000000000000000000000000000000 
                    IE: Unknown: 3D1601080400000000000000000000000000000000000000 
                    IE: Unknown: DD7E0050F204104A0001101044000102103B00010310470010F99C335D7BAC57FB00137DFA79600220102100074E657467656172102300074E6574676561721024000631323334353610420007303030303030311054000800060050F20400011011000743473331303144100800022008103C0001011049000600372A000120 
                    IE: Unknown: DD090010180203F02C0000 
                    IE: WPA Version 1 
                        Group Cipher : TKIP 
                        Pairwise Ciphers (2) : CCMP TKIP 
                        Authentication Suites (1) : PSK 
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
iwconfig:

lo        no wireless extensions. 

wlan0     IEEE 802.11bgn  ESSID:"my essid"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: C4:3D:C7:3A:1F:5D   
          Bit Rate=78 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off 
          Power Management:off 
          Link Quality=36/70  Signal level=-74 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0,


Get this bounty!!!

#StackBounty: #12.04 #wireless #networking #drivers #atheros Can't control connection bit rate using iwconfig with Atheros TL-WN821…

Bounty: 50

I’m trying to reduce the connection bit rate on my Atheros TP-Link TL-WN821N v3 usb wifi adapter due to frequent instability issues (reported connection speed goes down to 1Mb/s and I have to physically reconnect the adapter to regain a connection). I know this is a common problem with this device, and I have tried everything I can think of to fix it, including using drivers from linux-backports; compiling and installing a custom firmware (following instructions on https://wiki.debian.org/ath9k_htc#fw-free) and (as a last resort) using ndiswrapper.

When using ndiswrapper, the wifi adapter is stable and operates in g mode at 54Mb/s (whilst when using the default ath9k_htc module, the adapter connects in n mode and the bit rate fluctuates constantly). Unfortunately, with this setup I have to run my processor using only one core, since using SMP with ndiswrapper causes a kernel oops on my system.

So I want to lock my bit rate to 54Mb/s (or less, if need be) for connection stability, using the ath9k_htc module.

I’ve tried ‘sudo iwconfig wlan0 rate 54M’; the command runs with no error but when I check the bit rate with ‘sudo iwlist wlan0 bitrate’ the command returns:

wlan0 unknown bit-rate information. 
          Current Bit Rate:78 Mb/s

Any ideas? Here’s some info (hopefully relevant) on my setup:

Xubuntu (12.04.3) 64bit (kernel 3.2.0-55.85-generic) using Network Manager. My Router is from Virgin Media, the VMDG480.

lshw -C network :

  *-network               
       description: Wireless interface 
       physical id: 1 
       bus info: usb@1:4 
       logical name: wlan0 
       serial: 74:ea:3a:8f:16:b6 
       capabilities: ethernet physical wireless 
       configuration: broadcast=yes driver=ath9k_htc driverversion=3.2.0-55 firmware=1.3 ip=192.168.0.9 link=yes multicast=yes wireless=IEEE 802.11bgn
lsusb -v:

Bus 001 Device 003: ID 0cf3:7015 Atheros Communications, Inc. TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] 
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          0x7015 TP-Link TL-WN821N v3 802.11n [Atheros AR7010+AR9287] 
  bcdDevice            2.02 
  iManufacturer          16 ATHEROS 
  iProduct               32 UB95 
  iSerial                48 12345 
  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               0 
Device Qualifier (for other device speed): 
  bLength                10 
  bDescriptorType         6 
  bcdUSB               2.00 
  bDeviceClass          255 Vendor Specific Class 
  bDeviceSubClass       255 Vendor Specific Subclass 
  bDeviceProtocol       255 Vendor Specific Protocol 
  bMaxPacketSize0        64 
  bNumConfigurations      1 
Device Status:     0x0000 
  (Bus Powered)
iwlist wlan0 scanning:

wlan0     Scan completed : 
          Cell 01 - Address: C4:3D:C7:3A:1F:5D 
                    Channel:1 
                    Frequency:2.412 GHz (Channel 1) 
                    Quality=37/70  Signal level=-73 dBm  
                    Encryption key:on 
                    ESSID:"my essid" 
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s 
                              24 Mb/s; 36 Mb/s; 54 Mb/s 
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s 
                    Mode:Master 
                    Extra:tsf=00000070cca77186 
                    Extra: Last beacon: 5588ms ago 
                    IE: Unknown: 0007756E69636F726E 
                    IE: Unknown: 010882848B962430486C 
                    IE: Unknown: 030101 
                    IE: Unknown: 2A0100 
                    IE: Unknown: 2F0100 
                    IE: IEEE 802.11i/WPA2 Version 1 
                        Group Cipher : TKIP 
                        Pairwise Ciphers (2) : CCMP TKIP 
                        Authentication Suites (1) : PSK 
                    IE: Unknown: 32040C121860 
                    IE: Unknown: 2D1AFC181BFFFF000000000000000000000000000000000000000000 
                    IE: Unknown: 3D1601080400000000000000000000000000000000000000 
                    IE: Unknown: DD7E0050F204104A0001101044000102103B00010310470010F99C335D7BAC57FB00137DFA79600220102100074E657467656172102300074E6574676561721024000631323334353610420007303030303030311054000800060050F20400011011000743473331303144100800022008103C0001011049000600372A000120 
                    IE: Unknown: DD090010180203F02C0000 
                    IE: WPA Version 1 
                        Group Cipher : TKIP 
                        Pairwise Ciphers (2) : CCMP TKIP 
                        Authentication Suites (1) : PSK 
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
iwconfig:

lo        no wireless extensions. 

wlan0     IEEE 802.11bgn  ESSID:"my essid"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: C4:3D:C7:3A:1F:5D   
          Bit Rate=78 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off 
          Power Management:off 
          Link Quality=36/70  Signal level=-74 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0,


Get this bounty!!!