Skip to content

Commit

Permalink
net: wifi: fix ap status when enabled
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
MaochenWang1 authored and kartben committed Dec 16, 2024
1 parent b5b3c49 commit 91c4482
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/zephyr/net/wifi_mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down
3 changes: 3 additions & 0 deletions subsys/net/l2/wifi/wifi_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 91c4482

Please sign in to comment.