]> git.karo-electronics.de Git - linux-beck.git/commit
ath6kl: Fix bug in setting default key index for tx in AP mode
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Fri, 11 Nov 2011 15:03:00 +0000 (20:33 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Sun, 13 Nov 2011 10:44:28 +0000 (12:44 +0200)
commit7cefa44f140bc88def4f68f38c76d37d5fd61630
treedad26b2cfe88c29f23252e827ab8ef362d697d58
parentfde57764ef8751b9aca11b6f6221ac5555bda699
ath6kl: Fix bug in setting default key index for tx in AP mode

vif->def_txkey_index is set to key_index in ath6kl_cfg80211_add_key().
If the interface is configured with multiple static wep keys,
vif->def_txkey_index would be holding the index of the last key configured,
not the default tx key index. Remove this unnecessary default key index setting
in ath6kl_cfg80211_add_key() to configure the right key index in WEP thereby
make it work when multiple wep keys are configured.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c