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.7 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 D4DC0CA9EA0 for ; Fri, 25 Oct 2019 12:21:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B5DED2070B for ; Fri, 25 Oct 2019 12:21:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408202AbfJYMVT (ORCPT ); Fri, 25 Oct 2019 08:21:19 -0400 Received: from nbd.name ([46.4.11.11]:43310 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404706AbfJYMVS (ORCPT ); Fri, 25 Oct 2019 08:21:18 -0400 Received: from p5dcfbc27.dip0.t-ipconnect.de ([93.207.188.39] helo=bertha.fritz.box) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1iNyah-0000MS-C2; Fri, 25 Oct 2019 14:21:15 +0200 From: John Crispin To: Johannes Berg Cc: linux-wireless@vger.kernel.org, John Crispin , Miles Hu Subject: [PATCH] mac80211: fix VHT BW reporting inside ieee80211_add_tx_radiotap_header Date: Fri, 25 Oct 2019 14:21:05 +0200 Message-Id: <20191025122105.14577-1-john@phrozen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The pointer offset was not incremented after setting the BW value when reporting a VHT rate. This fixes commit 3d07ffcaf320 ("mac80211: add struct ieee80211_tx_status support to ieee80211_add_tx_radiotap_header") Reported-by: Miles Hu Signed-off-by: John Crispin --- net/mac80211/status.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/status.c b/net/mac80211/status.c index f03aa8924d23..b036bf0269c2 100644 --- a/net/mac80211/status.c +++ b/net/mac80211/status.c @@ -406,6 +406,7 @@ ieee80211_add_tx_radiotap_header(struct ieee80211_local *local, *pos = 0; break; } + pos++; /* u8 mcs_nss[4] */ *pos = (status->rate->mcs << 4) | status->rate->nss; -- 2.20.1