diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2008-02-13 14:32:29 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:08 -0500 |
commit | eaaf7894959d413d1e01443a622c507e1b4f61db (patch) | |
tree | 269554b3158315e3b750257729d1ffeb07aa7100 /drivers/net/wireless/iwlwifi/iwl-4965-commands.h | |
parent | 35f0d354bf0b0c125ac814419202f8c551081fda (diff) |
iwlwifi-2.6: Adds and fixes defines about security
This patch adds some missing defines defines for HW security. It also fixes
the add_station host cmd layout.
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.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h index 9edd8abcf570..b21ffea325cf 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h | |||
@@ -727,14 +727,20 @@ struct iwl4965_qosparam_cmd { | |||
727 | #define STA_CONTROL_MODIFY_MSK 0x01 | 727 | #define STA_CONTROL_MODIFY_MSK 0x01 |
728 | 728 | ||
729 | /* key flags __le16*/ | 729 | /* key flags __le16*/ |
730 | #define STA_KEY_FLG_ENCRYPT_MSK __constant_cpu_to_le16(0x7) | 730 | #define STA_KEY_FLG_ENCRYPT_MSK __constant_cpu_to_le16(0x0007) |
731 | #define STA_KEY_FLG_NO_ENC __constant_cpu_to_le16(0x0) | 731 | #define STA_KEY_FLG_NO_ENC __constant_cpu_to_le16(0x0000) |
732 | #define STA_KEY_FLG_WEP __constant_cpu_to_le16(0x1) | 732 | #define STA_KEY_FLG_WEP __constant_cpu_to_le16(0x0001) |
733 | #define STA_KEY_FLG_CCMP __constant_cpu_to_le16(0x2) | 733 | #define STA_KEY_FLG_CCMP __constant_cpu_to_le16(0x0002) |
734 | #define STA_KEY_FLG_TKIP __constant_cpu_to_le16(0x3) | 734 | #define STA_KEY_FLG_TKIP __constant_cpu_to_le16(0x0003) |
735 | 735 | ||
736 | #define STA_KEY_FLG_KEYID_POS 8 | 736 | #define STA_KEY_FLG_KEYID_POS 8 |
737 | #define STA_KEY_FLG_INVALID __constant_cpu_to_le16(0x0800) | 737 | #define STA_KEY_FLG_INVALID __constant_cpu_to_le16(0x0800) |
738 | /* wep key is either from global key (0) or from station info array (1) */ | ||
739 | #define STA_KEY_FLG_MAP_KEY_MSK __constant_cpu_to_le16(0x0008) | ||
740 | |||
741 | /* wep key in STA: 5-bytes (0) or 13-bytes (1) */ | ||
742 | #define STA_KEY_FLG_KEY_SIZE_MSK __constant_cpu_to_le16(0x1000) | ||
743 | #define STA_KEY_MULTICAST_MSK __constant_cpu_to_le16(0x4000) | ||
738 | 744 | ||
739 | /* Flags indicate whether to modify vs. don't change various station params */ | 745 | /* Flags indicate whether to modify vs. don't change various station params */ |
740 | #define STA_MODIFY_KEY_MASK 0x01 | 746 | #define STA_MODIFY_KEY_MASK 0x01 |
@@ -752,7 +758,8 @@ struct iwl4965_keyinfo { | |||
752 | u8 tkip_rx_tsc_byte2; /* TSC[2] for key mix ph1 detection */ | 758 | u8 tkip_rx_tsc_byte2; /* TSC[2] for key mix ph1 detection */ |
753 | u8 reserved1; | 759 | u8 reserved1; |
754 | __le16 tkip_rx_ttak[5]; /* 10-byte unicast TKIP TTAK */ | 760 | __le16 tkip_rx_ttak[5]; /* 10-byte unicast TKIP TTAK */ |
755 | __le16 reserved2; | 761 | u8 key_offset; |
762 | u8 reserved2; | ||
756 | u8 key[16]; /* 16-byte unicast decryption key */ | 763 | u8 key[16]; /* 16-byte unicast decryption key */ |
757 | } __attribute__ ((packed)); | 764 | } __attribute__ ((packed)); |
758 | 765 | ||