After leaving my phone inactive for sometime, it disconnects itself from the internet (still connected to the wifi). I cannot access my main router during this time (192.168.1.1) but can access the extender I am connected to (192.168.1.2). I fix this temporarily by toggling the wifi setting off and then back on in my phone. I immediately gain access to the internet as well as the main router. This seems to happen only on WLAN. Ethernet seems to be fine as of now. I can't seem to find the reason in system logs, but when I turn off wifi on my phone it shows AP-STA-Disconnected. The system log when doing the reconnection:
Tue Mar 7 10:06:55 2023 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED xx:xx:xx:xx:xx:xx
Tue Mar 7 10:06:55 2023 daemon.info hostapd: wlan0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: disassociated
Tue Mar 7 10:06:56 2023 daemon.info hostapd: wlan0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: authenticated
Tue Mar 7 10:06:56 2023 daemon.info hostapd: wlan0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: associated (aid 1)
Tue Mar 7 10:06:56 2023 daemon.notice hostapd: wlan0: AP-STA-CONNECTED xx:xx:xx:xx:xx:xx
Tue Mar 7 10:06:56 2023 daemon.info hostapd: wlan0: STA xx:xx:xx:xx:xx:xx WPA: pairwise key handshake completed (RSN)
Tue Mar 7 10:06:56 2023 daemon.notice hostapd: wlan0: EAPOL-4WAY-HS-COMPLETED xx:xx:xx:xx:xx:xx
Tue Mar 7 10:06:56 2023 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan) 192.168.1.1xx xx:xx:xx:xx:xx:xx
Tue Mar 7 10:06:56 2023 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan) 192.168.1.1xx xx:xx:xx:xx:xx:xx
Edit: This also happens on my other phone, both of them are iPhones (is this an iOS issue?)
We need a lot more info... let's start with the configuration:
Please 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:
I'm not an expert on the wds configuration elements, but I have noticed this:
the devices should not be specified here... the association between a network interface and the SSID must only be made in the wireless config file (with the option network in the wifi-iface definition). The wlan hardware should never be referenced in the network config file.
I myself have no clue on what I've done (new to OpenWRT). I wanted Network_5GHz through ethernet only (to my laptop) and the 2.4GHz through WLAN (for other devices like my phone). The configuration I have done was a trial and error till I got everything I wanted. Sadly it is the disconnection from the internet that I am facing when leaving my phone switched off for a while. I have made a backup so I am ready to modify whatever is needed. If I have to remove a device from a config, can I have a guide on modifying the configuration?
I did a reset and restored the config from the backup made. Currently I haven't experienced any disconnections (hopefully not). I will update on this in a few days if the issue does not yet happen or if it does. Thank you!
Sadly the issue still persists. But just by toggling WiFi settings on my phone, I immediately gain access to the internet. I can't seem to find the root cause for this as logs aren't showing the part when the phone loses internet access. But toggling the WiFi off in the phone results in AP-STA-DISCONNECTED as expected, and does the opposite when toggling it back on.
I might have solved the issue by following the guide here. I guess I may have done the configuring wrong and basically this guide has a similar end result as my expectation (extending WiFi on areas with less coverage) but I did connect the extender to the router wirelessly. Regardless I will update if anything goes wrong. Thank you!