Lines Matching full:ftm

183 		result.ftm.burst_index = mvm->ftm_initiator.responses[i];
345 IWL_ERR(mvm, "Unsupported BW in FTM request (%d)\n",
396 IWL_ERR(mvm, "Unsupported BW in FTM request (%d)\n",
402 if (peer->ftm.trigger_based || peer->ftm.non_trigger_based)
426 cpu_to_le16(peer->ftm.burst_period);
427 target->samples_per_burst = peer->ftm.ftms_per_burst;
428 target->num_of_bursts = peer->ftm.num_bursts_exp;
429 target->measure_type = 0; /* regular two-sided FTM */
430 target->retries_per_sample = peer->ftm.ftmr_retries;
431 target->asap_mode = peer->ftm.asap;
434 if (peer->ftm.request_lci)
436 if (peer->ftm.request_civicloc)
454 if (peer->ftm.asap)
457 if (peer->ftm.request_lci)
460 if (peer->ftm.request_civicloc)
471 if (peer->ftm.trigger_based)
473 else if (peer->ftm.non_trigger_based)
476 if ((peer->ftm.trigger_based || peer->ftm.non_trigger_based) &&
477 peer->ftm.lmr_feedback)
488 cpu_to_le16(peer->ftm.burst_period);
489 target->samples_per_burst = peer->ftm.ftms_per_burst;
490 target->num_of_bursts = peer->ftm.num_bursts_exp;
491 target->ftmr_max_retries = peer->ftm.ftmr_retries;
557 if (sta->mfp && (peer->ftm.trigger_based ||
558 peer->ftm.non_trigger_based))
609 IWL_ERR(mvm, "FTM range request command failure, status: %u\n",
933 if (peer->ftm.trigger_based || peer->ftm.non_trigger_based)
934 target->bss_color = peer->ftm.bss_color;
936 if (peer->ftm.non_trigger_based) {
968 cpu_to_le16(peer->ftm.burst_period);
969 target->samples_per_burst = peer->ftm.ftms_per_burst;
970 target->num_of_bursts = peer->ftm.num_bursts_exp;
990 if (peer->ftm.non_trigger_based) {
1119 IWL_ERR(mvm, "failed to abort FTM process\n");
1164 res->ftm.lci_len = entry->lci_len;
1165 res->ftm.lci = entry->buf;
1169 res->ftm.civicloc_len = entry->civic_len;
1170 res->ftm.civicloc = entry->buf + entry->lci_len;
1190 IWL_ERR(mvm, "FTM range response invalid\n");
1201 s64 rtt_avg, rtt = res->ftm.rtt_avg;
1267 res->ftm.rtt_avg = rtt_avg;
1274 res->ftm.rtt_avg = rtt_avg;
1287 s64 rtt_avg = div_s64(res->ftm.rtt_avg * 100, 6666);
1293 IWL_DEBUG_INFO(mvm, "\tburst index: %d\n", res->ftm.burst_index);
1294 IWL_DEBUG_INFO(mvm, "\tsuccess num: %u\n", res->ftm.num_ftmr_successes);
1295 IWL_DEBUG_INFO(mvm, "\trssi: %d\n", res->ftm.rssi_avg);
1296 IWL_DEBUG_INFO(mvm, "\trssi spread: %d\n", res->ftm.rssi_spread);
1297 IWL_DEBUG_INFO(mvm, "\trtt: %lld\n", res->ftm.rtt_avg);
1298 IWL_DEBUG_INFO(mvm, "\trtt var: %llu\n", res->ftm.rtt_variance);
1299 IWL_DEBUG_INFO(mvm, "\trtt spread: %llu\n", res->ftm.rtt_spread);
1351 WARN_ONCE(1, "FTM: unsupported range response version %u", ver);
1432 "Unknown address (%pM, target #%d) in FTM response\n",
1446 result.ftm.failure_reason =
1451 result.ftm.failure_reason =
1453 result.ftm.busy_retry_time = fw_ap->refusal_period;
1457 result.ftm.failure_reason =
1465 result.ftm.burst_index = mvm->ftm_initiator.responses[peer_idx];
1467 result.ftm.rssi_avg = fw_ap->rssi;
1468 result.ftm.rssi_avg_valid = 1;
1469 result.ftm.rssi_spread = fw_ap->rssi_spread;
1470 result.ftm.rssi_spread_valid = 1;
1471 result.ftm.rtt_avg = (s32)le32_to_cpu(fw_ap->rtt);
1472 result.ftm.rtt_avg_valid = 1;
1473 result.ftm.rtt_variance = le32_to_cpu(fw_ap->rtt_variance);
1474 result.ftm.rtt_variance_valid = 1;
1475 result.ftm.rtt_spread = le32_to_cpu(fw_ap->rtt_spread);
1476 result.ftm.rtt_spread_valid = 1;
1511 sizeof(mgmt->u.action.u.ftm);
1520 ies = mgmt->u.action.u.ftm.variable;