mac80211: fix position of vendor_data read
authorLiad Kaufman <liad.kaufman@intel.com>
Wed, 6 Feb 2019 11:17:13 +0000 (13:17 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 22 Feb 2019 12:45:38 +0000 (13:45 +0100)
commitc15353be91902fa6cde08d4bf325d089895d65e8
treebed5c41ca8e88bf898f4565e2995413dbf68cd87
parent2ff5e52e7836f1851f25304e0b2ee09cd9e7962e
mac80211: fix position of vendor_data read

The ieee80211_vendor_radiotap was read from the beginning
of the skb->data regardless of the existence of other
elements in radiotap that would cause it to move to another
position. Fix this by taking into account where it really
should be.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c