hostap: Add currnet PHY rate to status

Add current PHY rate to the wifi status.
It will a TX data rate in bits per second.

Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
This commit is contained in:
Kapil Bhatt 2024-08-26 17:12:23 +05:30 committed by Anas Nashif
parent ff36d10333
commit ec0b9ccbc1

View File

@ -953,6 +953,15 @@ int supplicant_status(const struct device *dev, struct wifi_iface_status *status
}
os_free(conn_info);
ret = wpa_drv_signal_poll(wpa_s, si);
if (!ret) {
status->current_phy_rate = si->current_txrate;
} else {
wpa_printf(MSG_WARNING, "%s: Failed to get signal info\n", __func__);
status->current_phy_rate = 0;
ret = 0;
}
} else {
ret = 0;
}