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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user