Lines Matching defs:scanResults
64 WifiScanResults *scanResults;
214 WifiScanResults *scanResults = NULL;
229 if (handlerArg == NULL || handlerArg->scanResults == NULL || handlerArg->ifName == NULL) {
233 scanResults = handlerArg->scanResults;
234 scanResult = &scanResults->scanResult[scanResults->num];
250 __LINE__, scanResults->num, scanResults->scanResultCapacity);
251 scanResults->num++;
252 if (scanResults->num == scanResults->scanResultCapacity) {
253 scanResults->scanResultCapacity += INIT_SCAN_RES_NUM;
255 newScanResult = (WifiScanResult *)OsalMemCalloc(sizeof(WifiScanResult) * (scanResults->scanResultCapacity));
258 scanResults->scanResultCapacity -= INIT_SCAN_RES_NUM;
259 scanResults->num = 0;
262 if (memcpy_s((void *)newScanResult, sizeof(WifiScanResult) * (scanResults->scanResultCapacity),
263 (void *)scanResults->scanResult, sizeof(WifiScanResult) * (scanResults->num)) != RET_CODE_SUCCESS) {
266 OsalMemFree(scanResults->scanResult);
267 scanResults->scanResult = newScanResult;
277 WifiScanResults scanResults = {0};
285 if (InitScanResults(&scanResults) != RET_CODE_SUCCESS) {
289 arg.scanResults = &scanResults;
297 WifiEventReport(ifName, WIFI_EVENT_SCAN_RESULTS, &scanResults);
298 HILOG_INFO(LOG_CORE, "%s: scanResults.num = %u", __FUNCTION__, scanResults.num);
299 FreeScanResults(&scanResults);
306 WifiScanResults scanResults = {0};
312 WifiEventReport(ifName, WIFI_EVENT_SCAN_ABORTED, &scanResults);