Hi,
does anybody else miss signal quality value of wireless connection, in current wlan module? I find it quite common and practical, almost every status indicator AFAIK does support it (xmobar, i3status-rs), even original i3status from i3wm project itself.
Currently, wlan module uses netlink watcher to monitor changes on an interface(in Linux) to update its info. I didn't yet found equivalent watchdog API for signal strength changes. Doubt there is even any as it is a quite frequent event. I wrote a quick-hack solution using timing.Scheduler feeding linkSub.C channel in a given interval, like 5 seconds, to update status info.
Current Signal Level can be retrieved from iwconfig output (part of wireless_tools package like iwgetid), or from /proc/net/wireless virtual file, or even better from wifi client's StationInfo struct. RSSI is then calculated by linear interpolation, ie. 2 * (SignalLevel + 100) .
What approach would you suggest to implement above feature to fit best in current wlan module and for barista architecture?
Hi,
does anybody else miss signal quality value of wireless connection, in current wlan module? I find it quite common and practical, almost every status indicator AFAIK does support it (xmobar, i3status-rs), even original i3status from i3wm project itself.
Currently,
wlanmodule uses netlink watcher to monitor changes on an interface(in Linux) to update its info. I didn't yet found equivalent watchdog API for signal strength changes. Doubt there is even any as it is a quite frequent event. I wrote a quick-hack solution usingtiming.SchedulerfeedinglinkSub.Cchannel in a given interval, like 5 seconds, to update status info.Current Signal Level can be retrieved from
iwconfigoutput (part of wireless_tools package likeiwgetid), or from/proc/net/wirelessvirtual file, or even better from wifi client'sStationInfostruct. RSSI is then calculated by linear interpolation, ie.2 * (SignalLevel + 100).What approach would you suggest to implement above feature to fit best in current
wlanmodule and forbaristaarchitecture?