Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183550
b: refs/heads/master
c: 25d81b1
h: refs/heads/master
v: v3
  • Loading branch information
Lennert Buytenhek authored and John W. Linville committed Jan 5, 2010
1 parent 7859e9f commit e72f424
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 49 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a2303b93039d0f3dd578cd75fe20ebaf075f1cb
refs/heads/master: 25d81b1e1a0cca41a71a08468a7d3a4c751c8565
91 changes: 43 additions & 48 deletions trunk/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 e72f424

Please sign in to comment.