Skip to content

Commit

Permalink
mwl8k: move struct peer_capability_info to its only user
Browse files Browse the repository at this point in the history
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Lennert Buytenhek authored and John W. Linville committed Jan 5, 2010
1 parent 9a2303b commit 25d81b1
Showing 1 changed file with 43 additions and 48 deletions.
91 changes: 43 additions & 48 deletions drivers/net/wireless/mwl8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,54 +598,6 @@ static int mwl8k_load_firmware(struct ieee80211_hw *hw)
}


/*
* Defines shared between transmission and reception.
*/
/* HT control fields for firmware */
struct ewc_ht_info {
__le16 control1;
__le16 control2;
__le16 control3;
} __attribute__((packed));

/* Firmware Station database operations */
#define MWL8K_STA_DB_ADD_ENTRY 0
#define MWL8K_STA_DB_MODIFY_ENTRY 1
#define MWL8K_STA_DB_DEL_ENTRY 2
#define MWL8K_STA_DB_FLUSH 3

/* Peer Entry flags - used to define the type of the peer node */
#define MWL8K_PEER_TYPE_ACCESSPOINT 2

struct peer_capability_info {
/* Peer type - AP vs. STA. */
__u8 peer_type;

/* Basic 802.11 capabilities from assoc resp. */
__le16 basic_caps;

/* Set if peer supports 802.11n high throughput (HT). */
__u8 ht_support;

/* Valid if HT is supported. */
__le16 ht_caps;
__u8 extended_ht_caps;
struct ewc_ht_info ewc_info;

/* Legacy rate table. Intersection of our rates and peer rates. */
__u8 legacy_rates[12];

/* HT rate table. Intersection of our rates and peer rates. */
__u8 ht_rates[16];
__u8 pad[16];

/* If set, interoperability mode, no proprietary extensions. */
__u8 interop;
__u8 pad2;
__u8 station_id;
__le16 amsdu_enabled;
} __attribute__((packed));

/* DMA header used by firmware and hardware. */
struct mwl8k_dma_data {
__le16 fwlen;
Expand Down Expand Up @@ -2630,6 +2582,49 @@ static int mwl8k_cmd_set_rateadapt_mode(struct ieee80211_hw *hw, __u16 mode)
/*
* CMD_UPDATE_STADB.
*/
#define MWL8K_STA_DB_ADD_ENTRY 0
#define MWL8K_STA_DB_MODIFY_ENTRY 1
#define MWL8K_STA_DB_DEL_ENTRY 2
#define MWL8K_STA_DB_FLUSH 3

/* Peer Entry flags - used to define the type of the peer node */
#define MWL8K_PEER_TYPE_ACCESSPOINT 2

struct ewc_ht_info {
__le16 control1;
__le16 control2;
__le16 control3;
} __attribute__((packed));

struct peer_capability_info {
/* Peer type - AP vs. STA. */
__u8 peer_type;

/* Basic 802.11 capabilities from assoc resp. */
__le16 basic_caps;

/* Set if peer supports 802.11n high throughput (HT). */
__u8 ht_support;

/* Valid if HT is supported. */
__le16 ht_caps;
__u8 extended_ht_caps;
struct ewc_ht_info ewc_info;

/* Legacy rate table. Intersection of our rates and peer rates. */
__u8 legacy_rates[12];

/* HT rate table. Intersection of our rates and peer rates. */
__u8 ht_rates[16];
__u8 pad[16];

/* If set, interoperability mode, no proprietary extensions. */
__u8 interop;
__u8 pad2;
__u8 station_id;
__le16 amsdu_enabled;
} __attribute__((packed));

struct mwl8k_cmd_update_stadb {
struct mwl8k_cmd_pkt header;

Expand Down

0 comments on commit 25d81b1

Please sign in to comment.