diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2009-11-30 12:11:18 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-07 16:51:18 -0500 |
commit | 0b5351a8e86292dfac1ca1451deaadb416a33cb8 (patch) | |
tree | 7f8317fd27ebf3a5ae10a9b967dde046b1177c43 | |
parent | 7c3f4bbedc241ddcd3abe1f419c356e625231da1 (diff) |
mwl8k: fix MCS bitmap size in SET_RATE command
The MCS bitmaps in the SET_RATE command structure were of the wrong
size, due to use of the wrong define for the array length. Just
hardcode the lengths as 16, and do the same for the MCS bitmaps in
other command structures.
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/mwl8k.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 0cb5ecc822a8..f93eddda9c0f 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c | |||
@@ -634,7 +634,6 @@ struct ewc_ht_info { | |||
634 | #define MWL8K_PEER_TYPE_ACCESSPOINT 2 | 634 | #define MWL8K_PEER_TYPE_ACCESSPOINT 2 |
635 | 635 | ||
636 | #define MWL8K_IEEE_LEGACY_DATA_RATES 13 | 636 | #define MWL8K_IEEE_LEGACY_DATA_RATES 13 |
637 | #define MWL8K_MCS_BITMAP_SIZE 16 | ||
638 | 637 | ||
639 | struct peer_capability_info { | 638 | struct peer_capability_info { |
640 | /* Peer type - AP vs. STA. */ | 639 | /* Peer type - AP vs. STA. */ |
@@ -655,7 +654,7 @@ struct peer_capability_info { | |||
655 | __u8 legacy_rates[MWL8K_IEEE_LEGACY_DATA_RATES]; | 654 | __u8 legacy_rates[MWL8K_IEEE_LEGACY_DATA_RATES]; |
656 | 655 | ||
657 | /* HT rate table. Intersection of our rates and peer rates. */ | 656 | /* HT rate table. Intersection of our rates and peer rates. */ |
658 | __u8 ht_rates[MWL8K_MCS_BITMAP_SIZE]; | 657 | __u8 ht_rates[16]; |
659 | __u8 pad[16]; | 658 | __u8 pad[16]; |
660 | 659 | ||
661 | /* If set, interoperability mode, no proprietary extensions. */ | 660 | /* If set, interoperability mode, no proprietary extensions. */ |
@@ -2638,8 +2637,8 @@ struct mwl8k_cmd_update_rateset { | |||
2638 | __u8 legacy_rates[MWL8K_RATE_INDEX_MAX_ARRAY]; | 2637 | __u8 legacy_rates[MWL8K_RATE_INDEX_MAX_ARRAY]; |
2639 | 2638 | ||
2640 | /* Bitmap for supported MCS codes. */ | 2639 | /* Bitmap for supported MCS codes. */ |
2641 | __u8 mcs_set[MWL8K_IEEE_LEGACY_DATA_RATES]; | 2640 | __u8 mcs_set[16]; |
2642 | __u8 reserved[MWL8K_IEEE_LEGACY_DATA_RATES]; | 2641 | __u8 reserved[16]; |
2643 | } __attribute__((packed)); | 2642 | } __attribute__((packed)); |
2644 | 2643 | ||
2645 | static int mwl8k_update_rateset(struct ieee80211_hw *hw, | 2644 | static int mwl8k_update_rateset(struct ieee80211_hw *hw, |