mac80211: drop unencrypted frames if encryption is expected
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 28 Nov 2007 10:07:57 +0000 (11:07 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Nov 2007 23:08:48 +0000 (18:08 -0500)
commit8312512e81ab16d845b49d1ec695fad1c72f19f6
treec32ca43a65679197a417ab06fba3bbc542d575f5
parent8b393f1dc76acbe65a97a4e51f8144f4a65fa1c9
mac80211: drop unencrypted frames if encryption is expected

This patch fixes a regression I (most likely) introduced, namely that
unencrypted frames are right now accepted even if we have a key for that
specific sender. That has very bad security implications.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c