ath9k_common: use allocated key cache entries for multi BSS crypto support
authorFelix Fietkau <nbd@openwrt.org>
Tue, 25 May 2010 17:42:45 +0000 (19:42 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 3 Jun 2010 18:10:44 +0000 (14:10 -0400)
commiteed8e22f0133e8278b1f8079fcb452f1f9692f9d
tree74e439849bb490805ebfa799ccc9e05e25e695c9
parent1d0bb42d5eee20bd70f237d0a32cfe3b079849e2
ath9k_common: use allocated key cache entries for multi BSS crypto support

This patch replaces the buggy 'ath9k: Group Key fix for VAPs' change.

For AP mode group keys, use the BSSID as lookup mac address, with
the multicast keysearch bit set.
For IBSS mode, use the peer's MAC address with multicast keysearch.
For STA mode, keep using the group key slots.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/common.c