I have mt7628-based device with both AP and STA configured; working. In case, the upstream AP is powered off, my device automatically retries continously to re-connect, flooding the log with
Sat Apr 19 15:39:28 2025 daemon.notice hostapd: handle_probe_req: send failed
Sat Apr 19 15:39:28 2025 daemon.notice hostapd: handle_probe_req: send failed
Sat Apr 19 15:39:28 2025 daemon.notice hostapd: handle_probe_req: send failed
Sat Apr 19 15:39:28 2025 daemon.notice hostapd: handle_probe_req: send failed
Although this is standard behaviour, it makes it very hard to connect to another upstream AP instead.
So, I would like to temp disable the auto scan of my STA using wpa_cli, which provides a suitable cmd: "sta_autoconnect 0/1". However, I have absolutely no idea how to enter this cmd either manually or from a script.
I.e.
root@mydevice:~# wpa_cli 'STA_AUTOCONNECT'
Selected interface 'global'
Invalid STA_AUTOCONNECT command - at least 1 argument is required.
root@mydevice:~# wpa_cli 'STA_AUTOCONNECT 0'
Selected interface 'global'
Unknown command 'STA_AUTOCONNECT 0'
Same result both for wpa_basic, and hostapd_basic/wpa_supplicant.
Any idea how to do it from shell script ?