Wireless adapters uptime

I doubt it but:
Is there a command or script which will provide uptime for a Wireless SSID (2.4 GHz and 5.0 GHz)? In essence. I would like to know how long the Wireless adapters have been up and the last time they lost connection.
I have: Qualcomm Atheros QCA9880 802.11ac 5 Ghz
and MAC80211 802.11bgn 2.4 GHz.
Thank you for any assistance.

Well I don't know a script. But you are probably right that you have to craft it by your own. :smiley:

I would have tried to monitor a script/program starting/restarting if an interface is comming up or going down. E. g. dnsmasq:

ps -o start,cmd $(pgrep dnsmasq)

This would show the starttime of a process/dnsmasq. But ps and pgrep are limited/not available on OpenWrt. You could try to monitor the transfered bytes (cat /proc/net/dev | grep wlan0/1) on a device and if its resetted to 0 then you have your connection lost time and uptime.

But maybe another one has a better idea. There are many things thinkable to achive this.
Maybe you can utilize the lease time LuCI GUI is showing for clients (to see if clients renew lease time)? I don't know where LuCI is stroing those data.

1 Like

Thank you for the response,