Wifi connection problems

hi all

i recently not (more than 7 days) flashed openwrt on my xiaomi 4a gigabit 1200 router

i am facing some problems thats is my network (disconnects randomly) i used only ppoe login but the network doesnt disconnect fully i believe for example when running chrome i cant access any site i get the error ERR_NAME_NOT_RESOLVED but when i download anything it does work so i think there are some configuration problems i am also using adblock luci plugin on openwrt so if anyone can tell me what to configure properly it would be helpful

thank you

SSH in to the router and run the following...

cat /etc/config/network

cat /etc/config/wireless

cat /etc/config/dhcp

Post the results in pre-formatted text by using the icon highlighted in red...

OpenWRT Posting Icons

You've also posted two recent threads on similar issues...which may or may not be related to your current issue.

Since you mentioned PPPoE, do you have anything in front of the OpenWRT device, such as an ISP router/modem?

uhh our country modem shits are messed up they only gave me an ethernet cable and ppoe credentials nothing else i logged into the ppoe ..i think the modem is outside from my house and probably shared modem of some sort......


**root@OpenWrt:~# 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 packet_steering '1'

        option ula_prefix 'fdfe:2fbd:4999::/48'

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 'pppoe'

        option username '**#REDACTED#**'

        option password '**#REDACTED#**'

        option ipv6 'auto'

        option type 'bridge'

config interface 'wan6'

        option device 'wan'

        option proto 'dhcpv6'

        option type 'bridge'


**root@OpenWrt:~# cat /etc/config/wireless**

config wifi-device 'radio0'

        option type 'mac80211'

        option hwmode '11g'

        option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'

        option cell_density '3'

        option noscan '1'

        option htmode 'HT40'

        option channel '13'

        option legacy_rates '1'

        option txpower '20'

        option country 'SG'

config wifi-iface 'default_radio0'

        option device 'radio0'

        option mode 'ap'

        option network 'lan wan wan6'

        option ssid '🐌 Amirul'\''s Residence - 2.4GhZ'

        option encryption 'sae-mixed'

        option key '**#REDACTED#**'

config wifi-device 'radio1'

        option type 'mac80211'

        option hwmode '11a'

        option path '1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'

        option htmode 'VHT80'

        option country 'SG'

        option cell_density '3'

        option noscan '1'

        option channel '161'

        option txpower '23'

config wifi-iface 'default_radio1'

        option device 'radio1'

        option mode 'ap'

        option ssid '⚡ Amirul'\''s Residence - 5GhZ'

        option encryption 'sae-mixed'

        option key '**#REDACTED#**'

        option network 'lan wan wan6'


**root@OpenWrt:~# cat /etc/config/wireless**

config wifi-device 'radio0'

        option type 'mac80211'

        option hwmode '11g'

        option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'

        option cell_density '3'

        option noscan '1'

        option htmode 'HT40'

root@OpenWrt:~# 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 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 confdir '/tmp/adb_list.overall'\'''

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'

        list ra_flags 'none'

config odhcpd 'odhcpd'

        option maindhcp '0'

        option leasefile '/tmp/hosts/odhcpd'

        option leasetrigger '/usr/sbin/odhcpd-update'

        option loglevel '4'

@anon89577378 the following problem also occurs when wifi randomly disconnects but it only happens on my mobile not the laptop...it stays connected on my laptop...


Didn't see your answer yet.

OK...I was looking for a device in front of your router where you might be in a double NAT situation.

Have you tried using a WiFi analyzer app (several are free) to see who is using what channels in your neighborhood, and what your signal strength is.

See what the signal looks like in different parts of the house.

I would check at different times of the day (if you can) and especially during "peak hours".

Are you using any kind of MAC filtering to allow only certain devices to connect. If so, I'd check to see if that device is included.

It may also be (barring any other WiFi issues) that the device can't authenticate using the wireless security settings you are using.

Those are all things to look at.

I am using Wpa2.psk/wpa3-sae protection shall i downgrade?

Besides i am not using any mac filtering..

I will try to analyze my wifi...

As a test, I would try WPA2-PSK with AES.

Some devices don't support WPA3.