diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-commands.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-commands.h | 50 |
1 files changed, 38 insertions, 12 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h index 7e36ecb27575..3bcd107e2d71 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h | |||
@@ -84,6 +84,9 @@ enum { | |||
84 | REPLY_REMOVE_STA = 0x19, /* not used */ | 84 | REPLY_REMOVE_STA = 0x19, /* not used */ |
85 | REPLY_REMOVE_ALL_STA = 0x1a, /* not used */ | 85 | REPLY_REMOVE_ALL_STA = 0x1a, /* not used */ |
86 | 86 | ||
87 | /* Security */ | ||
88 | REPLY_WEPKEY = 0x20, | ||
89 | |||
87 | /* RX, TX, LEDs */ | 90 | /* RX, TX, LEDs */ |
88 | REPLY_TX = 0x1c, | 91 | REPLY_TX = 0x1c, |
89 | REPLY_RATE_SCALE = 0x47, /* 3945 only */ | 92 | REPLY_RATE_SCALE = 0x47, /* 3945 only */ |
@@ -266,11 +269,10 @@ struct iwl_cmd_header { | |||
266 | * 10 B active, A inactive | 269 | * 10 B active, A inactive |
267 | * 11 Both active | 270 | * 11 Both active |
268 | */ | 271 | */ |
269 | #define RATE_MCS_ANT_A_POS 14 | 272 | #define RATE_MCS_ANT_POS 14 |
270 | #define RATE_MCS_ANT_B_POS 15 | 273 | #define RATE_MCS_ANT_A_MSK 0x04000 |
271 | #define RATE_MCS_ANT_A_MSK 0x4000 | 274 | #define RATE_MCS_ANT_B_MSK 0x08000 |
272 | #define RATE_MCS_ANT_B_MSK 0x8000 | 275 | #define RATE_MCS_ANT_AB_MSK 0x0C000 |
273 | #define RATE_MCS_ANT_AB_MSK 0xc000 | ||
274 | 276 | ||
275 | 277 | ||
276 | /** | 278 | /** |
@@ -850,6 +852,30 @@ struct iwl4965_add_sta_resp { | |||
850 | u8 status; /* ADD_STA_* */ | 852 | u8 status; /* ADD_STA_* */ |
851 | } __attribute__ ((packed)); | 853 | } __attribute__ ((packed)); |
852 | 854 | ||
855 | /* | ||
856 | * REPLY_WEP_KEY = 0x20 | ||
857 | */ | ||
858 | struct iwl_wep_key { | ||
859 | u8 key_index; | ||
860 | u8 key_offset; | ||
861 | u8 reserved1[2]; | ||
862 | u8 key_size; | ||
863 | u8 reserved2[3]; | ||
864 | u8 key[16]; | ||
865 | } __attribute__ ((packed)); | ||
866 | |||
867 | struct iwl_wep_cmd { | ||
868 | u8 num_keys; | ||
869 | u8 global_key_type; | ||
870 | u8 flags; | ||
871 | u8 reserved; | ||
872 | struct iwl_wep_key key[0]; | ||
873 | } __attribute__ ((packed)); | ||
874 | |||
875 | #define WEP_KEY_WEP_TYPE 1 | ||
876 | #define WEP_KEYS_MAX 4 | ||
877 | #define WEP_INVALID_OFFSET 0xff | ||
878 | #define WEP_KEY_LEN_128 13 | ||
853 | 879 | ||
854 | /****************************************************************************** | 880 | /****************************************************************************** |
855 | * (4) | 881 | * (4) |
@@ -1387,11 +1413,11 @@ struct iwl4965_txpowertable_cmd { | |||
1387 | 1413 | ||
1388 | 1414 | ||
1389 | /** | 1415 | /** |
1390 | * struct iwl4965_link_qual_general_params | 1416 | * struct iwl_link_qual_general_params |
1391 | * | 1417 | * |
1392 | * Used in REPLY_TX_LINK_QUALITY_CMD | 1418 | * Used in REPLY_TX_LINK_QUALITY_CMD |
1393 | */ | 1419 | */ |
1394 | struct iwl4965_link_qual_general_params { | 1420 | struct iwl_link_qual_general_params { |
1395 | u8 flags; | 1421 | u8 flags; |
1396 | 1422 | ||
1397 | /* No entries at or above this (driver chosen) index contain MIMO */ | 1423 | /* No entries at or above this (driver chosen) index contain MIMO */ |
@@ -1418,11 +1444,11 @@ struct iwl4965_link_qual_general_params { | |||
1418 | } __attribute__ ((packed)); | 1444 | } __attribute__ ((packed)); |
1419 | 1445 | ||
1420 | /** | 1446 | /** |
1421 | * struct iwl4965_link_qual_agg_params | 1447 | * struct iwl_link_qual_agg_params |
1422 | * | 1448 | * |
1423 | * Used in REPLY_TX_LINK_QUALITY_CMD | 1449 | * Used in REPLY_TX_LINK_QUALITY_CMD |
1424 | */ | 1450 | */ |
1425 | struct iwl4965_link_qual_agg_params { | 1451 | struct iwl_link_qual_agg_params { |
1426 | 1452 | ||
1427 | /* Maximum number of uSec in aggregation. | 1453 | /* Maximum number of uSec in aggregation. |
1428 | * Driver should set this to 4000 (4 milliseconds). */ | 1454 | * Driver should set this to 4000 (4 milliseconds). */ |
@@ -1632,14 +1658,14 @@ struct iwl4965_link_qual_agg_params { | |||
1632 | * legacy), and then repeat the search process. | 1658 | * legacy), and then repeat the search process. |
1633 | * | 1659 | * |
1634 | */ | 1660 | */ |
1635 | struct iwl4965_link_quality_cmd { | 1661 | struct iwl_link_quality_cmd { |
1636 | 1662 | ||
1637 | /* Index of destination/recipient station in uCode's station table */ | 1663 | /* Index of destination/recipient station in uCode's station table */ |
1638 | u8 sta_id; | 1664 | u8 sta_id; |
1639 | u8 reserved1; | 1665 | u8 reserved1; |
1640 | __le16 control; /* not used */ | 1666 | __le16 control; /* not used */ |
1641 | struct iwl4965_link_qual_general_params general_params; | 1667 | struct iwl_link_qual_general_params general_params; |
1642 | struct iwl4965_link_qual_agg_params agg_params; | 1668 | struct iwl_link_qual_agg_params agg_params; |
1643 | 1669 | ||
1644 | /* | 1670 | /* |
1645 | * Rate info; when using rate-scaling, Tx command's initial_rate_index | 1671 | * Rate info; when using rate-scaling, Tx command's initial_rate_index |