ath9k: Incorrect key used when group and pairwise ciphers are different.
authorSenthil Balasubramanian <senthilkumar@atheros.com>
Mon, 1 Sep 2008 14:15:21 +0000 (19:45 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 2 Sep 2008 21:40:03 +0000 (17:40 -0400)
commit1b96175b7e5801a908718d8b5270a4f7d94fed28
tree35ca2dfda161e603147d7b69c77143a5694a0518
parent445df54fec7c1924f44018c4db2a9613b877f10e
ath9k: Incorrect key used when group and pairwise ciphers are different.

Updating sc_keytype multiple times when groupwise and pairwise
ciphers are different results in incorrect pairwise key type
assumed for TX control and normal ping fails. This works fine
for cases where both groupwise and pairwise ciphers are same.

Also use mac80211 provided enums for key length calculation.

Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/hw.c
drivers/net/wireless/ath9k/main.c