There is a parametr in wifi setting which checks is STA is still in range (connceted) max_inactivity
by default it is 300 seconds (evry 5 minutes) Station inactivity limit in seconds: If a station does not send anything in ap_max_inactivity seconds, an empty data frame is sent to it in order to verify whether it is still in range. If this frame is not ACKed, the station will be disassociated and then deauthenticated.
The qwestion is how do i do it myself ,can i send that polling command (empty frame ) and get the result (if station is connected or not )
Not by timer but when i need it any time and get result ?
maybe some kind of command via hostapd