Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Feature request: RSSI for wlan module #297

@dunrix

Description

@dunrix

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestmoduleCan affect user bars that use a specific built-in module

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions