aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-commands.h
diff options
context:
space:
mode:
authorGregory Greenman <gregory.greenman@intel.com>2008-05-15 01:53:59 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-21 21:47:54 -0400
commitc1adf9fb31e31ee753d613bd5bc6aef9b762b747 (patch)
treec4f91af5ec9b24bee0833cf88b6379b1cf8fb993 /drivers/net/wireless/iwlwifi/iwl-commands.h
parent8567c63e3385688b95658fe31b3ac8f4436b1b0f (diff)
iwlwifi: get_hw_cmd_size
This patch introduces a new handler get_hw_cmd_size in hcmd_utils, which should adjust the size of the command sent to the microcode according to the current nic. It also changes the RXON flow to make usage of this new handler. The patch also adds iwl_rxon_cmd structure which is supperset for 5000 HW and 4965. Signed-off-by: Gregory Greenman <gregory.greenman@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index d16a853f376a..350af1be6e35 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -600,6 +600,32 @@ struct iwl4965_rxon_cmd {
600 u8 ofdm_ht_dual_stream_basic_rates; 600 u8 ofdm_ht_dual_stream_basic_rates;
601} __attribute__ ((packed)); 601} __attribute__ ((packed));
602 602
603/* 5000 HW just extend this cmmand */
604struct iwl_rxon_cmd {
605 u8 node_addr[6];
606 __le16 reserved1;
607 u8 bssid_addr[6];
608 __le16 reserved2;
609 u8 wlap_bssid_addr[6];
610 __le16 reserved3;
611 u8 dev_type;
612 u8 air_propagation;
613 __le16 rx_chain;
614 u8 ofdm_basic_rates;
615 u8 cck_basic_rates;
616 __le16 assoc_id;
617 __le32 flags;
618 __le32 filter_flags;
619 __le16 channel;
620 u8 ofdm_ht_single_stream_basic_rates;
621 u8 ofdm_ht_dual_stream_basic_rates;
622 u8 ofdm_ht_triple_stream_basic_rates;
623 u8 reserved5;
624 __le16 acquisition_data;
625 __le16 reserved6;
626} __attribute__ ((packed));
627
628
603/* 629/*
604 * REPLY_RXON_ASSOC = 0x11 (command, has simple generic response) 630 * REPLY_RXON_ASSOC = 0x11 (command, has simple generic response)
605 */ 631 */