diff options
author | Michael Buesch <mb@bu3sch.de> | 2009-08-06 04:36:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:45 -0400 |
commit | 66d2d089c394c7e31020947d682523f77a93244b (patch) | |
tree | d4bef490c1449252606ca09be804c191f0822ce5 /drivers/net/wireless/b43/b43.h | |
parent | 5ba63533bbf653631faab60f6988506160ec6ba4 (diff) |
b43: Fix hardware key index handling
This fixes the hardware encryption keys index and array size handling.
Thanks to Gregor Kowski for reporting this issue.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/b43.h')
-rw-r--r-- | drivers/net/wireless/b43/b43.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h index 102094a23598..a1b3b731935b 100644 --- a/drivers/net/wireless/b43/b43.h +++ b/drivers/net/wireless/b43/b43.h | |||
@@ -493,6 +493,10 @@ enum { | |||
493 | 493 | ||
494 | /* Max size of a security key */ | 494 | /* Max size of a security key */ |
495 | #define B43_SEC_KEYSIZE 16 | 495 | #define B43_SEC_KEYSIZE 16 |
496 | /* Max number of group keys */ | ||
497 | #define B43_NR_GROUP_KEYS 4 | ||
498 | /* Max number of pairwise keys */ | ||
499 | #define B43_NR_PAIRWISE_KEYS 50 | ||
496 | /* Security algorithms. */ | 500 | /* Security algorithms. */ |
497 | enum { | 501 | enum { |
498 | B43_SEC_ALGO_NONE = 0, /* unencrypted, as of TX header. */ | 502 | B43_SEC_ALGO_NONE = 0, /* unencrypted, as of TX header. */ |
@@ -819,8 +823,7 @@ struct b43_wldev { | |||
819 | 823 | ||
820 | /* encryption/decryption */ | 824 | /* encryption/decryption */ |
821 | u16 ktp; /* Key table pointer */ | 825 | u16 ktp; /* Key table pointer */ |
822 | u8 max_nr_keys; | 826 | struct b43_key key[B43_NR_GROUP_KEYS * 2 + B43_NR_PAIRWISE_KEYS]; |
823 | struct b43_key key[58]; | ||
824 | 827 | ||
825 | /* Firmware data */ | 828 | /* Firmware data */ |
826 | struct b43_firmware fw; | 829 | struct b43_firmware fw; |