Hi.
A few days ago, on my Archer C7, I uploaded the latest version of OpenWrt.
At home, I have 10 wall switches, 6 x sonoff th10 with a temperature sensor for underfloor heating and a few sonoff basic. All devices connect to the router on 2.4 GHz.
Everything worked fine on the original tplink software, but openwrt has a problem.
I noticed that the wall switch was blinking (disconnected from wifi) then lit again (connected to router). After a while, another wall switch, sonoff does the same.
logread from putty tells me that the devices are disconnecting and reconnecting after a while.
What could be the reason ? What information should I send for you that could help you find the problem?
for example:
Mon Sep 28 14:27:58 2020 authpriv.info dropbear[5908]: Child connection from 192.168.1.10:63572
Mon Sep 28 14:28:03 2020 authpriv.notice dropbear[5908]: Password auth succeeded for 'root' from 192.168.1.10:63572
Mon Sep 28 14:28:11 2020 daemon.err odhcp6c[3483]: Failed to send DHCPV6 message to ff02::1:2 (Permission denied)
Mon Sep 28 14:30:04 2020 daemon.err odhcp6c[3483]: Failed to send DHCPV6 message to ff02::1:2 (Permission denied)
Mon Sep 28 14:32:07 2020 daemon.err odhcp6c[3483]: Failed to send DHCPV6 message to ff02::1:2 (Permission denied)
Mon Sep 28 14:34:02 2020 daemon.notice hostapd: wlan1-1: AP-STA-DISCONNECTED dc:4f:22:f9:b5:49
Mon Sep 28 14:34:02 2020 daemon.info hostapd: wlan1-1: STA dc:4f:22:f9:b5:49 IEEE 802.11: authenticated
Mon Sep 28 14:34:02 2020 daemon.info hostapd: wlan1-1: STA dc:4f:22:f9:b5:49 IEEE 802.11: associated (aid 2)
Mon Sep 28 14:34:02 2020 daemon.notice hostapd: wlan1-1: AP-STA-CONNECTED dc:4f:22:f9:b5:49
Mon Sep 28 14:34:02 2020 daemon.info hostapd: wlan1-1: STA dc:4f:22:f9:b5:49 WPA: pairwise key handshake completed (RSN)
Mon Sep 28 14:34:02 2020 daemon.info dnsmasq-dhcp[2026]: DHCPDISCOVER(br-lan) dc:4f:22:f9:b5:49
Mon Sep 28 14:34:02 2020 daemon.info dnsmasq-dhcp[2026]: DHCPOFFER(br-lan) 192.168.1.141 dc:4f:22:f9:b5:49
Mon Sep 28 14:34:02 2020 daemon.info dnsmasq-dhcp[2026]: DHCPREQUEST(br-lan) 192.168.1.141 dc:4f:22:f9:b5:49
Mon Sep 28 14:34:02 2020 daemon.info dnsmasq-dhcp[2026]: DHCPACK(br-lan) 192.168.1.141 dc:4f:22:f9:b5:49 basic-zolwie
and my ps:
PID USER VSZ STAT COMMAND
1 root 1568 S /sbin/procd
2 root 0 SW [kthreadd]
4 root 0 IW< [kworker/0:0H]
6 root 0 IW< [mm_percpu_wq]
7 root 0 SW [ksoftirqd/0]
95 root 0 SW [oom_reaper]
96 root 0 IW< [writeback]
98 root 0 SW [kcompactd0]
99 root 0 IW< [crypto]
101 root 0 IW< [kblockd]
116 root 0 IW< [watchdogd]
137 root 0 SW [kswapd0]
196 root 0 SW [spi0]
383 root 0 IW< [ipv6_addrconf]
392 root 0 IW< [kworker/0:1H]
402 root 0 SW [irq/14-keys]
403 root 0 SW [irq/15-keys]
509 root 0 SWN [jffs2_gcd_mtd9]
668 root 1244 S /sbin/ubusd
669 root 924 S /sbin/askfirst /usr/libexec/login.sh
686 root 1028 S /sbin/urngd
768 root 0 IW< [cfg80211]
781 root 0 IW< [ath10k_wq]
782 root 0 IW< [ath10k_aux_wq]
1116 root 1292 S /sbin/logd -S 64
1147 root 2240 S /sbin/rpcd -s /var/run/ubus.sock -t 30
1243 root 1080 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
1300 root 1748 S /sbin/netifd
1334 root 1448 S /usr/sbin/odhcpd
1397 root 1348 S /usr/sbin/uhttpd -f -h /www -r srdz -x /cgi-bin -t 60 -T 30 -k 20 -A 1 -n 3 -N 100 -R -p 0.0.0.0:80 -p [::]:80
1408 root 992 S /usr/sbin/vsftpd
1906 root 1216 S< /usr/sbin/ntpd -n -N -S /usr/sbin/ntpd-hotplug -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.openwrt.po
2026 dnsmasq 1372 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid
2164 root 0 IW [kworker/u2:1]
3403 root 0 IW [kworker/0:2]
3483 root 1052 S odhcp6c -s /lib/netifd/dhcpv6.script -P0 -t120 eth0.2
4008 root 1212 S udhcpc -p /var/run/udhcpc-br-wan.pid -s /lib/netifd/dhcp.script -f -t 0 -i br-wan -x hostname:srdz -C -O 121
4317 root 0 IW [kworker/0:3]
4687 root 1780 S /usr/sbin/hostapd -s -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf
4720 root 1820 S /usr/sbin/hostapd -s -P /var/run/wifi-phy1.pid -B /var/run/hostapd-phy1.conf
5908 root 1148 S /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -p 22 -K 300 -T 3
5909 root 1220 S -ash
5921 root 0 IW [kworker/u2:2]
5948 root 1212 R ps
uci export network:
package network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdca:13be:43e0::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
option type 'bridge'
config device 'wan_eth0_2_dev'
option name 'eth0.2'
option macaddr '98:da:c4:3f:05:a4'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '2 3 4 5 0t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '1 0t'
uci export dhcp (all my devices has dhcp address):
package dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option localservice '1'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv6 'server'
option ra 'server'
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'
config host
option mac 'DC:4F:22:A6:64:7C'
option dns '1'
option ip '192.168.1.100'
option name 'wall-salon-kuchnia'
config host
option mac 'C4:4F:33:9A:E6:40'
option name 'wall-kuchnia-led'
option dns '1'
option ip '192.168.1.101'
config host
option mac 'C4:4F:33:9A:EE:AF'
option name 'wall-kuchnia-halogeny'
option dns '1'
option ip '192.168.1.102'
config host
option mac 'C4:4F:33:9A:F2:B4'
option name 'wall-hol'
option dns '1'
option ip '192.168.1.103'
config host
option mac 'DC:4F:22:AA:F0:E6'
option name 'wall-schody-dol'
option dns '1'
option ip '192.168.1.104'
config host
option mac 'DC:4F:22:AC:B3:4C'
option name 'wall-schody-gora'
option dns '1'
option ip '192.168.1.105'
config host
option mac 'C4:4F:33:9B:0E:4B'
option name 'wall-wojtus'
option dns '1'
option ip '192.168.1.106'
config host
option mac 'C4:4F:33:9B:0D:FD'
option name 'wall-sypialnia'
option dns '1'
option ip '192.168.1.107'
config host
option mac 'C4:4F:33:9A:EB:A5'
option name 'wall-wc-gora'
option dns '1'
option ip '192.168.1.108'
config host
option mac '74:C1:4F:AC:E0:0E'
option name 'tel-p20lite'
option dns '1'
option ip '192.168.1.50'
config host
option mac '3C:6A:A7:78:C4:D6'
option name 'pc-sluzbowy-michal'
option dns '1'
option ip '192.168.1.11'
option duid '0001000123859759f43909dde94e'
config host
option mac 'C4:4F:33:9A:EF:7D'
option name 'wall-taras'
option dns '1'
option ip '192.168.1.109'
config host
option mac 'D8:CE:3A:F2:C6:7B'
option name 'tel-redmi8pro'
option dns '1'
option ip '192.168.1.51'
config host
option mac 'BC:DD:C2:EA:4E:E1'
option name 'ogrzewanie-salon-kuchnia'
option dns '1'
option ip '192.168.1.120'
config host
option mac 'DC:4F:22:43:98:96'
option name 'ogrzewanie-lazienka-dol'
option dns '1'
option ip '192.168.1.121'
config host
option mac 'DC:4F:22:43:9E:93'
option name 'ogrzewanie-wojtus'
option dns '1'
option ip '192.168.1.122'
config host
option mac 'DC:4F:22:43:D9:73'
option name 'ogrzewanie-sypialnia'
option dns '1'
option ip '192.168.1.123'
config host
option mac 'DC:4F:22:97:78:9F'
option name 'basic-alarm-kamera-szafa'
option dns '1'
option ip '192.168.1.140'
config host
option mac '5C:CF:7F:7F:66:0C'
option name 'ogrzewanie-lazienka-gora'
option dns '1'
option ip '192.168.1.124'
config host
option mac '34:23:87:F0:64:65'
option dns '1'
option name 'pc-lenovo'
option duid '0001000125f2bda5201a0694b9ff'
option ip '192.168.1.10'
config host
option mac 'DC:4F:22:F9:B5:49'
option name 'basic-zolwie'
option dns '1'
option ip '192.168.1.141'
config host
option mac 'D4:25:8B:23:33:BD'
option dns '1'
option name 'pc-sluzbowy-karolina'
option duid '0001000126c44c6980ce6221092e'
option ip '192.168.1.12'
config host
option mac 'B4:D5:BD:50:D3:95'
option dns '1'
option name 'pc-kiano'
option duid '00041fabf2a61458bdcf93d818c915b836ad'
option ip '192.168.1.13'
config host
option mac '64:90:C1:00:23:B5'
option name 'roborock'
option dns '1'
option ip '192.168.1.160'
config host
option mac 'AC:CF:23:B3:D4:94'
option name 'ferguson-hub'
option dns '1'
option ip '192.168.1.180'
config host
option mac 'A0:9D:C1:9B:B9:5D'
option name 'ferguson-free-bird'
option dns '1'
option ip '192.168.1.181'
uci export wireless:
package wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option path 'pci0000:00/0000:00:00.0'
option htmode 'VHT80'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option key 'xxxxxxxxxx'
option ssid 'srdz_5ghz'
option encryption 'psk2'
config wifi-device 'radio1'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'platform/ahb/18100000.wmac'
option htmode 'HT20'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option key 'xxxxxxxxxx'
option ssid 'srdz_2.4ghz'
option encryption 'psk2'
config wifi-iface 'wifinet2'
option ssid 'srdz_smart_home'
option encryption 'psk2'
option device 'radio1'
option mode 'ap'
option key 'xxxxxxxxxx'
option network 'lan'
Thanks.