ath10k: fix pmf for action frames
authorMarek Kwaczynski <marek.kwaczynski@tieto.com>
Wed, 14 May 2014 13:56:17 +0000 (16:56 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 16 May 2014 13:53:07 +0000 (16:53 +0300)
commiteeab266c0f3c9c85ef649ba737e2d553742a2532
tree9ad1cc84659893fee0cf94711939508527a53000
parenta6a2f74e565db27d6b23276a4df16e00d789f60c
ath10k: fix pmf for action frames

Fix sending and receiveing protected managment frames.
Lack of protected flag for received protected action frames
causes report these frames as unprotected robust action frames.
If the driver in AP mode sent frame with protected flag and
CCMP header using IEEE80211_KEY_FLAG_SW_MGMT_TX flag,
the FW encrypted frames once again. From user side all
received SA Query Requests and Responses were skipped and
all protected action frames were sent as malformed packets.

Signed-off-by: Marek Kwaczynski <marek.kwaczynski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/wmi.c