Linux/OpenWRT WiFi tip: hostapd, hostapd_cli, and CTRL_IFACE monitor: 111 - Connection refused
If you run
hostapd_cli -a /path/to/some/script.sh &, then later send a
kill -SIGTERM to that process,
hostapd will begin complaining, like so:
hostapd: wlan1: AP-STA-DISCONNECTED 00:11:22:33:44:55
hostapd: CTRL_IFACE monitor: 111 - Connection refused
hostapd: wlan1: STA 00:11:22:33:44:55 IEEE 802.11: disassociated
Do not panic.
hostapd will complain for a while, but it'll eventually automatically clean up monitor connections and stop complaining after some sort of timeout (5-10 minutes, or a few hours?).
It'd be nice if
hostapd_cli would properly cleanup on
SIGTERM, but it's not the end of the world, don't waste five hours trying to write a Bash wrapper around the interactive mode. Just let the warnings disappear.
The Vulpine Club is a friendly and welcoming community of foxes and their associates, friends, and fans! =^^=