R8000 5GHz Wifi issue

Hi

Since about 5 months I'm not able to get the 5GHz Wifi working with the latest trunk (same with OpenWRT). Either a fresh install nor upgrade from Chaos Calmer 15.05.1 works. The 2.4GHz interface is working as expected.

/etc/config/wireless

config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11a'
	option path '18000000.axi/bcma0:7/pci0000:00/0000:00:00.0/0000:01:00.0'
	option htmode 'VHT80'
	option disabled '0'
	option log_level '3'
	option country 'US'
	option txpower '20'
	option channel '149'

config wifi-iface
	option device 'radio0'
	option mode 'ap'
	option encryption 'psk2'
	option wps_pushbutton '0'
	option ssid 'xxxx50'
	option network 'lan'
	option key 'xxx'

config wifi-device 'radio1'
	option type 'mac80211'
	option channel '3'
	option hwmode '11g'
	option path '18000000.axi/bcma0:8/pci0001:00/0001:00:00.0/0001:01:00.0/0001:02:01.0/0001:03:00.0'
	option disabled '0'
	option log_level '3'
	option country 'US'
	option txpower '20'
	option htmode 'HT20'

config wifi-iface
	option device 'radio1'
	option mode 'ap'
	option wps_pushbutton '0'
	option ssid 'xxxx24'
	option encryption 'psk2+ccmp'
	option key 'xxx'
	option network 'lan'

config wifi-device 'radio2'
	option type 'mac80211'
	option channel '48'
	option hwmode '11a'
	option path '18000000.axi/bcma0:8/pci0001:00/0001:00:00.0/0001:01:00.0/0001:02:02.0/0001:04:00.0'
	option htmode 'VHT80'
	option country 'US'
	option disabled '0'
	option log_level '3'
	option txpower '20'

config wifi-iface
	option device 'radio2'
	option mode 'ap'
	option wps_pushbutton '0'
	option ssid 'xxxx51'
	option encryption 'psk2+ccmp'
	option key 'xxx'
	option network 'lan'

config wifi-iface 'tor'
	option device 'radio1'
	option network 'tor'
	option mode 'ap'
	option isolate '1'
	option key 'xxxx'
	option disabled '0'
	option ssid 'use tor use signal'
	option encryption 'none'

