ATH10k STA mode exceptional connect

  • I found strange quistion in ATH10K STA mode,flower is my wireless configer
config wifi-device 'radio0'
	option type 'mac80211'
	option channel '36'
	option hwmode '11a'
	option path 'pci0000:00/0000:00:00.0'
	option htmode 'VHT80'
	option doth '0'
	option txpower '15'
	option band '5G'

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'GL-AR750-1b4-5G'
	option encryption 'psk-mixed'
	option key 'goodlife'
	option ifname 'wlan0'

config wifi-device 'radio1'
	option type 'mac80211'
	option channel '11'
	option path 'platform/qca953x_wmac'
	option htmode 'HT20'
	option hwmode '11ng'

config wifi-iface 'default_radio1'
	option device 'radio1'
	option network 'lan'
	option mode 'ap'
	option ssid 'GL-AR750-1b4'
	option encryption 'psk-mixed'
	option key 'goodlife'
	option wds '1'
	option ifname 'wlan1'

config wifi-iface 'sta'
	option device 'radio0'
	option ifname 'wlan-sta'
	option network 'wwan'
	option mode 'sta'
	option ssid 'GL-AR750-test-5G'
	option key 'goodlife'
	option encryption 'psk-mixed'
  • I need connect to 'GL-AR750-test-5G', follower is wpa_supplicant-wlan-sta.conf
network={
	scan_ssid=1
	ssid="GL-AR750-test-5G"
	key_mgmt=WPA-PSK
	psk="goodlife"
}
  • run command 'wifi',Yes,I connect to 'GL-AR750-test-5G' is successfull,follower is related information
root@GL-AR750:/# ifconfig 
br-lan    Link encap:Ethernet  HWaddr E4:95:6E:40:01:B5  
          inet addr:192.168.8.1  Bcast:192.168.8.255  Mask:255.255.255.0
          inet6 addr: fde4:9991:7afd::1/60 Scope:Global
          inet6 addr: fe80::e695:6eff:fe40:1b5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2934 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2710 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:792911 (774.3 KiB)  TX bytes:852869 (832.8 KiB)

eth0      Link encap:Ethernet  HWaddr E4:95:6E:40:01:B4  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4 

eth1      Link encap:Ethernet  HWaddr E4:95:6E:40:01:B5  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4838 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3668 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1108306 (1.0 MiB)  TX bytes:1268141 (1.2 MiB)
          Interrupt:5 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:3369 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3369 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:218388 (213.2 KiB)  TX bytes:218388 (213.2 KiB)

wlan-sta  Link encap:Ethernet  HWaddr E4:95:6E:40:01:B5  
          inet addr:192.168.18.185  Bcast:192.168.18.255  Mask:255.255.255.0
          inet6 addr: fe80::e695:6eff:fe40:1b5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2694 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4310 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:211191 (206.2 KiB)  TX bytes:393025 (383.8 KiB)

wlan0     Link encap:Ethernet  HWaddr E6:95:6E:40:01:B5  
          inet6 addr: fe80::e495:6eff:fe40:1b5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:169 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:29464 (28.7 KiB)

wlan1     Link encap:Ethernet  HWaddr E4:95:6E:40:01:B4  
          inet6 addr: fe80::e695:6eff:fe40:1b4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:299 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:44575 (43.5 KiB)

