mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 21:13:00 +02:00
statd: Add rx/tx bitrate to WiFi station operational data
Extend the WiFi station mode with rx-speed and tx-speed leaves, mirroring what already exists for AP mode connected stations. Display bitrates in 'show interface <wifi>' detailed view. Also standardize speed units to kbps/Mbps across the YANG model. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -70,6 +70,10 @@ def wifi_station(ifname):
|
||||
station_data['ssid'] = link['ssid']
|
||||
if link.get('rssi') is not None:
|
||||
station_data['rssi'] = link['rssi']
|
||||
if link.get('rx-speed') is not None:
|
||||
station_data['rx-speed'] = link['rx-speed']
|
||||
if link.get('tx-speed') is not None:
|
||||
station_data['tx-speed'] = link['tx-speed']
|
||||
|
||||
# Get scan results from wpa_supplicant (better scan support)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user