aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965-commands.h43
1 files changed, 34 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
index f3470c896d9a..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
@@ -1300,6 +1307,25 @@ struct iwl4965_tx_resp {
1300 __le32 status; /* TX status (for aggregation status of 1st frame) */ 1307 __le32 status; /* TX status (for aggregation status of 1st frame) */
1301} __attribute__ ((packed)); 1308} __attribute__ ((packed));
1302 1309
1310struct agg_tx_status {
1311 __le16 status;
1312 __le16 sequence;
1313} __attribute__ ((packed));
1314
1315struct iwl4965_tx_resp_agg {
1316 u8 frame_count; /* 1 no aggregation, >1 aggregation */
1317 u8 reserved1;
1318 u8 failure_rts;
1319 u8 failure_frame;
1320 __le32 rate_n_flags;
1321 __le16 wireless_media_time;
1322 __le16 reserved3;
1323 __le32 pa_power1;
1324 __le32 pa_power2;
1325 struct agg_tx_status status; /* TX status (for aggregation status */
1326 /* of 1st frame) */
1327} __attribute__ ((packed));
1328
1303/* 1329/*
1304 * REPLY_COMPRESSED_BA = 0xc5 (response only, not a command) 1330 * REPLY_COMPRESSED_BA = 0xc5 (response only, not a command)
1305 * 1331 *
@@ -1313,9 +1339,8 @@ struct iwl4965_compressed_ba_resp {
1313 /* Index of recipient (BA-sending) station in uCode's station table */ 1339 /* Index of recipient (BA-sending) station in uCode's station table */
1314 u8 sta_id; 1340 u8 sta_id;
1315 u8 tid; 1341 u8 tid;
1316 __le16 ba_seq_ctl; 1342 __le16 seq_ctl;
1317 __le32 ba_bitmap0; 1343 __le64 bitmap;
1318 __le32 ba_bitmap1;
1319 __le16 scd_flow; 1344 __le16 scd_flow;
1320 __le16 scd_ssn; 1345 __le16 scd_ssn;
1321} __attribute__ ((packed)); 1346} __attribute__ ((packed));