]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix drop_unencrypted for MFP with hwaccel
authorJouni Malinen <j@w1.fi>
Mon, 29 Mar 2010 05:31:15 +0000 (22:31 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 31 Mar 2010 18:52:15 +0000 (14:52 -0400)
commitc55d4440d3a444e59d458c7563c78f942dd80629
tree5c4e47e62d97fb16ce9447b9514d6773c347dcc0
parentd9f18196637c179628a71393962c118b8f544ae2
mac80211: Fix drop_unencrypted for MFP with hwaccel

Commit 341aa4b6b3336b95c85a39d4a41ea90a06906233 split
ieee80211_drop_unencrypted() into separate functions that are used for
Data and Management frames. However, it did not handle the
RX_FLAG_DECRYPTED correctly for Management frames:
ieee80211_drop_unencrypted() can only return 0 for Management frames,
so there is no point in calling it here. Instead, just check the
status->flag directly.

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