]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfdeebfe78b11f36d5b3ea244b4ffcbb787df9872
treeadb814da6148e8ddf07ad7afcf288e669ae3162b
parent0121fff1f309ea418bd399045b5dfe154f927a5f
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