From 91c44822675dbf4670ffa27a164cf607d765e1f5 Mon Sep 17 00:00:00 2001 From: Maochen Wang Date: Mon, 16 Dec 2024 14:06:59 +0800 Subject: [PATCH] net: wifi: fix ap status when enabled Add WIFI_SAP_IFACE_NO_IR state to keep same as hostapd_iface_state, which is updated as the hostap upmerge. Signed-off-by: Maochen Wang --- include/zephyr/net/wifi_mgmt.h | 1 + subsys/net/l2/wifi/wifi_shell.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/include/zephyr/net/wifi_mgmt.h b/include/zephyr/net/wifi_mgmt.h index 64ac622518c..5bf56567356 100644 --- a/include/zephyr/net/wifi_mgmt.h +++ b/include/zephyr/net/wifi_mgmt.h @@ -1226,6 +1226,7 @@ enum wifi_sap_iface_state { WIFI_SAP_IFACE_ACS, WIFI_SAP_IFACE_HT_SCAN, WIFI_SAP_IFACE_DFS, + WIFI_SAP_IFACE_NO_IR, WIFI_SAP_IFACE_ENABLED }; diff --git a/subsys/net/l2/wifi/wifi_shell.c b/subsys/net/l2/wifi/wifi_shell.c index e55efae8f76..321596e9bf6 100644 --- a/subsys/net/l2/wifi/wifi_shell.c +++ b/subsys/net/l2/wifi/wifi_shell.c @@ -1195,6 +1195,9 @@ static int cmd_wifi_ap_status(const struct shell *sh, size_t argc, char *argv[]) case WIFI_SAP_IFACE_DFS: PR("State: %s\n", "DFS"); break; + case WIFI_SAP_IFACE_NO_IR: + PR("State: %s\n", "NO_IR"); + break; case WIFI_SAP_IFACE_ENABLED: PR("State: %s\n", "ENABLED"); break;