I also see a lot of errors within dmesg

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.30 (buildbot@builds) (gcc version 5.4.0 (LEDE GCC 5.4.0 r2111) ) #0 SMP Wed Nov 9 19:23:00 2016
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Netgear R8000 (BCM4709)
[    0.000000] Memory policy: Data cache writealloc
...
[    0.640793] iproc_nand 18028000.nand: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    0.650753] Scanning device for bad blocks
[    1.300595] random: nonblocking pool is initialized
[    1.482965] mtd_read error while parsing (offset: 0x2680000): -74
...
[    5.638171] mtd_read error while parsing (offset: 0x76C0000): -74
...
[    6.105489] mtd_read error while parsing (offset: 0x7FE0000): -74
[    6.112604] 6 bcm47xxpart partitions found on MTD device brcmnand.0
[    6.118883] Creating 6 MTD partitions on "brcmnand.0":
[    6.124050] 0x000000000000-0x000000080000 : "boot"
[    6.129604] 0x000000080000-0x000000200000 : "nvram"
[    6.135173] 0x000000200000-0x000002600000 : "firmware"
[    6.141429] 0x00000020001c-0x000000600000 : "linux"
[    6.147031] 0x000000600000-0x000002600000 : "ubi"
[    6.152561] 0x000002600000-0x000008000000 : "board_data"
[    6.159382] libphy: Fixed MDIO Bus: probed
[    6.163597] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    6.169447] bcma: bus0: Found chip with id 53010, rev 0x00 and package 0x00
[    6.176502] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
[    6.185172] bcma: bus0: bcma_of_get_irq() failed with rc=-22
[    6.185183] bcma: bus0: Core 1 found: Chipcommon B (manuf 0x4BF, id 0x50B, rev 0x01, class 0x0)
[    6.194013] bcma: bus0: bcma_of_get_irq() failed with rc=-22
[    6.194023] bcma: bus0: Core 2 found: DMA (manuf 0x4BF, id 0x502, rev 0x01, class 0x0)
[    6.202065] bcma: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    6.210541] bcma: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    6.219009] bcma: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    6.227494] bcma: bus0: Core 6 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    6.235950] bcma: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    6.244593] bcma: bus0: Core 8 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    6.253233] bcma: bus0: Core 9 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    6.261889] bcma: bus0: bcma_of_get_irq() failed with rc=-22
[    6.261899] bcma: bus0: Core 10 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x01, class 0x0)
[    6.272011] bcma: bus0: Core 11 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x01, class 0x0)
[    6.280486] bcma: bus0: Core 12 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x01, class 0x0)
[    6.288954] bcma: bus0: bcma_of_get_irq() failed with rc=-22
[    6.288964] bcma: bus0: Core 13 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
[    6.297269] bcma: bus0: bcma_of_get_irq() failed with rc=-22
[    6.297281] bcma: bus0: Core 14 found: I2S (manuf 0x4BF, id 0x834, rev 0x03, class 0x0)
[    6.305420] bcma: bus0: bcma_of_get_irq() failed with rc=-22
[    6.305430] bcma: bus0: Core 15 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
[    6.314869] bcma: bus0: bcma_of_get_irq() failed with rc=-22
[    6.314880] bcma: bus0: Core 16 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
[    6.325712] bcma: bus0: bcma_of_get_irq() failed with rc=-22
[    6.325722] bcma: bus0: Core 17 found: ROM (manuf 0x4BF, id 0x508, rev 0x01, class 0x0)
[    6.333853] bcma: bus0: Core 18 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
[    6.343544] bcma: bus0: bcma_of_get_irq() failed with rc=-22
[    6.343554] bcma: bus0: Core 19 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)
[    6.353079] bcma: bus0: Flash type not supported
[    6.383946] bcma: bus0: Using SPROM revision 11 provided by platform.
[    6.384218] bgmac_bcma bcma0:3: Found PHY addr: 30 (NOREGS)
[    6.389815] bgmac_bcma bcma0:3: Support for Roboswitch not implemented
[    6.396439] bgmac_bcma bcma0:3: Invalid MAC addr: 00:00:00:00:00:00
[    6.402752] bgmac_bcma bcma0:3: Using random MAC: a6:f8:c7:04:22:d8
[    6.411195] b53_common: found switch: BCM53012, rev 5
[    6.416917] bgmac_bcma bcma0:4: Found PHY addr: 30 (NOREGS)
[    6.422558] bgmac_bcma bcma0:4: Support for Roboswitch not implemented
[    6.429166] bgmac_bcma bcma0:4: Invalid MAC addr: 00:00:00:00:00:00
[    6.435484] bgmac_bcma bcma0:4: Using random MAC: 9a:dc:8a:c7:89:66
[    6.443339] bgmac_bcma bcma0:5: Found PHY addr: 30 (NOREGS)
[    6.448941] bgmac_bcma bcma0:5: Support for Roboswitch not implemented
[    6.457145] bgmac_bcma bcma0:6: Unsupported core_unit 3
[    6.462446] bgmac_bcma: probe of bcma0:6 failed with error -524
[    6.570224] pcie_iproc_bcma bcma0:7: PCI host bridge to bus 0000:00
[    6.576520] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fffffff]
[    6.583434] pcie_iproc_bcma bcma0:7: link: UP
[    6.587820] pci 0000:00:00.0: [14e4:8012] type 01 class 0x060400
[    6.587874] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
[    6.588020] PCI: bus0: Fast back to back transfers disabled
[    6.593628] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.601750] pci_bus 0000:01: busn_res: can not insert [bus 01-ff] under [??? 0x00000000 flags 0x0] (conflicts with (null) [??? 0x00000000 flags 0x0])
[    6.601786] pci 0000:01:00.0: [14e4:aa52] type 00 class 0x028000
[    6.601830] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    6.601849] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x003fffff 64bit]
[    6.601933] pci 0000:01:00.0: supports D1 D2
[    6.602076] PCI: bus1: Fast back to back transfers disabled
[    6.607671] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    6.607686] pci_bus 0000:01: busn_res: can not insert [bus 01] under [??? 0x00000000 flags 0x0] (conflicts with (null) [??? 0x00000000 flags 0x0])
[    6.607719] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x085fffff]
[    6.614549] pci 0000:01:00.0: BAR 2: assigned [mem 0x08000000-0x083fffff 64bit]
[    6.621899] pci 0000:01:00.0: BAR 0: assigned [mem 0x08400000-0x08407fff 64bit]
[    6.629236] pci 0000:00:00.0: PCI bridge to [bus 01]
[    6.634226] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x085fffff]
[    6.750204] pcie_iproc_bcma bcma0:8: PCI host bridge to bus 0001:00
[    6.756501] pci_bus 0001:00: root bus resource [mem 0x40000000-0x47ffffff]
[    6.763412] pcie_iproc_bcma bcma0:8: link: UP
[    6.767801] pci 0001:00:00.0: [14e4:8012] type 01 class 0x060400
[    6.767851] pci 0001:00:00.0: PME# supported from D0 D3hot D3cold
[    6.768005] PCI: bus0: Fast back to back transfers disabled
[    6.773608] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.781730] pci_bus 0001:01: busn_res: can not insert [bus 01-ff] under [??? 0x00000000 flags 0x0] (conflicts with (null) [??? 0x00000000 flags 0x0])
[    6.781767] pci 0001:01:00.0: [10b5:8603] type 01 class 0x060400
[    6.781812] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x00003fff]
[    6.781911] pci 0001:01:00.0: supports D1 D2
[    6.781921] pci 0001:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    6.782063] PCI: bus1: Fast back to back transfers disabled
[    6.787651] pci 0001:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    6.795828] pci 0001:02:00.0: [0000:0012] type 12 class 0x001200
[    6.795847] pci 0001:02:00.0: unknown header type 12, ignoring device
[    6.802342] pci 0001:02:01.0: [10b5:8603] type 01 class 0x060400
[    6.802472] pci 0001:02:01.0: supports D1 D2
[    6.802481] pci 0001:02:01.0: PME# supported from D0 D1 D2 D3hot D3cold
[    6.802650] pci 0001:02:02.0: [10b5:8603] type 01 class 0x060400
[    6.802783] pci 0001:02:02.0: supports D1 D2
[    6.802793] pci 0001:02:02.0: PME# supported from D0 D1 D2 D3hot D3cold
[    6.802941] pci 0001:02:03.0: [000d:0000] type 00 class 0x000000
[    6.802971] pci 0001:02:03.0: [Firmware Bug]: reg 0x10: invalid BAR (can't size)
...
[    8.056828] pci 0001:02:1f.0: [000d:0000] type 00 class 0x000000
[    8.056859] pci 0001:02:1f.0: [Firmware Bug]: reg 0x10: invalid BAR (can't size)
[    8.064299] pci 0001:02:1f.0: [Firmware Bug]: reg 0x14: invalid BAR (can't size)
[  ...
[    8.101827] PCI: bus2: Fast back to back transfers disabled
[    8.107422] pci 0001:02:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.115467] pci 0001:02:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.123667] pci 0001:03:00.0: [14e4:aa52] type 00 class 0x028000
[    8.123736] pci 0001:03:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    8.123761] pci 0001:03:00.0: reg 0x18: [mem 0x00000000-0x003fffff 64bit]
[    8.123897] pci 0001:03:00.0: supports D1 D2
[    8.124056] PCI: bus3: Fast back to back transfers disabled
[    8.129654] pci_bus 0001:03: busn_res: [bus 03-ff] end is updated to 03
[    8.129802] pci 0001:04:00.0: [14e4:aa52] type 00 class 0x028000
[    8.129868] pci 0001:04:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    8.129893] pci 0001:04:00.0: reg 0x18: [mem 0x00000000-0x003fffff 64bit]
[    8.130027] pci 0001:04:00.0: supports D1 D2
[    8.130216] PCI: bus4: Fast back to back transfers disabled
[    8.135805] pci_bus 0001:04: busn_res: [bus 04-ff] end is updated to 04
[    8.135826] pci_bus 0001:02: busn_res: [bus 02-ff] end is updated to 04
[    8.135841] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 04
[    8.135856] pci_bus 0001:01: busn_res: can not insert [bus 01-04] under [??? 0x00000000 flags 0x0] (conflicts with (null) [??? 0x00000000 flags 0x0])
[    8.135883] pci 0001:02:01.0: bridge window [io  0x1000-0x0fff] to [bus 03] add_size 1000
[    8.135899] pci 0001:02:01.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 03] add_size 200000 add_align 100000
[    8.135912] pci 0001:02:01.0: bridge window [mem 0x00200000-0x007fffff] to [bus 03] add_size 200000 add_align 200000
[    8.135942] pci 0001:02:01.0: res[7]=[io  0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000
[    8.135977] pci 0001:01:00.0: bridge window [io  0x1000-0x0fff] to [bus 02-04] add_size 1000
[    8.135990] pci 0001:02:01.0: res[9]=[mem 0x00100000-0x000fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[    8.136001] pci 0001:02:01.0: res[9]=[mem 0x00100000-0x000fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[    8.136025] pci 0001:01:00.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 02-04] add_size 200000 add_align 100000
[    8.136037] pci 0001:02:01.0: res[8]=[mem 0x00200000-0x007fffff] res_to_dev_res add_size 200000 min_align 200000
[    8.136048] pci 0001:02:01.0: res[8]=[mem 0x00200000-0x007fffff] res_to_dev_res add_size 200000 min_align 200000
[    8.136070] pci 0001:01:00.0: bridge window [mem 0x00200000-0x00dfffff] to [bus 02-04] add_size 200000 add_align 200000
[    8.136087] pci 0001:01:00.0: res[9]=[mem 0x00100000-0x000fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[    8.136098] pci 0001:01:00.0: res[9]=[mem 0x00100000-0x000fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[    8.136111] pci 0001:00:00.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 01-04] add_size 200000 add_align 100000
[    8.136123] pci 0001:01:00.0: res[8]=[mem 0x00200000-0x00dfffff] res_to_dev_res add_size 200000 min_align 200000
[    8.136134] pci 0001:01:00.0: res[8]=[mem 0x00200000-0x00dfffff] res_to_dev_res add_size 200000 min_align 200000
[    8.136146] pci 0001:00:00.0: bridge window [mem 0x00100000-0x00dfffff] to [bus 01-04] add_size 300000 add_align 200000
[    8.136172] pci 0001:00:00.0: res[8]=[mem 0x00100000-0x00dfffff] res_to_dev_res add_size 300000 min_align 200000
[    8.136183] pci 0001:00:00.0: res[8]=[mem 0x00100000-0x010fffff] res_to_dev_res add_size 300000 min_align 200000
[    8.136195] pci 0001:00:00.0: res[9]=[mem 0x00100000-0x000fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[    8.136206] pci 0001:00:00.0: res[9]=[mem 0x00100000-0x002fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[    8.136222] pci 0001:00:00.0: BAR 8: assigned [mem 0x40000000-0x40ffffff]
[    8.143049] pci 0001:00:00.0: BAR 9: assigned [mem 0x41000000-0x411fffff 64bit pref]
[    8.150833] pci 0001:01:00.0: res[8]=[mem 0x00200000-0x00dfffff] res_to_dev_res add_size 200000 min_align 200000
[    8.150845] pci 0001:01:00.0: res[8]=[mem 0x00200000-0x00ffffff] res_to_dev_res add_size 200000 min_align 200000
[    8.150856] pci 0001:01:00.0: res[9]=[mem 0x00100000-0x000fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[    8.150868] pci 0001:01:00.0: res[9]=[mem 0x00100000-0x002fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[    8.150879] pci 0001:01:00.0: res[7]=[io  0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000
[    8.150889] pci 0001:01:00.0: res[7]=[io  0x1000-0x1fff] res_to_dev_res add_size 1000 min_align 1000
[    8.150900] pci 0001:01:00.0: BAR 8: assigned [mem 0x40000000-0x40dfffff]
[    8.157703] pci 0001:01:00.0: BAR 9: assigned [mem 0x41000000-0x411fffff 64bit pref]
[    8.165477] pci 0001:01:00.0: BAR 0: assigned [mem 0x40e00000-0x40e03fff]
[    8.172295] pci 0001:01:00.0: BAR 7: no space for [io  size 0x1000]
[    8.178574] pci 0001:01:00.0: BAR 7: failed to assign [io  size 0x1000]
[    8.185222] pci 0001:01:00.0: BAR 7: no space for [io  size 0x1000]
[    8.191516] pci 0001:01:00.0: BAR 7: failed to assign [io  size 0x1000]
[    8.198159] pci 0001:02:01.0: res[8]=[mem 0x00200000-0x007fffff] res_to_dev_res add_size 200000 min_align 200000
[    8.198170] pci 0001:02:01.0: res[8]=[mem 0x00200000-0x009fffff] res_to_dev_res add_size 200000 min_align 200000
[    8.198183] pci 0001:02:01.0: res[9]=[mem 0x00100000-0x000fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[    8.198194] pci 0001:02:01.0: res[9]=[mem 0x00100000-0x002fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[    8.198205] pci 0001:02:01.0: res[7]=[io  0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000
[    8.198215] pci 0001:02:01.0: res[7]=[io  0x1000-0x1fff] res_to_dev_res add_size 1000 min_align 1000
[    8.198226] pci 0001:02:01.0: BAR 8: assigned [mem 0x40000000-0x407fffff]
[    8.205045] pci 0001:02:02.0: BAR 8: assigned [mem 0x40800000-0x40dfffff]
[    8.211857] pci 0001:02:01.0: BAR 9: assigned [mem 0x41000000-0x411fffff 64bit pref]
[    8.219622] pci 0001:02:01.0: BAR 7: no space for [io  size 0x1000]
[    8.225915] pci 0001:02:01.0: BAR 7: failed to assign [io  size 0x1000]
[    8.232558] pci 0001:02:01.0: BAR 7: no space for [io  size 0x1000]
[    8.238840] pci 0001:02:01.0: BAR 7: failed to assign [io  size 0x1000]
[    8.245486] pci 0001:03:00.0: BAR 2: assigned [mem 0x40000000-0x403fffff 64bit]
[    8.252835] pci 0001:03:00.0: BAR 0: assigned [mem 0x40400000-0x40407fff 64bit]
[    8.260186] pci 0001:02:01.0: PCI bridge to [bus 03]
[    8.265165] pci 0001:02:01.0:   bridge window [mem 0x40000000-0x407fffff]
[    8.271977] pci 0001:02:01.0:   bridge window [mem 0x41000000-0x411fffff 64bit pref]
[    8.279749] pci 0001:04:00.0: BAR 2: assigned [mem 0x40800000-0x40bfffff 64bit]
[    8.287102] pci 0001:04:00.0: BAR 0: assigned [mem 0x40c00000-0x40c07fff 64bit]
[    8.294455] pci 0001:02:02.0: PCI bridge to [bus 04]
[    8.299432] pci 0001:02:02.0:   bridge window [mem 0x40800000-0x40dfffff]
[    8.306261] pci 0001:01:00.0: PCI bridge to [bus 02-04]
[    8.311516] pci 0001:01:00.0:   bridge window [mem 0x40000000-0x40dfffff]
[    8.318327] pci 0001:01:00.0:   bridge window [mem 0x41000000-0x411fffff 64bit pref]
[    8.326101] pci 0001:00:00.0: PCI bridge to [bus 01-04]
[    8.331346] pci 0001:00:00.0:   bridge window [mem 0x40000000-0x40ffffff]
[    8.338154] pci 0001:00:00.0:   bridge window [mem 0x41000000-0x411fffff 64bit pref]
[    8.450220] pcie_iproc_bcma bcma0:9: PCI host bridge to bus 0002:00
[    8.456514] pci_bus 0002:00: root bus resource [mem 0x48000000-0x4fffffff]
[    8.463423] pcie_iproc_bcma bcma0:9: PHY or data link is INACTIVE!
[    8.469617] pcie_iproc_bcma bcma0:9: no PCIe EP device detected
[    8.475624] pcie_iproc_bcma bcma0:9: PCIe controller setup failed
[    8.482755] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    8.491783] bcma: bus0: Bus registered
[    8.496537] NET: Registered protocol family 10
[    8.501992] NET: Registered protocol family 17
[    8.506503] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    8.519178] 8021q: 802.1Q VLAN Support v1.8
[    8.523464] Registering SWP/SWPB emulation handler
[    8.530403] UBI: auto-attach mtd4
[    8.533562] ubi0: attaching mtd4
[    8.707134] ubi0: scanning is finished
[    8.719550] ubi0: attached mtd4 (name "ubi", size 32 MiB)
[    8.724993] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    8.731893] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    8.738700] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    8.745680] ubi0: good PEBs: 256, bad PEBs: 0, corrupted PEBs: 0
[    8.751708] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    8.758947] ubi0: max/mean erase counter: 5/3, WL threshold: 4096, image sequence number: 1435794970
[    8.768109] ubi0: available PEBs: 0, total reserved PEBs: 256, PEBs reserved for bad PEB handling: 20
[    8.777387] ubi0: background thread "ubi_bgt0d" started, PID 376
[    8.784402] block ubiblock0_0: created from ubi0:0(rootfs)
[    8.789908] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    8.800210] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    8.807581] Freeing unused kernel memory: 228K (c0479000 - c04b2000)
[    9.193232] init: Console is alive
[    9.196773] init: - watchdog -
[    9.487072] usbcore: registered new interface driver usbfs
[    9.492696] usbcore: registered new interface driver hub
[    9.498098] usbcore: registered new device driver usb
[    9.505631] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.512752] ehci-platform: EHCI generic platform driver
[    9.519191] ehci-platform 18021000.ehci: EHCI Host Controller
[    9.519724] bcm_ns_usb3 18105000.usb3-phy: Registered Broadcom Northstar USB 3.0 PHY driver
[    9.520736] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    9.521254] ohci-platform: OHCI generic platform driver
[    9.521408] ohci-platform 18022000.ohci: Generic Platform OHCI controller
[    9.521434] ohci-platform 18022000.ohci: new USB bus registered, assigned bus number 1
[    9.521546] ohci-platform 18022000.ohci: irq 29, io mem 0x18022000
[    9.565790] ehci-platform 18021000.ehci: new USB bus registered, assigned bus number 2
[    9.573856] ehci-platform 18021000.ehci: irq 29, io mem 0x18021000
[    9.586780] hub 1-0:1.0: USB hub found
[    9.590181] ehci-platform 18021000.ehci: USB 2.0 started, EHCI 1.00
[    9.596882] hub 1-0:1.0: 2 ports detected
[    9.602023] hub 2-0:1.0: USB hub found
[    9.604746] xhci-hcd 18023000.xhci: xHCI Host Controller
[    9.611473] hub 2-0:1.0: 2 ports detected
[    9.615767] xhci-hcd 18023000.xhci: new USB bus registered, assigned bus number 3
[    9.623556] xhci-hcd 18023000.xhci: hcc params 0x02501164 hci version 0x100 quirks 0x01010010
[    9.632146] xhci-hcd 18023000.xhci: irq 30, io mem 0x18023000
[    9.638517] hub 3-0:1.0: USB hub found
[    9.642340] hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    9.649666] xhci-hcd 18023000.xhci: xHCI Host Controller
[    9.655045] xhci-hcd 18023000.xhci: new USB bus registered, assigned bus number 4
[    9.672240] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.680892] hub 4-0:1.0: USB hub found
[    9.684722] hub 4-0:1.0: 1 port detected
[    9.710310] init: - preinit -
[   10.165766] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.171709] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[   11.340163] bgmac_bcma bcma0:3 eth0: Link is Up - 1Gbps/Full - flow control off
[   11.347519] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   11.354037] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   13.328847] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 511
[   13.371062] UBIFS (ubi0:1): recovery needed
[   13.490982] UBIFS (ubi0:1): recovery completed
[   13.495516] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   13.503389] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   13.513333] UBIFS (ubi0:1): FS size: 25649152 bytes (24 MiB, 202 LEBs), journal size 1269760 bytes (1 MiB, 10 LEBs)
[   13.523801] UBIFS (ubi0:1): reserved for root: 1211472 bytes (1183 KiB)
[   13.530436] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID 20D50783-F520-499D-BD25-974AF8F2BEA2, small LPT model
[   13.552031] mount_root: switching to ubifs overlay
[   13.564261] urandom-seed: Seeding with /etc/urandom.seed
[   13.666191] procd: - early -
[   13.669140] procd: - watchdog -
[   14.280325] procd: - ubus -
[   14.344650] procd: - init -
[   14.608179] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   14.618379] Netfilter messages via NETLINK v0.30.
[   14.626847] ip_set: protocol 6
[   14.667474] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[   14.675120] Backport generated by backports.git backports-20160324-9-g0e38f5c
[   14.683730] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.693755] nf_conntrack version 0.5.0 (3981 buckets, 15924 max)
[   14.704280] ctnetlink v0.93: registering with nfnetlink.
[   14.810428] xt_time: kernel timezone is -0000
[   14.827037] PPP generic driver version 2.4.2
[   14.832324] NET: Registered protocol family 24
[   14.840743] usbcore: registered new interface driver brcmfmac
[   14.846580] pci 0000:00:00.0: enabling device (0140 -> 0142)
[   14.852283] brcmfmac 0000:01:00.0: enabling device (0140 -> 0142)
[   15.171411] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.txt failed with error -2
[   15.181321] brcmfmac 0000:01:00.0: Falling back to user helper
[   15.194601] firmware brcm!brcmfmac43602-pcie.txt: firmware_loading_store: map pages failed
[   15.384219] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Sep 18 2015 03:30:01 version 7.35.177.56 (r587209) FWID 01-6cb8e269
[   15.403551] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[   15.416150] pci 0001:00:00.0: enabling device (0140 -> 0142)
[   15.421891] pci 0001:01:00.0: enabling device (0140 -> 0142)
[   15.427600] pci 0001:02:01.0: enabling device (0140 -> 0142)
[   15.433316] brcmfmac 0001:03:00.0: enabling device (0140 -> 0142)
[   15.581930] brcmfmac 0001:03:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.txt failed with error -2
[   15.591860] brcmfmac 0001:03:00.0: Falling back to user helper
[   15.604961] firmware brcm!brcmfmac43602-pcie.txt: firmware_loading_store: map pages failed
[   15.804378] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Sep 18 2015 03:30:01 version 7.35.177.56 (r587209) FWID 01-6cb8e269
[   15.826325] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[   15.838573] pci 0001:02:02.0: enabling device (0140 -> 0142)
[   15.844343] brcmfmac 0001:04:00.0: enabling device (0140 -> 0142)
[   16.001875] brcmfmac 0001:04:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.txt failed with error -2
[   16.011783] brcmfmac 0001:04:00.0: Falling back to user helper
[   16.024896] firmware brcm!brcmfmac43602-pcie.txt: firmware_loading_store: map pages failed
[   16.224166] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Sep 18 2015 03:30:01 version 7.35.177.56 (r587209) FWID 01-6cb8e269
[   16.244736] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[   17.932303] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   17.948195] device eth0.1 entered promiscuous mode
[   17.953080] device eth0 entered promiscuous mode
[   17.960688] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   17.983295] device eth0.2 entered promiscuous mode
[   17.997428] device eth0.15 entered promiscuous mode
[   18.009785] IPv6: ADDRCONF(NETDEV_UP): br-tor: link is not ready
[   18.340306] bgmac_bcma bcma0:3 eth0: Link is Up - 1Gbps/Full - flow control off
[   18.353514] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   18.389034] br-lan: port 1(eth0.1) entered forwarding state
[   18.394776] br-lan: port 1(eth0.1) entered forwarding state
[   18.400739] br-lan: port 2(eth0.2) entered forwarding state
[   18.406372] br-lan: port 2(eth0.2) entered forwarding state
[   18.412071] br-tor: port 1(eth0.15) entered forwarding state
[   18.417800] br-tor: port 1(eth0.15) entered forwarding state
[   18.437940] IPv6: ADDRCONF(NETDEV_CHANGE): br-tor: link becomes ready
[   18.444746] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   18.451454] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[   18.459141] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[   18.466746] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[   18.982010] IPv6: ADDRCONF(NETDEV_UP): wlan2: link is not ready
[   18.994054] device wlan2 entered promiscuous mode
[   19.110340] device wlan2 left promiscuous mode
[   19.114894] br-lan: port 3(wlan2) entered disabled state
[   19.793969] IPv6: ADDRCONF(NETDEV_UP): wlan2: link is not ready
[   19.943111] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   19.952999] device wlan0 entered promiscuous mode
[   19.957792] br-lan: port 3(wlan0) entered forwarding state
[   19.963376] br-lan: port 3(wlan0) entered forwarding state
[   20.000999] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   20.007032] br-lan: port 3(wlan0) entered disabled state
[   20.014566] device wlan1 entered promiscuous mode
[   20.020443] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[   20.028050] device wlan0 left promiscuous mode
[   20.032601] br-lan: port 3(wlan0) entered disabled state
[   20.390120] br-lan: port 1(eth0.1) entered forwarding state
[   20.400136] br-lan: port 2(eth0.2) entered forwarding state
[   20.410130] br-tor: port 1(eth0.15) entered forwarding state
[   20.634169] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   20.819930] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   20.826487] br-lan: port 4(wlan1) entered forwarding state
[   20.832045] br-lan: port 4(wlan1) entered forwarding state
[   20.861483] device wlan1-1 entered promiscuous mode
[   20.867508] IPv6: ADDRCONF(NETDEV_UP): wlan1-1: link is not ready
[   20.873701] br-tor: port 2(wlan1-1) entered forwarding state
[   20.879409] br-tor: port 2(wlan1-1) entered forwarding state
[   20.912137] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-1: link becomes ready
[   22.830135] br-lan: port 4(wlan1) entered forwarding state
[   22.870114] br-tor: port 2(wlan1-1) entered forwarding state

Any help is appreciated,

Cheers Pierre

So what actually happens? Can you see interfaces (ifconfig command)? Can you see SSID? Can you authenticate? Can you associate? Can you get DHCP?
You didn't describe what doesn't work.

Also check logread after a wifi down; wifi up sequence - this should provide some hostapd log information.

Hi

As mentioned here https://wiki.openwrt.org/toh/netgear/r8000 I've set the channels for radio0 to 148 and radio2 to 48

the logread output ist

Thu Nov 10 21:01:28 2016 kern.err kernel: [  895.582441] brcmfmac: brcmf_cfg80211_del_ap_iface: interface_remove failed -23
Thu Nov 10 21:01:28 2016 kern.info kernel: [  895.593903] device wlan1-1 left promiscuous mode
Thu Nov 10 21:01:28 2016 kern.info kernel: [  895.598649] br-tor: port 2(wlan1-1) entered disabled state
Thu Nov 10 21:01:29 2016 daemon.notice netifd: radio2 (2340): command failed: No error information (-524)
Thu Nov 10 21:01:29 2016 daemon.notice netifd: radio0 (2338): command failed: No error information (-524)
Thu Nov 10 21:01:29 2016 kern.info kernel: [  897.082526] device wlan1 left promiscuous mode
Thu Nov 10 21:01:29 2016 kern.info kernel: [  897.087100] br-lan: port 3(wlan1) entered disabled state
Thu Nov 10 21:01:30 2016 daemon.notice netifd: Network device 'wlan1-1' link is down
Thu Nov 10 21:01:30 2016 kern.err kernel: [  898.034758] brcmfmac: brcmf_cfg80211_get_channel: chanspec failed (-1)
Thu Nov 10 21:01:31 2016 daemon.notice netifd: Network device 'wlan1' link is down
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): command failed: No error information (-524)
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio2 (2381): command failed: No error information (-524)
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio1 (2339): command failed: No error information (-524)
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio2 (2381): command failed: I/O error (-5)
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): command failed: I/O error (-5)
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio1 (2443): command failed: No error information (-524)
Thu Nov 10 21:01:31 2016 kern.err kernel: [  898.768524] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
Thu Nov 10 21:01:31 2016 kern.err kernel: [  898.776172] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
Thu Nov 10 21:01:31 2016 kern.err kernel: [  898.783757] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): command failed: Too many open files in system (-23)
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio2 (2381): command failed: Too many open files in system (-23)
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): Configuration file: /var/run/hostapd-phy0.conf
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio2 (2381): Configuration file: /var/run/hostapd-phy2.conf
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): Failed to create interface mon.wlan0: -95 (Not supported)
Thu Nov 10 21:01:31 2016 kern.info kernel: [  898.803598] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Thu Nov 10 21:01:31 2016 kern.info kernel: [  898.812486] device wlan0 entered promiscuous mode
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio2 (2381): Failed to create interface mon.wlan2: -95 (Not supported)
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Thu Nov 10 21:01:31 2016 kern.info kernel: [  898.820360] IPv6: ADDRCONF(NETDEV_UP): wlan2: link is not ready
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): wlan0: IEEE 802.11 Configured channel (148) not found from the channel list of current mode (2) IEEE 802.11a
Thu Nov 10 21:01:31 2016 daemon.warn hostapd: wlan0: IEEE 802.11 Configured channel (148) not found from the channel list of current mode (2) IEEE 802.11a
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): wlan0: IEEE 802.11 Hardware does not support configured channel
Thu Nov 10 21:01:31 2016 daemon.warn hostapd: wlan0: IEEE 802.11 Hardware does not support configured channel
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): Could not select hw_mode and channel. (-3)
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): wlan0: interface state COUNTRY_UPDATE->DISABLED
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): wlan0: AP-DISABLED
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): wlan0: interface state DISABLED->DISABLED
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): wlan0: AP-DISABLED
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): hostapd_free_hapd_data: Interface wlan0 wasn't started
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio0 (2382): nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Thu Nov 10 21:01:31 2016 kern.info kernel: [  898.828960] device wlan2 entered promiscuous mode
Thu Nov 10 21:01:31 2016 kern.info kernel: [  898.834008] device wlan0 left promiscuous mode
Thu Nov 10 21:01:31 2016 kern.info kernel: [  898.838531] br-lan: port 3(wlan0) entered disabled state
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio2 (2381): wlan2: interface state UNINITIALIZED->COUNTRY_UPDATE
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio2 (2381): wlan2: interface state COUNTRY_UPDATE->HT_SCAN
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): Could not set channel for kernel driver
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): Interface initialization failed
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): wlan2: interface state HT_SCAN->DISABLED
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): wlan2: AP-DISABLED
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): wlan2: interface state DISABLED->DISABLED
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): wlan2: AP-DISABLED
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): hostapd_free_hapd_data: Interface wlan2 wasn't started
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): nl80211: deinit ifname=wlan2 disabled_11b_rates=0
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio0 (2382): cat: can't open '/var/run/wifi-phy0.pid': No such file or directory
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio0 (2382): Command failed: Invalid argument
Thu Nov 10 21:01:32 2016 kern.info kernel: [  899.416626] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Thu Nov 10 21:01:32 2016 kern.info kernel: [  899.432641] device wlan2 left promiscuous mode
Thu Nov 10 21:01:32 2016 kern.info kernel: [  899.437202] br-lan: port 4(wlan2) entered disabled state
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): ELOOP: remaining socket: sock=11 eloop_data=0xb6effd70 user_data=0 handler=0x35160
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): cat: can't open '/var/run/wifi-phy2.pid': No such file or directory
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio1 (2443): command failed: I/O error (-5)
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): Command failed: Invalid argument
Thu Nov 10 21:01:32 2016 kern.info kernel: [  900.011829] IPv6: ADDRCONF(NETDEV_UP): wlan2: link is not ready
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio1 (2443): command failed: Too many open files in system (-23)
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio1 (2443): Configuration file: /var/run/hostapd-phy1.conf
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio1 (2443): Failed to create interface mon.wlan1: -95 (Not supported)
Thu Nov 10 21:01:32 2016 kern.info kernel: [  900.125436] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio1 (2443): wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Thu Nov 10 21:01:32 2016 kern.info kernel: [  900.133576] device wlan1 entered promiscuous mode
Thu Nov 10 21:01:32 2016 kern.err kernel: [  900.138947] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
Thu Nov 10 21:01:32 2016 kern.err kernel: [  900.146503] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
Thu Nov 10 21:01:32 2016 kern.err kernel: [  900.154035] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio1 (2443): wlan1: interface state COUNTRY_UPDATE->HT_SCAN
Thu Nov 10 21:01:33 2016 daemon.notice netifd: radio1 (2443): 20/40 MHz operation not permitted on channel pri=3 sec=7 based on overlapping BSSes
Thu Nov 10 21:01:33 2016 daemon.notice netifd: radio1 (2443): wlan1: Could not connect to kernel driver
Thu Nov 10 21:01:33 2016 daemon.notice netifd: radio1 (2443): Using interface wlan1 with hwaddr aa:00:00:00:00:00 and ssid "xxx24"
Thu Nov 10 21:01:33 2016 kern.info kernel: [  900.798447] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
Thu Nov 10 21:01:33 2016 kern.info kernel: [  900.804978] br-lan: port 3(wlan1) entered forwarding state
Thu Nov 10 21:01:33 2016 kern.info kernel: [  900.810511] br-lan: port 3(wlan1) entered forwarding state
Thu Nov 10 21:01:33 2016 kern.info kernel: [  900.823049] device wlan1-1 entered promiscuous mode
Thu Nov 10 21:01:33 2016 kern.info kernel: [  900.828873] IPv6: ADDRCONF(NETDEV_UP): wlan1-1: link is not ready
Thu Nov 10 21:01:33 2016 kern.info kernel: [  900.835038] br-tor: port 2(wlan1-1) entered forwarding state
Thu Nov 10 21:01:33 2016 kern.info kernel: [  900.840753] br-tor: port 2(wlan1-1) entered forwarding state
Thu Nov 10 21:01:33 2016 daemon.notice netifd: radio1 (2443): wlan1-1: Could not connect to kernel driver
Thu Nov 10 21:01:33 2016 daemon.notice netifd: radio1 (2443): Using interface wlan1-1 with hwaddr 2e:30:33:59:b7:4b and ssid "use tor use signal"
Thu Nov 10 21:01:33 2016 daemon.notice netifd: radio1 (2443): wlan1: interface state HT_SCAN->ENABLED
Thu Nov 10 21:01:33 2016 daemon.notice netifd: radio1 (2443): wlan1: AP-ENABLED
Thu Nov 10 21:01:33 2016 kern.info kernel: [  900.874278] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-1: link becomes ready
Thu Nov 10 21:01:33 2016 daemon.notice netifd: Network device 'wlan1' link is up
Thu Nov 10 21:01:33 2016 daemon.notice netifd: Network device 'wlan1-1' link is up
Thu Nov 10 21:01:35 2016 kern.info kernel: [  902.812333] br-lan: port 3(wlan1) entered forwarding state
Thu Nov 10 21:01:35 2016 kern.info kernel: [  902.840282] br-tor: port 2(wlan1-1) entered forwarding state

