Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171062
b: refs/heads/master
c: c8c2487
h: refs/heads/master
v: v3
  • Loading branch information
Wey-Yi Guy authored and John W. Linville committed Oct 27, 2009
1 parent 9aa6799 commit c2804ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 29b1b2688fd71346f78f175d9669c006686b6dc3
refs/heads/master: c8c24872c6a90ef0298491a1c14326861ab74cab
11 changes: 8 additions & 3 deletions trunk/drivers/net/wireless/iwlwifi/iwl-dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ enum {
CMD_WANT_SKB = (1 << 2),
};

#define IWL_CMD_MAX_PAYLOAD 320
#define DEF_CMD_PAYLOAD_SIZE 320

/*
* IWL_LINK_HDR_MAX should include ieee80211_hdr, radiotap header,
Expand All @@ -388,7 +388,8 @@ struct iwl_device_cmd {
u16 val16;
u32 val32;
struct iwl_tx_cmd tx;
u8 payload[IWL_CMD_MAX_PAYLOAD];
struct iwl6000_channel_switch_cmd chswitch;
u8 payload[DEF_CMD_PAYLOAD_SIZE];
} __attribute__ ((packed)) cmd;
} __attribute__ ((packed));

Expand Down Expand Up @@ -741,7 +742,11 @@ static inline int iwl_queue_used(const struct iwl_queue *q, int i)

static inline u8 get_cmd_index(struct iwl_queue *q, u32 index, int is_huge)
{
/* This is for scan command, the big buffer at end of command array */
/*
* This is for init calibration result and scan command which
* required buffer > TFD_MAX_PAYLOAD_SIZE,
* the big buffer at end of command array
*/
if (is_huge)
return q->n_window; /* must be power of 2 */

Expand Down

0 comments on commit c2804ce

Please sign in to comment.