diff options
author | John Crispin <john@phrozen.org> | 2019-08-07 10:59:49 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2019-08-21 11:33:45 +0300 |
commit | 3a00f08140646a54e0eff2ce8938bf248dad6153 (patch) | |
tree | cc0652dfdd63b9240f0b78c970cce7ea22d5cbae /net/mac80211/status.c | |
parent | a027c3041fef93da93a2c49eb22b05891d2350b6 (diff) | |
download | linux-3a00f08140646a54e0eff2ce8938bf248dad6153.tar.xz |
mac80211: add missing length field increment when generating Radiotap header
The code generating the Tx Radiotap header when using tx_status_ext was
missing a field increment after setting the VHT bandwidth.
Fixes: 3d07ffcaf320 ("mac80211: add struct ieee80211_tx_status support to ieee80211_add_tx_radiotap_header")
Signed-off-by: John Crispin <john@phrozen.org>
Link: https://lore.kernel.org/r/20190807075949.32414-4-john@phrozen.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/status.c')
-rw-r--r-- | net/mac80211/status.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/status.c b/net/mac80211/status.c index ce0c50efd804..f88f94d1f177 100644 --- a/net/mac80211/status.c +++ b/net/mac80211/status.c @@ -412,6 +412,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; |