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:
parent
b5b3c49365
commit
91c4482267
2 changed files with 4 additions and 0 deletions
|
@ -1226,6 +1226,7 @@ enum wifi_sap_iface_state {
|
||||||
WIFI_SAP_IFACE_ACS,
|
WIFI_SAP_IFACE_ACS,
|
||||||
WIFI_SAP_IFACE_HT_SCAN,
|
WIFI_SAP_IFACE_HT_SCAN,
|
||||||
WIFI_SAP_IFACE_DFS,
|
WIFI_SAP_IFACE_DFS,
|
||||||
|
WIFI_SAP_IFACE_NO_IR,
|
||||||
WIFI_SAP_IFACE_ENABLED
|
WIFI_SAP_IFACE_ENABLED
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1195,6 +1195,9 @@ static int cmd_wifi_ap_status(const struct shell *sh, size_t argc, char *argv[])
|
||||||
case WIFI_SAP_IFACE_DFS:
|
case WIFI_SAP_IFACE_DFS:
|
||||||
PR("State: %s\n", "DFS");
|
PR("State: %s\n", "DFS");
|
||||||
break;
|
break;
|
||||||
|
case WIFI_SAP_IFACE_NO_IR:
|
||||||
|
PR("State: %s\n", "NO_IR");
|
||||||
|
break;
|
||||||
case WIFI_SAP_IFACE_ENABLED:
|
case WIFI_SAP_IFACE_ENABLED:
|
||||||
PR("State: %s\n", "ENABLED");
|
PR("State: %s\n", "ENABLED");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue