mac80211: add missing length field increment when generating Radiotap header
authorJohn Crispin <john@phrozen.org>
Wed, 7 Aug 2019 07:59:49 +0000 (09:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Aug 2019 08:33:45 +0000 (10:33 +0200)
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>
net/mac80211/status.c

index ce0c50efd8048979cb91a9cbd20278c92987dbd3..f88f94d1f17788c0e24876148220c68ef16a171d 100644 (file)
@@ -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;