mac80211: Properly handle SKB with radiotap only
authorIlan Peer <ilan.peer@intel.com>
Sat, 15 Dec 2018 09:03:17 +0000 (11:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 18 Dec 2018 12:15:25 +0000 (13:15 +0100)
commit8020919a9b99d6c990dc6a50e8215e291fbbe5a6
tree17dbe3dae6334ae89eff06e75c393f76c72d0f56
parent925b5978cdc7287ba08ed21bf27970131f147720
mac80211: Properly handle SKB with radiotap only

The monitor interface Rx handling of SKBs that contain only
radiotap information was buggy as it tried to access the
SKB assuming it contains a frame.

To fix this, check the RX_FLAG_NO_PSDU flag in the Rx status
(indicting that the SKB contains only radiotap information),
and do not perform data path specific processing when the flag
is set.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c