diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-10-07 21:37:30 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:04 -0400 |
commit | 3195c1f3499912b207ae600968488759b16037fc (patch) | |
tree | 88c1c56a4c863a64fbee7514195da3797e56b5a0 /drivers/net/wireless/iwlwifi/iwl-commands.h | |
parent | 5d664a41a0a8c612f66bcb3c2a6f395e9afa6beb (diff) |
iwlwifi: refactor rxon time command
This patch refactors rxon time command. It removes the usage of union tsf
in favor of u64 value and hopefully makes code more readable. There are
no functional changes in this patch.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@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.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index fc467c545ce8..ba54613ae63e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -482,11 +482,6 @@ struct iwl_alive_resp { | |||
482 | } __attribute__ ((packed)); | 482 | } __attribute__ ((packed)); |
483 | 483 | ||
484 | 484 | ||
485 | union tsf { | ||
486 | u8 byte[8]; | ||
487 | __le16 word[4]; | ||
488 | __le32 dw[2]; | ||
489 | }; | ||
490 | 485 | ||
491 | /* | 486 | /* |
492 | * REPLY_ERROR = 0x2 (response only, not a command) | 487 | * REPLY_ERROR = 0x2 (response only, not a command) |
@@ -497,7 +492,7 @@ struct iwl_error_resp { | |||
497 | u8 reserved1; | 492 | u8 reserved1; |
498 | __le16 bad_cmd_seq_num; | 493 | __le16 bad_cmd_seq_num; |
499 | __le32 error_info; | 494 | __le32 error_info; |
500 | union tsf timestamp; | 495 | __le64 timestamp; |
501 | } __attribute__ ((packed)); | 496 | } __attribute__ ((packed)); |
502 | 497 | ||
503 | /****************************************************************************** | 498 | /****************************************************************************** |
@@ -684,8 +679,8 @@ struct iwl4965_rxon_assoc_cmd { | |||
684 | /* | 679 | /* |
685 | * REPLY_RXON_TIMING = 0x14 (command, has simple generic response) | 680 | * REPLY_RXON_TIMING = 0x14 (command, has simple generic response) |
686 | */ | 681 | */ |
687 | struct iwl4965_rxon_time_cmd { | 682 | struct iwl_rxon_time_cmd { |
688 | union tsf timestamp; | 683 | __le64 timestamp; |
689 | __le16 beacon_interval; | 684 | __le16 beacon_interval; |
690 | __le16 atim_window; | 685 | __le16 atim_window; |
691 | __le32 beacon_init_val; | 686 | __le32 beacon_init_val; |