[rdk-b][mt7986][wifi-hal][Refactor getApWpsConfigurationState]
[Description]
Refactor getApWpsConfigurationState
[Release-log]
N/A
diff --git a/src/wifi/wifi_hal.c b/src/wifi/wifi_hal.c
index 911c825..452a479 100644
--- a/src/wifi/wifi_hal.c
+++ b/src/wifi/wifi_hal.c
@@ -5271,7 +5271,7 @@
snprintf(cmd, sizeof(cmd), "hostapd_cli -i %s%d get_config | grep wps_state | cut -d'=' -f2", AP_PREFIX, apIndex);
_syscmd(cmd, buf, sizeof(buf));
- if(!strcmp(buf, "configured"))
+ if(!strncmp(buf, "configured", 10))
snprintf(output_string, 32, "Configured");
WIFI_ENTRY_EXIT_DEBUG("Exiting %s:%d\n",__func__, __LINE__);