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.h200
1 files changed, 100 insertions, 100 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
index 5524bf77e882..2703c52750ba 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965-commands.h
@@ -61,8 +61,8 @@
61 * 61 *
62 *****************************************************************************/ 62 *****************************************************************************/
63 63
64#ifndef __iwl_commands_h__ 64#ifndef __iwl4965_commands_h__
65#define __iwl_commands_h__ 65#define __iwl4965_commands_h__
66 66
67enum { 67enum {
68 REPLY_ALIVE = 0x1, 68 REPLY_ALIVE = 0x1,
@@ -147,7 +147,7 @@ enum {
147 147
148#define IWL_CMD_FAILED_MSK 0x40 148#define IWL_CMD_FAILED_MSK 0x40
149 149
150struct iwl_cmd_header { 150struct iwl4965_cmd_header {
151 u8 cmd; 151 u8 cmd;
152 u8 flags; 152 u8 flags;
153 /* We have 15 LSB to use as we please (MSB indicates 153 /* We have 15 LSB to use as we please (MSB indicates
@@ -179,7 +179,7 @@ struct iwl_cmd_header {
179/* 179/*
180 * REPLY_ALIVE = 0x1 (response only, not a command) 180 * REPLY_ALIVE = 0x1 (response only, not a command)
181 */ 181 */
182struct iwl_alive_resp { 182struct iwl4965_alive_resp {
183 u8 ucode_minor; 183 u8 ucode_minor;
184 u8 ucode_major; 184 u8 ucode_major;
185 __le16 reserved1; 185 __le16 reserved1;
@@ -193,7 +193,7 @@ struct iwl_alive_resp {
193 __le32 is_valid; 193 __le32 is_valid;
194} __attribute__ ((packed)); 194} __attribute__ ((packed));
195 195
196struct iwl_init_alive_resp { 196struct iwl4965_init_alive_resp {
197 u8 ucode_minor; 197 u8 ucode_minor;
198 u8 ucode_major; 198 u8 ucode_major;
199 __le16 reserved1; 199 __le16 reserved1;
@@ -225,7 +225,7 @@ union tsf {
225/* 225/*
226 * REPLY_ERROR = 0x2 (response only, not a command) 226 * REPLY_ERROR = 0x2 (response only, not a command)
227 */ 227 */
228struct iwl_error_resp { 228struct iwl4965_error_resp {
229 __le32 error_type; 229 __le32 error_type;
230 u8 cmd_id; 230 u8 cmd_id;
231 u8 reserved1; 231 u8 reserved1;
@@ -293,7 +293,7 @@ enum {
293/* 293/*
294 * REPLY_RXON = 0x10 (command, has simple generic response) 294 * REPLY_RXON = 0x10 (command, has simple generic response)
295 */ 295 */
296struct iwl_rxon_cmd { 296struct iwl4965_rxon_cmd {
297 u8 node_addr[6]; 297 u8 node_addr[6];
298 __le16 reserved1; 298 __le16 reserved1;
299 u8 bssid_addr[6]; 299 u8 bssid_addr[6];
@@ -316,7 +316,7 @@ struct iwl_rxon_cmd {
316/* 316/*
317 * REPLY_RXON_ASSOC = 0x11 (command, has simple generic response) 317 * REPLY_RXON_ASSOC = 0x11 (command, has simple generic response)
318 */ 318 */
319struct iwl_rxon_assoc_cmd { 319struct iwl4965_rxon_assoc_cmd {
320 __le32 flags; 320 __le32 flags;
321 __le32 filter_flags; 321 __le32 filter_flags;
322 u8 ofdm_basic_rates; 322 u8 ofdm_basic_rates;
@@ -330,7 +330,7 @@ struct iwl_rxon_assoc_cmd {
330/* 330/*
331 * REPLY_RXON_TIMING = 0x14 (command, has simple generic response) 331 * REPLY_RXON_TIMING = 0x14 (command, has simple generic response)
332 */ 332 */
333struct iwl_rxon_time_cmd { 333struct iwl4965_rxon_time_cmd {
334 union tsf timestamp; 334 union tsf timestamp;
335 __le16 beacon_interval; 335 __le16 beacon_interval;
336 __le16 atim_window; 336 __le16 atim_window;
@@ -339,7 +339,7 @@ struct iwl_rxon_time_cmd {
339 __le16 reserved; 339 __le16 reserved;
340} __attribute__ ((packed)); 340} __attribute__ ((packed));
341 341
342struct iwl_tx_power { 342struct iwl4965_tx_power {
343 u8 tx_gain; /* gain for analog radio */ 343 u8 tx_gain; /* gain for analog radio */
344 u8 dsp_atten; /* gain for DSP */ 344 u8 dsp_atten; /* gain for DSP */
345} __attribute__ ((packed)); 345} __attribute__ ((packed));
@@ -351,27 +351,27 @@ struct tx_power_dual_stream {
351 __le32 dw; 351 __le32 dw;
352} __attribute__ ((packed)); 352} __attribute__ ((packed));
353 353
354struct iwl_tx_power_db { 354struct iwl4965_tx_power_db {
355 struct tx_power_dual_stream power_tbl[POWER_TABLE_NUM_ENTRIES]; 355 struct tx_power_dual_stream power_tbl[POWER_TABLE_NUM_ENTRIES];
356} __attribute__ ((packed)); 356} __attribute__ ((packed));
357 357
358/* 358/*
359 * REPLY_CHANNEL_SWITCH = 0x72 (command, has simple generic response) 359 * REPLY_CHANNEL_SWITCH = 0x72 (command, has simple generic response)
360 */ 360 */
361struct iwl_channel_switch_cmd { 361struct iwl4965_channel_switch_cmd {
362 u8 band; 362 u8 band;
363 u8 expect_beacon; 363 u8 expect_beacon;
364 __le16 channel; 364 __le16 channel;
365 __le32 rxon_flags; 365 __le32 rxon_flags;
366 __le32 rxon_filter_flags; 366 __le32 rxon_filter_flags;
367 __le32 switch_time; 367 __le32 switch_time;
368 struct iwl_tx_power_db tx_power; 368 struct iwl4965_tx_power_db tx_power;
369} __attribute__ ((packed)); 369} __attribute__ ((packed));
370 370
371/* 371/*
372 * CHANNEL_SWITCH_NOTIFICATION = 0x73 (notification only, not a command) 372 * CHANNEL_SWITCH_NOTIFICATION = 0x73 (notification only, not a command)
373 */ 373 */
374struct iwl_csa_notification { 374struct iwl4965_csa_notification {
375 __le16 band; 375 __le16 band;
376 __le16 channel; 376 __le16 channel;
377 __le32 status; /* 0 - OK, 1 - fail */ 377 __le32 status; /* 0 - OK, 1 - fail */
@@ -382,7 +382,7 @@ struct iwl_csa_notification {
382 * Quality-of-Service (QOS) Commands & Responses: 382 * Quality-of-Service (QOS) Commands & Responses:
383 * 383 *
384 *****************************************************************************/ 384 *****************************************************************************/
385struct iwl_ac_qos { 385struct iwl4965_ac_qos {
386 __le16 cw_min; 386 __le16 cw_min;
387 __le16 cw_max; 387 __le16 cw_max;
388 u8 aifsn; 388 u8 aifsn;
@@ -404,9 +404,9 @@ struct iwl_ac_qos {
404/* 404/*
405 * REPLY_QOS_PARAM = 0x13 (command, has simple generic response) 405 * REPLY_QOS_PARAM = 0x13 (command, has simple generic response)
406 */ 406 */
407struct iwl_qosparam_cmd { 407struct iwl4965_qosparam_cmd {
408 __le32 qos_flags; 408 __le32 qos_flags;
409 struct iwl_ac_qos ac[AC_NUM]; 409 struct iwl4965_ac_qos ac[AC_NUM];
410} __attribute__ ((packed)); 410} __attribute__ ((packed));
411 411
412/****************************************************************************** 412/******************************************************************************
@@ -464,7 +464,7 @@ struct iwl_qosparam_cmd {
464#define RATE_MCS_ANT_B_MSK 0x8000 464#define RATE_MCS_ANT_B_MSK 0x8000
465#define RATE_MCS_ANT_AB_MSK 0xc000 465#define RATE_MCS_ANT_AB_MSK 0xc000
466 466
467struct iwl_keyinfo { 467struct iwl4965_keyinfo {
468 __le16 key_flags; 468 __le16 key_flags;
469 u8 tkip_rx_tsc_byte2; /* TSC[2] for key mix ph1 detection */ 469 u8 tkip_rx_tsc_byte2; /* TSC[2] for key mix ph1 detection */
470 u8 reserved1; 470 u8 reserved1;
@@ -484,11 +484,11 @@ struct sta_id_modify {
484/* 484/*
485 * REPLY_ADD_STA = 0x18 (command) 485 * REPLY_ADD_STA = 0x18 (command)
486 */ 486 */
487struct iwl_addsta_cmd { 487struct iwl4965_addsta_cmd {
488 u8 mode; 488 u8 mode;
489 u8 reserved[3]; 489 u8 reserved[3];
490 struct sta_id_modify sta; 490 struct sta_id_modify sta;
491 struct iwl_keyinfo key; 491 struct iwl4965_keyinfo key;
492 __le32 station_flags; 492 __le32 station_flags;
493 __le32 station_flags_msk; 493 __le32 station_flags_msk;
494 __le16 tid_disable_tx; 494 __le16 tid_disable_tx;
@@ -502,7 +502,7 @@ struct iwl_addsta_cmd {
502/* 502/*
503 * REPLY_ADD_STA = 0x18 (response) 503 * REPLY_ADD_STA = 0x18 (response)
504 */ 504 */
505struct iwl_add_sta_resp { 505struct iwl4965_add_sta_resp {
506 u8 status; 506 u8 status;
507} __attribute__ ((packed)); 507} __attribute__ ((packed));
508 508
@@ -514,7 +514,7 @@ struct iwl_add_sta_resp {
514 * 514 *
515 *****************************************************************************/ 515 *****************************************************************************/
516 516
517struct iwl_rx_frame_stats { 517struct iwl4965_rx_frame_stats {
518 u8 phy_count; 518 u8 phy_count;
519 u8 id; 519 u8 id;
520 u8 rssi; 520 u8 rssi;
@@ -524,7 +524,7 @@ struct iwl_rx_frame_stats {
524 u8 payload[0]; 524 u8 payload[0];
525} __attribute__ ((packed)); 525} __attribute__ ((packed));
526 526
527struct iwl_rx_frame_hdr { 527struct iwl4965_rx_frame_hdr {
528 __le16 channel; 528 __le16 channel;
529 __le16 phy_flags; 529 __le16 phy_flags;
530 u8 reserved1; 530 u8 reserved1;
@@ -554,7 +554,7 @@ struct iwl_rx_frame_hdr {
554#define RX_RES_STATUS_BAD_ICV_MIC (0x1 << 11) 554#define RX_RES_STATUS_BAD_ICV_MIC (0x1 << 11)
555#define RX_RES_STATUS_BAD_KEY_TTAK (0x2 << 11) 555#define RX_RES_STATUS_BAD_KEY_TTAK (0x2 << 11)
556 556
557struct iwl_rx_frame_end { 557struct iwl4965_rx_frame_end {
558 __le32 status; 558 __le32 status;
559 __le64 timestamp; 559 __le64 timestamp;
560 __le32 beacon_timestamp; 560 __le32 beacon_timestamp;
@@ -568,10 +568,10 @@ struct iwl_rx_frame_end {
568 * The actual offsets of the hdr and end are dynamic based on 568 * The actual offsets of the hdr and end are dynamic based on
569 * stats.phy_count 569 * stats.phy_count
570 */ 570 */
571struct iwl_rx_frame { 571struct iwl4965_rx_frame {
572 struct iwl_rx_frame_stats stats; 572 struct iwl4965_rx_frame_stats stats;
573 struct iwl_rx_frame_hdr hdr; 573 struct iwl4965_rx_frame_hdr hdr;
574 struct iwl_rx_frame_end end; 574 struct iwl4965_rx_frame_end end;
575} __attribute__ ((packed)); 575} __attribute__ ((packed));
576 576
577/* Fixed (non-configurable) rx data from phy */ 577/* Fixed (non-configurable) rx data from phy */
@@ -666,7 +666,7 @@ struct iwl4965_rx_mpdu_res_start {
666 * TX command Frame life time 666 * TX command Frame life time
667 */ 667 */
668 668
669struct iwl_dram_scratch { 669struct iwl4965_dram_scratch {
670 u8 try_cnt; 670 u8 try_cnt;
671 u8 bt_kill_cnt; 671 u8 bt_kill_cnt;
672 __le16 reserved; 672 __le16 reserved;
@@ -675,11 +675,11 @@ struct iwl_dram_scratch {
675/* 675/*
676 * REPLY_TX = 0x1c (command) 676 * REPLY_TX = 0x1c (command)
677 */ 677 */
678struct iwl_tx_cmd { 678struct iwl4965_tx_cmd {
679 __le16 len; 679 __le16 len;
680 __le16 next_frame_len; 680 __le16 next_frame_len;
681 __le32 tx_flags; 681 __le32 tx_flags;
682 struct iwl_dram_scratch scratch; 682 struct iwl4965_dram_scratch scratch;
683 __le32 rate_n_flags; 683 __le32 rate_n_flags;
684 u8 sta_id; 684 u8 sta_id;
685 u8 sec_ctl; 685 u8 sec_ctl;
@@ -807,7 +807,7 @@ enum {
807/* 807/*
808 * REPLY_TX = 0x1c (response) 808 * REPLY_TX = 0x1c (response)
809 */ 809 */
810struct iwl_tx_resp { 810struct iwl4965_tx_resp {
811 u8 frame_count; /* 1 no aggregation, >1 aggregation */ 811 u8 frame_count; /* 1 no aggregation, >1 aggregation */
812 u8 bt_kill_count; 812 u8 bt_kill_count;
813 u8 failure_rts; 813 u8 failure_rts;
@@ -823,7 +823,7 @@ struct iwl_tx_resp {
823/* 823/*
824 * REPLY_COMPRESSED_BA = 0xc5 (response only, not a command) 824 * REPLY_COMPRESSED_BA = 0xc5 (response only, not a command)
825 */ 825 */
826struct iwl_compressed_ba_resp { 826struct iwl4965_compressed_ba_resp {
827 __le32 sta_addr_lo32; 827 __le32 sta_addr_lo32;
828 __le16 sta_addr_hi16; 828 __le16 sta_addr_hi16;
829 __le16 reserved; 829 __le16 reserved;
@@ -839,11 +839,11 @@ struct iwl_compressed_ba_resp {
839/* 839/*
840 * REPLY_TX_PWR_TABLE_CMD = 0x97 (command, has simple generic response) 840 * REPLY_TX_PWR_TABLE_CMD = 0x97 (command, has simple generic response)
841 */ 841 */
842struct iwl_txpowertable_cmd { 842struct iwl4965_txpowertable_cmd {
843 u8 band; /* 0: 5 GHz, 1: 2.4 GHz */ 843 u8 band; /* 0: 5 GHz, 1: 2.4 GHz */
844 u8 reserved; 844 u8 reserved;
845 __le16 channel; 845 __le16 channel;
846 struct iwl_tx_power_db tx_power; 846 struct iwl4965_tx_power_db tx_power;
847} __attribute__ ((packed)); 847} __attribute__ ((packed));
848 848
849/*RS_NEW_API: only TLC_RTS remains and moved to bit 0 */ 849/*RS_NEW_API: only TLC_RTS remains and moved to bit 0 */
@@ -856,7 +856,7 @@ struct iwl_txpowertable_cmd {
856#define LINK_QUAL_ANT_B_MSK (1<<1) 856#define LINK_QUAL_ANT_B_MSK (1<<1)
857#define LINK_QUAL_ANT_MSK (LINK_QUAL_ANT_A_MSK|LINK_QUAL_ANT_B_MSK) 857#define LINK_QUAL_ANT_MSK (LINK_QUAL_ANT_A_MSK|LINK_QUAL_ANT_B_MSK)
858 858
859struct iwl_link_qual_general_params { 859struct iwl4965_link_qual_general_params {
860 u8 flags; 860 u8 flags;
861 u8 mimo_delimiter; 861 u8 mimo_delimiter;
862 u8 single_stream_ant_msk; 862 u8 single_stream_ant_msk;
@@ -864,7 +864,7 @@ struct iwl_link_qual_general_params {
864 u8 start_rate_index[LINK_QUAL_AC_NUM]; 864 u8 start_rate_index[LINK_QUAL_AC_NUM];
865} __attribute__ ((packed)); 865} __attribute__ ((packed));
866 866
867struct iwl_link_qual_agg_params { 867struct iwl4965_link_qual_agg_params {
868 __le16 agg_time_limit; 868 __le16 agg_time_limit;
869 u8 agg_dis_start_th; 869 u8 agg_dis_start_th;
870 u8 agg_frame_cnt_limit; 870 u8 agg_frame_cnt_limit;
@@ -874,12 +874,12 @@ struct iwl_link_qual_agg_params {
874/* 874/*
875 * REPLY_TX_LINK_QUALITY_CMD = 0x4e (command, has simple generic response) 875 * REPLY_TX_LINK_QUALITY_CMD = 0x4e (command, has simple generic response)
876 */ 876 */
877struct iwl_link_quality_cmd { 877struct iwl4965_link_quality_cmd {
878 u8 sta_id; 878 u8 sta_id;
879 u8 reserved1; 879 u8 reserved1;
880 __le16 control; 880 __le16 control;
881 struct iwl_link_qual_general_params general_params; 881 struct iwl4965_link_qual_general_params general_params;
882 struct iwl_link_qual_agg_params agg_params; 882 struct iwl4965_link_qual_agg_params agg_params;
883 struct { 883 struct {
884 __le32 rate_n_flags; 884 __le32 rate_n_flags;
885 } rs_table[LINK_QUAL_MAX_RETRY_NUM]; 885 } rs_table[LINK_QUAL_MAX_RETRY_NUM];
@@ -889,7 +889,7 @@ struct iwl_link_quality_cmd {
889/* 889/*
890 * REPLY_BT_CONFIG = 0x9b (command, has simple generic response) 890 * REPLY_BT_CONFIG = 0x9b (command, has simple generic response)
891 */ 891 */
892struct iwl_bt_cmd { 892struct iwl4965_bt_cmd {
893 u8 flags; 893 u8 flags;
894 u8 lead_time; 894 u8 lead_time;
895 u8 max_kill; 895 u8 max_kill;
@@ -915,18 +915,18 @@ struct iwl_bt_cmd {
915 RXON_FILTER_ASSOC_MSK | \ 915 RXON_FILTER_ASSOC_MSK | \
916 RXON_FILTER_BCON_AWARE_MSK) 916 RXON_FILTER_BCON_AWARE_MSK)
917 917
918struct iwl_measure_channel { 918struct iwl4965_measure_channel {
919 __le32 duration; /* measurement duration in extended beacon 919 __le32 duration; /* measurement duration in extended beacon
920 * format */ 920 * format */
921 u8 channel; /* channel to measure */ 921 u8 channel; /* channel to measure */
922 u8 type; /* see enum iwl_measure_type */ 922 u8 type; /* see enum iwl4965_measure_type */
923 __le16 reserved; 923 __le16 reserved;
924} __attribute__ ((packed)); 924} __attribute__ ((packed));
925 925
926/* 926/*
927 * REPLY_SPECTRUM_MEASUREMENT_CMD = 0x74 (command) 927 * REPLY_SPECTRUM_MEASUREMENT_CMD = 0x74 (command)
928 */ 928 */
929struct iwl_spectrum_cmd { 929struct iwl4965_spectrum_cmd {
930 __le16 len; /* number of bytes starting from token */ 930 __le16 len; /* number of bytes starting from token */
931 u8 token; /* token id */ 931 u8 token; /* token id */
932 u8 id; /* measurement id -- 0 or 1 */ 932 u8 id; /* measurement id -- 0 or 1 */
@@ -939,13 +939,13 @@ struct iwl_spectrum_cmd {
939 __le32 filter_flags; /* rxon filter flags */ 939 __le32 filter_flags; /* rxon filter flags */
940 __le16 channel_count; /* minimum 1, maximum 10 */ 940 __le16 channel_count; /* minimum 1, maximum 10 */
941 __le16 reserved3; 941 __le16 reserved3;
942 struct iwl_measure_channel channels[10]; 942 struct iwl4965_measure_channel channels[10];
943} __attribute__ ((packed)); 943} __attribute__ ((packed));
944 944
945/* 945/*
946 * REPLY_SPECTRUM_MEASUREMENT_CMD = 0x74 (response) 946 * REPLY_SPECTRUM_MEASUREMENT_CMD = 0x74 (response)
947 */ 947 */
948struct iwl_spectrum_resp { 948struct iwl4965_spectrum_resp {
949 u8 token; 949 u8 token;
950 u8 id; /* id of the prior command replaced, or 0xff */ 950 u8 id; /* id of the prior command replaced, or 0xff */
951 __le16 status; /* 0 - command will be handled 951 __le16 status; /* 0 - command will be handled
@@ -953,12 +953,12 @@ struct iwl_spectrum_resp {
953 * measurement) */ 953 * measurement) */
954} __attribute__ ((packed)); 954} __attribute__ ((packed));
955 955
956enum iwl_measurement_state { 956enum iwl4965_measurement_state {
957 IWL_MEASUREMENT_START = 0, 957 IWL_MEASUREMENT_START = 0,
958 IWL_MEASUREMENT_STOP = 1, 958 IWL_MEASUREMENT_STOP = 1,
959}; 959};
960 960
961enum iwl_measurement_status { 961enum iwl4965_measurement_status {
962 IWL_MEASUREMENT_OK = 0, 962 IWL_MEASUREMENT_OK = 0,
963 IWL_MEASUREMENT_CONCURRENT = 1, 963 IWL_MEASUREMENT_CONCURRENT = 1,
964 IWL_MEASUREMENT_CSA_CONFLICT = 2, 964 IWL_MEASUREMENT_CSA_CONFLICT = 2,
@@ -971,18 +971,18 @@ enum iwl_measurement_status {
971 971
972#define NUM_ELEMENTS_IN_HISTOGRAM 8 972#define NUM_ELEMENTS_IN_HISTOGRAM 8
973 973
974struct iwl_measurement_histogram { 974struct iwl4965_measurement_histogram {
975 __le32 ofdm[NUM_ELEMENTS_IN_HISTOGRAM]; /* in 0.8usec counts */ 975 __le32 ofdm[NUM_ELEMENTS_IN_HISTOGRAM]; /* in 0.8usec counts */
976 __le32 cck[NUM_ELEMENTS_IN_HISTOGRAM]; /* in 1usec counts */ 976 __le32 cck[NUM_ELEMENTS_IN_HISTOGRAM]; /* in 1usec counts */
977} __attribute__ ((packed)); 977} __attribute__ ((packed));
978 978
979/* clear channel availability counters */ 979/* clear channel availability counters */
980struct iwl_measurement_cca_counters { 980struct iwl4965_measurement_cca_counters {
981 __le32 ofdm; 981 __le32 ofdm;
982 __le32 cck; 982 __le32 cck;
983} __attribute__ ((packed)); 983} __attribute__ ((packed));
984 984
985enum iwl_measure_type { 985enum iwl4965_measure_type {
986 IWL_MEASURE_BASIC = (1 << 0), 986 IWL_MEASURE_BASIC = (1 << 0),
987 IWL_MEASURE_CHANNEL_LOAD = (1 << 1), 987 IWL_MEASURE_CHANNEL_LOAD = (1 << 1),
988 IWL_MEASURE_HISTOGRAM_RPI = (1 << 2), 988 IWL_MEASURE_HISTOGRAM_RPI = (1 << 2),
@@ -995,7 +995,7 @@ enum iwl_measure_type {
995/* 995/*
996 * SPECTRUM_MEASURE_NOTIFICATION = 0x75 (notification only, not a command) 996 * SPECTRUM_MEASURE_NOTIFICATION = 0x75 (notification only, not a command)
997 */ 997 */
998struct iwl_spectrum_notification { 998struct iwl4965_spectrum_notification {
999 u8 id; /* measurement id -- 0 or 1 */ 999 u8 id; /* measurement id -- 0 or 1 */
1000 u8 token; 1000 u8 token;
1001 u8 channel_index; /* index in measurement channel list */ 1001 u8 channel_index; /* index in measurement channel list */
@@ -1003,7 +1003,7 @@ struct iwl_spectrum_notification {
1003 __le32 start_time; /* lower 32-bits of TSF */ 1003 __le32 start_time; /* lower 32-bits of TSF */
1004 u8 band; /* 0 - 5.2GHz, 1 - 2.4GHz */ 1004 u8 band; /* 0 - 5.2GHz, 1 - 2.4GHz */
1005 u8 channel; 1005 u8 channel;
1006 u8 type; /* see enum iwl_measurement_type */ 1006 u8 type; /* see enum iwl4965_measurement_type */
1007 u8 reserved1; 1007 u8 reserved1;
1008 /* NOTE: cca_ofdm, cca_cck, basic_type, and histogram are only only 1008 /* NOTE: cca_ofdm, cca_cck, basic_type, and histogram are only only
1009 * valid if applicable for measurement type requested. */ 1009 * valid if applicable for measurement type requested. */
@@ -1013,9 +1013,9 @@ struct iwl_spectrum_notification {
1013 u8 basic_type; /* 0 - bss, 1 - ofdm preamble, 2 - 1013 u8 basic_type; /* 0 - bss, 1 - ofdm preamble, 2 -
1014 * unidentified */ 1014 * unidentified */
1015 u8 reserved2[3]; 1015 u8 reserved2[3];
1016 struct iwl_measurement_histogram histogram; 1016 struct iwl4965_measurement_histogram histogram;
1017 __le32 stop_time; /* lower 32-bits of TSF */ 1017 __le32 stop_time; /* lower 32-bits of TSF */
1018 __le32 status; /* see iwl_measurement_status */ 1018 __le32 status; /* see iwl4965_measurement_status */
1019} __attribute__ ((packed)); 1019} __attribute__ ((packed));
1020 1020
1021/****************************************************************************** 1021/******************************************************************************
@@ -1025,7 +1025,7 @@ struct iwl_spectrum_notification {
1025 *****************************************************************************/ 1025 *****************************************************************************/
1026 1026
1027/** 1027/**
1028 * struct iwl_powertable_cmd - Power Table Command 1028 * struct iwl4965_powertable_cmd - Power Table Command
1029 * @flags: See below: 1029 * @flags: See below:
1030 * 1030 *
1031 * POWER_TABLE_CMD = 0x77 (command, has simple generic response) 1031 * POWER_TABLE_CMD = 0x77 (command, has simple generic response)
@@ -1058,7 +1058,7 @@ struct iwl_spectrum_notification {
1058#define IWL_POWER_SLEEP_OVER_DTIM_MSK __constant_cpu_to_le16(1<<2) 1058#define IWL_POWER_SLEEP_OVER_DTIM_MSK __constant_cpu_to_le16(1<<2)
1059#define IWL_POWER_PCI_PM_MSK __constant_cpu_to_le16(1<<3) 1059#define IWL_POWER_PCI_PM_MSK __constant_cpu_to_le16(1<<3)
1060 1060
1061struct iwl_powertable_cmd { 1061struct iwl4965_powertable_cmd {
1062 __le16 flags; 1062 __le16 flags;
1063 u8 keep_alive_seconds; 1063 u8 keep_alive_seconds;
1064 u8 debug_flags; 1064 u8 debug_flags;
@@ -1072,7 +1072,7 @@ struct iwl_powertable_cmd {
1072 * PM_SLEEP_NOTIFICATION = 0x7A (notification only, not a command) 1072 * PM_SLEEP_NOTIFICATION = 0x7A (notification only, not a command)
1073 * 3945 and 4965 identical. 1073 * 3945 and 4965 identical.
1074 */ 1074 */
1075struct iwl_sleep_notification { 1075struct iwl4965_sleep_notification {
1076 u8 pm_sleep_mode; 1076 u8 pm_sleep_mode;
1077 u8 pm_wakeup_src; 1077 u8 pm_wakeup_src;
1078 __le16 reserved; 1078 __le16 reserved;
@@ -1102,14 +1102,14 @@ enum {
1102#define CARD_STATE_CMD_DISABLE 0x00 /* Put card to sleep */ 1102#define CARD_STATE_CMD_DISABLE 0x00 /* Put card to sleep */
1103#define CARD_STATE_CMD_ENABLE 0x01 /* Wake up card */ 1103#define CARD_STATE_CMD_ENABLE 0x01 /* Wake up card */
1104#define CARD_STATE_CMD_HALT 0x02 /* Power down permanently */ 1104#define CARD_STATE_CMD_HALT 0x02 /* Power down permanently */
1105struct iwl_card_state_cmd { 1105struct iwl4965_card_state_cmd {
1106 __le32 status; /* CARD_STATE_CMD_* request new power state */ 1106 __le32 status; /* CARD_STATE_CMD_* request new power state */
1107} __attribute__ ((packed)); 1107} __attribute__ ((packed));
1108 1108
1109/* 1109/*
1110 * CARD_STATE_NOTIFICATION = 0xa1 (notification only, not a command) 1110 * CARD_STATE_NOTIFICATION = 0xa1 (notification only, not a command)
1111 */ 1111 */
1112struct iwl_card_state_notif { 1112struct iwl4965_card_state_notif {
1113 __le32 flags; 1113 __le32 flags;
1114} __attribute__ ((packed)); 1114} __attribute__ ((packed));
1115 1115
@@ -1118,7 +1118,7 @@ struct iwl_card_state_notif {
1118#define RF_CARD_DISABLED 0x04 1118#define RF_CARD_DISABLED 0x04
1119#define RXON_CARD_DISABLED 0x10 1119#define RXON_CARD_DISABLED 0x10
1120 1120
1121struct iwl_ct_kill_config { 1121struct iwl4965_ct_kill_config {
1122 __le32 reserved; 1122 __le32 reserved;
1123 __le32 critical_temperature_M; 1123 __le32 critical_temperature_M;
1124 __le32 critical_temperature_R; 1124 __le32 critical_temperature_R;
@@ -1130,7 +1130,7 @@ struct iwl_ct_kill_config {
1130 * 1130 *
1131 *****************************************************************************/ 1131 *****************************************************************************/
1132 1132
1133struct iwl_scan_channel { 1133struct iwl4965_scan_channel {
1134 /* type is defined as: 1134 /* type is defined as:
1135 * 0:0 active (0 - passive) 1135 * 0:0 active (0 - passive)
1136 * 1:4 SSID direct 1136 * 1:4 SSID direct
@@ -1139,12 +1139,12 @@ struct iwl_scan_channel {
1139 */ 1139 */
1140 u8 type; 1140 u8 type;
1141 u8 channel; 1141 u8 channel;
1142 struct iwl_tx_power tpc; 1142 struct iwl4965_tx_power tpc;
1143 __le16 active_dwell; 1143 __le16 active_dwell;
1144 __le16 passive_dwell; 1144 __le16 passive_dwell;
1145} __attribute__ ((packed)); 1145} __attribute__ ((packed));
1146 1146
1147struct iwl_ssid_ie { 1147struct iwl4965_ssid_ie {
1148 u8 id; 1148 u8 id;
1149 u8 len; 1149 u8 len;
1150 u8 ssid[32]; 1150 u8 ssid[32];
@@ -1158,7 +1158,7 @@ struct iwl_ssid_ie {
1158/* 1158/*
1159 * REPLY_SCAN_CMD = 0x80 (command) 1159 * REPLY_SCAN_CMD = 0x80 (command)
1160 */ 1160 */
1161struct iwl_scan_cmd { 1161struct iwl4965_scan_cmd {
1162 __le16 len; 1162 __le16 len;
1163 u8 reserved0; 1163 u8 reserved0;
1164 u8 channel_count; 1164 u8 channel_count;
@@ -1177,14 +1177,14 @@ struct iwl_scan_cmd {
1177 __le32 flags; 1177 __le32 flags;
1178 __le32 filter_flags; 1178 __le32 filter_flags;
1179 1179
1180 struct iwl_tx_cmd tx_cmd; 1180 struct iwl4965_tx_cmd tx_cmd;
1181 struct iwl_ssid_ie direct_scan[PROBE_OPTION_MAX]; 1181 struct iwl4965_ssid_ie direct_scan[PROBE_OPTION_MAX];
1182 1182
1183 u8 data[0]; 1183 u8 data[0];
1184 /* 1184 /*
1185 * The channels start after the probe request payload and are of type: 1185 * The channels start after the probe request payload and are of type:
1186 * 1186 *
1187 * struct iwl_scan_channel channels[0]; 1187 * struct iwl4965_scan_channel channels[0];
1188 * 1188 *
1189 * NOTE: Only one band of channels can be scanned per pass. You 1189 * NOTE: Only one band of channels can be scanned per pass. You
1190 * can not mix 2.4GHz channels and 5.2GHz channels and must 1190 * can not mix 2.4GHz channels and 5.2GHz channels and must
@@ -1201,14 +1201,14 @@ struct iwl_scan_cmd {
1201/* 1201/*
1202 * REPLY_SCAN_CMD = 0x80 (response) 1202 * REPLY_SCAN_CMD = 0x80 (response)
1203 */ 1203 */
1204struct iwl_scanreq_notification { 1204struct iwl4965_scanreq_notification {
1205 __le32 status; /* 1: okay, 2: cannot fulfill request */ 1205 __le32 status; /* 1: okay, 2: cannot fulfill request */
1206} __attribute__ ((packed)); 1206} __attribute__ ((packed));
1207 1207
1208/* 1208/*
1209 * SCAN_START_NOTIFICATION = 0x82 (notification only, not a command) 1209 * SCAN_START_NOTIFICATION = 0x82 (notification only, not a command)
1210 */ 1210 */
1211struct iwl_scanstart_notification { 1211struct iwl4965_scanstart_notification {
1212 __le32 tsf_low; 1212 __le32 tsf_low;
1213 __le32 tsf_high; 1213 __le32 tsf_high;
1214 __le32 beacon_timer; 1214 __le32 beacon_timer;
@@ -1225,7 +1225,7 @@ struct iwl_scanstart_notification {
1225/* 1225/*
1226 * SCAN_RESULTS_NOTIFICATION = 0x83 (notification only, not a command) 1226 * SCAN_RESULTS_NOTIFICATION = 0x83 (notification only, not a command)
1227 */ 1227 */
1228struct iwl_scanresults_notification { 1228struct iwl4965_scanresults_notification {
1229 u8 channel; 1229 u8 channel;
1230 u8 band; 1230 u8 band;
1231 u8 reserved[2]; 1231 u8 reserved[2];
@@ -1237,7 +1237,7 @@ struct iwl_scanresults_notification {
1237/* 1237/*
1238 * SCAN_COMPLETE_NOTIFICATION = 0x84 (notification only, not a command) 1238 * SCAN_COMPLETE_NOTIFICATION = 0x84 (notification only, not a command)
1239 */ 1239 */
1240struct iwl_scancomplete_notification { 1240struct iwl4965_scancomplete_notification {
1241 u8 scanned_channels; 1241 u8 scanned_channels;
1242 u8 status; 1242 u8 status;
1243 u8 reserved; 1243 u8 reserved;
@@ -1256,8 +1256,8 @@ struct iwl_scancomplete_notification {
1256/* 1256/*
1257 * BEACON_NOTIFICATION = 0x90 (notification only, not a command) 1257 * BEACON_NOTIFICATION = 0x90 (notification only, not a command)
1258 */ 1258 */
1259struct iwl_beacon_notif { 1259struct iwl4965_beacon_notif {
1260 struct iwl_tx_resp beacon_notify_hdr; 1260 struct iwl4965_tx_resp beacon_notify_hdr;
1261 __le32 low_tsf; 1261 __le32 low_tsf;
1262 __le32 high_tsf; 1262 __le32 high_tsf;
1263 __le32 ibss_mgr_status; 1263 __le32 ibss_mgr_status;
@@ -1266,8 +1266,8 @@ struct iwl_beacon_notif {
1266/* 1266/*
1267 * REPLY_TX_BEACON = 0x91 (command, has simple generic response) 1267 * REPLY_TX_BEACON = 0x91 (command, has simple generic response)
1268 */ 1268 */
1269struct iwl_tx_beacon_cmd { 1269struct iwl4965_tx_beacon_cmd {
1270 struct iwl_tx_cmd tx; 1270 struct iwl4965_tx_cmd tx;
1271 __le16 tim_idx; 1271 __le16 tim_idx;
1272 u8 tim_size; 1272 u8 tim_size;
1273 u8 reserved1; 1273 u8 reserved1;
@@ -1458,7 +1458,7 @@ struct statistics_general {
1458 */ 1458 */
1459#define IWL_STATS_CONF_CLEAR_STATS __constant_cpu_to_le32(0x1) /* see above */ 1459#define IWL_STATS_CONF_CLEAR_STATS __constant_cpu_to_le32(0x1) /* see above */
1460#define IWL_STATS_CONF_DISABLE_NOTIF __constant_cpu_to_le32(0x2)/* see above */ 1460#define IWL_STATS_CONF_DISABLE_NOTIF __constant_cpu_to_le32(0x2)/* see above */
1461struct iwl_statistics_cmd { 1461struct iwl4965_statistics_cmd {
1462 __le32 configuration_flags; /* IWL_STATS_CONF_* */ 1462 __le32 configuration_flags; /* IWL_STATS_CONF_* */
1463} __attribute__ ((packed)); 1463} __attribute__ ((packed));
1464 1464
@@ -1479,7 +1479,7 @@ struct iwl_statistics_cmd {
1479 */ 1479 */
1480#define STATISTICS_REPLY_FLG_BAND_24G_MSK __constant_cpu_to_le32(0x2) 1480#define STATISTICS_REPLY_FLG_BAND_24G_MSK __constant_cpu_to_le32(0x2)
1481#define STATISTICS_REPLY_FLG_FAT_MODE_MSK __constant_cpu_to_le32(0x8) 1481#define STATISTICS_REPLY_FLG_FAT_MODE_MSK __constant_cpu_to_le32(0x8)
1482struct iwl_notif_statistics { 1482struct iwl4965_notif_statistics {
1483 __le32 flag; 1483 __le32 flag;
1484 struct statistics_rx rx; 1484 struct statistics_rx rx;
1485 struct statistics_tx tx; 1485 struct statistics_tx tx;
@@ -1494,7 +1494,7 @@ struct iwl_notif_statistics {
1494 * then this notification will be sent. */ 1494 * then this notification will be sent. */
1495#define CONSECUTIVE_MISSED_BCONS_TH 20 1495#define CONSECUTIVE_MISSED_BCONS_TH 20
1496 1496
1497struct iwl_missed_beacon_notif { 1497struct iwl4965_missed_beacon_notif {
1498 __le32 consequtive_missed_beacons; 1498 __le32 consequtive_missed_beacons;
1499 __le32 total_missed_becons; 1499 __le32 total_missed_becons;
1500 __le32 num_expected_beacons; 1500 __le32 num_expected_beacons;
@@ -1510,12 +1510,12 @@ struct iwl_missed_beacon_notif {
1510#define PHY_CALIBRATE_DIFF_GAIN_CMD (7) 1510#define PHY_CALIBRATE_DIFF_GAIN_CMD (7)
1511#define HD_TABLE_SIZE (11) 1511#define HD_TABLE_SIZE (11)
1512 1512
1513struct iwl_sensitivity_cmd { 1513struct iwl4965_sensitivity_cmd {
1514 __le16 control; 1514 __le16 control;
1515 __le16 table[HD_TABLE_SIZE]; 1515 __le16 table[HD_TABLE_SIZE];
1516} __attribute__ ((packed)); 1516} __attribute__ ((packed));
1517 1517
1518struct iwl_calibration_cmd { 1518struct iwl4965_calibration_cmd {
1519 u8 opCode; 1519 u8 opCode;
1520 u8 flags; 1520 u8 flags;
1521 __le16 reserved; 1521 __le16 reserved;
@@ -1538,7 +1538,7 @@ struct iwl_calibration_cmd {
1538 * For each of 3 possible LEDs (Activity/Link/Tech, selected by "id" field), 1538 * For each of 3 possible LEDs (Activity/Link/Tech, selected by "id" field),
1539 * this command turns it on or off, or sets up a periodic blinking cycle. 1539 * this command turns it on or off, or sets up a periodic blinking cycle.
1540 */ 1540 */
1541struct iwl_led_cmd { 1541struct iwl4965_led_cmd {
1542 __le32 interval; /* "interval" in uSec */ 1542 __le32 interval; /* "interval" in uSec */
1543 u8 id; /* 1: Activity, 2: Link, 3: Tech */ 1543 u8 id; /* 1: Activity, 2: Link, 3: Tech */
1544 u8 off; /* # intervals off while blinking; 1544 u8 off; /* # intervals off while blinking;
@@ -1554,29 +1554,29 @@ struct iwl_led_cmd {
1554 * 1554 *
1555 *****************************************************************************/ 1555 *****************************************************************************/
1556 1556
1557struct iwl_rx_packet { 1557struct iwl4965_rx_packet {
1558 __le32 len; 1558 __le32 len;
1559 struct iwl_cmd_header hdr; 1559 struct iwl4965_cmd_header hdr;
1560 union { 1560 union {
1561 struct iwl_alive_resp alive_frame; 1561 struct iwl4965_alive_resp alive_frame;
1562 struct iwl_rx_frame rx_frame; 1562 struct iwl4965_rx_frame rx_frame;
1563 struct iwl_tx_resp tx_resp; 1563 struct iwl4965_tx_resp tx_resp;
1564 struct iwl_spectrum_notification spectrum_notif; 1564 struct iwl4965_spectrum_notification spectrum_notif;
1565 struct iwl_csa_notification csa_notif; 1565 struct iwl4965_csa_notification csa_notif;
1566 struct iwl_error_resp err_resp; 1566 struct iwl4965_error_resp err_resp;
1567 struct iwl_card_state_notif card_state_notif; 1567 struct iwl4965_card_state_notif card_state_notif;
1568 struct iwl_beacon_notif beacon_status; 1568 struct iwl4965_beacon_notif beacon_status;
1569 struct iwl_add_sta_resp add_sta; 1569 struct iwl4965_add_sta_resp add_sta;
1570 struct iwl_sleep_notification sleep_notif; 1570 struct iwl4965_sleep_notification sleep_notif;
1571 struct iwl_spectrum_resp spectrum; 1571 struct iwl4965_spectrum_resp spectrum;
1572 struct iwl_notif_statistics stats; 1572 struct iwl4965_notif_statistics stats;
1573 struct iwl_compressed_ba_resp compressed_ba; 1573 struct iwl4965_compressed_ba_resp compressed_ba;
1574 struct iwl_missed_beacon_notif missed_beacon; 1574 struct iwl4965_missed_beacon_notif missed_beacon;
1575 __le32 status; 1575 __le32 status;
1576 u8 raw[0]; 1576 u8 raw[0];
1577 } u; 1577 } u;
1578} __attribute__ ((packed)); 1578} __attribute__ ((packed));
1579 1579
1580#define IWL_RX_FRAME_SIZE (4 + sizeof(struct iwl_rx_frame)) 1580#define IWL_RX_FRAME_SIZE (4 + sizeof(struct iwl4965_rx_frame))
1581 1581
1582#endif /* __iwl_commands_h__ */ 1582#endif /* __iwl4965_commands_h__ */