I was wondering if I can detect the disconnection of a station (client) that was connected to an access-point created using dnsmasq and hostapd on the wlan0 interface.
So far, the best solution I have found is to use the following command
iw dev wlan0 station dump
The problem is that when I unplug the cable of the connected device, the command is still showing the device as connected while increasing the "inactive time" value.
PS. the connected devices are ESP8266 modules.
Any tips are appreciated. Thanks!