diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-03-01 18:36:04 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-06 17:09:45 -0500 |
commit | 8211ef78d9023a8772e5acf6b7934598156b2fc8 (patch) | |
tree | 2306bb8216c131adaea6b36f09ff35db9975193d /drivers/net/wireless/iwlwifi/iwl-4965-commands.h | |
parent | 2acae16ee79386c73db10fa8e95c9cd42fbad272 (diff) |
iwlwifi: refactor init geos function
This patch refactors init geos function. It also fixes few minor bugs.
IWL_MAX_RATE -> IWL_RATE_COUNT (IWL_MAX_RATE included also MCS setting)
There are 9 and 13 rates for 4965 in 2.4 and 5.2 respectively (rate 60)
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-4965-commands.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-commands.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h index b21ffea325cf..327eabce182c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h | |||
@@ -875,26 +875,26 @@ struct iwl4965_rx_frame_hdr { | |||
875 | u8 payload[0]; | 875 | u8 payload[0]; |
876 | } __attribute__ ((packed)); | 876 | } __attribute__ ((packed)); |
877 | 877 | ||
878 | #define RX_RES_STATUS_NO_CRC32_ERROR __constant_cpu_to_le32(1 << 0) | 878 | #define RX_RES_STATUS_NO_CRC32_ERROR __constant_cpu_to_le32(1 << 0) |
879 | #define RX_RES_STATUS_NO_RXE_OVERFLOW __constant_cpu_to_le32(1 << 1) | 879 | #define RX_RES_STATUS_NO_RXE_OVERFLOW __constant_cpu_to_le32(1 << 1) |
880 | 880 | ||
881 | #define RX_RES_PHY_FLAGS_BAND_24_MSK __constant_cpu_to_le16(1 << 0) | 881 | #define RX_RES_PHY_FLAGS_BAND_24_MSK __constant_cpu_to_le16(1 << 0) |
882 | #define RX_RES_PHY_FLAGS_MOD_CCK_MSK __constant_cpu_to_le16(1 << 1) | 882 | #define RX_RES_PHY_FLAGS_MOD_CCK_MSK __constant_cpu_to_le16(1 << 1) |
883 | #define RX_RES_PHY_FLAGS_SHORT_PREAMBLE_MSK __constant_cpu_to_le16(1 << 2) | 883 | #define RX_RES_PHY_FLAGS_SHORT_PREAMBLE_MSK __constant_cpu_to_le16(1 << 2) |
884 | #define RX_RES_PHY_FLAGS_NARROW_BAND_MSK __constant_cpu_to_le16(1 << 3) | 884 | #define RX_RES_PHY_FLAGS_NARROW_BAND_MSK __constant_cpu_to_le16(1 << 3) |
885 | #define RX_RES_PHY_FLAGS_ANTENNA_MSK __constant_cpu_to_le16(0xf0) | 885 | #define RX_RES_PHY_FLAGS_ANTENNA_MSK __constant_cpu_to_le16(0xf0) |
886 | 886 | ||
887 | #define RX_RES_STATUS_SEC_TYPE_MSK (0x7 << 8) | 887 | #define RX_RES_STATUS_SEC_TYPE_MSK (0x7 << 8) |
888 | #define RX_RES_STATUS_SEC_TYPE_NONE (0x0 << 8) | 888 | #define RX_RES_STATUS_SEC_TYPE_NONE (0x0 << 8) |
889 | #define RX_RES_STATUS_SEC_TYPE_WEP (0x1 << 8) | 889 | #define RX_RES_STATUS_SEC_TYPE_WEP (0x1 << 8) |
890 | #define RX_RES_STATUS_SEC_TYPE_CCMP (0x2 << 8) | 890 | #define RX_RES_STATUS_SEC_TYPE_CCMP (0x2 << 8) |
891 | #define RX_RES_STATUS_SEC_TYPE_TKIP (0x3 << 8) | 891 | #define RX_RES_STATUS_SEC_TYPE_TKIP (0x3 << 8) |
892 | 892 | ||
893 | #define RX_RES_STATUS_DECRYPT_TYPE_MSK (0x3 << 11) | 893 | #define RX_RES_STATUS_DECRYPT_TYPE_MSK (0x3 << 11) |
894 | #define RX_RES_STATUS_NOT_DECRYPT (0x0 << 11) | 894 | #define RX_RES_STATUS_NOT_DECRYPT (0x0 << 11) |
895 | #define RX_RES_STATUS_DECRYPT_OK (0x3 << 11) | 895 | #define RX_RES_STATUS_DECRYPT_OK (0x3 << 11) |
896 | #define RX_RES_STATUS_BAD_ICV_MIC (0x1 << 11) | 896 | #define RX_RES_STATUS_BAD_ICV_MIC (0x1 << 11) |
897 | #define RX_RES_STATUS_BAD_KEY_TTAK (0x2 << 11) | 897 | #define RX_RES_STATUS_BAD_KEY_TTAK (0x2 << 11) |
898 | 898 | ||
899 | struct iwl4965_rx_frame_end { | 899 | struct iwl4965_rx_frame_end { |
900 | __le32 status; | 900 | __le32 status; |