From patchwork Fri Oct 25 12:21:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Crispin X-Patchwork-Id: 11212175 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 CEAF9139A 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 B6FF221D71 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 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;