Support for Mikrotik Hap AC2

So in order to boot to OpenWRT each time I'll have to use backup loader? No thanks)
Or did you mean something else? Sorry, I'm not that familiar with Mikrotik tips'n'tricks.

Look, its not OpenWrt-s fault that you flashed a ROS v7 RouterBoot, also you force the backup loader by default, I think even ROS has an option to set that.

1 Like

I'm not saying that this is OpenWRT's fault. On the contrary, here I see the one of the most helpful and kind communities. Thank you for attending your time to me, I really appreciate it.
Meanwhile I'll just go back to 7.1b6. Thank you all for your support!

Sorry, I got a bit triggered.
Honestly, ROS has a checkbox style option to always boot the backup loader.
Its in System->RouterBoard->Settings, you can give that a go as I dont think that ROS allows downgrading the RouterBoot from it.

1 Like

It's fine) That was merely an experiment. But it took my interest so now I'll try to flash RouterBoot from uart. Though it's clearly documented in a nice manner, still couldn't find RouterBoot files anywhere.

You can downgrade firmware (RuterBoot) as easy as uploading the right file via winbox as described here:
https://wiki.mikrotik.com/wiki/Manual:RouterBOOT#Simple_Upgrade

Now to get the right file you need to unpack .npk. If it helps here is one i have on hand for ac2:
https://mega.nz/file/Mko1GIIT#eiNq6vKtcoLrphChYM2t6NCvKkLhySoyPWmkOs4xA7I

ps: Before
Screenshot from 2021-06-08 21-38-04
After:
Screenshot from 2021-06-08 21-42-31

3 Likes

Whoa! Huuuuge thanks!

@subixonfire That is great, thanks as I thought that it does not allow something like that.

Well, long story short, downgrading is fully supported straight from GUI.
First, we need to download and install 6.48, and then perform "Upgrade" from routerboard menu. It will show current as 7.1b6, and upgrade as 6.48. After such downgrade Openwrt 21.09 installs just fine.
Case closed and thank you all!

1 Like

hello. recently bought one as a good hw for openwt. and after installing had a had a few questions.
wireless says it ipq4019, not 4018. why?
wireless connection at 2.4ghz only 75 mbits and at 5ghz only 433 mbits. am i did something wrong?

OpenWrt SNAPSHOT r16972-3dabb62581 / LuCI Master git-21.163.60157-1bcb125
wireless cfg


config wifi-device 'radio0'
	option type 'mac80211'
	option path 'platform/soc/a000000.wifi'
	option band '2g'
	option htmode 'HT40'
	option channel '6'
	option cell_density '0'
	option txpower '22'

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid ''
	option disassoc_low_ack '0'
	option encryption 'psk2'
	option key ''

config wifi-device 'radio1'
	option type 'mac80211'
	option path 'platform/soc/a800000.wifi'
	option band '5g'
	option country 'US'
	option cell_density '0'
	option htmode 'VHT80'
	option channel '161'
	option txpower '22'

config wifi-iface 'default_radio1'
	option device 'radio1'
	option network 'lan'
	option mode 'ap'
	option ssid ''
	option disassoc_low_ack '0'
	option encryption 'psk2'
	option key ''


So, how is hap ac2 going with openwrt? Im going to buy new router. Is wifi bad as I read below? Thanks

1 Like

I am using hap ac2 as a home router. I want to install OpenWrt firmware. Latest release is 21.02.0-rc3. Should I wait final relase? Also I wonder wireless performance too?

I've been using one as my main AP for 35 days without issues, on 21.02.0-rc2.