root@GL-AR750:/# iwinfo 
wlan-sta  ESSID: "GL-AR750-test-5G"
          Access Point: E4:95:6E:40:00:31
          Mode: Client  Channel: 36 (5.180 GHz)
          Tx-Power: 15 dBm  Link Quality: 56/70
          Signal: -54 dBm  Noise: -101 dBm
          Bit Rate: 6.0 MBit/s
          Encryption: WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11nac
          Hardware: 168C:0050 0000:0000 [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

wlan0     ESSID: "GL-AR750-1b4-5G"
          Access Point: E6:95:6E:40:01:B5
          Mode: Master  Channel: 36 (5.180 GHz)
          Tx-Power: 15 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: -101 dBm
          Bit Rate: unknown
          Encryption: mixed WPA/WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11nac
          Hardware: 168C:0050 0000:0000 [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

wlan1     ESSID: "GL-AR750-1b4"
          Access Point: E4:95:6E:40:01:B4
          Mode: Master  Channel: 11 (2.462 GHz)
          Tx-Power: 23 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: -95 dBm
          Bit Rate: unknown
          Encryption: mixed WPA/WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy1

root@GL-AR750:/# iw dev  wlan-sta station dump -v
Station e4:95:6e:40:00:31 (on wlan-sta)
	inactive time:	770 ms
	rx bytes:	2940169
	rx packets:	24203
	tx bytes:	459385
	tx packets:	5039
	tx retries:	0
	tx failed:	0
	beacon loss:	0
	beacon rx:	10510
	rx drop misc:	23
	signal:  	-54 dBm
	signal avg:	-54 dBm
	beacon signal avg:	203 dBm
	tx bitrate:	6.0 MBit/s
	rx bitrate:	433.3 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 1
	authorized:	yes
	authenticated:	yes
	associated:	yes
	preamble:	long
	WMM/WME:	yes
	MFP:		no
	TDLS peer:	no
	MSDU:
		TID	rx	tx	tx retries	tx failed
		0	2758	5034	0		0
		1	0	0	0		0
		2	0	0	0		0
		3	0	0	0		0
		4	0	0	0		0
		5	0	0	0		0
		6	333	0	0		0
		7	0	3	0		0
		8	0	0	0		0
		9	0	0	0		0
		10	0	0	0		0
		11	0	0	0		0
		12	0	0	0		0
		13	0	0	0		0
		14	0	0	0		0
		15	0	0	0		0
		16	74	2	0		0
	DTIM period:	2
	beacon interval:100
	short slot time:yes
	connected time:	1077 seconds
  • Here, everything is normal, then I will 'GL-AR750-test-5G' power down,Something strange happened,wlan-sta not disconnect ,I wait for ten minutes, so still,But the TX FAILD have been growing. information at follower
root@GL-AR750:/# ifconfig wlan-sta
wlan-sta  Link encap:Ethernet  HWaddr E4:95:6E:40:01:B5  
          inet addr:192.168.18.185  Bcast:192.168.18.255  Mask:255.255.255.0
          inet6 addr: fe80::e695:6eff:fe40:1b5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4353 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6958 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:339890 (331.9 KiB)  TX bytes:634048 (619.1 KiB)

root@GL-AR750:/# iw dev  wlan-sta station dump -v
Station e4:95:6e:40:00:31 (on wlan-sta)
	inactive time:	22360 ms
	rx bytes:	85165
	rx packets:	682
	tx bytes:	6042
	tx packets:	59
	tx retries:	0
	tx failed:	16
	beacon loss:	0
	beacon rx:	310
	rx drop misc:	15
	signal:  	-54 dBm
	signal avg:	-53 dBm
	beacon signal avg:	204 dBm
	tx bitrate:	6.0 MBit/s
	rx bitrate:	433.3 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 1
	authorized:	yes
	authenticated:	yes
	associated:	yes
	preamble:	long
	WMM/WME:	yes
	MFP:		no
	TDLS peer:	no
	MSDU:
		TID	rx	tx	tx retries	tx failed
		0	17	55	0		0
		1	0	0	0		0
		2	0	0	0		0
		3	0	0	0		0
		4	0	0	0		0
		5	0	0	0		0
		6	12	0	0		0
		7	0	2	0		0
		8	0	0	0		0
		9	0	0	0		0
		10	0	0	0		0
		11	0	0	0		0
		12	0	0	0		0
		13	0	0	0		0
		14	0	0	0		0
		15	0	0	0		0
		16	13	2	0		16
	DTIM period:	2
	beacon interval:100
	short slot time:yes
  • Who have encountered similar problems?

Seems this is a problem of Ath10K. Ath9k doesn't have this problem.

In the stock firmware of GL.iNet, there is a daemon program to deal with this problem and shut the sta down.