[SOLVED]TP-Link Archer C6 v2 and WiFi 5Ghz

I built OpenWRT from current snapshot: commit c3e31b6a9b040912be0b532f9bf29d91c6c74382
from: Date: Wed Jul 3 13:29:13 2019 +0200
with preinstalled Luci, OpenVPN, tcpdump-mini, etc...
download OpenWRT

Everything works as expected, except WiFi 5Ghz.
In settings just absent radio1

It is I built something wrong or it just absent support of:
WI2 chip1: Qualcomm Atheros QCA9886
at which as I understand it works???

If this chip is not supported, will appears it support in the future?

P.S. If you will try this snapshot build, by default it use Materail design theme
But It could be easly changed to default Bootstrap theme
in System setting

What does dmesg show about detection and driver load?

What about lsmod | fgrep ath10k

1 Like

Hi @jeff, I'm getting the same problem, reported here: Wifi 5G not working properly on Archer C60 v2

dmesg

[    0.000000] Linux version 4.9.120 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9) ) #0 Thu Aug 16 07:51:15 2018
[    0.000000] MyLoader: sysp=2fd0d7d9, boardp=b627bc06, parts=a852b6fc
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 80442044, node_mem_map 81000020
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=ARCHER-C60-V2 mtdparts=spi0.0:192k(u-boot)ro,7808k(firmware),128k(tplink)ro,64k(art)ro console=ttyS0,115200 rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 60020K/65536K available (3363K kernel code, 172K rwdata, 444K rodata, 300K init, 219K bss, 5516K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008222] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.071034] pid_max: default: 32768 minimum: 301
[    0.075987] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.082967] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.092716] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.103117] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.110586] NET: Registered protocol family 16
[    0.116590] MIPS: machine is TP-LINK Archer C60 v2
[    0.600011] registering PCI controller with io_map_base unset
[    0.606105] Can't analyze schedule() prologue at 803a5594
[    0.621096] PCI host bridge to bus 0000:00
[    0.625419] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.632700] pci_bus 0000:00: root bus resource [io  0x0001]
[    0.638565] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.645721] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.654090] pci 0000:00:00.0: [168c:0056] type 00 class 0x028000
[    0.654099] pci 0000:00:00.0: invalid calibration data
[    0.659543] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.659656] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.659846] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.659869] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.667591] pci 0000:00:00.0: using irq 40 for pin 1
[    0.675633] clocksource: Switched to clocksource MIPS
[    0.681854] NET: Registered protocol family 2
[    0.687286] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.694643] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.701386] TCP: Hash tables configured (established 1024 bind 1024)
[    0.708176] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.714340] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.721201] NET: Registered protocol family 1
[    0.725861] PCI: CLS 0 bytes, default 32
[    0.728263] Crashlog allocated RAM at address 0x3f00000
[    0.734698] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.747423] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.753568] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.772078] io scheduler noop registered
[    0.776249] io scheduler deadline registered (default)
[    0.782030] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.790923] console [ttyS0] disabled
[    0.814760] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.823855] console [ttyS0] enabled
[    0.831404] bootconsole [early0] disabled
[    0.845180] m25p80 spi0.0: found gd25q64, expected m25p80
[    0.852934] m25p80 spi0.0: gd25q64 (8192 Kbytes)
[    0.857758] 4 cmdlinepart partitions found on MTD device spi0.0
[    0.863867] Creating 4 MTD partitions on "spi0.0":
[    0.868845] 0x000000000000-0x000000030000 : "u-boot"
[    0.875561] 0x000000030000-0x0000007d0000 : "firmware"
[    0.895127] 2 uimage-fw partitions found on MTD device firmware
[    0.901292] 0x000000030000-0x0000001b0000 : "kernel"
[    0.907590] 0x0000001b0000-0x0000007d0000 : "rootfs"
[    0.914093] mtd: device 3 (rootfs) set to be root filesystem
[    0.920018] 1 squashfs-split partitions found on MTD device rootfs
[    0.926420] 0x000000470000-0x0000007d0000 : "rootfs_data"
[    0.933826] 0x0000007d0000-0x0000007f0000 : "tplink"
[    0.940716] 0x0000007f0000-0x000000800000 : "art"
[    0.948179] libphy: Fixed MDIO Bus: probed
[    0.988260] libphy: ag71xx_mdio: probed
[    1.003489] libphy: ag71xx_mdio: probed
[    1.638142] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]
[    1.648172] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    2.277816] ag71xx-mdio.1: Found an AR934X built-in switch
[    2.330501] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    2.338470] NET: Registered protocol family 10
[    2.346817] NET: Registered protocol family 17
[    2.351461] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.364964] 8021q: 802.1Q VLAN Support v1.8
[    2.370844] hctosys: unable to open rtc device (rtc0)
[    2.381045] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    2.390003] Freeing unused kernel memory: 300K
[    2.394592] This architecture does not have kernel memory protection.
[    2.565646] random: fast init done
[    3.054460] init: Console is alive
[    3.058219] init: - watchdog -
[    3.972932] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.016477] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.025235] init: - preinit -
[    4.645227] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    4.671436] random: procd: uninitialized urandom read (4 bytes read)
[    7.816595] eth0: link up (100Mbps/Full duplex)
[    7.821456] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    7.924272] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[    7.931767] jffs2_build_filesystem(): unlocking the mtd device... 
[    7.938014] done.
[    7.940000] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   19.368078] done.
[   19.370097] jffs2: notice: (474) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   19.387453] mount_root: overlay filesystem has not been fully initialized yet
[   19.400533] mount_root: switching to jffs2 overlay
[   19.712752] urandom-seed: Seed file not found (/etc/urandom.seed)
[   19.806777] eth0: link down
[   19.819733] procd: - early -
[   19.822790] procd: - watchdog -
[   20.427490] procd: - watchdog -
[   20.430970] procd: - ubus -
[   20.530894] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.538381] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.545328] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.552731] procd: - init -
[   20.844800] kmodloader: loading kernel modules from /etc/modules.d/*
[   20.855080] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   20.869934] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   20.878255] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   20.887618] ip_tables: (C) 2000-2006 Netfilter Core Team
[   20.900064] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   20.950845] xt_time: kernel timezone is -0000
[   20.998456] PPP generic driver version 2.4.2
[   21.004926] NET: Registered protocol family 24
[   21.030038] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   21.036242] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   21.227519] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[   21.238607] ath10k_pci 0000:00:00.0: Falling back to user helper
[   60.962532] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA9888/hw2.0/firmware-6.bin failed with error -2
[   60.973621] ath10k_pci 0000:00:00.0: Falling back to user helper
[   61.066059] firmware ath10k!QCA9888!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[   61.661243] ath10k_pci 0000:00:00.0: qca9888 hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[   61.670806] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   61.691308] ath10k_pci 0000:00:00.0: firmware ver 10.4-3.5.3-00053 api 5 features no-p2p,mfp,peer-flow-ctrl,allows-mesh-bcast,no-ps crc32 a9603656
[   62.007533] ath10k_pci 0000:00:00.0: failed to fetch board data for bus=pci,bmi-chip-id=0,bmi-board-id=20 from ath10k/QCA9888/hw2.0/board-2.bin
[   62.021334] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id 0:20 crc32 44e0011f
[   64.178412] ath10k_pci 0000:00:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 512 raw 0 hwcrypto 1
[   64.286753] ath: EEPROM regdomain: 0x0
[   64.286760] ath: EEPROM indicates default country code should be used
[   64.286763] ath: doing EEPROM country->regdmn map search
[   64.286774] ath: country maps to regdmn code: 0x3a
[   64.286778] ath: Country alpha2 being used: US
[   64.286781] ath: Regpair used: 0x3a
[   64.344774] ath: EEPROM regdomain: 0x0
[   64.344781] ath: EEPROM indicates default country code should be used
[   64.344784] ath: doing EEPROM country->regdmn map search
[   64.344796] ath: country maps to regdmn code: 0x3a
[   64.344800] ath: Country alpha2 being used: US
[   64.344803] ath: Regpair used: 0x3a
[   64.355473] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   64.359164] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=47
[   64.433801] kmodloader: done loading kernel modules from /etc/modules.d/*
[   65.084289] urandom_read: 5 callbacks suppressed
[   65.084295] random: jshn: uninitialized urandom read (4 bytes read)
[   72.395162] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   72.420397] br-lan: port 1(eth1.1) entered blocking state
[   72.426031] br-lan: port 1(eth1.1) entered disabled state
[   72.431941] device eth1.1 entered promiscuous mode
[   72.436933] device eth1 entered promiscuous mode
[   72.465893] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   72.509284] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   72.529013] IPv6: ADDRCONF(NETDEV_UP): eth1.2: link is not ready
[   73.800146] ath: EEPROM regdomain: 0x804c
[   73.804296] ath: EEPROM indicates we should expect a country code
[   73.810631] ath: doing EEPROM country->regdmn map search
[   73.816119] ath: country maps to regdmn code: 0x3b
[   73.821059] ath: Country alpha2 being used: BR
[   73.825654] ath: Regpair used: 0x3b
[   73.829250] ath: regdomain 0x804c dynamically updated by user
[   73.835258] ath: EEPROM regdomain: 0x804c
[   73.839403] ath: EEPROM indicates we should expect a country code
[   73.845695] ath: doing EEPROM country->regdmn map search
[   73.851173] ath: country maps to regdmn code: 0x3b
[   73.856119] ath: Country alpha2 being used: BR
[   73.860706] ath: Regpair used: 0x3b
[   73.864301] ath: regdomain 0x804c dynamically updated by user
[   74.397775] eth1: link up (1000Mbps/Full duplex)
[   74.402573] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   74.507065] br-lan: port 1(eth1.1) entered blocking state
[   74.512651] br-lan: port 1(eth1.1) entered forwarding state
[   74.518587] IPv6: ADDRCONF(NETDEV_CHANGE): eth1.2: link becomes ready
[   74.629802] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   74.708588] eth0: link up (100Mbps/Full duplex)
[   74.713315] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   79.659426] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   79.684616] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   79.757820] br-lan: port 2(wlan0) entered blocking state
[   79.763397] br-lan: port 2(wlan0) entered disabled state
[   79.769309] device wlan0 entered promiscuous mode
[   79.811318] br-lan: port 3(wlan1) entered blocking state
[   79.816985] br-lan: port 3(wlan1) entered disabled state
[   79.822795] device wlan1 entered promiscuous mode
[   88.139513] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   88.146285] br-lan: port 3(wlan1) entered blocking state
[   88.151777] br-lan: port 3(wlan1) entered forwarding state
[   97.391362] random: crng init done
[  100.272887] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  100.279715] br-lan: port 2(wlan0) entered blocking state
[  100.285227] br-lan: port 2(wlan0) entered forwarding state
[  300.539971] kmodloader: loading kernel modules from /etc/modules.d/*
[  300.554403] Netfilter messages via NETLINK v0.30.
[  300.562701] ip_set: protocol 6
[  300.615840] kmodloader: done loading kernel modules from /etc/modules.d/*
[  300.752334] kmodloader: loading kernel modules from /etc/modules.d/*
[  300.762805] kmodloader: done loading kernel modules from /etc/modules.d/*
[  300.853911] kmodloader: loading kernel modules from /etc/modules.d/*
[  300.863322] kmodloader: done loading kernel modules from /etc/modules.d/*
[  301.006377] kmodloader: loading kernel modules from /etc/modules.d/*
[  301.015405] kmodloader: done loading kernel modules from /etc/modules.d/*
[  412.115409] eth0: link down
[  420.436666] eth0: link up (100Mbps/Full duplex)
[ 8261.925144] eth1: link down
[ 8261.931623] br-lan: port 1(eth1.1) entered disabled state
[ 8263.395831] eth0: link down
[ 8264.400144] eth1: link up (1000Mbps/Full duplex)
[ 8264.861485] eth0: link up (100Mbps/Full duplex)
[ 8265.470686] br-lan: port 1(eth1.1) entered blocking state
[ 8265.476326] br-lan: port 1(eth1.1) entered forwarding state
[ 8265.690549] eth0: link down
[ 8265.705510] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8266.276300] eth0: link up (100Mbps/Full duplex)
[ 8266.382516] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8266.501954] eth0: link down
[ 8266.510402] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8266.519389] eth0: link up (100Mbps/Full duplex)
[ 8266.533529] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8290.958841] eth1: link down
[ 8290.969457] br-lan: port 1(eth1.1) entered disabled state
[ 8292.568184] eth0: link down
[ 8293.101151] eth1: link up (1000Mbps/Full duplex)
[ 8293.255377] br-lan: port 1(eth1.1) entered blocking state
[ 8293.260981] br-lan: port 1(eth1.1) entered forwarding state
[ 8293.644120] eth0: link up (100Mbps/Full duplex)
[ 8327.175339] eth1: link down
[ 8327.184519] br-lan: port 1(eth1.1) entered disabled state
[ 8328.915843] eth0: link down
[ 8330.079749] eth0: link up (100Mbps/Full duplex)
[ 8331.007824] eth1: link up (1000Mbps/Full duplex)
[ 8331.045697] br-lan: port 1(eth1.1) entered blocking state
[ 8331.051305] br-lan: port 1(eth1.1) entered forwarding state

lsmod | fgrep ath10k

ath                    16832  4 ath9k,ath9k_common,ath9k_hw,ath10k_core
ath10k_core           253968  1 ath10k_pci
ath10k_pci             29968  0 
cfg80211              200496  5 ath9k,ath9k_common,ath10k_core,ath,mac80211
compat                  4704  5 ath9k,ath9k_common,ath10k_pci,mac80211,cfg80211
mac80211              391936  2 ath9k,ath10k_core

OK, the section between 21.036 and 64.178 look, at least to me, as though the firmware and cal data is loading properly for the QCA9888.

The two sections starting with ath: EEPROM regdomain: 0x0 suggest that they are both initializing themselves for "US" to start, then the two late sections indicate that they are both being switched to "BR".

My first guess is that they've somehow "gotten lost" in /etc/config/wireless Was this an upgrade from a previous version?

One thing to try would be to

cd /etc/config
mv wireless wireless.hold
wifi config    # Generate "fresh" config
wifi reload    # and try using that
iwinfo         # will hopefully show two devices, if not
iw phy         # will give detailed information on what lower-level calls think is there

and see if that helps. If so, you can copy the information from the "old" version to the new /etc/config/wireless, or vice versa, whichever is easiest.

Thank you @jeff.

Here is my /etc/config/wireless.

config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11a'
	option path 'pci0000:00/0000:00:00.0'
	option country 'BR'
	option legacy_rates '0'
	option htmode 'VHT40'
	option channel 'auto'

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'TP-Link_FC07_5G'
	option encryption 'psk-mixed'
	option key '******'

config wifi-device 'radio1'
	option type 'mac80211'
	option hwmode '11g'
	option path 'platform/qca956x_wmac'
	option disabled '0'
	option legacy_rates '1'
	option channel 'auto'
	option country 'BR'
	option htmode 'HT20'

config wifi-iface 'default_radio1'
	option device 'radio1'
	option network 'lan'
	option mode 'ap'
	option ssid 'TP-Link_FC07'
	option encryption 'psk-mixed'
	option key '******' 

@jeff Tried your suggestion, but the problem persists.

It appears that the problem occurs more often when connecting 4 or more devices.

@jeff sorry, I think that my problem is a little different from @oslyak, my wifi 5G works for a while when device is rebooted.

Yes, my built did not include ath10k modules.
Thank you!

Now I rebuilt from current version.
Download OpenWRT SNAPSHOT, r10401-63e3c3d2a2

Date: Jul 5 2019

And now seems that it's work!

P.S. Included: Luci, openvpn-openssl, htop, tcpdump-mini
P.P.S. I did not make stability test for WiFi 5Ghz.

1 Like

@oslyak please, tell me your results after try to use 5G. We are trapped in the 2.4G network.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.