ath10k: fix shared WEP
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 25 Nov 2014 06:16:58 +0000 (11:46 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 26 Nov 2014 06:37:08 +0000 (08:37 +0200)
commit504f6cdf4ac3dfcf645453b5cd65dcc9aed0e1b9
treeadb814da6148e8ddf07ad7afcf288e669ae3162b
parentd67d0a02042867491051f766a3ad8389f5b307c2
ath10k: fix shared WEP

When static keys are used in shared WEP, when a
station is associated, message 3 is sent with an
encrypted payload. But, for subsequent
authentications that are triggered without a
deauth, the auth frame is decrypted by the HW.

To handle this, check if the WEP keys have already
been set for the peer and if so, mark the
frame as decrypted. This scenario can happen
when a station changes its default TX key and initiates
a new authentication sequence.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/mac.h
drivers/net/wireless/ath/ath10k/wmi.c