Skip to content

Commit 1c54758

Browse files
rado17fabiobaltieri
authored andcommitted
wifi: shell: Print beacon interval and DTIM period
Print beacon interval and DTIM period as part of Wi-Fi status output. Signed-off-by: Ravi Dondaputi <[email protected]>
1 parent e71460c commit 1c54758

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/zephyr/net/wifi_mgmt.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ struct wifi_iface_status {
180180
enum wifi_security_type security;
181181
enum wifi_mfp_options mfp;
182182
int rssi;
183+
unsigned short dtim_period;
184+
unsigned char beacon_interval;
183185
};
184186

185187
struct wifi_ps_params {

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@ static int cmd_wifi_status(const struct shell *sh, size_t argc, char *argv[])
370370
shell_fprintf(sh, SHELL_NORMAL, "MFP: %s\n",
371371
wifi_mfp_txt(status.mfp));
372372
shell_fprintf(sh, SHELL_NORMAL, "RSSI: %d\n", status.rssi);
373+
shell_fprintf(sh, SHELL_NORMAL, "Beacon Interval: %d\n", status.beacon_interval);
374+
shell_fprintf(sh, SHELL_NORMAL, "DTIM: %d\n", status.dtim_period);
373375
}
374376

375377
return 0;

0 commit comments

Comments
 (0)