Commit 6d0b6b47 authored by Avraham Stern's avatar Avraham Stern Committed by Greg Kroah-Hartman

cfg80211: report measurement start TSF correctly

[ Upstream commit b6584202 ]

Instead of reporting the AP's TSF, host time was reported. Fix it.
Signed-off-by: default avatarAvraham Stern <avraham.stern@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent afe6a610
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
/* /*
* Copyright (C) 2018 Intel Corporation * Copyright (C) 2018 - 2019 Intel Corporation
*/ */
#ifndef __PMSR_H #ifndef __PMSR_H
#define __PMSR_H #define __PMSR_H
...@@ -446,7 +446,7 @@ static int nl80211_pmsr_send_result(struct sk_buff *msg, ...@@ -446,7 +446,7 @@ static int nl80211_pmsr_send_result(struct sk_buff *msg,
if (res->ap_tsf_valid && if (res->ap_tsf_valid &&
nla_put_u64_64bit(msg, NL80211_PMSR_RESP_ATTR_AP_TSF, nla_put_u64_64bit(msg, NL80211_PMSR_RESP_ATTR_AP_TSF,
res->host_time, NL80211_PMSR_RESP_ATTR_PAD)) res->ap_tsf, NL80211_PMSR_RESP_ATTR_PAD))
goto error; goto error;
if (res->final && nla_put_flag(msg, NL80211_PMSR_RESP_ATTR_FINAL)) if (res->final && nla_put_flag(msg, NL80211_PMSR_RESP_ATTR_FINAL))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment