aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2008-03-19 19:41:42 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-03-25 16:41:52 -0400
commit17e476b8db13790c03e2c46d93abc71468fca47e (patch)
tree8981190d5696cb984939a1fbca8dab4120aa33c4 /drivers/net/wireless/iwlwifi/iwl-4965-commands.h
parentdeb09c435e3f947f8b2c9d5df6a9c0a5b472b125 (diff)
iwlwifi-2.6: RX status translation to old scheme
This patch adds translation for the RX status of an incoming packet. The incoming status has to be translated to the old scheme in order to know if the decryption has been done, MIC failure has occured, TTAK is valid etc... This translation is mandatory for all RX packets when using 5300 and for all HT packets using 4965. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@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-4965-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965-commands.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
index 085d8137bfb8..1d82f105cc26 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
@@ -890,6 +890,10 @@ struct iwl4965_rx_frame_hdr {
890#define RX_RES_STATUS_SEC_TYPE_WEP (0x1 << 8) 890#define RX_RES_STATUS_SEC_TYPE_WEP (0x1 << 8)
891#define RX_RES_STATUS_SEC_TYPE_CCMP (0x2 << 8) 891#define RX_RES_STATUS_SEC_TYPE_CCMP (0x2 << 8)
892#define RX_RES_STATUS_SEC_TYPE_TKIP (0x3 << 8) 892#define RX_RES_STATUS_SEC_TYPE_TKIP (0x3 << 8)
893#define RX_RES_STATUS_SEC_TYPE_ERR (0x7 << 8)
894
895#define RX_RES_STATUS_STATION_FOUND (1<<6)
896#define RX_RES_STATUS_NO_STATION_INFO_MISMATCH (1<<7)
893 897
894#define RX_RES_STATUS_DECRYPT_TYPE_MSK (0x3 << 11) 898#define RX_RES_STATUS_DECRYPT_TYPE_MSK (0x3 << 11)
895#define RX_RES_STATUS_NOT_DECRYPT (0x0 << 11) 899#define RX_RES_STATUS_NOT_DECRYPT (0x0 << 11)
@@ -897,6 +901,11 @@ struct iwl4965_rx_frame_hdr {
897#define RX_RES_STATUS_BAD_ICV_MIC (0x1 << 11) 901#define RX_RES_STATUS_BAD_ICV_MIC (0x1 << 11)
898#define RX_RES_STATUS_BAD_KEY_TTAK (0x2 << 11) 902#define RX_RES_STATUS_BAD_KEY_TTAK (0x2 << 11)
899 903
904#define RX_MPDU_RES_STATUS_ICV_OK (0x20)
905#define RX_MPDU_RES_STATUS_MIC_OK (0x40)
906#define RX_MPDU_RES_STATUS_TTAK_OK (1 << 7)
907#define RX_MPDU_RES_STATUS_DEC_DONE_MSK (0x800)
908
900struct iwl4965_rx_frame_end { 909struct iwl4965_rx_frame_end {
901 __le32 status; 910 __le32 status;
902 __le64 timestamp; 911 __le64 timestamp;