Ubuntu 16.04 Qualcomm Atheros 168c:0042 rev 31 drops immediately after connection

Asked by engin tola

Hi

I have an ASUS GL502VR laptop with Qualcomm Atheros 168c:0042 (rev 31) wifi card. I've a dual boot Ubuntu 16.04 with Windows10 setup.

What happens is wifi connects to the network successfully and I can connect to the internet. However, after a few seconds, even though the network manager still says it is connected to the network, I cannot ping anywhere. Restarting the Network manager with 'service network-manager restart' reproduces the problem: online for a few seconds and then no connection.

I seem to have the correct driver firmware. I'm suspecting the network card goes into powersave mode (the line about Limiting TX power... in the dmesg) - but whatever I tried I'm unable to prevent that immediately after the network is connected.

Additionally, if you look at the iwconfig output - the bitrate is reported as 6Mb/s. I have another laptop connecting to the same network using the the same AP with 300Mb/s.

Here's some diag info

uname -r

4.8.0-41-generic

lspci -nnv | grep -A8 Net

Network controller [0280]: Qualcomm Atheros Device [168c:0042] (rev 31)
 Subsystem: AzureWave Device [1a3b:2231]
 Flags: bus master, fast devsel, latency 0, IRQ 139
 Memory at ef200000 (64-bit, non-prefetchable) [size=2M]
 Capabilities: <access denied>
 Kernel driver in use: ath10k_pci
 Kernel modules: ath10k_pci

modinfo ath10k_pci

filename: /lib/modules/4.8.0-41-generic/kernel/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
firmware: ath10k/QCA9377/hw1.0/board.bin
firmware: ath10k/QCA9377/hw1.0/firmware-5.bin
firmware: ath10k/QCA6174/hw3.0/board-2.bin
firmware: ath10k/QCA6174/hw3.0/board.bin
firmware: ath10k/QCA6174/hw3.0/firmware-5.bin
firmware: ath10k/QCA6174/hw3.0/firmware-4.bin
firmware: ath10k/QCA6174/hw2.1/board-2.bin
firmware: ath10k/QCA6174/hw2.1/board.bin
firmware: ath10k/QCA6174/hw2.1/firmware-5.bin
firmware: ath10k/QCA6174/hw2.1/firmware-4.bin
firmware: ath10k/QCA9887/hw1.0/board-2.bin
firmware: ath10k/QCA9887/hw1.0/board.bin
firmware: ath10k/QCA9887/hw1.0/firmware-5.bin
firmware: ath10k/QCA988X/hw2.0/board-2.bin
firmware: ath10k/QCA988X/hw2.0/board.bin
firmware: ath10k/QCA988X/hw2.0/firmware-5.bin
firmware: ath10k/QCA988X/hw2.0/firmware-4.bin
firmware: ath10k/QCA988X/hw2.0/firmware-3.bin
firmware: ath10k/QCA988X/hw2.0/firmware-2.bin
license: Dual BSD/GPL
description: Driver support for Qualcomm Atheros 802.11ac WLAN PCIe/AHB devices
author: Qualcomm Atheros
srcversion: 8DB6E266EF9D63EC5C2B007
alias: pci:v0000168Cd00000050sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000042sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000046sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000056sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000040sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000003Esv*sd*bc*sc*i*
alias: pci:v0000168Cd00000041sv*sd*bc*sc*i*
alias: pci:v0000168Cd0000003Csv*sd*bc*sc*i*
depends: ath10k_core
intree: Y
vermagic: 4.8.0-41-generic SMP mod_unload modversions
parm: irq_mode:0: auto, 1: legacy, 2: msi (default: 0) (uint)
parm: reset_mode:0: auto, 1: warm only (default: 0) (uint)

modinfo ath10k_core

filename: /lib/modules/4.8.0-41-generic/kernel/drivers/net/wireless/ath/ath10k/ath10k_core.ko
license: Dual BSD/GPL
description: Core module for Qualcomm Atheros 802.11ac wireless LAN cards.
author: Qualcomm Atheros
srcversion: 663DAB23AD4CFA103833EE1
depends: mac80211,cfg80211,ath
intree: Y
vermagic: 4.8.0-41-generic SMP mod_unload modversions
parm: debug_mask:Debugging mask (uint)
parm: uart_print:Uart target debugging (bool)
parm: skip_otp:Skip otp failure for calibration in testmode (bool)
parm: cryptmode:Crypto mode: 0-hardware, 1-software (uint)
parm: rawmode:Use raw 802.11 frame datapath (bool)

