]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: split ieee80211_drop_unencrypted
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 16 Feb 2010 10:05:00 +0000 (11:05 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 16 Feb 2010 19:16:24 +0000 (14:16 -0500)
commit341aa4b6b3336b95c85a39d4a41ea90a06906233
tree07f657821d0e903d3caea59378d73a903a1237f2
parent1c857cf79e288bee318704cc99e0e676d01cc792
mac80211: split ieee80211_drop_unencrypted

Currently, ieee80211_drop_unencrypted is called
from management and data frame context, and the
different contexts pass different frames. This
could lead to it processing an 802.3 frame as an
802.11 frame when MFP is enabled.

Move the MFP part of ieee80211_drop_unencrypted
into a new function that is only called for mgmt
frames.

Cc: Jouni Malinen <j@w1.fi>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c