mac80211: fix radiotap vendor presence bitmap handling
commit6098aab90073580f073aa5a9a7eb96040c4cd0ef
authorJohannes Berg <johannes.berg@intel.com>
Sat, 15 Dec 2018 09:03:12 +0000 (15 11:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:23 +0000 (12 20:02 +0100)
tree610aed75c53409179266d9d67cf0ab694f909bd7
parentea76421fc41c6e80aaaca6c559bdb10ade28d48e
mac80211: fix radiotap vendor presence bitmap handling

[ Upstream commit efc38dd7d5fa5c8cdd0c917c5d00947aa0539443 ]

Due to the alignment handling, it actually matters where in the code
we add the 4 bytes for the presence bitmap to the length; the first
field is the timestamp with 8 byte alignment so we need to add the
space for the extra vendor namespace presence bitmap *before* we do
any alignment for the fields.

Move the presence bitmap length accounting to the right place to fix
the alignment for the data properly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/rx.c