]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath9k_hw: handle rx key miss
authorFelix Fietkau <nbd@openwrt.org>
Tue, 14 Sep 2010 16:38:26 +0000 (18:38 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:32:00 +0000 (13:32 -0800)
commit82ec339bdaef2d3f2dcc1bbe94c2cb672561c535
tree745079ff213ecd289ff6d085ac8cd472f53eb801
parent3054cc820f643a0008bce8648208b40247d78b97
ath9k_hw: handle rx key miss

commit 3ae74c33c4f799f6bf6d67240a94a0814a8f1944 upstream.

If AR_KeyMiss is set in the rx descriptor and AR_RxFrameOK is unset,
the hardware could not locate a valid key during a decryption attempt.

In this case, the frame must not be reported as decrypted, otherwise
mac80211 sees only random garbage.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/ar9003_mac.c
drivers/net/wireless/ath/ath9k/mac.c