[BugFix][API-1270]fix run lynq_wifi_ap_start fail or return time more than 3 sec
Only Configure
Affected branch:MR3.0-xx && GSW3.0
Affected module:wifi
Is it addected on both ZXIC and MTK: only MTK
Self-test: Yes
Doc Update: NO
Change-Id: I5ae1791e848e139e0f60137cc5335f5e22df183e
diff --git a/src/lynq/lib/liblynq-wifi6/libwifi6.c b/src/lynq/lib/liblynq-wifi6/libwifi6.c
index 53b6704..46403da 100755
--- a/src/lynq/lib/liblynq-wifi6/libwifi6.c
+++ b/src/lynq/lib/liblynq-wifi6/libwifi6.c
@@ -2525,9 +2525,9 @@
printf("inner_check_ap_connected %d\n", retry_count);
usleep(250*1000);
- if ((strcmp(status, STATE_SCANNING) == 0)|| (strcmp(status, STATE_COMPLETED) == 0))
+ if (0 == inner_get_status_info(idx, &curr_state))
{
- if (strcmp(status, STATE_COMPLETED) == 0)
+ if ((strcmp(status, STATE_SCANNING) == 0)|| (strcmp(status, STATE_COMPLETED) == 0))
{
return 0;
}