Hi

There is no SSID just the 2.4GHz. The same config worked under earlier Lede and OpenWRT Trunks.

Info on using channel 148 was a mistake, it was supposed to list 149 as an example. I focused just on your log of radio2 and channel 48 due to that.

[quote="pierre, post:4, topic:236"]
Thu Nov 10 21:01:31 2016 daemon.notice netifd: radio2 (2381): wlan2: interface state COUNTRY_UPDATE->HT_SCAN
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): Could not set channel for kernel driver
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): Interface initialization failed
Thu Nov 10 21:01:32 2016 daemon.notice netifd: radio2 (2381): wlan2: interface state HT_SCAN->DISABLED
[/quote]This points to some problem with channel selection. Could you install the latest LEDE build and provide us output of

iw phy phy0 channels
iw phy phy2 channels

please?

Hi

This is the output:

 iw phy phy0 channels
Band 2:
	* 5170 MHz [34] (disabled)
	* 5180 MHz [36]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 5190 MHz [38] (disabled)
	* 5200 MHz [40]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 5210 MHz [42] (disabled)
	* 5220 MHz [44]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 5230 MHz [46] (disabled)
	* 5240 MHz [48]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 5260 MHz [52] (disabled)
	* 5280 MHz [56] (disabled)
	* 5300 MHz [60] (disabled)
	* 5320 MHz [64] (disabled)
	* 5500 MHz [100] (disabled)
	* 5520 MHz [104] (disabled)
	* 5540 MHz [108] (disabled)
	* 5560 MHz [112] (disabled)
	* 5580 MHz [116] (disabled)
	* 5600 MHz [120] (disabled)
	* 5620 MHz [124] (disabled)
	* 5640 MHz [128] (disabled)
	* 5660 MHz [132] (disabled)
	* 5680 MHz [136] (disabled)
	* 5700 MHz [140] (disabled)
	* 5720 MHz [144] (disabled)
	* 5745 MHz [149] (disabled)
	* 5765 MHz [153] (disabled)
	* 5785 MHz [157] (disabled)
	* 5805 MHz [161] (disabled)
	* 5825 MHz [165] (disabled)

