Skip to content

Commit 91c4482

Browse files
MaochenWang1kartben
authored andcommitted
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 <[email protected]>
1 parent b5b3c49 commit 91c4482

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/zephyr/net/wifi_mgmt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ enum wifi_sap_iface_state {
12261226
WIFI_SAP_IFACE_ACS,
12271227
WIFI_SAP_IFACE_HT_SCAN,
12281228
WIFI_SAP_IFACE_DFS,
1229+
WIFI_SAP_IFACE_NO_IR,
12291230
WIFI_SAP_IFACE_ENABLED
12301231
};
12311232

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,6 +1195,9 @@ static int cmd_wifi_ap_status(const struct shell *sh, size_t argc, char *argv[])
11951195
case WIFI_SAP_IFACE_DFS:
11961196
PR("State: %s\n", "DFS");
11971197
break;
1198+
case WIFI_SAP_IFACE_NO_IR:
1199+
PR("State: %s\n", "NO_IR");
1200+
break;
11981201
case WIFI_SAP_IFACE_ENABLED:
11991202
PR("State: %s\n", "ENABLED");
12001203
break;

0 commit comments

Comments
 (0)