Open joshuahaertel opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I have the same problem. Did you find a fix?
Because I was originally in a pinch, I just made the network public and used a very strong password. As mentioned in the original comment, I suspect you can modify this:
To be something like this:
local SSID="$(ap_scanner_ssid)"
iwlist "$WIFI_IFACE" scanning essid $SSID | grep '^[[:space:]]*ESSID:' | grep -v '""' | cut -d ":" -f2
Description
My wifi network is hidden. I am able to successfully connect to it. Occasionally my access point restarts when there is a lot of network traffic. Most of my camera's reconnect without a problem. Often one of them will not reconnect though and the camera remains in AP mode.
What did you do to debug the issue
After looking at the code, it looks like that is because it passes a WPA station timeout and when the AP mode kicks in the polling works by checking for an SSID, which it will never find: https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/f1cf7dad8b818cda9b64d4b139ae1398a63924e6/firmware_mod/scripts/wifi.sh#L175-L194
Looking at the
iwlist
command, it looks like one way to fix this might be to include the ssid in the scan calliwlist wlan0 scanning essid [hidden-network]
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/f1cf7dad8b818cda9b64d4b139ae1398a63924e6/firmware_mod/scripts/wifi.sh#L172Evidence
Wifi logs from /system/sdcard/log/wifi
Contribute Back
I will attempt a fix this month and make a PR if it is successful.