From patchwork Tue Feb 4 15:06:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Crispin X-Patchwork-Id: 11364813 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B75541395 for ; Tue, 4 Feb 2020 15:06:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9F02C20730 for ; Tue, 4 Feb 2020 15:06:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727316AbgBDPG1 (ORCPT ); Tue, 4 Feb 2020 10:06:27 -0500 Received: from nbd.name ([46.4.11.11]:40652 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727258AbgBDPG0 (ORCPT ); Tue, 4 Feb 2020 10:06:26 -0500 Received: from [149.224.158.146] (helo=bertha.datto.lan) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1iyzmS-0006jm-DF; Tue, 04 Feb 2020 16:06:24 +0100 From: John Crispin To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Miles Hu , John Crispin Subject: [PATCH] mac80211: add HE support to ieee80211_calculate_rx_timestamp Date: Tue, 4 Feb 2020 16:06:18 +0100 Message-Id: <20200204150618.15676-1-john@phrozen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Miles Hu The RX timestamp was not calculated for HE yet. This patch adds the missing case clause. Signed-off-by: Miles Hu Tested-by: John Crispin --- net/mac80211/util.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 780df3e9092e..876f2d92347b 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -3242,6 +3242,13 @@ u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local, if (status->enc_flags & RX_ENC_FLAG_SHORT_GI) ri.flags |= RATE_INFO_FLAGS_SHORT_GI; break; + case RX_ENC_HE: + ri.flags |= RATE_INFO_FLAGS_HE_MCS; + ri.mcs = status->rate_idx; + ri.nss = status->nss; + if (status->enc_flags & RX_ENC_FLAG_SHORT_GI) + ri.flags |= RATE_INFO_FLAGS_SHORT_GI; + break; default: WARN_ON(1); /* fall through */