Support for Mikrotik Hap AC2

hi @johnth

unfortnately, nope

here what i am find in swconfig

        pvid: 2
        link: port:5 link:up speed:1000baseT full-duplex txflow rxflow auto
VLAN 1:
        vid: 1
        ports: 0 1 2 3 4
VLAN 2:
        vid: 2
        ports: 0t 5

so i tried:
swconfig dev switch0 vlan 2 set ports '0t 5t'
to make tagged Vlan2
and it is working

unfortunately, it is working only on "whole" eth1
and only by hand from CLI
so i could write whatever i want in /etc/config/network it is hard coded to 2(U)
and most important, it is only one Vlan on whole ETH1
no multi Vlans/Trunk

big regression compared to ROS and/or other OpenWRT devices

my goal is mostly to use OpenWRT as managed switch+multi Vlan/SSID AP
So , Trunk on input (WAN) with few Vlans, every Vlan have own SSID + device act as managed switch transforming tagged to access ports. All this supported with SNMP+LibreNMS

I had the same issue, and I think I've found a workaround: https://github.com/openwrt/openwrt/pull/3037#issuecomment-835504399.

Is snapshot stable enough to use it as daily driver?

1 Like

No crashes since flashing it. Even when using experimental stuff that isn't supported in RouterOS like WPA3. Wireless signal also seems more resilient.
Disclaimer: no guarantees it will work the same for your board/configuration

Hopefully this will become a stable release soon. I've donated to the OpenWrt via Software Freedom Conservancy so they hopefully have enough money/time to approve this in the near future.

1 Like

Is anyone else getting extremely high latency and packet loss when pinging or connecting to a device? The problem appears to be more severe on 5ghz, but it also happens on 2.4ghz. Pinging the router works fine.

Edit: This also happens on both wpad-basic-wolfssl and wpad-openssl, and on wpa3-mixed and wpa2. It seems to start after being connected for a few seconds, and gets worse over time (i.e. multiple days).

Edit: It gets much better if I run iperf3 while pinging.

Edit: Nevermind, it seems to be mostly issues with interference.

1 Like

There are issues with the 5 GHz wireless performance.
Have been testing the Mikrotik LDF 5 ac, a device with very similar ipq40xx hardware but only 5 GHz and no USB.
Using the ath10k-ct-smallbuffers wireless kernel driver, at least 10 dB of receiver sensitivity is lost. The standard ath10k driver in combination with its firmware, gives rssi level reports similar to that of RouterOS. This was tested in a setup with connection over 7 km distance, while also monitoring the remote location via UBNT equipment..
That is to say, connection in a limited way. No real data transport as apparently the distance/coverage class setting and/or automatic adaptation are not working. This makes the 802.11 protocol break down.
iw phy phyN info (N=0 in my case, N=1 for the hAP ac2) shows distance setting 0. iw is not able to set this. Any ideas how to set coverage class / distance?

I second that. Wi-fi performance and readings using the CT drivers and firmware is all over the place. I have been using the native drivers and firmware instead. Strangely enough, the latest master builds broke my wi-fi. Couldn't figure why. By the way, anyone using the AF_ALG hardware acceleration? Under the openssl benchmark, I've got a bump of 32% in DES, 37% in 3DES, 15% in AES-128 and 15% in AES-192