and

iw phy phy2 channels
Band 2:
	* 5170 MHz [34] (disabled)
	* 5180 MHz [36]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 5190 MHz [38] (disabled)
	* 5200 MHz [40]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 5210 MHz [42] (disabled)
	* 5220 MHz [44]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40+
	* 5230 MHz [46] (disabled)
	* 5240 MHz [48]
	  Maximum TX power: 20.0 dBm
	  Channel widths: 20MHz HT40-
	* 5260 MHz [52] (disabled)
	* 5280 MHz [56] (disabled)
	* 5300 MHz [60] (disabled)
	* 5320 MHz [64] (disabled)
	* 5500 MHz [100] (disabled)
	* 5520 MHz [104] (disabled)
	* 5540 MHz [108] (disabled)
	* 5560 MHz [112] (disabled)
	* 5580 MHz [116] (disabled)
	* 5600 MHz [120] (disabled)
	* 5620 MHz [124] (disabled)
	* 5640 MHz [128] (disabled)
	* 5660 MHz [132] (disabled)
	* 5680 MHz [136] (disabled)
	* 5700 MHz [140] (disabled)
	* 5720 MHz [144] (disabled)
	* 5745 MHz [149] (disabled)
	* 5765 MHz [153] (disabled)
	* 5785 MHz [157] (disabled)
	* 5805 MHz [161] (disabled)
	* 5825 MHz [165] (disabled)

