diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-10-23 16:42:26 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:50:01 -0400 |
commit | c8c24872c6a90ef0298491a1c14326861ab74cab (patch) | |
tree | a8bf5a6c849dd47356770801ca7eb4bb683ab1d1 /drivers/net | |
parent | 29b1b2688fd71346f78f175d9669c006686b6dc3 (diff) |
iwlwifi: increase max tfd payload size
Increase the size of TFD_MAX_PAYLOAD_SIZE (the size of iwl_device_cmd)
to accommodate iwl6000_channel_switch_cmd data structure.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Acked-by: Ben Cahill <ben.m.cahill@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 1378654801c..b520e551f7f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -364,7 +364,7 @@ enum { | |||
364 | CMD_WANT_SKB = (1 << 2), | 364 | CMD_WANT_SKB = (1 << 2), |
365 | }; | 365 | }; |
366 | 366 | ||
367 | #define IWL_CMD_MAX_PAYLOAD 320 | 367 | #define DEF_CMD_PAYLOAD_SIZE 320 |
368 | 368 | ||
369 | /* | 369 | /* |
370 | * IWL_LINK_HDR_MAX should include ieee80211_hdr, radiotap header, | 370 | * IWL_LINK_HDR_MAX should include ieee80211_hdr, radiotap header, |
@@ -388,7 +388,8 @@ struct iwl_device_cmd { | |||
388 | u16 val16; | 388 | u16 val16; |
389 | u32 val32; | 389 | u32 val32; |
390 | struct iwl_tx_cmd tx; | 390 | struct iwl_tx_cmd tx; |
391 | u8 payload[IWL_CMD_MAX_PAYLOAD]; | 391 | struct iwl6000_channel_switch_cmd chswitch; |
392 | u8 payload[DEF_CMD_PAYLOAD_SIZE]; | ||
392 | } __attribute__ ((packed)) cmd; | 393 | } __attribute__ ((packed)) cmd; |
393 | } __attribute__ ((packed)); | 394 | } __attribute__ ((packed)); |
394 | 395 | ||
@@ -741,7 +742,11 @@ static inline int iwl_queue_used(const struct iwl_queue *q, int i) | |||
741 | 742 | ||
742 | static inline u8 get_cmd_index(struct iwl_queue *q, u32 index, int is_huge) | 743 | static inline u8 get_cmd_index(struct iwl_queue *q, u32 index, int is_huge) |
743 | { | 744 | { |
744 | /* This is for scan command, the big buffer at end of command array */ | 745 | /* |
746 | * This is for init calibration result and scan command which | ||
747 | * required buffer > TFD_MAX_PAYLOAD_SIZE, | ||
748 | * the big buffer at end of command array | ||
749 | */ | ||
745 | if (is_huge) | 750 | if (is_huge) |
746 | return q->n_window; /* must be power of 2 */ | 751 | return q->n_window; /* must be power of 2 */ |
747 | 752 | ||