diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 11:34:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 11:34:36 -0500 |
commit | a7c243b544c0e9f6775c2607decaa59d54fb9e11 (patch) | |
tree | 86fdb4d2d6cef932af7497f28827e7d52b29e48c /drivers/net/wireless/ipw2100.h | |
parent | 7df446e7e043b2ba5fd5de42529f9d797e8b501a (diff) | |
parent | f406db8cba6bbce42b96490e6d31bdec229ad994 (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
Diffstat (limited to 'drivers/net/wireless/ipw2100.h')
-rw-r--r-- | drivers/net/wireless/ipw2100.h | 169 |
1 files changed, 77 insertions, 92 deletions
diff --git a/drivers/net/wireless/ipw2100.h b/drivers/net/wireless/ipw2100.h index 1f23650c077f..140fdf2a0a09 100644 --- a/drivers/net/wireless/ipw2100.h +++ b/drivers/net/wireless/ipw2100.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /****************************************************************************** | 1 | /****************************************************************************** |
2 | 2 | ||
3 | Copyright(c) 2003 - 2005 Intel Corporation. All rights reserved. | 3 | Copyright(c) 2003 - 2004 Intel Corporation. All rights reserved. |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify it | 5 | This program is free software; you can redistribute it and/or modify it |
6 | under the terms of version 2 of the GNU General Public License as | 6 | under the terms of version 2 of the GNU General Public License as |
@@ -92,7 +92,6 @@ struct ipw2100_rx_packet; | |||
92 | #define IPW_DL_IOCTL (1<<14) | 92 | #define IPW_DL_IOCTL (1<<14) |
93 | #define IPW_DL_RF_KILL (1<<17) | 93 | #define IPW_DL_RF_KILL (1<<17) |
94 | 94 | ||
95 | |||
96 | #define IPW_DL_MANAGE (1<<15) | 95 | #define IPW_DL_MANAGE (1<<15) |
97 | #define IPW_DL_FW (1<<16) | 96 | #define IPW_DL_FW (1<<16) |
98 | 97 | ||
@@ -155,7 +154,9 @@ extern const char *band_str[]; | |||
155 | 154 | ||
156 | struct bd_status { | 155 | struct bd_status { |
157 | union { | 156 | union { |
158 | struct { u8 nlf:1, txType:2, intEnabled:1, reserved:4;} fields; | 157 | struct { |
158 | u8 nlf:1, txType:2, intEnabled:1, reserved:4; | ||
159 | } fields; | ||
159 | u8 field; | 160 | u8 field; |
160 | } info; | 161 | } info; |
161 | } __attribute__ ((packed)); | 162 | } __attribute__ ((packed)); |
@@ -164,7 +165,7 @@ struct ipw2100_bd { | |||
164 | u32 host_addr; | 165 | u32 host_addr; |
165 | u32 buf_length; | 166 | u32 buf_length; |
166 | struct bd_status status; | 167 | struct bd_status status; |
167 | /* number of fragments for frame (should be set only for | 168 | /* number of fragments for frame (should be set only for |
168 | * 1st TBD) */ | 169 | * 1st TBD) */ |
169 | u8 num_fragments; | 170 | u8 num_fragments; |
170 | u8 reserved[6]; | 171 | u8 reserved[6]; |
@@ -292,10 +293,10 @@ struct ipw2100_cmd_header { | |||
292 | struct ipw2100_data_header { | 293 | struct ipw2100_data_header { |
293 | u32 host_command_reg; | 294 | u32 host_command_reg; |
294 | u32 host_command_reg1; | 295 | u32 host_command_reg1; |
295 | u8 encrypted; // BOOLEAN in win! TRUE if frame is enc by driver | 296 | u8 encrypted; // BOOLEAN in win! TRUE if frame is enc by driver |
296 | u8 needs_encryption; // BOOLEAN in win! TRUE if frma need to be enc in NIC | 297 | u8 needs_encryption; // BOOLEAN in win! TRUE if frma need to be enc in NIC |
297 | u8 wep_index; // 0 no key, 1-4 key index, 0xff immediate key | 298 | u8 wep_index; // 0 no key, 1-4 key index, 0xff immediate key |
298 | u8 key_size; // 0 no imm key, 0x5 64bit encr, 0xd 128bit encr, 0x10 128bit encr and 128bit IV | 299 | u8 key_size; // 0 no imm key, 0x5 64bit encr, 0xd 128bit encr, 0x10 128bit encr and 128bit IV |
299 | u8 key[16]; | 300 | u8 key[16]; |
300 | u8 reserved[10]; // f/w reserved | 301 | u8 reserved[10]; // f/w reserved |
301 | u8 src_addr[ETH_ALEN]; | 302 | u8 src_addr[ETH_ALEN]; |
@@ -305,14 +306,13 @@ struct ipw2100_data_header { | |||
305 | 306 | ||
306 | /* Host command data structure */ | 307 | /* Host command data structure */ |
307 | struct host_command { | 308 | struct host_command { |
308 | u32 host_command; // COMMAND ID | 309 | u32 host_command; // COMMAND ID |
309 | u32 host_command1; // COMMAND ID | 310 | u32 host_command1; // COMMAND ID |
310 | u32 host_command_sequence; // UNIQUE COMMAND NUMBER (ID) | 311 | u32 host_command_sequence; // UNIQUE COMMAND NUMBER (ID) |
311 | u32 host_command_length; // LENGTH | 312 | u32 host_command_length; // LENGTH |
312 | u32 host_command_parameters[HOST_COMMAND_PARAMS_REG_LEN]; // COMMAND PARAMETERS | 313 | u32 host_command_parameters[HOST_COMMAND_PARAMS_REG_LEN]; // COMMAND PARAMETERS |
313 | } __attribute__ ((packed)); | 314 | } __attribute__ ((packed)); |
314 | 315 | ||
315 | |||
316 | typedef enum { | 316 | typedef enum { |
317 | POWER_ON_RESET, | 317 | POWER_ON_RESET, |
318 | EXIT_POWER_DOWN_RESET, | 318 | EXIT_POWER_DOWN_RESET, |
@@ -327,17 +327,16 @@ enum { | |||
327 | RX | 327 | RX |
328 | }; | 328 | }; |
329 | 329 | ||
330 | |||
331 | struct ipw2100_tx_packet { | 330 | struct ipw2100_tx_packet { |
332 | int type; | 331 | int type; |
333 | int index; | 332 | int index; |
334 | union { | 333 | union { |
335 | struct { /* COMMAND */ | 334 | struct { /* COMMAND */ |
336 | struct ipw2100_cmd_header* cmd; | 335 | struct ipw2100_cmd_header *cmd; |
337 | dma_addr_t cmd_phys; | 336 | dma_addr_t cmd_phys; |
338 | } c_struct; | 337 | } c_struct; |
339 | struct { /* DATA */ | 338 | struct { /* DATA */ |
340 | struct ipw2100_data_header* data; | 339 | struct ipw2100_data_header *data; |
341 | dma_addr_t data_phys; | 340 | dma_addr_t data_phys; |
342 | struct ieee80211_txb *txb; | 341 | struct ieee80211_txb *txb; |
343 | } d_struct; | 342 | } d_struct; |
@@ -347,7 +346,6 @@ struct ipw2100_tx_packet { | |||
347 | struct list_head list; | 346 | struct list_head list; |
348 | }; | 347 | }; |
349 | 348 | ||
350 | |||
351 | struct ipw2100_rx_packet { | 349 | struct ipw2100_rx_packet { |
352 | struct ipw2100_rx *rxp; | 350 | struct ipw2100_rx *rxp; |
353 | dma_addr_t dma_addr; | 351 | dma_addr_t dma_addr; |
@@ -431,13 +429,13 @@ enum { | |||
431 | }; | 429 | }; |
432 | 430 | ||
433 | #define STATUS_POWERED (1<<0) | 431 | #define STATUS_POWERED (1<<0) |
434 | #define STATUS_CMD_ACTIVE (1<<1) /**< host command in progress */ | 432 | #define STATUS_CMD_ACTIVE (1<<1) /**< host command in progress */ |
435 | #define STATUS_RUNNING (1<<2) /* Card initialized, but not enabled */ | 433 | #define STATUS_RUNNING (1<<2) /* Card initialized, but not enabled */ |
436 | #define STATUS_ENABLED (1<<3) /* Card enabled -- can scan,Tx,Rx */ | 434 | #define STATUS_ENABLED (1<<3) /* Card enabled -- can scan,Tx,Rx */ |
437 | #define STATUS_STOPPING (1<<4) /* Card is in shutdown phase */ | 435 | #define STATUS_STOPPING (1<<4) /* Card is in shutdown phase */ |
438 | #define STATUS_INITIALIZED (1<<5) /* Card is ready for external calls */ | 436 | #define STATUS_INITIALIZED (1<<5) /* Card is ready for external calls */ |
439 | #define STATUS_ASSOCIATING (1<<9) /* Associated, but no BSSID yet */ | 437 | #define STATUS_ASSOCIATING (1<<9) /* Associated, but no BSSID yet */ |
440 | #define STATUS_ASSOCIATED (1<<10) /* Associated and BSSID valid */ | 438 | #define STATUS_ASSOCIATED (1<<10) /* Associated and BSSID valid */ |
441 | #define STATUS_INT_ENABLED (1<<11) | 439 | #define STATUS_INT_ENABLED (1<<11) |
442 | #define STATUS_RF_KILL_HW (1<<12) | 440 | #define STATUS_RF_KILL_HW (1<<12) |
443 | #define STATUS_RF_KILL_SW (1<<13) | 441 | #define STATUS_RF_KILL_SW (1<<13) |
@@ -450,9 +448,7 @@ enum { | |||
450 | #define STATUS_SCAN_COMPLETE (1<<26) | 448 | #define STATUS_SCAN_COMPLETE (1<<26) |
451 | #define STATUS_WX_EVENT_PENDING (1<<27) | 449 | #define STATUS_WX_EVENT_PENDING (1<<27) |
452 | #define STATUS_RESET_PENDING (1<<29) | 450 | #define STATUS_RESET_PENDING (1<<29) |
453 | #define STATUS_SECURITY_UPDATED (1<<30) /* Security sync needed */ | 451 | #define STATUS_SECURITY_UPDATED (1<<30) /* Security sync needed */ |
454 | |||
455 | |||
456 | 452 | ||
457 | /* Internal NIC states */ | 453 | /* Internal NIC states */ |
458 | #define IPW_STATE_INITIALIZED (1<<0) | 454 | #define IPW_STATE_INITIALIZED (1<<0) |
@@ -468,11 +464,9 @@ enum { | |||
468 | #define IPW_STATE_POWER_DOWN (1<<10) | 464 | #define IPW_STATE_POWER_DOWN (1<<10) |
469 | #define IPW_STATE_SCANNING (1<<11) | 465 | #define IPW_STATE_SCANNING (1<<11) |
470 | 466 | ||
471 | 467 | #define CFG_STATIC_CHANNEL (1<<0) /* Restrict assoc. to single channel */ | |
472 | 468 | #define CFG_STATIC_ESSID (1<<1) /* Restrict assoc. to single SSID */ | |
473 | #define CFG_STATIC_CHANNEL (1<<0) /* Restrict assoc. to single channel */ | 469 | #define CFG_STATIC_BSSID (1<<2) /* Restrict assoc. to single BSSID */ |
474 | #define CFG_STATIC_ESSID (1<<1) /* Restrict assoc. to single SSID */ | ||
475 | #define CFG_STATIC_BSSID (1<<2) /* Restrict assoc. to single BSSID */ | ||
476 | #define CFG_CUSTOM_MAC (1<<3) | 470 | #define CFG_CUSTOM_MAC (1<<3) |
477 | #define CFG_LONG_PREAMBLE (1<<4) | 471 | #define CFG_LONG_PREAMBLE (1<<4) |
478 | #define CFG_ASSOCIATE (1<<6) | 472 | #define CFG_ASSOCIATE (1<<6) |
@@ -480,14 +474,17 @@ enum { | |||
480 | #define CFG_ADHOC_CREATE (1<<8) | 474 | #define CFG_ADHOC_CREATE (1<<8) |
481 | #define CFG_C3_DISABLED (1<<9) | 475 | #define CFG_C3_DISABLED (1<<9) |
482 | #define CFG_PASSIVE_SCAN (1<<10) | 476 | #define CFG_PASSIVE_SCAN (1<<10) |
477 | #ifdef CONFIG_IPW2100_MONITOR | ||
478 | #define CFG_CRC_CHECK (1<<11) | ||
479 | #endif | ||
483 | 480 | ||
484 | #define CAP_SHARED_KEY (1<<0) /* Off = OPEN */ | 481 | #define CAP_SHARED_KEY (1<<0) /* Off = OPEN */ |
485 | #define CAP_PRIVACY_ON (1<<1) /* Off = No privacy */ | 482 | #define CAP_PRIVACY_ON (1<<1) /* Off = No privacy */ |
486 | 483 | ||
487 | struct ipw2100_priv { | 484 | struct ipw2100_priv { |
488 | 485 | ||
489 | int stop_hang_check; /* Set 1 when shutting down to kill hang_check */ | 486 | int stop_hang_check; /* Set 1 when shutting down to kill hang_check */ |
490 | int stop_rf_kill; /* Set 1 when shutting down to kill rf_kill */ | 487 | int stop_rf_kill; /* Set 1 when shutting down to kill rf_kill */ |
491 | 488 | ||
492 | struct ieee80211_device *ieee; | 489 | struct ieee80211_device *ieee; |
493 | unsigned long status; | 490 | unsigned long status; |
@@ -518,19 +515,16 @@ struct ipw2100_priv { | |||
518 | unsigned long hw_features; | 515 | unsigned long hw_features; |
519 | int hangs; | 516 | int hangs; |
520 | u32 last_rtc; | 517 | u32 last_rtc; |
521 | int dump_raw; /* 1 to dump raw bytes in /sys/.../memory */ | 518 | int dump_raw; /* 1 to dump raw bytes in /sys/.../memory */ |
522 | u8* snapshot[0x30]; | 519 | u8 *snapshot[0x30]; |
523 | 520 | ||
524 | u8 mandatory_bssid_mac[ETH_ALEN]; | 521 | u8 mandatory_bssid_mac[ETH_ALEN]; |
525 | u8 mac_addr[ETH_ALEN]; | 522 | u8 mac_addr[ETH_ALEN]; |
526 | 523 | ||
527 | int power_mode; | 524 | int power_mode; |
528 | 525 | ||
529 | /* WEP data */ | ||
530 | struct ieee80211_security sec; | ||
531 | int messages_sent; | 526 | int messages_sent; |
532 | 527 | ||
533 | |||
534 | int short_retry_limit; | 528 | int short_retry_limit; |
535 | int long_retry_limit; | 529 | int long_retry_limit; |
536 | 530 | ||
@@ -598,7 +592,6 @@ struct ipw2100_priv { | |||
598 | wait_queue_head_t wait_command_queue; | 592 | wait_queue_head_t wait_command_queue; |
599 | }; | 593 | }; |
600 | 594 | ||
601 | |||
602 | /********************************************************* | 595 | /********************************************************* |
603 | * Host Command -> From Driver to FW | 596 | * Host Command -> From Driver to FW |
604 | *********************************************************/ | 597 | *********************************************************/ |
@@ -645,7 +638,6 @@ struct ipw2100_priv { | |||
645 | #define CARD_DISABLE_PHY_OFF 61 | 638 | #define CARD_DISABLE_PHY_OFF 61 |
646 | #define MSDU_TX_RATES 62 | 639 | #define MSDU_TX_RATES 62 |
647 | 640 | ||
648 | |||
649 | /* Rogue AP Detection */ | 641 | /* Rogue AP Detection */ |
650 | #define SET_STATION_STAT_BITS 64 | 642 | #define SET_STATION_STAT_BITS 64 |
651 | #define CLEAR_STATIONS_STAT_BITS 65 | 643 | #define CLEAR_STATIONS_STAT_BITS 65 |
@@ -654,8 +646,6 @@ struct ipw2100_priv { | |||
654 | #define DISASSOCIATION_BSSID 68 | 646 | #define DISASSOCIATION_BSSID 68 |
655 | #define SET_WPA_IE 69 | 647 | #define SET_WPA_IE 69 |
656 | 648 | ||
657 | |||
658 | |||
659 | /* system configuration bit mask: */ | 649 | /* system configuration bit mask: */ |
660 | #define IPW_CFG_MONITOR 0x00004 | 650 | #define IPW_CFG_MONITOR 0x00004 |
661 | #define IPW_CFG_PREAMBLE_AUTO 0x00010 | 651 | #define IPW_CFG_PREAMBLE_AUTO 0x00010 |
@@ -703,7 +693,7 @@ struct ipw2100_priv { | |||
703 | #define IPW2100_INTA_TX_TRANSFER (0x00000001) // Bit 0 (LSB) | 693 | #define IPW2100_INTA_TX_TRANSFER (0x00000001) // Bit 0 (LSB) |
704 | #define IPW2100_INTA_RX_TRANSFER (0x00000002) // Bit 1 | 694 | #define IPW2100_INTA_RX_TRANSFER (0x00000002) // Bit 1 |
705 | #define IPW2100_INTA_TX_COMPLETE (0x00000004) // Bit 2 | 695 | #define IPW2100_INTA_TX_COMPLETE (0x00000004) // Bit 2 |
706 | #define IPW2100_INTA_EVENT_INTERRUPT (0x00000008) // Bit 3 | 696 | #define IPW2100_INTA_EVENT_INTERRUPT (0x00000008) // Bit 3 |
707 | #define IPW2100_INTA_STATUS_CHANGE (0x00000010) // Bit 4 | 697 | #define IPW2100_INTA_STATUS_CHANGE (0x00000010) // Bit 4 |
708 | #define IPW2100_INTA_BEACON_PERIOD_EXPIRED (0x00000020) // Bit 5 | 698 | #define IPW2100_INTA_BEACON_PERIOD_EXPIRED (0x00000020) // Bit 5 |
709 | #define IPW2100_INTA_SLAVE_MODE_HOST_COMMAND_DONE (0x00010000) // Bit 16 | 699 | #define IPW2100_INTA_SLAVE_MODE_HOST_COMMAND_DONE (0x00010000) // Bit 16 |
@@ -783,9 +773,6 @@ struct ipw2100_priv { | |||
783 | #define IPW_CARD_DISABLE_PHY_OFF_COMPLETE_WAIT 100 // 100 milli | 773 | #define IPW_CARD_DISABLE_PHY_OFF_COMPLETE_WAIT 100 // 100 milli |
784 | #define IPW_PREPARE_POWER_DOWN_COMPLETE_WAIT 100 // 100 milli | 774 | #define IPW_PREPARE_POWER_DOWN_COMPLETE_WAIT 100 // 100 milli |
785 | 775 | ||
786 | |||
787 | |||
788 | |||
789 | #define IPW_HEADER_802_11_SIZE sizeof(struct ieee80211_hdr_3addr) | 776 | #define IPW_HEADER_802_11_SIZE sizeof(struct ieee80211_hdr_3addr) |
790 | #define IPW_MAX_80211_PAYLOAD_SIZE 2304U | 777 | #define IPW_MAX_80211_PAYLOAD_SIZE 2304U |
791 | #define IPW_MAX_802_11_PAYLOAD_LENGTH 2312 | 778 | #define IPW_MAX_802_11_PAYLOAD_LENGTH 2312 |
@@ -842,8 +829,8 @@ struct ipw2100_rx { | |||
842 | #define IPW_TX_POWER_MIN_DBM (-12) | 829 | #define IPW_TX_POWER_MIN_DBM (-12) |
843 | #define IPW_TX_POWER_MAX_DBM 16 | 830 | #define IPW_TX_POWER_MAX_DBM 16 |
844 | 831 | ||
845 | #define FW_SCAN_DONOT_ASSOCIATE 0x0001 // Dont Attempt to Associate after Scan | 832 | #define FW_SCAN_DONOT_ASSOCIATE 0x0001 // Dont Attempt to Associate after Scan |
846 | #define FW_SCAN_PASSIVE 0x0008 // Force PASSSIVE Scan | 833 | #define FW_SCAN_PASSIVE 0x0008 // Force PASSSIVE Scan |
847 | 834 | ||
848 | #define REG_MIN_CHANNEL 0 | 835 | #define REG_MIN_CHANNEL 0 |
849 | #define REG_MAX_CHANNEL 14 | 836 | #define REG_MAX_CHANNEL 14 |
@@ -855,7 +842,6 @@ struct ipw2100_rx { | |||
855 | #define DIVERSITY_ANTENNA_A 1 // Use antenna A | 842 | #define DIVERSITY_ANTENNA_A 1 // Use antenna A |
856 | #define DIVERSITY_ANTENNA_B 2 // Use antenna B | 843 | #define DIVERSITY_ANTENNA_B 2 // Use antenna B |
857 | 844 | ||
858 | |||
859 | #define HOST_COMMAND_WAIT 0 | 845 | #define HOST_COMMAND_WAIT 0 |
860 | #define HOST_COMMAND_NO_WAIT 1 | 846 | #define HOST_COMMAND_NO_WAIT 1 |
861 | 847 | ||
@@ -872,10 +858,9 @@ struct ipw2100_rx { | |||
872 | #define TYPE_ASSOCIATION_REQUEST 0x0013 | 858 | #define TYPE_ASSOCIATION_REQUEST 0x0013 |
873 | #define TYPE_REASSOCIATION_REQUEST 0x0014 | 859 | #define TYPE_REASSOCIATION_REQUEST 0x0014 |
874 | 860 | ||
875 | 861 | #define HW_FEATURE_RFKILL 0x0001 | |
876 | #define HW_FEATURE_RFKILL (0x0001) | 862 | #define RF_KILLSWITCH_OFF 1 |
877 | #define RF_KILLSWITCH_OFF (1) | 863 | #define RF_KILLSWITCH_ON 0 |
878 | #define RF_KILLSWITCH_ON (0) | ||
879 | 864 | ||
880 | #define IPW_COMMAND_POOL_SIZE 40 | 865 | #define IPW_COMMAND_POOL_SIZE 40 |
881 | 866 | ||
@@ -894,7 +879,7 @@ struct ipw2100_rx { | |||
894 | // Fixed size data: Ordinal Table 1 | 879 | // Fixed size data: Ordinal Table 1 |
895 | typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW | 880 | typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW |
896 | // Transmit statistics | 881 | // Transmit statistics |
897 | IPW_ORD_STAT_TX_HOST_REQUESTS = 1,// # of requested Host Tx's (MSDU) | 882 | IPW_ORD_STAT_TX_HOST_REQUESTS = 1, // # of requested Host Tx's (MSDU) |
898 | IPW_ORD_STAT_TX_HOST_COMPLETE, // # of successful Host Tx's (MSDU) | 883 | IPW_ORD_STAT_TX_HOST_COMPLETE, // # of successful Host Tx's (MSDU) |
899 | IPW_ORD_STAT_TX_DIR_DATA, // # of successful Directed Tx's (MSDU) | 884 | IPW_ORD_STAT_TX_DIR_DATA, // # of successful Directed Tx's (MSDU) |
900 | 885 | ||
@@ -904,42 +889,42 @@ typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW | |||
904 | IPW_ORD_STAT_TX_DIR_DATA11, // # of successful Directed Tx's (MSDU) @ 11MB | 889 | IPW_ORD_STAT_TX_DIR_DATA11, // # of successful Directed Tx's (MSDU) @ 11MB |
905 | IPW_ORD_STAT_TX_DIR_DATA22, // # of successful Directed Tx's (MSDU) @ 22MB | 890 | IPW_ORD_STAT_TX_DIR_DATA22, // # of successful Directed Tx's (MSDU) @ 22MB |
906 | 891 | ||
907 | IPW_ORD_STAT_TX_NODIR_DATA1 = 13,// # of successful Non_Directed Tx's (MSDU) @ 1MB | 892 | IPW_ORD_STAT_TX_NODIR_DATA1 = 13, // # of successful Non_Directed Tx's (MSDU) @ 1MB |
908 | IPW_ORD_STAT_TX_NODIR_DATA2, // # of successful Non_Directed Tx's (MSDU) @ 2MB | 893 | IPW_ORD_STAT_TX_NODIR_DATA2, // # of successful Non_Directed Tx's (MSDU) @ 2MB |
909 | IPW_ORD_STAT_TX_NODIR_DATA5_5, // # of successful Non_Directed Tx's (MSDU) @ 5.5MB | 894 | IPW_ORD_STAT_TX_NODIR_DATA5_5, // # of successful Non_Directed Tx's (MSDU) @ 5.5MB |
910 | IPW_ORD_STAT_TX_NODIR_DATA11, // # of successful Non_Directed Tx's (MSDU) @ 11MB | 895 | IPW_ORD_STAT_TX_NODIR_DATA11, // # of successful Non_Directed Tx's (MSDU) @ 11MB |
911 | 896 | ||
912 | IPW_ORD_STAT_NULL_DATA = 21, // # of successful NULL data Tx's | 897 | IPW_ORD_STAT_NULL_DATA = 21, // # of successful NULL data Tx's |
913 | IPW_ORD_STAT_TX_RTS, // # of successful Tx RTS | 898 | IPW_ORD_STAT_TX_RTS, // # of successful Tx RTS |
914 | IPW_ORD_STAT_TX_CTS, // # of successful Tx CTS | 899 | IPW_ORD_STAT_TX_CTS, // # of successful Tx CTS |
915 | IPW_ORD_STAT_TX_ACK, // # of successful Tx ACK | 900 | IPW_ORD_STAT_TX_ACK, // # of successful Tx ACK |
916 | IPW_ORD_STAT_TX_ASSN, // # of successful Association Tx's | 901 | IPW_ORD_STAT_TX_ASSN, // # of successful Association Tx's |
917 | IPW_ORD_STAT_TX_ASSN_RESP, // # of successful Association response Tx's | 902 | IPW_ORD_STAT_TX_ASSN_RESP, // # of successful Association response Tx's |
918 | IPW_ORD_STAT_TX_REASSN, // # of successful Reassociation Tx's | 903 | IPW_ORD_STAT_TX_REASSN, // # of successful Reassociation Tx's |
919 | IPW_ORD_STAT_TX_REASSN_RESP, // # of successful Reassociation response Tx's | 904 | IPW_ORD_STAT_TX_REASSN_RESP, // # of successful Reassociation response Tx's |
920 | IPW_ORD_STAT_TX_PROBE, // # of probes successfully transmitted | 905 | IPW_ORD_STAT_TX_PROBE, // # of probes successfully transmitted |
921 | IPW_ORD_STAT_TX_PROBE_RESP, // # of probe responses successfully transmitted | 906 | IPW_ORD_STAT_TX_PROBE_RESP, // # of probe responses successfully transmitted |
922 | IPW_ORD_STAT_TX_BEACON, // # of tx beacon | 907 | IPW_ORD_STAT_TX_BEACON, // # of tx beacon |
923 | IPW_ORD_STAT_TX_ATIM, // # of Tx ATIM | 908 | IPW_ORD_STAT_TX_ATIM, // # of Tx ATIM |
924 | IPW_ORD_STAT_TX_DISASSN, // # of successful Disassociation TX | 909 | IPW_ORD_STAT_TX_DISASSN, // # of successful Disassociation TX |
925 | IPW_ORD_STAT_TX_AUTH, // # of successful Authentication Tx | 910 | IPW_ORD_STAT_TX_AUTH, // # of successful Authentication Tx |
926 | IPW_ORD_STAT_TX_DEAUTH, // # of successful Deauthentication TX | 911 | IPW_ORD_STAT_TX_DEAUTH, // # of successful Deauthentication TX |
927 | 912 | ||
928 | IPW_ORD_STAT_TX_TOTAL_BYTES = 41,// Total successful Tx data bytes | 913 | IPW_ORD_STAT_TX_TOTAL_BYTES = 41, // Total successful Tx data bytes |
929 | IPW_ORD_STAT_TX_RETRIES, // # of Tx retries | 914 | IPW_ORD_STAT_TX_RETRIES, // # of Tx retries |
930 | IPW_ORD_STAT_TX_RETRY1, // # of Tx retries at 1MBPS | 915 | IPW_ORD_STAT_TX_RETRY1, // # of Tx retries at 1MBPS |
931 | IPW_ORD_STAT_TX_RETRY2, // # of Tx retries at 2MBPS | 916 | IPW_ORD_STAT_TX_RETRY2, // # of Tx retries at 2MBPS |
932 | IPW_ORD_STAT_TX_RETRY5_5, // # of Tx retries at 5.5MBPS | 917 | IPW_ORD_STAT_TX_RETRY5_5, // # of Tx retries at 5.5MBPS |
933 | IPW_ORD_STAT_TX_RETRY11, // # of Tx retries at 11MBPS | 918 | IPW_ORD_STAT_TX_RETRY11, // # of Tx retries at 11MBPS |
934 | 919 | ||
935 | IPW_ORD_STAT_TX_FAILURES = 51, // # of Tx Failures | 920 | IPW_ORD_STAT_TX_FAILURES = 51, // # of Tx Failures |
936 | IPW_ORD_STAT_TX_ABORT_AT_HOP, //NS // # of Tx's aborted at hop time | 921 | IPW_ORD_STAT_TX_ABORT_AT_HOP, //NS // # of Tx's aborted at hop time |
937 | IPW_ORD_STAT_TX_MAX_TRIES_IN_HOP,// # of times max tries in a hop failed | 922 | IPW_ORD_STAT_TX_MAX_TRIES_IN_HOP, // # of times max tries in a hop failed |
938 | IPW_ORD_STAT_TX_ABORT_LATE_DMA, //NS // # of times tx aborted due to late dma setup | 923 | IPW_ORD_STAT_TX_ABORT_LATE_DMA, //NS // # of times tx aborted due to late dma setup |
939 | IPW_ORD_STAT_TX_ABORT_STX, //NS // # of times backoff aborted | 924 | IPW_ORD_STAT_TX_ABORT_STX, //NS // # of times backoff aborted |
940 | IPW_ORD_STAT_TX_DISASSN_FAIL, // # of times disassociation failed | 925 | IPW_ORD_STAT_TX_DISASSN_FAIL, // # of times disassociation failed |
941 | IPW_ORD_STAT_TX_ERR_CTS, // # of missed/bad CTS frames | 926 | IPW_ORD_STAT_TX_ERR_CTS, // # of missed/bad CTS frames |
942 | IPW_ORD_STAT_TX_BPDU, //NS // # of spanning tree BPDUs sent | 927 | IPW_ORD_STAT_TX_BPDU, //NS // # of spanning tree BPDUs sent |
943 | IPW_ORD_STAT_TX_ERR_ACK, // # of tx err due to acks | 928 | IPW_ORD_STAT_TX_ERR_ACK, // # of tx err due to acks |
944 | 929 | ||
945 | // Receive statistics | 930 | // Receive statistics |
@@ -951,7 +936,7 @@ typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW | |||
951 | IPW_ORD_STAT_RX_DIR_DATA11, // # of directed packets at 11MB | 936 | IPW_ORD_STAT_RX_DIR_DATA11, // # of directed packets at 11MB |
952 | IPW_ORD_STAT_RX_DIR_DATA22, // # of directed packets at 22MB | 937 | IPW_ORD_STAT_RX_DIR_DATA22, // # of directed packets at 22MB |
953 | 938 | ||
954 | IPW_ORD_STAT_RX_NODIR_DATA = 71,// # of nondirected packets | 939 | IPW_ORD_STAT_RX_NODIR_DATA = 71, // # of nondirected packets |
955 | IPW_ORD_STAT_RX_NODIR_DATA1, // # of nondirected packets at 1MB | 940 | IPW_ORD_STAT_RX_NODIR_DATA1, // # of nondirected packets at 1MB |
956 | IPW_ORD_STAT_RX_NODIR_DATA2, // # of nondirected packets at 2MB | 941 | IPW_ORD_STAT_RX_NODIR_DATA2, // # of nondirected packets at 2MB |
957 | IPW_ORD_STAT_RX_NODIR_DATA5_5, // # of nondirected packets at 5.5MB | 942 | IPW_ORD_STAT_RX_NODIR_DATA5_5, // # of nondirected packets at 5.5MB |
@@ -976,18 +961,18 @@ typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW | |||
976 | IPW_ORD_STAT_RX_AUTH, // # of authentication Rx | 961 | IPW_ORD_STAT_RX_AUTH, // # of authentication Rx |
977 | IPW_ORD_STAT_RX_DEAUTH, // # of deauthentication Rx | 962 | IPW_ORD_STAT_RX_DEAUTH, // # of deauthentication Rx |
978 | 963 | ||
979 | IPW_ORD_STAT_RX_TOTAL_BYTES = 101,// Total rx data bytes received | 964 | IPW_ORD_STAT_RX_TOTAL_BYTES = 101, // Total rx data bytes received |
980 | IPW_ORD_STAT_RX_ERR_CRC, // # of packets with Rx CRC error | 965 | IPW_ORD_STAT_RX_ERR_CRC, // # of packets with Rx CRC error |
981 | IPW_ORD_STAT_RX_ERR_CRC1, // # of Rx CRC errors at 1MB | 966 | IPW_ORD_STAT_RX_ERR_CRC1, // # of Rx CRC errors at 1MB |
982 | IPW_ORD_STAT_RX_ERR_CRC2, // # of Rx CRC errors at 2MB | 967 | IPW_ORD_STAT_RX_ERR_CRC2, // # of Rx CRC errors at 2MB |
983 | IPW_ORD_STAT_RX_ERR_CRC5_5, // # of Rx CRC errors at 5.5MB | 968 | IPW_ORD_STAT_RX_ERR_CRC5_5, // # of Rx CRC errors at 5.5MB |
984 | IPW_ORD_STAT_RX_ERR_CRC11, // # of Rx CRC errors at 11MB | 969 | IPW_ORD_STAT_RX_ERR_CRC11, // # of Rx CRC errors at 11MB |
985 | 970 | ||
986 | IPW_ORD_STAT_RX_DUPLICATE1 = 112, // # of duplicate rx packets at 1MB | 971 | IPW_ORD_STAT_RX_DUPLICATE1 = 112, // # of duplicate rx packets at 1MB |
987 | IPW_ORD_STAT_RX_DUPLICATE2, // # of duplicate rx packets at 2MB | 972 | IPW_ORD_STAT_RX_DUPLICATE2, // # of duplicate rx packets at 2MB |
988 | IPW_ORD_STAT_RX_DUPLICATE5_5, // # of duplicate rx packets at 5.5MB | 973 | IPW_ORD_STAT_RX_DUPLICATE5_5, // # of duplicate rx packets at 5.5MB |
989 | IPW_ORD_STAT_RX_DUPLICATE11, // # of duplicate rx packets at 11MB | 974 | IPW_ORD_STAT_RX_DUPLICATE11, // # of duplicate rx packets at 11MB |
990 | IPW_ORD_STAT_RX_DUPLICATE = 119, // # of duplicate rx packets | 975 | IPW_ORD_STAT_RX_DUPLICATE = 119, // # of duplicate rx packets |
991 | 976 | ||
992 | IPW_ORD_PERS_DB_LOCK = 120, // # locking fw permanent db | 977 | IPW_ORD_PERS_DB_LOCK = 120, // # locking fw permanent db |
993 | IPW_ORD_PERS_DB_SIZE, // # size of fw permanent db | 978 | IPW_ORD_PERS_DB_SIZE, // # size of fw permanent db |
@@ -1005,17 +990,17 @@ typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW | |||
1005 | IPW_ORD_STAT_RX_ICV_ERRORS, // # of ICV errors during decryption | 990 | IPW_ORD_STAT_RX_ICV_ERRORS, // # of ICV errors during decryption |
1006 | 991 | ||
1007 | // PSP Statistics | 992 | // PSP Statistics |
1008 | IPW_ORD_STAT_PSP_SUSPENSION = 137,// # of times adapter suspended | 993 | IPW_ORD_STAT_PSP_SUSPENSION = 137, // # of times adapter suspended |
1009 | IPW_ORD_STAT_PSP_BCN_TIMEOUT, // # of beacon timeout | 994 | IPW_ORD_STAT_PSP_BCN_TIMEOUT, // # of beacon timeout |
1010 | IPW_ORD_STAT_PSP_POLL_TIMEOUT, // # of poll response timeouts | 995 | IPW_ORD_STAT_PSP_POLL_TIMEOUT, // # of poll response timeouts |
1011 | IPW_ORD_STAT_PSP_NONDIR_TIMEOUT,// # of timeouts waiting for last broadcast/muticast pkt | 996 | IPW_ORD_STAT_PSP_NONDIR_TIMEOUT, // # of timeouts waiting for last broadcast/muticast pkt |
1012 | IPW_ORD_STAT_PSP_RX_DTIMS, // # of PSP DTIMs received | 997 | IPW_ORD_STAT_PSP_RX_DTIMS, // # of PSP DTIMs received |
1013 | IPW_ORD_STAT_PSP_RX_TIMS, // # of PSP TIMs received | 998 | IPW_ORD_STAT_PSP_RX_TIMS, // # of PSP TIMs received |
1014 | IPW_ORD_STAT_PSP_STATION_ID, // PSP Station ID | 999 | IPW_ORD_STAT_PSP_STATION_ID, // PSP Station ID |
1015 | 1000 | ||
1016 | // Association and roaming | 1001 | // Association and roaming |
1017 | IPW_ORD_LAST_ASSN_TIME = 147, // RTC time of last association | 1002 | IPW_ORD_LAST_ASSN_TIME = 147, // RTC time of last association |
1018 | IPW_ORD_STAT_PERCENT_MISSED_BCNS,// current calculation of % missed beacons | 1003 | IPW_ORD_STAT_PERCENT_MISSED_BCNS, // current calculation of % missed beacons |
1019 | IPW_ORD_STAT_PERCENT_RETRIES, // current calculation of % missed tx retries | 1004 | IPW_ORD_STAT_PERCENT_RETRIES, // current calculation of % missed tx retries |
1020 | IPW_ORD_ASSOCIATED_AP_PTR, // If associated, this is ptr to the associated | 1005 | IPW_ORD_ASSOCIATED_AP_PTR, // If associated, this is ptr to the associated |
1021 | // AP table entry. set to 0 if not associated | 1006 | // AP table entry. set to 0 if not associated |
@@ -1150,7 +1135,7 @@ struct ipw2100_fw_chunk { | |||
1150 | }; | 1135 | }; |
1151 | 1136 | ||
1152 | struct ipw2100_fw_chunk_set { | 1137 | struct ipw2100_fw_chunk_set { |
1153 | const void *data; | 1138 | const void *data; |
1154 | unsigned long size; | 1139 | unsigned long size; |
1155 | }; | 1140 | }; |
1156 | 1141 | ||
@@ -1163,4 +1148,4 @@ struct ipw2100_fw { | |||
1163 | 1148 | ||
1164 | #define MAX_FW_VERSION_LEN 14 | 1149 | #define MAX_FW_VERSION_LEN 14 |
1165 | 1150 | ||
1166 | #endif /* _IPW2100_H */ | 1151 | #endif /* _IPW2100_H */ |