I used the same method and found the option "try ethernet-if fail-nand" is now something that works once (it's also called "try once" if I remember correctly). So you need to start over and set this again when you weren't quick enough to start TFTP on the correct interface with the correct ip configuration.

Hello everybody.
I want to test my hAP ac^2 with kernel 5.10.xx
Anybody knows that need to add in kernel .config for compile OpenWrt with kernel 5.10.xx ?
BTW https://downloads.openwrt.org/releases/21.02.0-rc2/targets/ipq40xx/mikrotik/

The OpenWrt 21.02.0-rc2 Release Candidate 2 is Rolling out

21.02.0-rc2 Download, https://downloads.openwrt.org/releases/21.02.0-rc2/

21.02.0-rc2 Release Notes, https://openwrt.org/releases/21.02/notes-21.02.0-rc2

21.02.0-rc2 Change Log, https://openwrt.org/releases/21.02/changelog-21.02.0-rc2

21.02 Roadmap and Release Goals, https://openwrt.org/docs/guide-developer/releases/goals/21.02
Thanks.

Question for developer:
I see the RB750Gr3's sys gpio folder has a usb reset file and you can set value 0 or 1 to reset the usb power like what you can click in ROS. Possible to add that? I use usb modem and need that to reset my LTE modem when it went wrong. Thank you.

Hello, guys. Today bought hAP ac2 instead of miwifi mini. Firmware - snapshot from wiki page.
Booted openwrt from bootp for test, tested SQM and eth ports permormance, all good. After that I tested wireless connection and got major problems - on 5ghz network I got low signal and device dropping from wi-fi. After that I switched wireless to AC (it was choosed on N mode), choosed channel 100, then interface was disabled. In scan mode I see only my second router, -90 dbm in 2meters between routers.
Second time I booted, enabled both 2.4 and 5 ghz and router stucked and rebooted in ROS.
Is there any way to fix it or I need to return it?

Date of purchase: May 2020
S/N ends with /116/r2, MAC addr starts with 2C:C8

[    0.758543] spi-nor spi0.0: w25q128jv (16384 Kbytes)
[    0.758605] 3 fixed-partitions partitions found on MTD device spi0.0
[    0.763373] Creating 3 MTD partitions on "spi0.0":
[    0.769683] 0x000000000000-0x000000080000 : "Qualcomm"
[    0.775310] 0x000000080000-0x000000100000 : "RouterBoot"
[    0.785244] 3 routerbootpart partitions found on MTD device RouterBoot
[    0.785276] Creating 3 MTD partitions on "RouterBoot":
[    0.791252] 0x00000000e000-0x000000010000 : "hard_config"
[    0.797272] 0x000000010000-0x000000017bbc : "dtb_config"
[    0.802823] 0x00000003d000-0x00000003e000 : "soft_config"
[    0.808049] 0x000000100000-0x000001000000 : "firmware"

@Blaze, No 5.10 for this device yet due to the out-of-tree Qualcomm network drivers needing changes: https://github.com/openwrt/openwrt/pull/4134


@ex-git, Maybe file a bug report or mail list, so there is a specific request somewhere?

It is possible, but requires a change to the device in OpenWrt:


Hi @Skylin3,

Please do not post pictures of text, it only makes it harder to parse. Also best to show your config (/etc/config/wireless), just change the value for keys.

You have an error in your configuration.
The log says so in: Frequency 5500 not allowed for AP
Your channel must be correct for your band or hwmode and htmode, and be allowable in you country. Can see these with the commands: iw reg get and iw phy. In some 5GHz channels & countries (DFS), the access point will not power up the wifi channel until a timer (maybe 5 minutes) finishes.

Have a look at https://openwrt.org/docs/guide-user/network/wifi/basic and https://en.wikipedia.org/wiki/List_of_WLAN_channels#5_GHz_(802.11a/h/j/n/ac/ax)

The best wireless hardware options should be set by default. There is a very recent current bug where the default htmode will not be correctly set to VHT.
There was also discussion that the now default radio-device option legacy_rates 0 has a negative effect on ipq40xx: https://github.com/openwrt/openwrt/pull/3654#issuecomment-740637176

@johnth

The best wireless hardware options should be set by default.

I dont think so :wink: by default 5ghz running N with 20mhz bandwidth, not AC/80mhz.

one more time: openwrt was booted in full auto (default) settings.

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/soc/a000000.wifi'
        option channel '1'
        option band '2g'
        option htmode 'HT20'

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 path 'platform/soc/a800000.wifi'
        option channel '36'
        option band '5g'
        option htmode 'HT20'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

And have folowing issues:

  • low sensitivity\power both in scan and AP mode (anything more than 3 meter away) both 5ghz and 2.4 ghz - -110 to -90 dbm.
  • interface "broken" (disabled and no way to restart until reboot router) after set manual channel, same channel works good on another router.
  • if enable both 2.4 and 5 ghz simultaneously, and try to saturate connection with 3 devices (PC and 2 phones) - router stuck and rebooting.

UPD. using todays snapshot got accidental router reboot after changing wireless 5ghz to AC/80mhz and connecting only one phone (which still was used 20mhz instead configured 80) and PC by lan.
Looks like openwrt on this device is really unstable.
Good luck.

You should open a bug report: https://openwrt.org/bugs

Strange things happens with my brand new ac2 - it just bootloops after flashing squashfs image. I tried 2 snapshots - 19.07 and 21.02 - initramfs image starts from netboot just fine, but whenever I flash squashfs image either from ssh or LuCi - no matter, board enters bootloop and fails to respond to anything.
Am I missing something or could it be some new HW revision?

1 Like

What?
There is no 19.07 or 21.02 images for hAP ac2.
What are you flashing?

https://downloads.openwrt.org/snapshots/targets/ipq40xx/mikrotik/ - quick example.
https://openwrt.org/toh/mikrotik/mikrotik_hap_ac2 - here's the links

Ok, snapshots are what needs to be flashed.
Can you share the info from the sticker?

1 Like

Sure thing!
ID:RBD52G-5HacD2HnD-TC
FCC ID: TV7RBD52-5ACD2ND
IC:7442A-D52AC
SN: D7160CD8E8D0/035/r2

Well, they did not change the revision so I doubt that they changed anything important.

1 Like