Skip to contentSkip to conversation

mac80211: fix VHT BW reporting inside ieee80211_add_tx_radiotap_header

PATCH New John Crispin 1 participant 1 message Oct 25, 2019 mac80211

lore
Share & tools
lore
#0 lore raw

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")

---
 net/mac80211/status.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/status.c +1 -0
index f03aa8924d23..b036bf0269c2 100644
@@ -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