]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Fix dropping of unprotected robust multicast frames
authorJouni Malinen <j@w1.fi>
Tue, 30 Mar 2010 06:36:15 +0000 (23:36 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 31 Mar 2010 18:46:42 +0000 (14:46 -0400)
commit2d4f359cae7628e9122b357b83cf5ddb0815353e
treeb8bd693448ce691cd2948e69178f0adfa271d2e2
parent012ba8d6c1133b38a8126e54c507ce8179db7432
mac80211: Fix dropping of unprotected robust multicast frames

When selecting the RX key for group-addressed robust management
frames, we do not actually select any BIP key if the frame is
unprotected (since we cannot find the key index from MMIE). This
results in the drop_unencrypted check in failing to drop the frame. It
is enough to verify that we have a STA entry for the transmitter and
that MFP is enabled for that STA; we do not need to check rx->key
here. This fixes BIP processing for unprotected, group-addressed,
robust management frames.

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