]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix radiotap vendor presence bitmap handling
authorJohannes Berg <johannes.berg@intel.com>
Sat, 15 Dec 2018 09:03:12 +0000 (11:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Dec 2018 08:39:01 +0000 (09:39 +0100)
commit7773c5ae13ab7abc0a5943b73c4c161b329e118b
treee7fbb0034f47b241c21eb1f23fdc1ccb569d8c1b
parent0261ce242400474a77e7e7ef376c301a6dc7be20
mac80211: fix radiotap vendor presence bitmap handling

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>
net/mac80211/rx.c