mac80211: fix VHT BW reporting inside ieee80211_add_tx_radiotap_header
PATCH 1/1 mac80211: fix VHT BW reporting inside ieee80211_add_tx_radiotap_header
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 <[email protected]>
Signed-off-by John Crispin <[email protected]>
--- net/mac80211/status.c | 1 + 1 file changed, 1 insertion(+)
net/mac80211/status.c +1 -0
@@ -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;
Signature · 1 line
2.20.1