Johannes Berg 9e478066ea mac80211: fix MU-MIMO follow-MAC mode
There are two bugs in the follow-MAC code:
 * it treats the radiotap header as the 802.11 header
   (therefore it can't possibly work)
 * it doesn't verify that the skb data it accesses is actually
   present in the header, which is mitigated by the first point

Fix this by moving all of this out into a separate function.
This function copies the data it needs using skb_copy_bits()
to make sure it can be accessed if it's paged, and offsets
that by the possibly present vendor radiotap header.

This also makes all those conditions more readable.

Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-04-13 14:35:53 +02:00
..
2017-02-27 14:09:49 +01:00
2017-02-09 15:17:30 +01:00
2014-11-04 13:18:21 +01:00
2014-04-09 14:49:43 +02:00
2017-02-10 14:31:51 -05:00
2017-02-09 15:18:24 +01:00
2015-05-11 19:16:04 +02:00
2014-04-09 14:49:43 +02:00
2017-04-13 14:35:53 +02:00
2016-12-13 16:05:09 +01:00
2017-02-27 14:09:26 +01:00
2017-02-09 15:17:30 +01:00
2012-03-13 14:54:16 -04:00