Skip to content

Commit 2f088fa

Browse files
kapbhnashif
authored andcommitted
net: wifi: Add Current PHY rate
Current PHY rate It represents the current PHY rate of transfer of data in bits per second. It will a TX data rate. Signed-off-by: Kapil Bhatt <[email protected]>
1 parent 459a63b commit 2f088fa

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/zephyr/net/wifi_mgmt.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ struct wifi_iface_status {
522522
unsigned short beacon_interval;
523523
/** is TWT capable? */
524524
bool twt_capable;
525+
/** The current 802.11 PHY data rate */
526+
int current_phy_rate;
525527
};
526528

527529
/** @brief Wi-Fi power save parameters */

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ static int cmd_wifi_status(const struct shell *sh, size_t argc, char *argv[])
850850
PR("DTIM: %d\n", status.dtim_period);
851851
PR("TWT: %s\n",
852852
status.twt_capable ? "Supported" : "Not supported");
853+
PR("Current PHY rate : %d\n", status.current_phy_rate);
853854
}
854855

855856
return 0;

0 commit comments

Comments
 (0)