I only had a single issue: wifi completely stopped once. But it was due to a DFS radar event, because I had chosen a DFS band (can't remember which channel). The default channel has no DFS so it should not happen.

See my last message about performance:

The issue with Mikrotik is that you need to be lucky. If you're unlucky, the model you buy might have a new encoding for wifi calibration data, and wifi won't work properly until somebody adds support for it in OpenWrt.

1 Like

I had to delete old post to add new informaiton.

I have been boot with initramfs image v21.02.0-rc3 (r16172-2aba3e9784) by doing steps in this video. Everything is good except wireless performance. When I connect 5GHz wireless with my Iphone and Macbook Pro, RSSI is too low even at near the rooter. When I walk away the rooter connection is lost. Also When I want to connect 2GHz, connection is lost immediately. Seems like this device has new encoding for wifi calibration.

ID: RBD52G-5HacD2HnD-TC
FCC ID: TV7RBD52-5ACD2ND
SN: ---/925/r2
MAC addr starts with 74:4D:28
Type: INTL
Plug: EU

root@OpenWrt:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.124 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16172-2aba3e9784)) #0 SMP Sun Jun 13 22:02:19 2021
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: MikroTik hAP ac2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 32256
[    0.000000]   Normal zone: 284 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32256 pages, LIFO batch:7
[    0.000000] percpu: Embedded 15 pages/cpu s30156 r8192 d23092 u61440
[    0.000000] pcpu-alloc: s30156 r8192 d23092 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 31972
[    0.000000] Kernel command line:
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 108568K/129024K available (5784K kernel code, 189K rwdata, 876K rodata, 11264K init, 240K bss, 20456K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from 0xc0a00bbc with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 48.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb11fd3bfb, max_idle_ns: 440795203732 ns
[    0.000009] sched_clock: 56 bits at 48MHz, resolution 20ns, wraps every 4398046511096ns
[    0.000023] Switching to timer-based delay loop, resolution 20ns
[    0.000243] Calibrating delay loop (skipped), value calculated using timer frequency.. 96.00 BogoMIPS (lpj=480000)
[    0.000262] pid_max: default: 32768 minimum: 301
[    0.000475] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000493] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001614] CPU: Testing write buffer coherency: ok
[    0.002811] Setting up static identity map for 0x80300000 - 0x80300060
[    0.002971] rcu: Hierarchical SRCU implementation.
[    0.003473] smp: Bringing up secondary CPUs ...
[    0.006857] smp: Brought up 1 node, 4 CPUs
[    0.006878] SMP: Total of 4 processors activated (384.00 BogoMIPS).
[    0.006886] CPU: All CPU(s) started in SVC mode.
[    0.011474] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.011647] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.011676] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.011960] pinctrl core: initialized pinctrl subsystem
[    0.013103] NET: Registered protocol family 16
[    0.013530] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.014897] cpuidle: using governor ladder
[    0.014950] cpuidle: using governor menu
[    0.019919] GPIO line 414 (enable USB power) hogged as output/high
[    0.035202] cryptd: max_cpu_qlen set to 1000
[    0.038936] usbcore: registered new interface driver usbfs
[    0.039010] usbcore: registered new interface driver hub
[    0.039071] usbcore: registered new device driver usb
[    0.039122] pps_core: LinuxPPS API ver. 1 registered
[    0.039131] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.039158] PTP clock support registered
[    0.039882] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.041158] clocksource: Switched to clocksource arch_sys_counter
[    0.042020] thermal_sys: Registered thermal governor 'step_wise'
[    0.042323] NET: Registered protocol family 2
[    0.042491] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.043235] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.043280] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.043311] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.043341] TCP: Hash tables configured (established 1024 bind 1024)
[    0.043489] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.043532] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.043801] NET: Registered protocol family 1
[    0.043844] PCI: CLS 0 bytes, default 64
[    0.208342] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.214468] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.214483] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.263725] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.266835] bam-dma-engine 8e04000.dma: num-channels unspecified in dt
[    0.266855] bam-dma-engine 8e04000.dma: num-ees unspecified in dt
[    0.267580] tcsr 1949000.tcsr: setting wifi_glb_cfg = 41000000
[    0.267672] tcsr 194b000.tcsr: setting usb hs phy mode select = e700e7
[    0.267757] tcsr 1953000.ess_tcsr: setting ess interface select = 0
[    0.267841] tcsr 1957000.tcsr: setting wifi_noc_memtype_m0_m2 = 2222222
[    0.268161] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.270135] msm_serial 78af000.serial: msm_serial: detected port #0
[    0.270186] msm_serial 78af000.serial: uartclk = 1843200
[    0.270245] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 25, base_baud = 115200) is a MSM
[    0.270275] msm_serial: console setup on port #0
[    0.767271] printk: console [ttyMSM0] enabled
[    0.772225] msm_serial: driver initialized
[    0.781940] loop: module loaded
[    0.783085] spi_qup 78b5000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    0.790956] random: fast init done
[    0.794357] spi-nor spi0.0: w25q128jv (16384 Kbytes)
[    0.794431] 3 fixed-partitions partitions found on MTD device spi0.0
[    0.799516] Creating 3 MTD partitions on "spi0.0":
[    0.805890] 0x000000000000-0x000000080000 : "Qualcomm"
[    0.811510] 0x000000080000-0x000000100000 : "RouterBoot"
[    0.821415] 3 routerbootpart partitions found on MTD device RouterBoot
[    0.821448] Creating 3 MTD partitions on "RouterBoot":
[    0.827385] 0x00000000e000-0x000000010000 : "hard_config"
[    0.833489] 0x000000010000-0x000000017bbc : "dtb_config"
[    0.838882] 0x00000003d000-0x00000003e000 : "soft_config"
[    0.844295] 0x000000100000-0x000001000000 : "firmware"
[    0.850557] libphy: ipq4019_mdio: probed
[    0.928849] ESS reset ok!
[    0.953033] ESS reset ok!
[    1.375182] libphy: Fixed MDIO Bus: probed
[    1.381347] EDMA using MAC@ - using
[    1.381364] 96:51:94:5f:73:ce
[    1.384579] EDMA using MAC@ - using
[    1.384589] 92:f0:58:fe:d6:9a
[    1.495976] i2c /dev entries driver
[    1.498120] sdhci: Secure Digital Host Controller Interface driver
[    1.498274] sdhci: Copyright(c) Pierre Ossman
[    1.504612] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.514215] MikroTik RouterBOARD hardware configuration sysfs driver v0.06
[    1.515852] MikroTik RouterBOARD software configuration sysfs driver v0.03
[    1.522631] NET: Registered protocol family 10
[    1.529716] Segment Routing with IPv6
[    1.532787] NET: Registered protocol family 17
[    1.536460] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.540733] 8021q: 802.1Q VLAN Support v1.8
[    1.553938] Registering SWP/SWPB emulation handler
[    1.569243] hctosys: unable to open rtc device (rtc0)
[    1.586654] Freeing unused kernel memory: 11264K
[    1.624413] Run /init as init process
[    2.050419] init: Console is alive
[    2.050680] init: - watchdog -
[    2.063213] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.068054] dwc3-qcom 8af8800.usb3: IRQ hs_phy_irq not found
[    2.068997] dwc3-qcom 8af8800.usb3: IRQ dp_hs_phy_irq not found
[    2.074806] dwc3-qcom 8af8800.usb3: IRQ dm_hs_phy_irq not found
[    2.080372] dwc3-qcom 8af8800.usb3: IRQ ss_phy_irq not found
[    2.089434] dwc3 8a00000.dwc3: Failed to get clk 'ref': -2
[    2.196802] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    2.196973] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    2.201961] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f665 hci version 0x100 quirks 0x0000000002010010
[    2.208991] xhci-hcd xhci-hcd.0.auto: irq 94, io mem 0x08a00000
[    2.219905] hub 1-0:1.0: USB hub found
[    2.224140] hub 1-0:1.0: 1 port detected
[    2.228236] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    2.232031] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    2.237254] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    2.246329] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.252105] hub 2-0:1.0: USB hub found
[    2.259680] hub 2-0:1.0: 1 port detected
[    2.265298] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.273977] init: - preinit -
[    2.524030] random: jshn: uninitialized urandom read (4 bytes read)
[    2.583592] random: jshn: uninitialized urandom read (4 bytes read)
[    2.709549] random: jshn: uninitialized urandom read (4 bytes read)
[    6.094345] procd: - early -
[    6.094495] procd: - watchdog -
[    6.640673] procd: - watchdog -
[    6.645119] procd: - ubus -
[    6.667979] urandom_read: 5 callbacks suppressed
[    6.667991] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.696854] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.704477] procd: - init -
[    7.047158] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.053790] urngd: v1.0.2 started.
[    7.057215] Loading modules backported from Linux version v5.10.42-0-g65859eca4dff
[    7.057255] Backport generated by backports.git v5.10.42-1-0-gbee5c545
[    7.079255] xt_time: kernel timezone is -0000
[    7.116306] PPP generic driver version 2.4.2
[    7.117983] NET: Registered protocol family 24
[    7.118349] random: crng init done
[    7.784841] ath10k_ahb a000000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[    7.784905] ath10k_ahb a000000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[    7.797824] ath10k_ahb a000000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b
[    7.854821] ath10k_ahb a000000.wifi: board_file api 2 bmi_id 0:16 crc32 e2dfaa91
[    9.143124] ath10k_ahb a000000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[    9.143173] ath10k_ahb a000000.wifi: msdu-desc: 2500  skid: 32
[    9.178669] ath10k_ahb a000000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[    9.179636] ath10k_ahb a000000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752'
[    9.304417] ath10k_ahb a000000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[    9.451747] ath: EEPROM regdomain sanitized
[    9.451763] ath: EEPROM regdomain: 0x64
[    9.451767] ath: EEPROM indicates we should expect a direct regpair map
[    9.451782] ath: Country alpha2 being used: 00
[    9.451786] ath: Regpair used: 0x64
[   10.202464] ath10k_ahb a800000.wifi: qca4019 hw1.0 target 0x01000000 chip_id 0x003b00ff sub 0000:0000
[   10.202521] ath10k_ahb a800000.wifi: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   10.215519] ath10k_ahb a800000.wifi: firmware ver 10.4b-ct-4019-fW-13-5ae337bb1 api 5 features mfp,peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,tx-rc-CT,cust-stats-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT,wmi-bcn-rc-CT crc32 6b2b5c5b
[   10.269929] ath10k_ahb a800000.wifi: board_file api 2 bmi_id 0:17 crc32 e2dfaa91
[   11.558279] ath10k_ahb a800000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[   11.558330] ath10k_ahb a800000.wifi: msdu-desc: 2500  skid: 32
[   11.594071] ath10k_ahb a800000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[   11.595038] ath10k_ahb a800000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752'
[   11.719212] ath10k_ahb a800000.wifi: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[   11.866254] ath: EEPROM regdomain sanitized
[   11.866272] ath: EEPROM regdomain: 0x64
[   11.866277] ath: EEPROM indicates we should expect a direct regpair map
[   11.866289] ath: Country alpha2 being used: 00
[   11.866295] ath: Regpair used: 0x64
[   11.874128] kmodloader: done loading kernel modules from /etc/modules.d/*
[   28.133007] br-lan: port 1(eth0) entered blocking state
[   28.133049] br-lan: port 1(eth0) entered disabled state
[   28.137450] device eth0 entered promiscuous mode
[   28.263048] ess_edma c080000.edma eth1: Link is Down
[   29.191285] br-lan: port 1(eth0) entered blocking state
[   29.191340] br-lan: port 1(eth0) entered forwarding state
[   29.195998] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   31.433860] ess_edma c080000.edma eth1: Link is Up - 1Gbps/Full - flow control rx/tx
[   31.434662] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   76.153104] ess_edma c080000.edma eth1: Link is Down
[  226.953885] ess_edma c080000.edma eth1: Link is Up - 1Gbps/Full - flow control off
[  354.431609] ath10k_ahb a800000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[  354.431669] ath10k_ahb a800000.wifi: msdu-desc: 2500  skid: 32
[  354.467386] ath10k_ahb a800000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[  354.468364] ath10k_ahb a800000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752'
[  354.751987] ath10k_ahb a800000.wifi: rts threshold -1
[  354.753670] ath10k_ahb a800000.wifi: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4
[  354.776947] br-lan: port 2(wlan1) entered blocking state
[  354.776995] br-lan: port 2(wlan1) entered disabled state
[  354.781979] device wlan1 entered promiscuous mode
[  354.953040] ath10k_ahb a800000.wifi: NOTE:  Firmware DBGLOG output disabled in debug_mask: 0x10000000
[  355.391988] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[  355.392652] br-lan: port 2(wlan1) entered blocking state
[  355.397464] br-lan: port 2(wlan1) entered forwarding state
[ 1484.759068] device wlan1 left promiscuous mode
[ 1484.759356] br-lan: port 2(wlan1) entered disabled state
[ 1484.919207] ath10k_ahb a800000.wifi: mac flush null vif, drop 0 queues 0xffff
[ 1484.935358] ath10k_ahb a800000.wifi: peer-unmap-event: unknown peer id 0
[ 1484.935489] ath10k_ahb a800000.wifi: peer-unmap-event: unknown peer id 0
[ 1496.581509] ath: EEPROM regdomain: 0x8318
[ 1496.581524] ath: EEPROM indicates we should expect a country code
[ 1496.581536] ath: doing EEPROM country->regdmn map search
[ 1496.581545] ath: country maps to regdmn code: 0x36
[ 1496.581555] ath: Country alpha2 being used: TR
[ 1496.581560] ath: Regpair used: 0x36
[ 1496.581570] ath: regdomain 0x8318 dynamically updated by user
[ 1496.581603] ath: EEPROM regdomain: 0x8318
[ 1496.581608] ath: EEPROM indicates we should expect a country code
[ 1496.581618] ath: doing EEPROM country->regdmn map search
[ 1496.581627] ath: country maps to regdmn code: 0x36
[ 1496.581632] ath: Country alpha2 being used: TR
[ 1496.581638] ath: Regpair used: 0x36
[ 1496.581647] ath: regdomain 0x8318 dynamically updated by user
[ 1499.483594] ath10k_ahb a800000.wifi: 10.4 wmi init: vdevs: 16  peers: 48  tid: 96
[ 1499.483732] ath10k_ahb a800000.wifi: msdu-desc: 2500  skid: 32
[ 1499.519383] ath10k_ahb a800000.wifi: wmi print 'P 48/48 V 16 K 144 PH 176 T 186  msdu-desc: 2500  sw-crypt: 0 ct-sta: 0'
[ 1499.520782] ath10k_ahb a800000.wifi: wmi print 'free: 53252 iram: 13432 sram: 35752'
[ 1499.810409] ath10k_ahb a800000.wifi: rts threshold -1
[ 1499.814646] ath10k_ahb a800000.wifi: Firmware lacks feature flag indicating a retry limit of > 2 is OK, requested limit: 4
[ 1499.823813] br-lan: port 2(wlan1) entered blocking state
[ 1499.825490] br-lan: port 2(wlan1) entered disabled state
[ 1499.831453] device wlan1 entered promiscuous mode
[ 1500.458257] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 1500.458955] br-lan: port 2(wlan1) entered blocking state
[ 1500.463871] br-lan: port 2(wlan1) entered forwarding state
root@OpenWrt:~# cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '11'
        option hwmode '11g'
        option path 'platform/soc/a000000.wifi'
        option htmode 'HT20'
        option disabled '1'
        option country 'TR'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

config wifi-device 'radio1'
        option type 'mac80211'
        option channel '36'
        option hwmode '11a'
        option path 'platform/soc/a800000.wifi'
        option htmode 'VHT80'
        option cell_density '0'
        option country 'TR'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt5g'
        option encryption 'psk2'
        option key 'password1234'
root@OpenWrt:~# iwinfo wlan1 assoclist
5E:32:--:--:--:--  -99 dBm / -112 dBm (SNR 13)  130 ms ago
        RX: 65.0 MBit/s, VHT-MCS 1, 80MHz, VHT-NSS 1      2590 Pkts.
        TX: 351.0 MBit/s, VHT-MCS 4, 80MHz, VHT-NSS 2      3162 Pkts.
        expected throughput: unknown

Can you provide this:

# It should either be a file or a directory with some files in it
ls -lh /sys/firmware/mikrotik/hard_config/wlan_data

and dump and provide these files:

# Adapt to the files you found above
dd if=/sys/firmware/mikrotik/hard_config/wlan_data/data_0 of=/tmp/data_0.bin bs=512
dd if=/sys/firmware/mikrotik/hard_config/wlan_data/data_2 of=/tmp/data_2.bin bs=512

# Dump hard_config partition
dd if=/dev/mtd2 of=/tmp/hard_config.bin bs=512
root@OpenWrt:~# ls -lh /sys/firmware/mikrotik/hard_config/wlan_data
-r--------    1 root     root           0 Jun 13 22:02 /sys/firmware/mikrotik/hard_config/wlan_data
root@OpenWrt:~# dd if=/sys/firmware/mikrotik/hard_config/wlan_data/data_0 of=/tmp/data_0.bin bs=512
dd: can't open '/sys/firmware/mikrotik/hard_config/wlan_data/data_0': Not a directory
root@OpenWrt:~# dd if=/sys/firmware/mikrotik/hard_config/wlan_data/data_2 of=/tmp/data_2.bin bs=512
dd: can't open '/sys/firmware/mikrotik/hard_config/wlan_data/data_2': Not a directory

You can download hard_config.bin from this link
https://drive.google.com/drive/folders/1zSbqJR_LXW3Fq7KdTKsiSq2Jc3qBf1Aq

hi @robimarko

as i saw in this PR

the eth1 is finally removed :slight_smile:

so i tried in HAP-AC2 DTS

                edma@c080000 {
                        status = "okay";
+                       qcom,poll_required = <0>;
+                       qcom,num_gmac = <1>;
                };
        };

+&gmac0 {
+       vlan_tag = <0 0x3f>;
+};

and in 02_network

        mikrotik,hap-ac2
                ucidef_add_switch "switch0" \
                        "0t@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
                ;;

but the network does not come up
do you have any suggestion ?

sorry for ping, but i really need WAN port to be able handling Vlans/Trunk
thank you

sry @robimarko

my mistake
left out one char

-mikrotik,hap-ac2
+mikrotik,hap-ac2)
                ucidef_add_switch "switch0" \
                        "0t@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan"
                ;;

it is working perfectly
tagged WAN , finally

It's a workaround like the whole ethernet and switch drivers.
Nice to see that you made it work.