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 <kapil.bhatt@nordicsemi.no>
diff --git a/include/zephyr/net/wifi_mgmt.h b/include/zephyr/net/wifi_mgmt.h
index 2c4eafb..17425b8 100644
--- a/include/zephyr/net/wifi_mgmt.h
+++ b/include/zephyr/net/wifi_mgmt.h
@@ -522,6 +522,8 @@
unsigned short beacon_interval;
/** is TWT capable? */
bool twt_capable;
+ /** The current 802.11 PHY data rate */
+ int current_phy_rate;
};
/** @brief Wi-Fi power save parameters */
diff --git a/subsys/net/l2/wifi/wifi_shell.c b/subsys/net/l2/wifi/wifi_shell.c
index 57be06f..4e22ead 100644
--- a/subsys/net/l2/wifi/wifi_shell.c
+++ b/subsys/net/l2/wifi/wifi_shell.c
@@ -850,6 +850,7 @@
PR("DTIM: %d\n", status.dtim_period);
PR("TWT: %s\n",
status.twt_capable ? "Supported" : "Not supported");
+ PR("Current PHY rate : %d\n", status.current_phy_rate);
}
return 0;