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:
Joachim Wiberg
2026-01-24 19:17:48 +01:00
parent 496eda7eb2
commit 87a754eab1
3 changed files with 51 additions and 11 deletions
@@ -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: