Lines Matching refs:it2
343 for (nl_iterator it2(sc_data); it2.has_next(); it2.next()) { in parseScanResults() local
344 int type = it2.get_type(); in parseScanResults()
346 strncpy(result->ssid, (char *) it2.get_data(), it2.get_len()); in parseScanResults()
347 result->ssid[it2.get_len()] = 0; in parseScanResults()
349 memcpy(result->bssid, (byte *) it2.get_data(), sizeof(mac_addr)); in parseScanResults()
351 result->ts = it2.get_u64(); in parseScanResults()
353 result->ts = it2.get_u16(); in parseScanResults()
355 result->rssi = it2.get_u8(); in parseScanResults()
357 result->rtt = it2.get_u64(); in parseScanResults()
359 result->rtt_sd = it2.get_u64(); in parseScanResults()
940 for (nl_iterator it2(it.get()); it2.has_next(); it2.next()) { in handleResponse() local
941 if (it2.get_type() == GSCAN_ATTRIBUTE_SCAN_ID) { in handleResponse()
942 scan_id = it2.get_u32(); in handleResponse()
944 } else if (it2.get_type() == GSCAN_ATTRIBUTE_SCAN_FLAGS) { in handleResponse()
945 flags = it2.get_u8(); in handleResponse()
947 } else if (it2.get_type() == GSCAN_ATTRIBUTE_NUM_OF_RESULTS) { in handleResponse()
948 num = it2.get_u32(); in handleResponse()
950 } else if (it2.get_type() == GSCAN_ATTRIBUTE_CH_BUCKET_BITMASK) { in handleResponse()
951 scan_ch_bucket_mask = it2.get_u32(); in handleResponse()
953 } else if (it2.get_type() == GSCAN_ATTRIBUTE_SCAN_RESULTS && num) { in handleResponse()
958 num = min(num, (int)(it2.get_len()/sizeof(wifi_gscan_result))); in handleResponse()
961 wifi_gscan_result_t *results = (wifi_gscan_result_t *)it2.get_data(); in handleResponse()