[BugFix][API-1253] fix lynq_get_ap_device_list&add log
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: YES
Change-Id: I1d31f6b1d5a4dbfe6ccd8701e1ba136ac2f8a3da
diff --git a/lib/liblynq-wifi6/libwifi6.c b/lib/liblynq-wifi6/libwifi6.c
index 3f0ad4d..5616276 100755
--- a/lib/liblynq-wifi6/libwifi6.c
+++ b/lib/liblynq-wifi6/libwifi6.c
@@ -1530,18 +1530,6 @@
*p = '\0';
}
return 0;
- }else{
- usleep( 10 * 1000);
- ret = exec_cmd(cmd, hostname, 32);
- if( ret == 0)
- {
- p= strchr(hostname, '\n');
- if(p != NULL )
- {
- *p = '\0';
- }
- return 0;
- }
}
hostname[0] = '\0';
RLOGE("---gethostbyaddr fail\n");
@@ -3589,6 +3577,7 @@
int lynq_get_ap_device_list(lynq_wifi_index_e idx, ap_info_s **ap, device_info_s ** list,int * len)
{
+ RLOGD("[wifi]-----enter lynq_get_ap_device_list");
int index, line_count;
device_info_s *dev_info;
const char *lynq_first_sta_cmd = "STA-FIRST";
@@ -3659,7 +3648,7 @@
dev_info->status = LYNQ_WIFI_STATUS_CONNECT;
free(bssid[index]);
}
-
+ RLOGD("[wifi]-----end lynq_get_ap_device_list");
return 0;
}