Wireless connection drop in Android 7.0, 7.1.1, 8.0

I have two hap AC boxes connected over ethernet and exposing a 2.4Gz and 5Gz wireless interface with the same SSID each. So far so good, but android phones disconnect once in a while. When they disconnect, this happens for all phones and disconnects are regular, e.g. once a minute or so.

Here is the configuration of one of the boxes, only frequencies are different for the other box.
[root@MikroTik] /interface wireless> print
Flags: X - disabled, R - running
0 R name=“wlan1” mtu=1500 l2mtu=1600 mac-address=XX:XX:XX:XX:XX:XX arp=enabled interface-type=Atheros AR9300 mode=ap-bridge ssid=“wonderland” frequency=2417 band=2ghz-b/g/n
channel-width=20/40mhz-Ce scan-list=default wireless-protocol=802.11 vlan-mode=no-tag vlan-id=1 wds-mode=dynamic wds-default-bridge=bridge wds-ignore-ssid=no bridge-mode=enabled
default-authentication=yes default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0 hide-ssid=no security-profile=default compression=no

1 R name=“wlan2” mtu=1500 l2mtu=1600 mac-address=XX:XX:XX:XX:XX:XX arp=enabled interface-type=Atheros AR9888 mode=ap-bridge ssid=“wonderland” frequency=5520 band=5ghz-a/n/ac
channel-width=20/40/80mhz-Ceee scan-list=default wireless-protocol=802.11 vlan-mode=no-tag vlan-id=1 wds-mode=dynamic wds-default-bridge=bridge wds-ignore-ssid=no bridge-mode=enabled
default-authentication=yes default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0 hide-ssid=no security-profile=default compression=no
I have no clue where to start investigating. I am now running one phone with adb shell logcat but funnily the connection works fine now.

After reading https://wiki.mikrotik.com/wiki/Manual:Wireless_Debug_Logs and configuring the wireless logging, I see some ‘disconnect extensive data loss’ and ’ data from unknown device XX:XX:XX:XX:XX:XX, sent deauth’. Could it be that an android device at equal distance from two APs does not behave well?

I had similar issues.

Big fix was set freq bands and set tx-power, as well as group-keep-interval in the security profile

Got to bounce but will better explain later

why did you set up WDS if your wlan is simple AP?

How is your signal strength?

Indeed, I already noticed this and disabled WDS, but nothing changes. Looking at the spectrum with Wi-Fi Analyzer, I see a dozen of APs on 2.4Ghz. Not that much, but they may be very active.

-50..60Dbm.

Have you got any other AP who running near to your MT?

Increase group key TTL to 1h and increase DHCP lease to 1h. This nearly always fixes problems I’ve experienced like you describe.

Sent from my Pixel XL using Tapatalk

I second yottabit on the group key to 1h.

Also turn on wmm, really helps newer phones.

I don’t think dhcp is related, out AP’s don’t even run dhcp.

I’ve had RouterOS default to a 5m lease on DHCP, and this has caused problems with Android and Chromecast devices. Should it? No, but it did.

Increasing the lease time solved that problem.

Sent from my Pixel XL using Tapatalk

I have the DHCP lease to 70 days, so that is not a problem.

Bumped the group key to 1h, will be watching in the coming hours/days.

Cool, let us know. And be sure WMM is enabled on all Wi-Fi interfaces you’re running.

Sent from my Pixel XL using Tapatalk