Lines Matching full:ftm
183 result.ftm.burst_index = mvm->ftm_initiator.responses[i]; in iwl_mvm_ftm_restart()
341 IWL_ERR(mvm, "Unsupported BW in FTM request (%d)\n", in iwl_mvm_ftm_target_chandef_v1()
392 IWL_ERR(mvm, "Unsupported BW in FTM request (%d)\n", in iwl_mvm_ftm_target_chandef_v2()
398 if (peer->ftm.trigger_based || peer->ftm.non_trigger_based) in iwl_mvm_ftm_target_chandef_v2()
422 cpu_to_le16(peer->ftm.burst_period); in iwl_mvm_ftm_put_target_v2()
423 target->samples_per_burst = peer->ftm.ftms_per_burst; in iwl_mvm_ftm_put_target_v2()
424 target->num_of_bursts = peer->ftm.num_bursts_exp; in iwl_mvm_ftm_put_target_v2()
425 target->measure_type = 0; /* regular two-sided FTM */ in iwl_mvm_ftm_put_target_v2()
426 target->retries_per_sample = peer->ftm.ftmr_retries; in iwl_mvm_ftm_put_target_v2()
427 target->asap_mode = peer->ftm.asap; in iwl_mvm_ftm_put_target_v2()
430 if (peer->ftm.request_lci) in iwl_mvm_ftm_put_target_v2()
432 if (peer->ftm.request_civicloc) in iwl_mvm_ftm_put_target_v2()
450 if (peer->ftm.asap) in iwl_mvm_ftm_set_target_flags()
453 if (peer->ftm.request_lci) in iwl_mvm_ftm_set_target_flags()
456 if (peer->ftm.request_civicloc) in iwl_mvm_ftm_set_target_flags()
467 if (peer->ftm.trigger_based) in iwl_mvm_ftm_set_target_flags()
469 else if (peer->ftm.non_trigger_based) in iwl_mvm_ftm_set_target_flags()
472 if ((peer->ftm.trigger_based || peer->ftm.non_trigger_based) && in iwl_mvm_ftm_set_target_flags()
473 peer->ftm.lmr_feedback) in iwl_mvm_ftm_set_target_flags()
484 cpu_to_le16(peer->ftm.burst_period); in iwl_mvm_ftm_put_target_common()
485 target->samples_per_burst = peer->ftm.ftms_per_burst; in iwl_mvm_ftm_put_target_common()
486 target->num_of_bursts = peer->ftm.num_bursts_exp; in iwl_mvm_ftm_put_target_common()
487 target->ftmr_max_retries = peer->ftm.ftmr_retries; in iwl_mvm_ftm_put_target_common()
553 if (sta->mfp && (peer->ftm.trigger_based || in iwl_mvm_ftm_set_sta()
554 peer->ftm.non_trigger_based)) in iwl_mvm_ftm_set_sta()
605 IWL_ERR(mvm, "FTM range request command failure, status: %u\n", in iwl_mvm_ftm_send_cmd()
930 if (peer->ftm.trigger_based || peer->ftm.non_trigger_based) in iwl_mvm_ftm_start_v13()
931 target->bss_color = peer->ftm.bss_color; in iwl_mvm_ftm_start_v13()
933 if (peer->ftm.non_trigger_based) { in iwl_mvm_ftm_start_v13()
965 cpu_to_le16(peer->ftm.burst_period); in iwl_mvm_ftm_put_target_v10()
966 target->samples_per_burst = peer->ftm.ftms_per_burst; in iwl_mvm_ftm_put_target_v10()
967 target->num_of_bursts = peer->ftm.num_bursts_exp; in iwl_mvm_ftm_put_target_v10()
987 if (peer->ftm.non_trigger_based) { in iwl_mvm_ftm_put_target_v10()
1118 IWL_ERR(mvm, "failed to abort FTM process\n"); in iwl_mvm_ftm_abort()
1163 res->ftm.lci_len = entry->lci_len; in iwl_mvm_ftm_get_lci_civic()
1164 res->ftm.lci = entry->buf; in iwl_mvm_ftm_get_lci_civic()
1168 res->ftm.civicloc_len = entry->civic_len; in iwl_mvm_ftm_get_lci_civic()
1169 res->ftm.civicloc = entry->buf + entry->lci_len; in iwl_mvm_ftm_get_lci_civic()
1189 IWL_ERR(mvm, "FTM range response invalid\n"); in iwl_mvm_ftm_range_resp_valid()
1200 s64 rtt_avg, rtt = res->ftm.rtt_avg; in iwl_mvm_ftm_rtt_smoothing()
1266 res->ftm.rtt_avg = rtt_avg; in iwl_mvm_ftm_rtt_smoothing()
1273 res->ftm.rtt_avg = rtt_avg; in iwl_mvm_ftm_rtt_smoothing()
1286 s64 rtt_avg = div_s64(res->ftm.rtt_avg * 100, 6666); in iwl_mvm_debug_range_resp()
1292 IWL_DEBUG_INFO(mvm, "\tburst index: %d\n", res->ftm.burst_index); in iwl_mvm_debug_range_resp()
1293 IWL_DEBUG_INFO(mvm, "\tsuccess num: %u\n", res->ftm.num_ftmr_successes); in iwl_mvm_debug_range_resp()
1294 IWL_DEBUG_INFO(mvm, "\trssi: %d\n", res->ftm.rssi_avg); in iwl_mvm_debug_range_resp()
1295 IWL_DEBUG_INFO(mvm, "\trssi spread: %d\n", res->ftm.rssi_spread); in iwl_mvm_debug_range_resp()
1296 IWL_DEBUG_INFO(mvm, "\trtt: %lld\n", res->ftm.rtt_avg); in iwl_mvm_debug_range_resp()
1297 IWL_DEBUG_INFO(mvm, "\trtt var: %llu\n", res->ftm.rtt_variance); in iwl_mvm_debug_range_resp()
1298 IWL_DEBUG_INFO(mvm, "\trtt spread: %llu\n", res->ftm.rtt_spread); in iwl_mvm_debug_range_resp()
1350 WARN_ONCE(1, "FTM: unsupported range response version %u", ver); in iwl_mvm_ftm_resp_size_validation()
1431 "Unknown address (%pM, target #%d) in FTM response\n", in iwl_mvm_ftm_range_resp()
1445 result.ftm.failure_reason = in iwl_mvm_ftm_range_resp()
1450 result.ftm.failure_reason = in iwl_mvm_ftm_range_resp()
1452 result.ftm.busy_retry_time = fw_ap->refusal_period; in iwl_mvm_ftm_range_resp()
1456 result.ftm.failure_reason = in iwl_mvm_ftm_range_resp()
1464 result.ftm.burst_index = mvm->ftm_initiator.responses[peer_idx]; in iwl_mvm_ftm_range_resp()
1466 result.ftm.rssi_avg = fw_ap->rssi; in iwl_mvm_ftm_range_resp()
1467 result.ftm.rssi_avg_valid = 1; in iwl_mvm_ftm_range_resp()
1468 result.ftm.rssi_spread = fw_ap->rssi_spread; in iwl_mvm_ftm_range_resp()
1469 result.ftm.rssi_spread_valid = 1; in iwl_mvm_ftm_range_resp()
1470 result.ftm.rtt_avg = (s32)le32_to_cpu(fw_ap->rtt); in iwl_mvm_ftm_range_resp()
1471 result.ftm.rtt_avg_valid = 1; in iwl_mvm_ftm_range_resp()
1472 result.ftm.rtt_variance = le32_to_cpu(fw_ap->rtt_variance); in iwl_mvm_ftm_range_resp()
1473 result.ftm.rtt_variance_valid = 1; in iwl_mvm_ftm_range_resp()
1474 result.ftm.rtt_spread = le32_to_cpu(fw_ap->rtt_spread); in iwl_mvm_ftm_range_resp()
1475 result.ftm.rtt_spread_valid = 1; in iwl_mvm_ftm_range_resp()
1510 sizeof(mgmt->u.action.u.ftm); in iwl_mvm_ftm_lc_notif()
1519 ies = mgmt->u.action.u.ftm.variable; in iwl_mvm_ftm_lc_notif()