Message ID | 20191025122105.14577-1-john@phrozen.org (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Johannes Berg |
Headers | show |
Series | mac80211: fix VHT BW reporting inside ieee80211_add_tx_radiotap_header | expand |
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;
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 <milehu@codeaurora.org> Signed-off-by: John Crispin <john@phrozen.org> --- net/mac80211/status.c | 1 + 1 file changed, 1 insertion(+)