The logs suggest the router has been restarted.
So maybe it's not a problem that "the wifi stops working" but that the router is restarting itself over and over for some reason.
Oh I see, thank you for clarifying!
I logged in with SSH, and I used logread -f. I had enabled wifi N already. I then enabled OpenWrt default wifi AC on and off to generate logs and see if it was working, and then I saw that wifi n connection disconnected, and the router restarted... This is the log from SSH just before the router restarted . Any ideas? Thank you!
"
logread -f
Sun Apr 13 10:29:00 2025 daemon.notice netifd: radio1 (6104): WARNING: Variable 'data' does not exist or is not an array/object
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.424460] ath: EEPROM regdomain: 0x8268
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.424518] ath: EEPROM indicates we should expect a country code
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.427575] ath: doing EEPROM country->regdmn map search
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.433563] ath: country maps to regdmn code: 0x37
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.438971] ath: Country alpha2 being used: PL
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.443535] ath: Regpair used: 0x37
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.447986] ath: regdomain 0x8268 dynamically updated by user
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.451385] ath: EEPROM regdomain: 0x8268
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.457282] ath: EEPROM indicates we should expect a country code
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.461251] ath: doing EEPROM country->regdmn map search
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.467350] ath: country maps to regdmn code: 0x37
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.472703] ath: Country alpha2 being used: PL
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.477335] ath: Regpair used: 0x37
Sun Apr 13 10:29:01 2025 kern.debug kernel: [ 971.481728] ath: regdomain 0x8268 dynamically updated by user
Sun Apr 13 10:29:02 2025 daemon.notice hostapd: Set new config for phy phy1:
Sun Apr 13 10:29:02 2025 daemon.notice wpa_supplicant[1757]: Set new config for phy phy1
Sun Apr 13 10:29:02 2025 daemon.notice wpa_supplicant[1757]: Set new config for phy phy1
Sun Apr 13 10:29:02 2025 daemon.notice hostapd: Set new config for phy phy1: /path/to/hostapd-phy1.conf
Sun Apr 13 10:29:02 2025 daemon.notice hostapd: Restart interface for phy phy1
Sun Apr 13 10:29:03 2025 daemon.notice hostapd: Configuration file: data: driver=nl80211 logger_syslog=127 logger_syslog_level=2 logger_stdout=127 logger_stdout_level=2 country_code=PL ieee80211d=1 ieee80211h=1 hw_mode=a beacon_int=100 stationary_ap=1 chanlist=36 tx_queue_data2_burst=2.0 #num_global_macaddr=1 #macaddr_base= ieee80211n=1 ht_coex=0 ht_capab=[HT40+][LDPC][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935][DSSS_CCK-40] ieee80211ac=1 vht_oper_chwidth=1 vht_oper_centr_freq_seg0_idx=42 vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][SU-BEAMFORMER][SU-BEAMFORMEE][MU-BEAMFORMER][MU-BEAMFORMEE][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC-1][SOUNDING-DIMENSION-2][BF-ANTENNA-3][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7] channel=36 interface=phy1-ap0 bssid=xx:xx:xx:xx:xx:xx ctrl_interface=/path/to/hostapd ap_isolate=1 bss_load_update_period=60 chan_util_avg_period=600 disassoc_low_ack=0 skip_inactivity_poll=0 preamble=1 wmm_enabled=1 ignore_broadcast_ssid=0 uapsd_advertisement_enabled=1 utf8_ssid=1 multi_ap=0 auth_a
Sun Apr 13 10:29:04 2025 kern.info kernel: [ 974.780506] br-lan: port 5(phy1-ap0) entered blocking state
Sun Apr 13 10:29:04 2025 kern.info kernel: [ 974.780570] br-lan: port 5(phy1-ap0) entered disabled state
Sun Apr 13 10:29:04 2025 kern.info kernel: [ 974.785170] ath10k_ahb a800000.wifi phy1-ap0: entered allmulticast mode
Sun Apr 13 10:29:04 2025 kern.info kernel: [ 974.790906] ath10k_ahb a800000.wifi phy1-ap0: entered promiscuous mode
Sun Apr 13 10:29:04 2025 kern.info kernel: [ 974.797385] br-lan: port 5(phy1-ap0) entered blocking state
Sun Apr 13 10:29:04 2025 kern.info kernel: [ 974.803670] br-lan: port 5(phy1-ap0) entered forwarding state
Sun Apr 13 10:29:04 2025 kern.info kernel: [ 974.809890] br-lan: port 5(phy1-ap0) entered disabled state
Sun Apr 13 10:29:04 2025 daemon.notice hostapd: phy1-ap0: interface state UNINITIALIZED->COUNTRY_UPDATE
Sun Apr 13 10:29:04 2025 daemon.notice hostapd: phy1-ap0: interface state COUNTRY_UPDATE->HT_SCAN
Sun Apr 13 10:29:04 2025 daemon.notice netifd: Wireless device 'radio1' is now up
Sun Apr 13 10:29:05 2025 daemon.notice netifd: Network device 'phy1-ap0' link is up
Sun Apr 13 10:29:05 2025 kern.info kernel: [ 975.356673] br-lan: port 5(phy1-ap0) entered blocking state
Sun Apr 13 10:29:05 2025 kern.info kernel: [ 975.356740] br-lan: port 5(phy1-ap0) entered forwarding state
Sun Apr 13 10:29:05 2025 daemon.notice hostapd: phy1-ap0: interface state HT_SCAN->ENABLED
Sun Apr 13 10:29:05 2025 daemon.notice hostapd: phy1-ap0: AP-ENABLED
Sun Apr 13 10:29:08 2025 daemon.notice ksmbd: Stopping Ksmbd userspace service.
Sun Apr 13 10:29:08 2025 daemon.notice ksmbd: Starting Ksmbd userspace service.
Sun Apr 13 10:29:09 2025 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Sun Apr 13 10:29:09 2025 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 2 names
Sun Apr 13 10:29:09 2025 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Sun Apr 13 10:29:10 2025 kern.info kernel: [ 980.034631] ath10k_ahb a800000.wifi phy1-ap0: left allmulticast mode
Sun Apr 13 10:29:10 2025 kern.info kernel: [ 980.034719] ath10k_ahb a800000.wifi phy1-ap0: left promiscuous mode
Sun Apr 13 10:29:10 2025 kern.info kernel: [ 980.040385] br-lan: port 5(phy1-ap0) entered disabled state
Sun Apr 13 10:29:10 2025 daemon.notice hostapd: Set new config for phy phy1:
Sun Apr 13 10:29:10 2025 daemon.notice hostapd: Remove interface 'phy1'
Sun Apr 13 10:29:10 2025 daemon.notice hostapd: phy1-ap0: interface state ENABLED->DISABLED
Sun Apr 13 10:29:10 2025 daemon.notice hostapd: phy1-ap0: AP-DISABLED
Sun Apr 13 10:29:10 2025 daemon.notice hostapd: phy1-ap0: CTRL-EVENT-TERMINATING
Sun Apr 13 10:29:10 2025 daemon.err hostapd: rmdir[ctrl_interface=/path/to/hostapd]: Permission denied
Sun Apr 13 10:29:10 2025 daemon.notice hostapd: nl80211: deinit ifname=phy1-ap0 disabled_11b_rates=0
Sun Apr 13 10:29:10 2025 daemon.notice hostapd: nl80211: Failed to remove interface phy1-ap0 from bridge br-lan: Invalid argument
Sun Apr 13 10:29:10 2025 kern.warn kernel: [ 980.335956] ath10k_ahb a800000.wifi: peer-unmap-event: unknown peer id 1
Sun Apr 13 10:29:10 2025 daemon.notice wpa_supplicant[1757]: Set new config for phy phy1
Sun Apr 13 10:29:10 2025 daemon.notice netifd: Wireless device 'radio1' is now down
Sun Apr 13 10:29:13 2025 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Sun Apr 13 10:29:13 2025 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 2 names
Sun Apr 13 10:29:13 2025 daemon.info dnsmasq-dhcp[1]: read /etc/ethers - 0 addresses
Sun Apr 13 10:29:13 2025 daemon.notice ksmbd: Stopping Ksmbd userspace service.
Sun Apr 13 10:29:13 2025 daemon.notice ksmbd: Starting Ksmbd userspace service.
client_loop: send disconnect: Broken pipe
"