aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwl8k.c
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2010-01-04 15:54:41 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-01-05 17:13:23 -0500
commit25d81b1e1a0cca41a71a08468a7d3a4c751c8565 (patch)
tree0f9dd9573e9795e3854c03f8c2be0a6a9c265fa2 /drivers/net/wireless/mwl8k.c
parent9a2303b93039d0f3dd578cd75fe20ebaf075f1cb (diff)
mwl8k: move struct peer_capability_info to its only user
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwl8k.c')
-rw-r--r--drivers/net/wireless/mwl8k.c91
1 files changed, 43 insertions, 48 deletions
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index 46a5cf214a20..3dbdea904833 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -598,54 +598,6 @@ static int mwl8k_load_firmware(struct ieee80211_hw *hw)
598} 598}
599 599
600 600
601/*
602 * Defines shared between transmission and reception.
603 */
604/* HT control fields for firmware */
605struct ewc_ht_info {
606 __le16 control1;
607 __le16 control2;
608 __le16 control3;
609} __attribute__((packed));
610
611/* Firmware Station database operations */
612#define MWL8K_STA_DB_ADD_ENTRY 0
613#define MWL8K_STA_DB_MODIFY_ENTRY 1
614#define MWL8K_STA_DB_DEL_ENTRY 2
615#define MWL8K_STA_DB_FLUSH 3
616
617/* Peer Entry flags - used to define the type of the peer node */
618#define MWL8K_PEER_TYPE_ACCESSPOINT 2
619
620struct peer_capability_info {
621 /* Peer type - AP vs. STA. */
622 __u8 peer_type;
623
624 /* Basic 802.11 capabilities from assoc resp. */
625 __le16 basic_caps;
626
627 /* Set if peer supports 802.11n high throughput (HT). */
628 __u8 ht_support;
629
630 /* Valid if HT is supported. */
631 __le16 ht_caps;
632 __u8 extended_ht_caps;
633 struct ewc_ht_info ewc_info;
634
635 /* Legacy rate table. Intersection of our rates and peer rates. */
636 __u8 legacy_rates[12];
637
638 /* HT rate table. Intersection of our rates and peer rates. */
639 __u8 ht_rates[16];
640 __u8 pad[16];
641
642 /* If set, interoperability mode, no proprietary extensions. */
643 __u8 interop;
644 __u8 pad2;
645 __u8 station_id;
646 __le16 amsdu_enabled;
647} __attribute__((packed));
648
649/* DMA header used by firmware and hardware. */ 601/* DMA header used by firmware and hardware. */
650struct mwl8k_dma_data { 602struct mwl8k_dma_data {
651 __le16 fwlen; 603 __le16 fwlen;
@@ -2630,6 +2582,49 @@ static int mwl8k_cmd_set_rateadapt_mode(struct ieee80211_hw *hw, __u16 mode)
2630/* 2582/*
2631 * CMD_UPDATE_STADB. 2583 * CMD_UPDATE_STADB.
2632 */ 2584 */
2585#define MWL8K_STA_DB_ADD_ENTRY 0
2586#define MWL8K_STA_DB_MODIFY_ENTRY 1
2587#define MWL8K_STA_DB_DEL_ENTRY 2
2588#define MWL8K_STA_DB_FLUSH 3
2589
2590/* Peer Entry flags - used to define the type of the peer node */
2591#define MWL8K_PEER_TYPE_ACCESSPOINT 2
2592
2593struct ewc_ht_info {
2594 __le16 control1;
2595 __le16 control2;
2596 __le16 control3;
2597} __attribute__((packed));
2598
2599struct peer_capability_info {
2600 /* Peer type - AP vs. STA. */
2601 __u8 peer_type;
2602
2603 /* Basic 802.11 capabilities from assoc resp. */
2604 __le16 basic_caps;
2605
2606 /* Set if peer supports 802.11n high throughput (HT). */
2607 __u8 ht_support;
2608
2609 /* Valid if HT is supported. */
2610 __le16 ht_caps;
2611 __u8 extended_ht_caps;
2612 struct ewc_ht_info ewc_info;
2613
2614 /* Legacy rate table. Intersection of our rates and peer rates. */
2615 __u8 legacy_rates[12];
2616
2617 /* HT rate table. Intersection of our rates and peer rates. */
2618 __u8 ht_rates[16];
2619 __u8 pad[16];
2620
2621 /* If set, interoperability mode, no proprietary extensions. */
2622 __u8 interop;
2623 __u8 pad2;
2624 __u8 station_id;
2625 __le16 amsdu_enabled;
2626} __attribute__((packed));
2627
2633struct mwl8k_cmd_update_stadb { 2628struct mwl8k_cmd_update_stadb {
2634 struct mwl8k_cmd_pkt header; 2629 struct mwl8k_cmd_pkt header;
2635 2630