]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iwlwifi: mvm: fix 32-bit build in FTM
authorJohannes Berg <johannes.berg@intel.com>
Sun, 19 Dec 2021 09:14:18 +0000 (11:14 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 09:59:38 +0000 (10:59 +0100)
commitc47a27c42344fc51ae0ea712be47eaab3ec67d68
tree35d24ebe458783893655b801817f1ef5ec3aed97
parentda8ad709fd13c22f76b716b8fd0a706704dec10a
iwlwifi: mvm: fix 32-bit build in FTM

BugLink: https://bugs.launchpad.net/bugs/1959376
[ Upstream commit 8b0f92549f2c2458200935c12a2e2a6e80234cf5 ]

On a 32-bit build, the division here needs to be done
using do_div(), otherwise the compiler will try to call
a function that doesn't exist, thus failing to build.

Fixes: b68bd2e3143a ("iwlwifi: mvm: Add FTM initiator RTT smoothing logic")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211219111352.e56cbf614a4d.Ib98004ccd2c7a55fd883a8ea7eebd810f406dec6@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c