]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commitbef5d1c70d132145c0fc75b3586a19841a9a82e4
tree07f657821d0e903d3caea59378d73a903a1237f2
parent04662360854aefcb6337d93701892ad97411fdd0
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