If I set Width to 20 or 40 on phy0 and phy2 I can see the SSID and connect with a very bad perfomance (7mbit)

Do you have both radios running? Can you check what channel is in use by each of your radios, please?

iw dev wlan0 info
iw dev wlan2 info

If radio0 didn't start on channel 149 (but e.g. auto switched do 48) it may be interferencing with radio2. Does performance improve if you disable radio0?

radio0 disabled

radio2 config (not working with htmode 80)

config wifi-device 'radio2'
        option type 'mac80211'
        option hwmode '11a'
        option path '18000000.axi/bcma0:8/pci0001:00/0001:00:00.0/0001:01:00.0/0001:02:02.0/0001:04:00.0'
        option country 'US'
        option log_level '3'
        option txpower '20'
        option htmode 'VHT40'
        option channel '48'

Interface wlan2
    	ifindex 8
    	wdev 0x200000001
    	addr 2c:30:33:59:b7:49
    	ssid xxx5_radio2
    	type AP
    	wiphy 2
    	channel 48 (5240 MHz), width: 40 MHz, center1: 5230 MHz
    	txpower 20.00 dBm
    	txpower 20.00 dBm

Performance: 81mbit max

wlan0 only comes up with config (also lower channel)

config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11a'
        option path '18000000.axi/bcma0:7/pci0000:00/0000:00:00.0/0000:01:00.0'
        option htmode 'VHT40'
        option log_level '3'
        option country 'US'
        option txpower '20'
        option channel '36'

