developer | 3b7aaa7 | 2022-07-15 11:55:52 +0800 | [diff] [blame] | 1 | From 969e24609034a30bb45321e3098ac7ed49d9ca6c Mon Sep 17 00:00:00 2001 |
| 2 | From: "howard.hsu" <howard-yh.hsu@mediatek.com> |
| 3 | Date: Wed, 23 Feb 2022 11:27:47 +0800 |
| 4 | Subject: [PATCH 18/18] [patch] HAL: enhance wifi_getApWpsConfigurationState() |
| 5 | |
| 6 | Change-Id: Ibecd442a3884d6b4f17b623ee5c696d04a7b9754 |
| 7 | --- |
| 8 | source/wifi/wifi_hal.c | 2 +- |
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 10 | |
| 11 | diff --git a/source/wifi/wifi_hal.c b/source/wifi/wifi_hal.c |
| 12 | index e44a9d02..13af7e36 100644 |
| 13 | --- a/source/wifi/wifi_hal.c |
| 14 | +++ b/source/wifi/wifi_hal.c |
| 15 | @@ -5181,7 +5181,7 @@ INT wifi_getApWpsConfigurationState(INT apIndex, CHAR *output_string) |
| 16 | snprintf(cmd, sizeof(cmd), "hostapd_cli -i %s%d get_config | grep wps_state | cut -d'=' -f2", AP_PREFIX, apIndex); |
| 17 | _syscmd(cmd, buf, sizeof(buf)); |
| 18 | |
| 19 | - if(!strcmp(buf, "configured")) |
| 20 | + if(!strncmp(buf, "configured", 10)) |
| 21 | snprintf(output_string, 32, "Configured"); |
| 22 | WIFI_ENTRY_EXIT_DEBUG("Exiting %s:%d\n",__func__, __LINE__); |
| 23 | |
| 24 | -- |
| 25 | 2.29.2 |
| 26 | |