ath10k: fix multiple key static wep with ibss
authorMichal Kazior <michal.kazior@tieto.com>
Fri, 10 Apr 2015 13:23:21 +0000 (13:23 +0000)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 17 Apr 2015 06:37:07 +0000 (09:37 +0300)
commitce90b27128c283df8f14e4604f711f3249d95918
tree56845770b14c093f166fff49efe46746dce87124
parent73dc5a1d9db4f6cfb299019a083eefb5b85a3c65
ath10k: fix multiple key static wep with ibss

Apparently firmware requires both pairwise and
groupwise keys to be installed per-peer for static
WEP in IBSS. This wasn't necessary for AP mode
(and installing both doesn't seem to break AP
mode thus there's no special handling).

Also there seems to be some kind of issue with
mapping tx/rx keys in firmware properly which
resulted in wrong keys being used and broken
communication between devices.

It can be argued the vdev param part is more of a
workaround than a real fix. However I couldn't
figure out how to fix this differently. It works
and isn't super ugly.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c