Interface wlan0
	ifindex 6
	wdev 0x1
	addr 2c:30:33:59:b7:4b
	ssid xxx5_radio0
	type AP
	wiphy 0
	channel 36 (5180 MHz), width: 40 MHz, center1: 5190 MHz
	txpower 20.00 dBm
	txpower 20.00 dBm

Performance: 7mbit

[quote="pierre, post:10, topic:236"]
radio2 config (not working with htmode 80)
(...)
Performance: 81mbit max
[/quote]Sounds good!

[quote="pierre, post:11, topic:236, full:true"]
wlan0 only comes up with config (also lower channel)
(...)Performance: 7mbit
[/quote]Yeah, radio0:

  1. Should never be used with lower channel (48 or so)
  2. brcmfmac/LEDE don't allow using higher channel (149+)
    So there is a real problem. radio0 is unusable for you. I've to find out if it's related to DFS or something else.
  1. Should never be used with lower channel (48 or so)
  2. brcmfmac/LEDE don't allow using higher channel (149+)
    So there is a real problem. radio0 is unusable for you. I've to find out if it's related to DFS or something else.

This is probably caused by there not being a country code set. Set a country
code and then you can use all the channels available in your location. Without a
code set, OpenWRT/LEDE defaults to the subset of channels available everywhere
in the world, which is very limited.

David Lang

I saw a country code error in the log - I believe only World or US works with this radio (only one that work for me), can you try to set those?

Can you provide list of countries/regions that original firmware allows to choose from?

I am also affected by this issue. I opened a bug in Flyspray to track it: https://bugs.lede-project.org/index.php?do=details&task_id=535

[quote="rmilecki, post:15, topic:236, full:true"]Can you provide list of countries/regions that original firmware allows to choose from?[/quote]I was asking so many times and got nothing.
Finally I got my own R8000 and extracted few country settings provided in original firmware UI. I added basic support for them in 25200ae7a5e0 ("mac80211: brcmfmac: add early (& hacky) patch for storing country codes")

1 Like

same problem here. no wifi working for my R8000

anyone can help fix it?

Is there still no solution?

A fresh install with 17.01.2, then setup wifi, all works.