Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp838725ybi; Fri, 12 Jul 2019 05:30:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyg/Z3SCKdLoll9E+pZI5U5p44K1GJcb1ERwEDjEdo4c7nl9uU29LAcyI+Grg0pZTFGOfxX X-Received: by 2002:a63:1b66:: with SMTP id b38mr10551904pgm.54.1562934616742; Fri, 12 Jul 2019 05:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562934616; cv=none; d=google.com; s=arc-20160816; b=n5GPUmQgPR2CpxBkglWkpfG6ZYMhITFA6Bi5nnsDEAG5s4rcQru4f61MQ+d55RKnOC CJ3Z5EMQ2F3ADZ4KRONnxqk5tSEUX47kc9++hW0OViTCIx8ZQzUwXupbhZEaRfLA70+m iKVEZRr9y3bl4HNA2SmyTziPDz8sbvCXvkDcvGGoWznvsSTCd/6dfrW69ysjAx7faY/H wlWjWUtSTRnwzIIX/9WiQF8tmF3E5+O18hdilvOUdCEyffLfr6U1MdUUh9PXMdKTO0nE AJN+vcQ0mlvumIqlcxOemwDKVcxwi1C5ejVvpQA8RGEln6mzjjDT+Yo+O++0w10ga1Jm jgHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QREtoPp7S4GBUHAEibt9rzG6jIz4PyrI6ikeIc8PdAM=; b=Em4JIK2RGsT1CXtOG+tvw9iZHCMtAwq7oX090mGSZu9elPzeQ8vuVB/DMpxhi7a7g1 7E7P327KouXhsJl/nUQIug5+iRIXCXCld93mCQFyh06VTqYd/n6PWVHr1xaY0uTKq/UX 0ohQjpZg/F0Q8Uj8B3Qwl2uvCuniE0iZkrSD8O9PeXMpLFyKLDNFtp/Z9ZVeBT2nxxG8 hVCVHgKP6Evw5112ocwQs0VQGgFmWxZUuK1ykgU26wDPMSASC882JqkXBM0Wrqy9+whf 4TyJL0OYO0LW62UcCLyt8FFiT3cAdWq31C5jF+KVWGakfXS36UQ9Vr+80xP6uAIPZuac zZ6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="wRa/EMxS"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si7795860pgq.298.2019.07.12.05.30.00; Fri, 12 Jul 2019 05:30:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="wRa/EMxS"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728689AbfGLM1v (ORCPT + 99 others); Fri, 12 Jul 2019 08:27:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:40784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728666AbfGLM1q (ORCPT ); Fri, 12 Jul 2019 08:27:46 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D36A2084B; Fri, 12 Jul 2019 12:27:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934465; bh=Z2D7VmgLRn4bBj7uuHlx3DG9p9aGq6l3mqAOp7Iv3BE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wRa/EMxSj0rRejAqfIHcLOd/Fi3C/LMCQW+euLmQ0juAmOqPbGzwFFz3/tUO/3Z88 Gp39LRKGjXXYWVuXVjZEXGfhl+4Ilv+BlC9d9xFTIF5P4Ad1Nqypev9LZuRkKwktR5 JlOA1j/LhcwCc9NkFLdHfxrQCpf2K400oXj7EuYs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Avraham Stern , Luca Coelho , Johannes Berg , Sasha Levin Subject: [PATCH 5.1 063/138] cfg80211: report measurement start TSF correctly Date: Fri, 12 Jul 2019 14:18:47 +0200 Message-Id: <20190712121631.095478375@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121628.731888964@linuxfoundation.org> References: <20190712121628.731888964@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit b65842025335711e2a0259feb4dbadb0c9ffb6d9 ] Instead of reporting the AP's TSF, host time was reported. Fix it. Signed-off-by: Avraham Stern Signed-off-by: Luca Coelho Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/wireless/pmsr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/wireless/pmsr.c b/net/wireless/pmsr.c index 5e2ab01d325c..d06d514f0bba 100644 --- a/net/wireless/pmsr.c +++ b/net/wireless/pmsr.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ /* - * Copyright (C) 2018 Intel Corporation + * Copyright (C) 2018 - 2019 Intel Corporation */ #ifndef __PMSR_H #define __PMSR_H @@ -446,7 +446,7 @@ static int nl80211_pmsr_send_result(struct sk_buff *msg, if (res->ap_tsf_valid && 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; if (res->final && nla_put_flag(msg, NL80211_PMSR_RESP_ATTR_FINAL)) -- 2.20.1