dmesg | grep ath10k

920:[ 2.911158] ath10k_pci 0000:03:00.0: enabling device (0000 -> 0002)
921:[ 2.912334] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
959:[ 3.429795] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:03:00.0.bin failed with error -2
960:[ 3.429802] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
961:[ 3.434192] ath10k_pci 0000:03:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 1a3b:2231
962:[ 3.434193] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
963:[ 3.434514] ath10k_pci 0000:03:00.0: firmware ver WLAN.TF.1.0-00267-1 api 5 features ignore-otp crc32 79cea2c7
964:[ 3.500001] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 93da0176
998:[ 5.311429] ath10k_pci 0000:03:00.0: htt-ver 3.1 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
1003:[ 5.319923] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0

iwconfig wlp3s0

wlp3s0 IEEE 802.11 ESSID:"XXXXXXX"
          Mode:Managed Frequency:5.5 GHz Access Point: 2C:5D:93:53:08:7C
          Bit Rate=6 Mb/s Tx-Power=27 dBm
          Retry short limit:7 RTS thr:off Fragment thr:off
          Power Management:off
          Link Quality=70/70 Signal level=-39 dBm
          Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
          Tx excessive retries:0 Invalid misc:28 Missed beacon:0

dmesg | grep wlp3s0

1003:[ 5.319923] ath10k_pci 0000:03:00.0 wlp3s0: renamed from wlan0
1022:[ 5.604760] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
1049:[ 7.579040] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
1050:[ 7.679511] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
1054:[ 17.022842] wlp3s0: authenticate with 2c:5d:93:53:08:7c
1055:[ 17.055885] wlp3s0: send auth to 2c:5d:93:53:08:7c (try 1/3)
1056:[ 17.056344] wlp3s0: authenticated
1057:[ 17.058807] wlp3s0: associate with 2c:5d:93:53:08:7c (try 1/3)
1058:[ 17.060873] wlp3s0: RX AssocResp from 2c:5d:93:53:08:7c (capab=0x411 status=0 aid=1)
1059:[ 17.062522] wlp3s0: associated
1060:[ 17.062542] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
1068:[ 17.150407] wlp3s0: Limiting TX power to 30 (30 - 0) dBm as advertised by 2c:5d:93:53:08:7c

sudo service network-manager restart
dmesg | grep wlp3s0

1069:[ 253.485790] wlp3s0: deauthenticating from 2c:5d:93:53:08:7c by local choice (Reason: 3=DEAUTH_LEAVING)
1071:[ 253.703103] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
1072:[ 253.799079] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
1073:[ 263.145530] wlp3s0: authenticate with 2c:5d:93:53:08:7c
1074:[ 263.178132] wlp3s0: send auth to 2c:5d:93:53:08:7c (try 1/3)
1075:[ 263.178631] wlp3s0: authenticated
1076:[ 263.179194] wlp3s0: associate with 2c:5d:93:53:08:7c (try 1/3)
1077:[ 263.181830] wlp3s0: RX AssocResp from 2c:5d:93:53:08:7c (capab=0x411 status=0 aid=1)
1078:[ 263.183823] wlp3s0: associated
1079:[ 263.183887] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
1087:[ 263.200388] wlp3s0: Limiting TX power to 30 (30 - 0) dBm as advertised by 2c:5d:93:53:08:7c

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

sudo lshw -C network; sudo iwlist scan | egrep -i 'ssid|chan'

Thanks

Revision history for this message
engin tola (engintola) said :
#2

result of lshw -C network;

  *-network
       description: Wireless interface
       product: Qualcomm Atheros
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlp3s0
       version: 31
       serial: f0:03:8c:7e:2b:53
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=4.8.0-41-generic firmware=WLAN.TF.1.0-00267-1 ip=10.1.209.138 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:139 memory:ef200000-ef3fffff
  *-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:04:00.0
       logical name: enp4s0
       version: 10
       serial: 60:45:cb:2a:03:41
       size: 10Mbit/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=half firmware=rtl8168g-3_0.0.1 04/23/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:136 ioport:d000(size=256) memory:ef504000-ef504fff memory:ef500000-ef503fff

For sudo iwlist scan I'm getting

wlp3s0 Interface doesn't support scanning: Device or resource busy

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you boot to Windows then shutdown. Then cold boot to Ubuntu is it OK?

Revision history for this message
engin tola (engintola) said :
#4

no - it's not. it does the same thing.

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
engin tola (engintola) said :
#6

I'm still having this problem. Anybody has a recommendation ?

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.