feat: Add wifi network link bitrate value

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.
This commit is contained in:
g_goessel
2026-04-01 12:12:04 +02:00
parent 1e965ccce0
commit 39656deab3
3 changed files with 109 additions and 3 deletions
+4
View File
@@ -196,6 +196,10 @@ Addressed by *network*
*{bandwidthTotalBytes}*: Instant total speed in bytes/seconds.
*{tx_bitrate}*: Link transmit bitrate (e.g., 866.7 Mb/s).
*{rx_bitrate}*: Link receive bitrate (e.g., 866.7 Mb/s).
*{icon}*: Icon, as defined in *format-icons*.
# EXAMPLES