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:
parent
ff36d10333
commit
ec0b9ccbc1
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user