Wifi device connect disconnect issue

hello openwrt Team,
After disconnecting wifi device, still entry of wif device shown in "iw dev wlan0/1 station dump".Due, to this we are not able to detect wifi device is disconnected or not and also ARP has shown some time unreliable behavior(regarding connecting 0x2/disconnect flag 0x0).
Can you please, help me to resolve the wifi device issue or suggest any way to find out wifi device disconnect issue?

Can I find wifi device gets disconnected using inactive time found in iw station dump.

Can you scrape the log for the final disconnection messages?