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 <maochen.wang@nxp.com>
This commit is contained in:
Maochen Wang 2024-12-16 14:06:59 +08:00 committed by Benjamin Cabé
commit 91c4482267
2 changed files with 4 additions and 0 deletions

View file

@ -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
};

View file

@ -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;