Something wrong with the wifi connection

When I use it every day, the wifi always disconnects itself but the wired connection has no effect. Every time it can't recover by itself unless I restart the router or modify some key wifi related settings like band range, etc. Simply switching the wifi service can't solve it
The device info below:

Model Xiaomi Mi Router 4C

Architecture MediaTek MT7628AN ver:1 eco:2

Target platform ramips/mt76x8

Firmware version OpenWrt 21.02.3 r16554-1d4dea6d4f / LuCI openwrt-21.02 branch git-22.335.71649-0ecaf74

when the problem happened when I connected wifi with phone .the phone is disconnected with network automatically

the system debug logger below:

Wed Dec 21 17:51:40 2022 authpriv.info dropbear[11098]: Child connection from 68.183.87.133:37998
Wed Dec 21 17:51:40 2022 authpriv.info dropbear[11098]: Exit before auth from <68.183.87.133:37998>: Exited normally
Wed Dec 21 18:03:56 2022 daemon.info hostapd: wlan0: STA ca:cb:77:7c:d6:44 IEEE 802.11: associated (aid 2)
Wed Dec 21 18:03:56 2022 daemon.notice hostapd: wlan0: AP-STA-CONNECTED ca:cb:77:7c:d6:44
Wed Dec 21 18:03:56 2022 daemon.info hostapd: wlan0: STA ca:cb:77:7c:d6:44 WPA: pairwise key handshake completed (RSN)
Wed Dec 21 18:03:56 2022 daemon.info dnsmasq-dhcp[2411]: DHCPREQUEST(br-lan) 192.168.2.206 ca:cb:77:7c:d6:44
Wed Dec 21 18:03:56 2022 daemon.info dnsmasq-dhcp[2411]: DHCPACK(br-lan) 192.168.2.206 ca:cb:77:7c:d6:44
Wed Dec 21 18:13:36 2022 user.info : luci: accepted login on / for root from 192.168.2.124
Wed Dec 21 18:21:06 2022 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED ca:cb:77:7c:d6:44
Wed Dec 21 18:21:06 2022 daemon.info hostapd: wlan0: STA ca:cb:77:7c:d6:44 IEEE 802.11: disassociated due to inactivity
Wed Dec 21 18:21:07 2022 daemon.info hostapd: wlan0: STA ca:cb:77:7c:d6:44 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Wed Dec 21 18:21:10 2022 daemon.warn dnsmasq[11327]: Ignoring query from non-local network
Wed Dec 21 18:21:10 2022 daemon.warn dnsmasq[11328]: Ignoring query from non-local network
Wed Dec 21 18:21:10 2022 daemon.warn dnsmasq[11329]: Ignoring query from non-local network
Wed Dec 21 18:21:11 2022 daemon.warn dnsmasq[11330]: Ignoring query from non-local network
Wed Dec 21 18:21:11 2022 daemon.warn dnsmasq[11331]: Ignoring query from non-local network
Wed Dec 21 18:21:11 2022 daemon.warn dnsmasq[11332]: Ignoring query from non-local network
Wed Dec 21 18:21:11 2022 daemon.warn dnsmasq[11333]: Ignoring query from non-local network
Wed Dec 21 18:21:12 2022 daemon.warn dnsmasq[11334]: Ignoring query from non-local network
Wed Dec 21 18:21:12 2022 daemon.warn dnsmasq[11335]: Ignoring query from non-local network
Wed Dec 21 18:21:12 2022 daemon.warn dnsmasq[11336]: Ignoring query from non-local network
Wed Dec 21 18:50:35 2022 authpriv.info dropbear[11371]: Child connection from 106.75.141.132:60590
Wed Dec 21 18:50:35 2022 authpriv.info dropbear[11372]: Child connection from 106.75.141.132:60610
Wed Dec 21 18:50:36 2022 authpriv.info dropbear[11371]: Exit before auth from <106.75.141.132:60590>: Exited normally
Wed Dec 21 18:50:50 2022 authpriv.info dropbear[11372]: Exit before auth from <106.75.141.132:60610>: Exited normally
Wed Dec 21 18:56:38 2022 authpriv.info dropbear[11373]: Child connection from 64.62.197.59:16933
Wed Dec 21 18:56:39 2022 authpriv.warn dropbear[11373]: Login attempt for nonexistent user
Wed Dec 21 18:56:42 2022 authpriv.info dropbear[11373]: Exit before auth from <64.62.197.59:16933>: Exited normally
Wed Dec 21 19:04:15 2022 authpriv.info dropbear[11392]: Child connection from 218.207.155.236:59871
Wed Dec 21 19:04:18 2022 authpriv.warn dropbear[11392]: Login attempt for nonexistent user
Wed Dec 21 19:04:21 2022 authpriv.info dropbear[11392]: Exit before auth from <218.207.155.236:59871>: Max auth tries reached - user 'is invalid'
Wed Dec 21 19:41:28 2022 authpriv.info dropbear[11579]: Child connection from 195.3.147.57:56579
Wed Dec 21 19:41:31 2022 authpriv.warn dropbear[11579]: Login attempt for nonexistent user
Wed Dec 21 19:41:32 2022 authpriv.info dropbear[11579]: Exit before auth from <195.3.147.57:56579>: Error reading: Connection reset by peer
Wed Dec 21 19:56:58 2022 daemon.info hostapd: wlan0: STA ca:cb:77:7c:d6:44 IEEE 802.11: associated (aid 2)
Wed Dec 21 19:56:58 2022 daemon.notice hostapd: wlan0: AP-STA-CONNECTED ca:cb:77:7c:d6:44
Wed Dec 21 19:56:58 2022 daemon.info hostapd: wlan0: STA ca:cb:77:7c:d6:44 WPA: pairwise key handshake completed (RSN)
Wed Dec 21 19:56:58 2022 daemon.info dnsmasq-dhcp[2411]: DHCPREQUEST(br-lan) 192.168.2.206 ca:cb:77:7c:d6:44
Wed Dec 21 19:56:58 2022 daemon.info dnsmasq-dhcp[2411]: DHCPACK(br-lan) 192.168.2.206 ca:cb:77:7c:d6:44
Wed Dec 21 19:59:07 2022 daemon.info hostapd: wlan0: STA 2e:00:94:2d:99:f5 IEEE 802.11: associated (aid 1)
Wed Dec 21 19:59:07 2022 daemon.info hostapd: wlan0: STA 2e:00:94:2d:99:f5 WPA: pairwise key handshake completed (RSN)
Wed Dec 21 20:16:13 2022 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED ca:cb:77:7c:d6:44
Wed Dec 21 20:16:13 2022 daemon.info hostapd: wlan0: STA ca:cb:77:7c:d6:44 IEEE 802.11: disassociated
Wed Dec 21 20:16:14 2022 daemon.info hostapd: wlan0: STA ca:cb:77:7c:d6:44 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Wed Dec 21 20:24:00 2022 user.info : luci: accepted login on / for root from 192.168.2.124
Wed Dec 21 20:33:29 2022 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED 2e:00:94:2d:99:f5

even worst,wifi cannot be scanned
wifi pannel info:

MediaTek MT76x8 802.11bgn
Channels: 8 (2.447 GHz) | Rate: 1 Mbit/s (or even ? Mbit/s )
 -25 dBm
SSID: HashMapTree | Mode: Master
BSSID: 5C:02:14:0C:62:C3 | Encryption: mixed WPA2/WPA3 PSK, SAE (CCMP)

or even apper tips like Device not activated wifi is not linked

and now log blow

Wed Dec 21 20:36:35 2022 kern.info kernel: [121105.878658] br-lan: port 2(wlan0) entered blocking state
Wed Dec 21 20:36:35 2022 kern.info kernel: [121105.884231] br-lan: port 2(wlan0) entered disabled state
Wed Dec 21 20:36:35 2022 kern.info kernel: [121105.890156] device wlan0 entered promiscuous mode
Wed Dec 21 20:36:38 2022 kern.err kernel: [121109.184266] mt76_wmac 10300000.wmac: MCU message 08 (seq 15) timed out
Wed Dec 21 20:36:38 2022 kern.info kernel: [121109.193138] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Wed Dec 21 20:36:38 2022 kern.info kernel: [121109.200021] br-lan: port 2(wlan0) entered blocking state
Wed Dec 21 20:36:38 2022 kern.info kernel: [121109.205559] br-lan: port 2(wlan0) entered forwarding state
Wed Dec 21 20:36:38 2022 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->ENABLED
Wed Dec 21 20:36:38 2022 daemon.notice hostapd: wlan0: AP-ENABLED
Wed Dec 21 20:36:39 2022 daemon.notice netifd: Wireless device 'radio0' is now up
Wed Dec 21 20:36:39 2022 daemon.notice netifd: Network device 'wlan0' link is up
Wed Dec 21 20:37:16 2022 daemon.notice hostapd: Remove interface 'wlan0'
Wed Dec 21 20:37:16 2022 daemon.notice hostapd: wlan0: interface state ENABLED->DISABLED
Wed Dec 21 20:37:16 2022 daemon.notice hostapd: wlan0: AP-DISABLED
Wed Dec 21 20:37:16 2022 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Wed Dec 21 20:37:16 2022 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Wed Dec 21 20:37:16 2022 kern.info kernel: [121147.762692] device wlan0 left promiscuous mode
Wed Dec 21 20:37:16 2022 kern.info kernel: [121147.767547] br-lan: port 2(wlan0) entered disabled state
Wed Dec 21 20:37:20 2022 kern.err kernel: [121151.168595] mt76_wmac 10300000.wmac: MCU message 08 (seq 1) timed out
Wed Dec 21 20:37:20 2022 daemon.notice netifd: Network device 'wlan0' link is down
Wed Dec 21 20:37:20 2022 daemon.notice netifd: Wireless device 'radio0' is now down
Wed Dec 21 20:37:22 2022 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Wed Dec 21 20:37:25 2022 kern.err kernel: [121156.288646] mt76_wmac 10300000.wmac: MCU message 08 (seq 2) timed out
Wed Dec 21 20:37:25 2022 kern.info kernel: [121156.315091] br-lan: port 2(wlan0) entered blocking state
Wed Dec 21 20:37:25 2022 kern.info kernel: [121156.320648] br-lan: port 2(wlan0) entered disabled state
Wed Dec 21 20:37:25 2022 kern.info kernel: [121156.326578] device wlan0 entered promiscuous mode
Wed Dec 21 20:37:28 2022 kern.err kernel: [121159.616635] mt76_wmac 10300000.wmac: MCU message 08 (seq 3) timed out
Wed Dec 21 20:37:28 2022 kern.info kernel: [121159.625508] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Wed Dec 21 20:37:28 2022 kern.info kernel: [121159.632392] br-lan: port 2(wlan0) entered blocking state
Wed Dec 21 20:37:28 2022 kern.info kernel: [121159.637930] br-lan: port 2(wlan0) entered forwarding state
Wed Dec 21 20:37:28 2022 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->ENABLED
Wed Dec 21 20:37:28 2022 daemon.notice hostapd: wlan0: AP-ENABLED

what can I do to solve it?

This is a known issue with mt76 wireless drivers. I've never had this issue but from what I see, plenty of people do. Try disabling "Disassociate On Low Acknowledgement" on "Advanced Settings" of your master wireless network's settings.

1 Like

further settings worth trying:

  • checkmark „disable inactivity polling“
  • increase station inactivity limit (e.g. try 10times the default)

You can also try modifying

  • beacon interval
  • DTIM interval

I do not know why, but solely changing DTIM default 2 to 1 does it for me to fix a randomly disconnecting airplay2 receiver (D Link dir-1960, also mt…)

  • Some uses have reported that changing from router to access point mode also reduces the random disconnects.
  • Some report that disabling sleep settings on the client devices (if there are any settings) can also help

(But don’t modify all values at the same time, research what they roughly do, change one at a time and track the outcome)

1 Like

Thank you for answering my question, but I never turned this option on, and just now I confirmed again that "disconnect on low Ack response" is off

if I remember correctly, „Disassociate On Low Acknowledgement“ in OpenWRT-default is on/checked, so your current setting is customized, if the checkmark is removed

@cstcood

I use these configs I moved from ath9k to a MT AP:

        option dtim_period '5'
        option wpa_group_rekey '86400'
        option wpa_disable_eapol_key_retries '1'

I have other MT devices I haven't changed default. Sometimes I also change Beacon Interval and Distance; but again I also have many devices at default with no issues.

I will try to apply those modification,but the results of these modifications still need time to prove,Anyway,thank you for answer.

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