net: l2: wifi: Fix PHY rate display
The WPA supplicant already converts this to Mbps. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
This commit is contained in:
parent
bff3874eaf
commit
b28f246f53
2 changed files with 2 additions and 4 deletions
|
|
@ -696,7 +696,7 @@ struct wifi_iface_status {
|
|||
unsigned short beacon_interval;
|
||||
/** is TWT capable? */
|
||||
bool twt_capable;
|
||||
/** The current 802.11 PHY TX data rate (in Kbps) */
|
||||
/** The current 802.11 PHY TX data rate (in Mbps) */
|
||||
int current_phy_tx_rate;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1154,9 +1154,7 @@ static int cmd_wifi_status(const struct shell *sh, size_t argc, char *argv[])
|
|||
PR("DTIM: %d\n", status.dtim_period);
|
||||
PR("TWT: %s\n",
|
||||
status.twt_capable ? "Supported" : "Not supported");
|
||||
PR("Current PHY TX rate (Mbps) : %d.%03d\n",
|
||||
status.current_phy_tx_rate / 1000,
|
||||
status.current_phy_tx_rate % 1000);
|
||||
PR("Current PHY TX rate (Mbps) : %d\n", status.current_phy_tx_rate);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue