ath10k: prevent setting wrong key idx for station
authorSenthilKumar Jegadeesan <sjegadee@qti.qualcomm.com>
Thu, 29 Jan 2015 11:50:38 +0000 (13:50 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 4 Feb 2015 07:14:43 +0000 (09:14 +0200)
commit627613f8f081928efe2e82100f54c67e17bea72c
tree193f982dc9b61a133df8b21711caa9c9cb3f40a2
parent6c3d7d785966f89bda1be17aef59ad14ce321f38
ath10k: prevent setting wrong key idx for station

Ath10k driver sets wrong default key idx that results in
sending unicast frames with multicast key.

The reason for this behavior is that cached broadcast key
is installed for station MAC address on association. After
dot1x completes, unicast key is installed for station
MAC address. Default key idx is set to broadcast key id when
driver tries to send broadcast frame. This causes firmware
to use broadcast key id to transmit unicast frames to stations.

Used TX_USAGE flag to set default key for stations.

Added callback for setting unicast default idx which will be
invoked on every default key idx configuration.

Signed-off-by: SenthilKumar Jegadeesan <sjegadee@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/mac.c