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: 216531 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9914C35247 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 9FFE52087E 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 */