Blame SOURCES/0009-Revert-iwlwifi-fix-64-bit-division.patch

deb259
From 55be0dbc4aa21b2584afd83a676b0baed9934c2b Mon Sep 17 00:00:00 2001
deb259
From: Eugene Syromiatnikov <esyr@redhat.com>
deb259
Date: Thu, 25 Jul 2019 13:52:20 +0200
deb259
Subject: [PATCH 3/7] Revert "iwlwifi: fix 64-bit division"
deb259
deb259
This reverts commit 688cd8bd2c0fa9dc88e5ced55a73ddc79edf875d.
deb259
---
deb259
 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c | 4 +++-
deb259
 1 file changed, 3 insertions(+), 1 deletion(-)
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 94132cfd1f56..e9822a3ec373 100644
deb259
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c
deb259
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c
deb259
@@ -460,7 +460,9 @@ static int iwl_mvm_ftm_range_resp_valid(struct iwl_mvm *mvm, u8 request_id,
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 = div_s64(res->ftm.rtt_avg * 100, 6666);
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
-- 
deb259
2.13.6
deb259