Skip to content

Conversation

g-goessel
Copy link

In order to obtain the RX and TX bitrates from the kernel netlink we need to open a second info socket to get the station data. The values are formatted like "1.9Gb/s" and then exposed as rx_bitrate and tx_bitrate. This code is closely following the iw implementation.

Here's what it looks like in the tooltip.

The config is "tooltip-format-wifi": "{essid} ({frequency} GHz)\ntxBitrate: {txBitrate}\nrxBitrate: {rxBitrate}\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}",

2025-07-02T20:38:27,056820551+02:00

In order to obtain the RX and TX bitrates from the kernel netlink we need to open a second info socket to get the station data. The values are formatted like "1.9Gb/s" and then exposed as `rx_bitrate` and `tx_bitrate`.
This code is closely following the `iw` implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant