mac80211: Only accept data frames in OCB mode
authorBertold Van den Bergh <bertold.vandenbergh@esat.kuleuven.be>
Wed, 5 Aug 2015 14:02:42 +0000 (16:02 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Aug 2015 15:49:49 +0000 (17:49 +0200)
commitcc11729893558b374316e6142dc383f0508436c8
tree0b5621f489c728e8e8c498ad980d7656244c1fd3
parent5765f9f66e72ddedfe04e057a5a01454d7b67157
mac80211: Only accept data frames in OCB mode

Currently OCB mode accepts frames with bssid==broadcast and type!=beacon.
Some non-data frames are sent matching this, for example probe responses.
This results in unnecessary creation of STA entries.

Signed-off-by: Bertold Van den Bergh <bertold.vandenbergh@esat.kuleuven.be>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c