|
|
deb259 |
From a5c259eba75a77abe8ae7c2f3661d8e523a655a1 Mon Sep 17 00:00:00 2001
|
|
|
deb259 |
From: Eugene Syromiatnikov <esyr@redhat.com>
|
|
|
deb259 |
Date: Thu, 25 Jul 2019 13:52:32 +0200
|
|
|
deb259 |
Subject: [PATCH 4/7] Revert "iwlwifi: mvm: add debug prints for FTM"
|
|
|
deb259 |
|
|
|
deb259 |
This reverts commit 937b10c0de68c56512fb8cd484af3c0b356fc09e.
|
|
|
deb259 |
---
|
|
|
deb259 |
.../net/wireless/intel/iwlwifi/mvm/ftm-initiator.c | 27 ----------------------
|
|
|
deb259 |
1 file changed, 27 deletions(-)
|
|
|
deb259 |
|
|
|
deb259 |
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c b/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c
|
|
|
deb259 |
index e9822a3ec373..c1d9703ab40c 100644
|
|
|
deb259 |
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c
|
|
|
deb259 |
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c
|
|
|
deb259 |
@@ -457,27 +457,6 @@ static int iwl_mvm_ftm_range_resp_valid(struct iwl_mvm *mvm, u8 request_id,
|
|
|
deb259 |
return 0;
|
|
|
deb259 |
}
|
|
|
deb259 |
|
|
|
deb259 |
-static void iwl_mvm_debug_range_resp(struct iwl_mvm *mvm, u8 index,
|
|
|
deb259 |
- struct cfg80211_pmsr_result *res)
|
|
|
deb259 |
-{
|
|
|
deb259 |
- s64 rtt_avg = res->ftm.rtt_avg * 100;
|
|
|
deb259 |
-
|
|
|
deb259 |
- do_div(rtt_avg, 6666);
|
|
|
deb259 |
-
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "entry %d\n", index);
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "\tstatus: %d\n", res->status);
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "\tBSSID: %pM\n", res->addr);
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "\thost time: %llu\n", res->host_time);
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "\tburst index: %hhu\n", res->ftm.burst_index);
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "\tsuccess num: %u\n", res->ftm.num_ftmr_successes);
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "\trssi: %d\n", res->ftm.rssi_avg);
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "\trssi spread: %hhu\n", res->ftm.rssi_spread);
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "\trtt: %lld\n", res->ftm.rtt_avg);
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "\trtt var: %llu\n", res->ftm.rtt_variance);
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "\trtt spread: %llu\n", res->ftm.rtt_spread);
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "\tdistance: %lld\n", rtt_avg);
|
|
|
deb259 |
-}
|
|
|
deb259 |
-
|
|
|
deb259 |
void iwl_mvm_ftm_range_resp(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb)
|
|
|
deb259 |
{
|
|
|
deb259 |
struct iwl_rx_packet *pkt = rxb_addr(rxb);
|
|
|
deb259 |
@@ -511,10 +490,6 @@ void iwl_mvm_ftm_range_resp(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb)
|
|
|
deb259 |
last_in_batch = fw_resp_v5->last_in_batch;
|
|
|
deb259 |
}
|
|
|
deb259 |
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "Range response received\n");
|
|
|
deb259 |
- IWL_DEBUG_INFO(mvm, "request id: %lld, num of entries: %hhu\n",
|
|
|
deb259 |
- mvm->ftm_initiator.req->cookie, num_of_aps);
|
|
|
deb259 |
-
|
|
|
deb259 |
for (i = 0; i < num_of_aps && i < IWL_MVM_TOF_MAX_APS; i++) {
|
|
|
deb259 |
struct cfg80211_pmsr_result result = {};
|
|
|
deb259 |
struct iwl_tof_range_rsp_ap_entry_ntfy *fw_ap;
|
|
|
deb259 |
@@ -589,8 +564,6 @@ void iwl_mvm_ftm_range_resp(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb)
|
|
|
deb259 |
cfg80211_pmsr_report(mvm->ftm_initiator.req_wdev,
|
|
|
deb259 |
mvm->ftm_initiator.req,
|
|
|
deb259 |
&result, GFP_KERNEL);
|
|
|
deb259 |
-
|
|
|
deb259 |
- iwl_mvm_debug_range_resp(mvm, i, &result);
|
|
|
deb259 |
}
|
|
|
deb259 |
|
|
|
deb259 |
if (last_in_batch) {
|
|
|
deb259 |
--
|
|
|
deb259 |
2.13.6
|
|
|
deb259 |
|