Skip to content

Commit d609671

Browse files
committed
drivers: nrf_wifi: Fix TX rate in Mbps
The current_tx_rate will be in Kbps. It is showing wrong TX rate in wifi status. Need to convert tx_birate to Kbps. Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
1 parent 322da1d commit d609671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/wifi/nrf_wifi/src/wpa_supp_if.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ void nrf_wifi_wpa_supp_event_proc_get_sta(void *if_priv,
12711271

12721272
if (info->sta_info.valid_fields & NRF_WIFI_STA_INFO_TX_BITRATE_VALID) {
12731273
if (info->sta_info.tx_bitrate.valid_fields & NRF_WIFI_RATE_INFO_BITRATE_VALID) {
1274-
signal_info->data.current_tx_rate = info->sta_info.tx_bitrate.bitrate * 100;
1274+
signal_info->data.current_tx_rate = (unsigned long) info->sta_info.tx_bitrate.bitrate * 1000;
12751275
}
12761276
}
12771277
out:

0 commit comments

Comments
 (0)