I am using Xiaomi Router 4A Giga. After installing version 24.10, wifi drops out occasionally and does not connect. When I look at the interface, it appears that a device is connected, but no device is connected. It seems like it's bugged and when I click on the SSID it doesn't connect. Another problem 2G Channel is that the device connects to the network but it says there is no internet access, it cannot receive data and gets disconnected. While it is on the 2.4G channel, the internet is accessed on the 5G channel. What could be the problem?
Let’s see the configs to better understand your setup.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
Hi friend, the same problem happened again. I am adding the kernel logs. After this log, it does not connect to the 5g channel even though I restarted it. It said the password is incorrect when I first tried it. It says that I can't connect to the network right now on all my devices. Apart from that, my SSID name is written in a different font. It is unlikely that this is the reason, but I wanted you to know. I am sending the ssh output you requested, check it out.
These kernel logs are just before the error occurs.
br-lan: port 1(lan1) entered disabled state
mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
mt76x2e 0000:01:00.0: Build: 1
mt76x2e 0000:01:00.0: Build Time: 201607111443____
mt76x2e 0000:01:00.0: Firmware running!
ieee80211 phy1: Hardware restart was requested
mt76x2e 0000:01:00.0 5G: left allmulticast mode
mt76x2e 0000:01:00.0 5G: left promiscuous mode
br-lan: port 4(5G) entered disabled state
br-lan: port 4(5G) entered blocking state
br-lan: port 4(5G) entered disabled state
mt76x2e 0000:01:00.0 5G: entered allmulticast mode
mt76x2e 0000:01:00.0 5G: entered promiscuous mode
br-lan: port 4(5G) entered blocking state
br-lan: port 4(5G) entered forwarding state
root@wrt:~# ubus call system board
{
"kernel": "6.6.73",
"hostname": "wrt",
"system": "MediaTek MT7621 ver:1 eco:3",
"model": "Xiaomi Mi Router 4A Gigabit Edition",
"board_name": "xiaomi,mi-router-4a-gigabit",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "24.10.0",
"revision": "r28427-6df0e3d02a",
"target": "ramips/mt7621",
"description": "OpenWrt 24.10.0 r28427-6df0e3d02a",
"builddate": "1738624177"
}
}
root@wrt:~# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix I hid it
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
root@wrt:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
option band '2g'
option channel '1'
option htmode 'HT20'
option cell_density '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid I hid it
option encryption 'sae-mixed'
option isolate '1'
option ifname '2G'
option key I hid it
option ocv '0'
list maclist I hid it
config wifi-device 'radio1'
option type 'mac80211'
option path '1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
option band '5g'
option channel '36'
option htmode 'VHT80'
option cell_density '0'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid I hid it
option encryption 'sae-mixed'
option isolate '1'
option ifname '5G'
option key I hid it
option ocv '0'
root@wrt:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option ednspacket_max '1232'
option filter_aaaa '0'
option filter_a '0'
list server '127.0.0.1#5053'
list server '/mask.icloud.com/'
list server '/mask-h2.icloud.com/'
list server '/use-application-dns.net/'
list server '127.0.0.1#5054'
option confdir '/tmp/dnsmasq.d'
option doh_backup_noresolv '-1'
option noresolv '1'
list doh_backup_server '127.0.0.1#5053'
list doh_backup_server '/mask.icloud.com/'
list doh_backup_server '/mask-h2.icloud.com/'
list doh_backup_server '/use-application-dns.net/'
list doh_backup_server '127.0.0.1#5054'
list doh_server '127.0.0.1#5054'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
option ra_slaac '1'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
root@wrt:~# cat /etc/config/firewall
config defaults
option syn_flood 1
option input REJECT
option output ACCEPT
option forward REJECT
# Uncomment this line to disable ipv6 rules
# option disable_ipv6 1
config zone
option name lan
list network 'lan'
option input ACCEPT
option output ACCEPT
option forward ACCEPT
config zone
option name wan
list network 'wan'
list network 'wan6'
option input REJECT
option output ACCEPT
option forward REJECT
option masq 1
option mtu_fix 1
config forwarding
option src lan
option dest wan
# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
option name Allow-DHCP-Renew
option src wan
option proto udp
option dest_port 68
option target ACCEPT
option family ipv4
# Allow IPv4 ping
config rule
option name Allow-Ping
option src wan
option proto icmp
option icmp_type echo-request
option family ipv4
option target ACCEPT
config rule
option name Allow-IGMP
option src wan
option proto igmp
option family ipv4
option target ACCEPT
# Allow DHCPv6 replies
# see https://github.com/openwrt/openwrt/issues/5066
config rule
option name Allow-DHCPv6
option src wan
option proto udp
option dest_port 546
option family ipv6
option target ACCEPT
config rule
option name Allow-MLD
option src wan
option proto icmp
option src_ip fe80::/10
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family ipv6
option target ACCEPT
# Allow essential incoming IPv6 ICMP traffic
config rule
option name Allow-ICMPv6-Input
option src wan
option proto icmp
list icmp_type echo-request
list icmp_type echo-reply
list icmp_type destination-unreachable
list icmp_type packet-too-big
list icmp_type time-exceeded
list icmp_type bad-header
list icmp_type unknown-header-type
list icmp_type router-solicitation
list icmp_type neighbour-solicitation
list icmp_type router-advertisement
list icmp_type neighbour-advertisement
option limit 1000/sec
option family ipv6
option target ACCEPT
# Allow essential forwarded IPv6 ICMP traffic
config rule
option name Allow-ICMPv6-Forward
option src wan
option dest *
option proto icmp
list icmp_type echo-request
list icmp_type echo-reply
list icmp_type destination-unreachable
list icmp_type packet-too-big
list icmp_type time-exceeded
list icmp_type bad-header
list icmp_type unknown-header-type
option limit 1000/sec
option family ipv6
option target ACCEPT
config rule
option name Allow-IPSec-ESP
option src wan
option dest lan
option proto esp
option target ACCEPT
config rule
option name Allow-ISAKMP
option src wan
option dest lan
option dest_port 500
option proto udp
option target ACCEPT
### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
# option src lan
# option src_ip I hid it
# option dest wan
# option proto tcp
# option target REJECT
# block a specific mac on wan
#config rule
# option dest wan
# option src_mac I hid it
# option target REJECT
# block incoming ICMP traffic on a zone
#config rule
# option src lan
# option proto ICMP
# option target DROP
# port redirect port coming in on wan to lan
#config redirect
# option src wan
# option src_dport 80
# option dest lan
# option dest_ip I hid it
# option dest_port 80
# option proto tcp
# port redirect of remapped ssh port (22001) on wan
#config redirect
# option src wan
# option src_dport 22001
# option dest lan
# option dest_port 22
# option proto tcp
### FULL CONFIG SECTIONS
#config rule
# option src lan
# option src_ip I hid it
# option src_mac I hid it
# option src_port 80
# option dest wan
# option dest_ip I hid it
# option dest_port 120
# option proto tcp
# option target REJECT
#config redirect
# option src lan
# option src_ip I hid it
# option src_mac I hid it
# option src_port 1024
# option src_dport 80
# option dest_ip I hid it
# option dest_port 120
# option proto tcp
try replacing the package with wpad-mbedtls and configure it from scratch
that is, do not save the router settings, but configure it completely from scratch.
assemble a new firmware image and flash it without saving
Set wifi country code. Twice.
@psherman I'm waiting for your response my friend.
I don't quite understand what you mean. Can you explain it a little more simply and explanatorily? I'm a beginner in openwrt.
What does this have to do with it? This problem did not exist at 23.05, by the way I opened the SSL configuration to enter the interface 192.168.X.X could it have something to do with this?
Luci/network/wireless
Edit an AP in each band and set country code according to your location
Then save and apply.
Can you explain how this relates to my problem? I applied the settings you suggested and will share the results.
And don't use sae-mixed, but WPA2 or 3.
Why? I was always using mixed at 23.05 and there was no such problem, it started happening at 24.10.
24.10.1 just came out, I think you should update first. I've had similar problems with 24.10.0 and had to roll back to 23.05.
It can cause problems with certain clients, although probably not related to your current problem.
@brada4 Is it okay if I update it by applying the keep settings setting? 24.10.1 I'm thinking of updating to is it a stable version?
Yes, it's stable, you can download it with firmware selector and keep the settings.
Or owut or luci-app-attendedsysupgrade and keep the packages too.
24.10,1 is NOT "out" if you mean released.
What counts as "released"? An announcement? I say if it's available for download, then it was released.