diff options
Diffstat (limited to 'drivers/net/wireless/ipw2100.h')
-rw-r--r-- | drivers/net/wireless/ipw2100.h | 170 |
1 files changed, 77 insertions, 93 deletions
diff --git a/drivers/net/wireless/ipw2100.h b/drivers/net/wireless/ipw2100.h index c9e99ce15d6..140fdf2a0a0 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 |
@@ -37,7 +37,6 @@ | |||
37 | #include <linux/socket.h> | 37 | #include <linux/socket.h> |
38 | #include <linux/if_arp.h> | 38 | #include <linux/if_arp.h> |
39 | #include <linux/wireless.h> | 39 | #include <linux/wireless.h> |
40 | #include <linux/version.h> | ||
41 | #include <net/iw_handler.h> // new driver API | 40 | #include <net/iw_handler.h> // new driver API |
42 | 41 | ||
43 | #include <net/ieee80211.h> | 42 | #include <net/ieee80211.h> |
@@ -93,7 +92,6 @@ struct ipw2100_rx_packet; | |||
93 | #define IPW_DL_IOCTL (1<<14) | 92 | #define IPW_DL_IOCTL (1<<14) |
94 | #define IPW_DL_RF_KILL (1<<17) | 93 | #define IPW_DL_RF_KILL (1<<17) |
95 | 94 | ||
96 | |||
97 | #define IPW_DL_MANAGE (1<<15) | 95 | #define IPW_DL_MANAGE (1<<15) |
98 | #define IPW_DL_FW (1<<16) | 96 | #define IPW_DL_FW (1<<16) |
99 | 97 | ||
@@ -156,7 +154,9 @@ extern const char *band_str[]; | |||
156 | 154 | ||
157 | struct bd_status { | 155 | struct bd_status { |
158 | union { | 156 | union { |
159 | 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; | ||
160 | u8 field; | 160 | u8 field; |
161 | } info; | 161 | } info; |
162 | } __attribute__ ((packed)); | 162 | } __attribute__ ((packed)); |
@@ -165,7 +165,7 @@ struct ipw2100_bd { | |||
165 | u32 host_addr; | 165 | u32 host_addr; |
166 | u32 buf_length; | 166 | u32 buf_length; |
167 | struct bd_status status; | 167 | struct bd_status status; |
168 | /* number of fragments for frame (should be set only for | 168 | /* number of fragments for frame (should be set only for |
169 | * 1st TBD) */ | 169 | * 1st TBD) */ |
170 | u8 num_fragments; | 170 | u8 num_fragments; |
171 | u8 reserved[6]; | 171 | u8 reserved[6]; |
@@ -293,10 +293,10 @@ struct ipw2100_cmd_header { | |||
293 | struct ipw2100_data_header { | 293 | struct ipw2100_data_header { |
294 | u32 host_command_reg; | 294 | u32 host_command_reg; |
295 | u32 host_command_reg1; | 295 | u32 host_command_reg1; |
296 | 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 |
297 | 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 |
298 | 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 |
299 | 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 |
300 | u8 key[16]; | 300 | u8 key[16]; |
301 | u8 reserved[10]; // f/w reserved | 301 | u8 reserved[10]; // f/w reserved |
302 | u8 src_addr[ETH_ALEN]; | 302 | u8 src_addr[ETH_ALEN]; |
@@ -306,14 +306,13 @@ struct ipw2100_data_header { | |||
306 | 306 | ||
307 | /* Host command data structure */ | 307 | /* Host command data structure */ |
308 | struct host_command { | 308 | struct host_command { |
309 | u32 host_command; // COMMAND ID | 309 | u32 host_command; // COMMAND ID |
310 | u32 host_command1; // COMMAND ID | 310 | u32 host_command1; // COMMAND ID |
311 | u32 host_command_sequence; // UNIQUE COMMAND NUMBER (ID) | 311 | u32 host_command_sequence; // UNIQUE COMMAND NUMBER (ID) |
312 | u32 host_command_length; // LENGTH | 312 | u32 host_command_length; // LENGTH |
313 | u32 host_command_parameters[HOST_COMMAND_PARAMS_REG_LEN]; // COMMAND PARAMETERS | 313 | u32 host_command_parameters[HOST_COMMAND_PARAMS_REG_LEN]; // COMMAND PARAMETERS |
314 | } __attribute__ ((packed)); | 314 | } __attribute__ ((packed)); |
315 | 315 | ||
316 | |||
317 | typedef enum { | 316 | typedef enum { |
318 | POWER_ON_RESET, | 317 | POWER_ON_RESET, |
319 | EXIT_POWER_DOWN_RESET, | 318 | EXIT_POWER_DOWN_RESET, |
@@ -328,17 +327,16 @@ enum { | |||
328 | RX | 327 | RX |
329 | }; | 328 | }; |
330 | 329 | ||
331 | |||
332 | struct ipw2100_tx_packet { | 330 | struct ipw2100_tx_packet { |
333 | int type; | 331 | int type; |
334 | int index; | 332 | int index; |
335 | union { | 333 | union { |
336 | struct { /* COMMAND */ | 334 | struct { /* COMMAND */ |
337 | struct ipw2100_cmd_header* cmd; | 335 | struct ipw2100_cmd_header *cmd; |
338 | dma_addr_t cmd_phys; | 336 | dma_addr_t cmd_phys; |
339 | } c_struct; | 337 | } c_struct; |
340 | struct { /* DATA */ | 338 | struct { /* DATA */ |
341 | struct ipw2100_data_header* data; | 339 | struct ipw2100_data_header *data; |
342 | dma_addr_t data_phys; | 340 | dma_addr_t data_phys; |
343 | struct ieee80211_txb *txb; | 341 | struct ieee80211_txb *txb; |
344 | } d_struct; | 342 | } d_struct; |
@@ -348,7 +346,6 @@ struct ipw2100_tx_packet { | |||
348 | struct list_head list; | 346 | struct list_head list; |
349 | }; | 347 | }; |
350 | 348 | ||
351 | |||
352 | struct ipw2100_rx_packet { | 349 | struct ipw2100_rx_packet { |
353 | struct ipw2100_rx *rxp; | 350 | struct ipw2100_rx *rxp; |
354 | dma_addr_t dma_addr; | 351 | dma_addr_t dma_addr; |
@@ -432,13 +429,13 @@ enum { | |||
432 | }; | 429 | }; |
433 | 430 | ||
434 | #define STATUS_POWERED (1<<0) | 431 | #define STATUS_POWERED (1<<0) |
435 | #define STATUS_CMD_ACTIVE (1<<1) /**< host command in progress */ | 432 | #define STATUS_CMD_ACTIVE (1<<1) /**< host command in progress */ |
436 | #define STATUS_RUNNING (1<<2) /* Card initialized, but not enabled */ | 433 | #define STATUS_RUNNING (1<<2) /* Card initialized, but not enabled */ |
437 | #define STATUS_ENABLED (1<<3) /* Card enabled -- can scan,Tx,Rx */ | 434 | #define STATUS_ENABLED (1<<3) /* Card enabled -- can scan,Tx,Rx */ |
438 | #define STATUS_STOPPING (1<<4) /* Card is in shutdown phase */ | 435 | #define STATUS_STOPPING (1<<4) /* Card is in shutdown phase */ |
439 | #define STATUS_INITIALIZED (1<<5) /* Card is ready for external calls */ | 436 | #define STATUS_INITIALIZED (1<<5) /* Card is ready for external calls */ |
440 | #define STATUS_ASSOCIATING (1<<9) /* Associated, but no BSSID yet */ | 437 | #define STATUS_ASSOCIATING (1<<9) /* Associated, but no BSSID yet */ |
441 | #define STATUS_ASSOCIATED (1<<10) /* Associated and BSSID valid */ | 438 | #define STATUS_ASSOCIATED (1<<10) /* Associated and BSSID valid */ |
442 | #define STATUS_INT_ENABLED (1<<11) | 439 | #define STATUS_INT_ENABLED (1<<11) |
443 | #define STATUS_RF_KILL_HW (1<<12) | 440 | #define STATUS_RF_KILL_HW (1<<12) |
444 | #define STATUS_RF_KILL_SW (1<<13) | 441 | #define STATUS_RF_KILL_SW (1<<13) |
@@ -451,9 +448,7 @@ enum { | |||
451 | #define STATUS_SCAN_COMPLETE (1<<26) | 448 | #define STATUS_SCAN_COMPLETE (1<<26) |
452 | #define STATUS_WX_EVENT_PENDING (1<<27) | 449 | #define STATUS_WX_EVENT_PENDING (1<<27) |
453 | #define STATUS_RESET_PENDING (1<<29) | 450 | #define STATUS_RESET_PENDING (1<<29) |
454 | #define STATUS_SECURITY_UPDATED (1<<30) /* Security sync needed */ | 451 | #define STATUS_SECURITY_UPDATED (1<<30) /* Security sync needed */ |
455 | |||
456 | |||
457 | 452 | ||
458 | /* Internal NIC states */ | 453 | /* Internal NIC states */ |
459 | #define IPW_STATE_INITIALIZED (1<<0) | 454 | #define IPW_STATE_INITIALIZED (1<<0) |
@@ -469,11 +464,9 @@ enum { | |||
469 | #define IPW_STATE_POWER_DOWN (1<<10) | 464 | #define IPW_STATE_POWER_DOWN (1<<10) |
470 | #define IPW_STATE_SCANNING (1<<11) | 465 | #define IPW_STATE_SCANNING (1<<11) |
471 | 466 | ||
472 | 467 | #define CFG_STATIC_CHANNEL (1<<0) /* Restrict assoc. to single channel */ | |
473 | 468 | #define CFG_STATIC_ESSID (1<<1) /* Restrict assoc. to single SSID */ | |
474 | #define CFG_STATIC_CHANNEL (1<<0) /* Restrict assoc. to single channel */ | 469 | #define CFG_STATIC_BSSID (1<<2) /* Restrict assoc. to single BSSID */ |
475 | #define CFG_STATIC_ESSID (1<<1) /* Restrict assoc. to single SSID */ | ||
476 | #define CFG_STATIC_BSSID (1<<2) /* Restrict assoc. to single BSSID */ | ||
477 | #define CFG_CUSTOM_MAC (1<<3) | 470 | #define CFG_CUSTOM_MAC (1<<3) |
478 | #define CFG_LONG_PREAMBLE (1<<4) | 471 | #define CFG_LONG_PREAMBLE (1<<4) |
479 | #define CFG_ASSOCIATE (1<<6) | 472 | #define CFG_ASSOCIATE (1<<6) |
@@ -481,14 +474,17 @@ enum { | |||
481 | #define CFG_ADHOC_CREATE (1<<8) | 474 | #define CFG_ADHOC_CREATE (1<<8) |
482 | #define CFG_C3_DISABLED (1<<9) | 475 | #define CFG_C3_DISABLED (1<<9) |
483 | #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 | ||
484 | 480 | ||
485 | #define CAP_SHARED_KEY (1<<0) /* Off = OPEN */ | 481 | #define CAP_SHARED_KEY (1<<0) /* Off = OPEN */ |
486 | #define CAP_PRIVACY_ON (1<<1) /* Off = No privacy */ | 482 | #define CAP_PRIVACY_ON (1<<1) /* Off = No privacy */ |
487 | 483 | ||
488 | struct ipw2100_priv { | 484 | struct ipw2100_priv { |
489 | 485 | ||
490 | 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 */ |
491 | 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 */ |
492 | 488 | ||
493 | struct ieee80211_device *ieee; | 489 | struct ieee80211_device *ieee; |
494 | unsigned long status; | 490 | unsigned long status; |
@@ -519,19 +515,16 @@ struct ipw2100_priv { | |||
519 | unsigned long hw_features; | 515 | unsigned long hw_features; |
520 | int hangs; | 516 | int hangs; |
521 | u32 last_rtc; | 517 | u32 last_rtc; |
522 | int dump_raw; /* 1 to dump raw bytes in /sys/.../memory */ | 518 | int dump_raw; /* 1 to dump raw bytes in /sys/.../memory */ |
523 | u8* snapshot[0x30]; | 519 | u8 *snapshot[0x30]; |
524 | 520 | ||
525 | u8 mandatory_bssid_mac[ETH_ALEN]; | 521 | u8 mandatory_bssid_mac[ETH_ALEN]; |
526 | u8 mac_addr[ETH_ALEN]; | 522 | u8 mac_addr[ETH_ALEN]; |
527 | 523 | ||
528 | int power_mode; | 524 | int power_mode; |
529 | 525 | ||
530 | /* WEP data */ | ||
531 | struct ieee80211_security sec; | ||
532 | int messages_sent; | 526 | int messages_sent; |
533 | 527 | ||
534 | |||
535 | int short_retry_limit; | 528 | int short_retry_limit; |
536 | int long_retry_limit; | 529 | int long_retry_limit; |
537 | 530 | ||
@@ -599,7 +592,6 @@ struct ipw2100_priv { | |||
599 | wait_queue_head_t wait_command_queue; | 592 | wait_queue_head_t wait_command_queue; |
600 | }; | 593 | }; |
601 | 594 | ||
602 | |||
603 | /********************************************************* | 595 | /********************************************************* |
604 | * Host Command -> From Driver to FW | 596 | * Host Command -> From Driver to FW |
605 | *********************************************************/ | 597 | *********************************************************/ |
@@ -646,7 +638,6 @@ struct ipw2100_priv { | |||
646 | #define CARD_DISABLE_PHY_OFF 61 | 638 | #define CARD_DISABLE_PHY_OFF 61 |
647 | #define MSDU_TX_RATES 62 | 639 | #define MSDU_TX_RATES 62 |
648 | 640 | ||
649 | |||
650 | /* Rogue AP Detection */ | 641 | /* Rogue AP Detection */ |
651 | #define SET_STATION_STAT_BITS 64 | 642 | #define SET_STATION_STAT_BITS 64 |
652 | #define CLEAR_STATIONS_STAT_BITS 65 | 643 | #define CLEAR_STATIONS_STAT_BITS 65 |
@@ -655,8 +646,6 @@ struct ipw2100_priv { | |||
655 | #define DISASSOCIATION_BSSID 68 | 646 | #define DISASSOCIATION_BSSID 68 |
656 | #define SET_WPA_IE 69 | 647 | #define SET_WPA_IE 69 |
657 | 648 | ||
658 | |||
659 | |||
660 | /* system configuration bit mask: */ | 649 | /* system configuration bit mask: */ |
661 | #define IPW_CFG_MONITOR 0x00004 | 650 | #define IPW_CFG_MONITOR 0x00004 |
662 | #define IPW_CFG_PREAMBLE_AUTO 0x00010 | 651 | #define IPW_CFG_PREAMBLE_AUTO 0x00010 |
@@ -704,7 +693,7 @@ struct ipw2100_priv { | |||
704 | #define IPW2100_INTA_TX_TRANSFER (0x00000001) // Bit 0 (LSB) | 693 | #define IPW2100_INTA_TX_TRANSFER (0x00000001) // Bit 0 (LSB) |
705 | #define IPW2100_INTA_RX_TRANSFER (0x00000002) // Bit 1 | 694 | #define IPW2100_INTA_RX_TRANSFER (0x00000002) // Bit 1 |
706 | #define IPW2100_INTA_TX_COMPLETE (0x00000004) // Bit 2 | 695 | #define IPW2100_INTA_TX_COMPLETE (0x00000004) // Bit 2 |
707 | #define IPW2100_INTA_EVENT_INTERRUPT (0x00000008) // Bit 3 | 696 | #define IPW2100_INTA_EVENT_INTERRUPT (0x00000008) // Bit 3 |
708 | #define IPW2100_INTA_STATUS_CHANGE (0x00000010) // Bit 4 | 697 | #define IPW2100_INTA_STATUS_CHANGE (0x00000010) // Bit 4 |
709 | #define IPW2100_INTA_BEACON_PERIOD_EXPIRED (0x00000020) // Bit 5 | 698 | #define IPW2100_INTA_BEACON_PERIOD_EXPIRED (0x00000020) // Bit 5 |
710 | #define IPW2100_INTA_SLAVE_MODE_HOST_COMMAND_DONE (0x00010000) // Bit 16 | 699 | #define IPW2100_INTA_SLAVE_MODE_HOST_COMMAND_DONE (0x00010000) // Bit 16 |
@@ -784,9 +773,6 @@ struct ipw2100_priv { | |||
784 | #define IPW_CARD_DISABLE_PHY_OFF_COMPLETE_WAIT 100 // 100 milli | 773 | #define IPW_CARD_DISABLE_PHY_OFF_COMPLETE_WAIT 100 // 100 milli |
785 | #define IPW_PREPARE_POWER_DOWN_COMPLETE_WAIT 100 // 100 milli | 774 | #define IPW_PREPARE_POWER_DOWN_COMPLETE_WAIT 100 // 100 milli |
786 | 775 | ||
787 | |||
788 | |||
789 | |||
790 | #define IPW_HEADER_802_11_SIZE sizeof(struct ieee80211_hdr_3addr) | 776 | #define IPW_HEADER_802_11_SIZE sizeof(struct ieee80211_hdr_3addr) |
791 | #define IPW_MAX_80211_PAYLOAD_SIZE 2304U | 777 | #define IPW_MAX_80211_PAYLOAD_SIZE 2304U |
792 | #define IPW_MAX_802_11_PAYLOAD_LENGTH 2312 | 778 | #define IPW_MAX_802_11_PAYLOAD_LENGTH 2312 |
@@ -843,8 +829,8 @@ struct ipw2100_rx { | |||
843 | #define IPW_TX_POWER_MIN_DBM (-12) | 829 | #define IPW_TX_POWER_MIN_DBM (-12) |
844 | #define IPW_TX_POWER_MAX_DBM 16 | 830 | #define IPW_TX_POWER_MAX_DBM 16 |
845 | 831 | ||
846 | #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 |
847 | #define FW_SCAN_PASSIVE 0x0008 // Force PASSSIVE Scan | 833 | #define FW_SCAN_PASSIVE 0x0008 // Force PASSSIVE Scan |
848 | 834 | ||
849 | #define REG_MIN_CHANNEL 0 | 835 | #define REG_MIN_CHANNEL 0 |
850 | #define REG_MAX_CHANNEL 14 | 836 | #define REG_MAX_CHANNEL 14 |
@@ -856,7 +842,6 @@ struct ipw2100_rx { | |||
856 | #define DIVERSITY_ANTENNA_A 1 // Use antenna A | 842 | #define DIVERSITY_ANTENNA_A 1 // Use antenna A |
857 | #define DIVERSITY_ANTENNA_B 2 // Use antenna B | 843 | #define DIVERSITY_ANTENNA_B 2 // Use antenna B |
858 | 844 | ||
859 | |||
860 | #define HOST_COMMAND_WAIT 0 | 845 | #define HOST_COMMAND_WAIT 0 |
861 | #define HOST_COMMAND_NO_WAIT 1 | 846 | #define HOST_COMMAND_NO_WAIT 1 |
862 | 847 | ||
@@ -873,10 +858,9 @@ struct ipw2100_rx { | |||
873 | #define TYPE_ASSOCIATION_REQUEST 0x0013 | 858 | #define TYPE_ASSOCIATION_REQUEST 0x0013 |
874 | #define TYPE_REASSOCIATION_REQUEST 0x0014 | 859 | #define TYPE_REASSOCIATION_REQUEST 0x0014 |
875 | 860 | ||
876 | 861 | #define HW_FEATURE_RFKILL 0x0001 | |
877 | #define HW_FEATURE_RFKILL (0x0001) | 862 | #define RF_KILLSWITCH_OFF 1 |
878 | #define RF_KILLSWITCH_OFF (1) | 863 | #define RF_KILLSWITCH_ON 0 |
879 | #define RF_KILLSWITCH_ON (0) | ||
880 | 864 | ||
881 | #define IPW_COMMAND_POOL_SIZE 40 | 865 | #define IPW_COMMAND_POOL_SIZE 40 |
882 | 866 | ||
@@ -895,7 +879,7 @@ struct ipw2100_rx { | |||
895 | // Fixed size data: Ordinal Table 1 | 879 | // Fixed size data: Ordinal Table 1 |
896 | typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW | 880 | typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW |
897 | // Transmit statistics | 881 | // Transmit statistics |
898 | 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) |
899 | 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) |
900 | 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) |
901 | 885 | ||
@@ -905,42 +889,42 @@ typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW | |||
905 | 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 |
906 | 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 |
907 | 891 | ||
908 | 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 |
909 | 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 |
910 | 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 |
911 | 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 |
912 | 896 | ||
913 | 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 |
914 | IPW_ORD_STAT_TX_RTS, // # of successful Tx RTS | 898 | IPW_ORD_STAT_TX_RTS, // # of successful Tx RTS |
915 | IPW_ORD_STAT_TX_CTS, // # of successful Tx CTS | 899 | IPW_ORD_STAT_TX_CTS, // # of successful Tx CTS |
916 | IPW_ORD_STAT_TX_ACK, // # of successful Tx ACK | 900 | IPW_ORD_STAT_TX_ACK, // # of successful Tx ACK |
917 | IPW_ORD_STAT_TX_ASSN, // # of successful Association Tx's | 901 | IPW_ORD_STAT_TX_ASSN, // # of successful Association Tx's |
918 | 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 |
919 | IPW_ORD_STAT_TX_REASSN, // # of successful Reassociation Tx's | 903 | IPW_ORD_STAT_TX_REASSN, // # of successful Reassociation Tx's |
920 | 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 |
921 | IPW_ORD_STAT_TX_PROBE, // # of probes successfully transmitted | 905 | IPW_ORD_STAT_TX_PROBE, // # of probes successfully transmitted |
922 | IPW_ORD_STAT_TX_PROBE_RESP, // # of probe responses successfully transmitted | 906 | IPW_ORD_STAT_TX_PROBE_RESP, // # of probe responses successfully transmitted |
923 | IPW_ORD_STAT_TX_BEACON, // # of tx beacon | 907 | IPW_ORD_STAT_TX_BEACON, // # of tx beacon |
924 | IPW_ORD_STAT_TX_ATIM, // # of Tx ATIM | 908 | IPW_ORD_STAT_TX_ATIM, // # of Tx ATIM |
925 | IPW_ORD_STAT_TX_DISASSN, // # of successful Disassociation TX | 909 | IPW_ORD_STAT_TX_DISASSN, // # of successful Disassociation TX |
926 | IPW_ORD_STAT_TX_AUTH, // # of successful Authentication Tx | 910 | IPW_ORD_STAT_TX_AUTH, // # of successful Authentication Tx |
927 | IPW_ORD_STAT_TX_DEAUTH, // # of successful Deauthentication TX | 911 | IPW_ORD_STAT_TX_DEAUTH, // # of successful Deauthentication TX |
928 | 912 | ||
929 | 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 |
930 | IPW_ORD_STAT_TX_RETRIES, // # of Tx retries | 914 | IPW_ORD_STAT_TX_RETRIES, // # of Tx retries |
931 | IPW_ORD_STAT_TX_RETRY1, // # of Tx retries at 1MBPS | 915 | IPW_ORD_STAT_TX_RETRY1, // # of Tx retries at 1MBPS |
932 | IPW_ORD_STAT_TX_RETRY2, // # of Tx retries at 2MBPS | 916 | IPW_ORD_STAT_TX_RETRY2, // # of Tx retries at 2MBPS |
933 | 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 |
934 | IPW_ORD_STAT_TX_RETRY11, // # of Tx retries at 11MBPS | 918 | IPW_ORD_STAT_TX_RETRY11, // # of Tx retries at 11MBPS |
935 | 919 | ||
936 | IPW_ORD_STAT_TX_FAILURES = 51, // # of Tx Failures | 920 | IPW_ORD_STAT_TX_FAILURES = 51, // # of Tx Failures |
937 | 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 |
938 | 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 |
939 | 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 |
940 | IPW_ORD_STAT_TX_ABORT_STX, //NS // # of times backoff aborted | 924 | IPW_ORD_STAT_TX_ABORT_STX, //NS // # of times backoff aborted |
941 | IPW_ORD_STAT_TX_DISASSN_FAIL, // # of times disassociation failed | 925 | IPW_ORD_STAT_TX_DISASSN_FAIL, // # of times disassociation failed |
942 | IPW_ORD_STAT_TX_ERR_CTS, // # of missed/bad CTS frames | 926 | IPW_ORD_STAT_TX_ERR_CTS, // # of missed/bad CTS frames |
943 | IPW_ORD_STAT_TX_BPDU, //NS // # of spanning tree BPDUs sent | 927 | IPW_ORD_STAT_TX_BPDU, //NS // # of spanning tree BPDUs sent |
944 | 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 |
945 | 929 | ||
946 | // Receive statistics | 930 | // Receive statistics |
@@ -952,7 +936,7 @@ typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW | |||
952 | IPW_ORD_STAT_RX_DIR_DATA11, // # of directed packets at 11MB | 936 | IPW_ORD_STAT_RX_DIR_DATA11, // # of directed packets at 11MB |
953 | IPW_ORD_STAT_RX_DIR_DATA22, // # of directed packets at 22MB | 937 | IPW_ORD_STAT_RX_DIR_DATA22, // # of directed packets at 22MB |
954 | 938 | ||
955 | IPW_ORD_STAT_RX_NODIR_DATA = 71,// # of nondirected packets | 939 | IPW_ORD_STAT_RX_NODIR_DATA = 71, // # of nondirected packets |
956 | IPW_ORD_STAT_RX_NODIR_DATA1, // # of nondirected packets at 1MB | 940 | IPW_ORD_STAT_RX_NODIR_DATA1, // # of nondirected packets at 1MB |
957 | IPW_ORD_STAT_RX_NODIR_DATA2, // # of nondirected packets at 2MB | 941 | IPW_ORD_STAT_RX_NODIR_DATA2, // # of nondirected packets at 2MB |
958 | 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 |
@@ -977,18 +961,18 @@ typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW | |||
977 | IPW_ORD_STAT_RX_AUTH, // # of authentication Rx | 961 | IPW_ORD_STAT_RX_AUTH, // # of authentication Rx |
978 | IPW_ORD_STAT_RX_DEAUTH, // # of deauthentication Rx | 962 | IPW_ORD_STAT_RX_DEAUTH, // # of deauthentication Rx |
979 | 963 | ||
980 | 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 |
981 | 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 |
982 | 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 |
983 | 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 |
984 | 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 |
985 | 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 |
986 | 970 | ||
987 | 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 |
988 | IPW_ORD_STAT_RX_DUPLICATE2, // # of duplicate rx packets at 2MB | 972 | IPW_ORD_STAT_RX_DUPLICATE2, // # of duplicate rx packets at 2MB |
989 | 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 |
990 | IPW_ORD_STAT_RX_DUPLICATE11, // # of duplicate rx packets at 11MB | 974 | IPW_ORD_STAT_RX_DUPLICATE11, // # of duplicate rx packets at 11MB |
991 | IPW_ORD_STAT_RX_DUPLICATE = 119, // # of duplicate rx packets | 975 | IPW_ORD_STAT_RX_DUPLICATE = 119, // # of duplicate rx packets |
992 | 976 | ||
993 | IPW_ORD_PERS_DB_LOCK = 120, // # locking fw permanent db | 977 | IPW_ORD_PERS_DB_LOCK = 120, // # locking fw permanent db |
994 | IPW_ORD_PERS_DB_SIZE, // # size of fw permanent db | 978 | IPW_ORD_PERS_DB_SIZE, // # size of fw permanent db |
@@ -1006,17 +990,17 @@ typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW | |||
1006 | IPW_ORD_STAT_RX_ICV_ERRORS, // # of ICV errors during decryption | 990 | IPW_ORD_STAT_RX_ICV_ERRORS, // # of ICV errors during decryption |
1007 | 991 | ||
1008 | // PSP Statistics | 992 | // PSP Statistics |
1009 | IPW_ORD_STAT_PSP_SUSPENSION = 137,// # of times adapter suspended | 993 | IPW_ORD_STAT_PSP_SUSPENSION = 137, // # of times adapter suspended |
1010 | IPW_ORD_STAT_PSP_BCN_TIMEOUT, // # of beacon timeout | 994 | IPW_ORD_STAT_PSP_BCN_TIMEOUT, // # of beacon timeout |
1011 | IPW_ORD_STAT_PSP_POLL_TIMEOUT, // # of poll response timeouts | 995 | IPW_ORD_STAT_PSP_POLL_TIMEOUT, // # of poll response timeouts |
1012 | 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 |
1013 | IPW_ORD_STAT_PSP_RX_DTIMS, // # of PSP DTIMs received | 997 | IPW_ORD_STAT_PSP_RX_DTIMS, // # of PSP DTIMs received |
1014 | IPW_ORD_STAT_PSP_RX_TIMS, // # of PSP TIMs received | 998 | IPW_ORD_STAT_PSP_RX_TIMS, // # of PSP TIMs received |
1015 | IPW_ORD_STAT_PSP_STATION_ID, // PSP Station ID | 999 | IPW_ORD_STAT_PSP_STATION_ID, // PSP Station ID |
1016 | 1000 | ||
1017 | // Association and roaming | 1001 | // Association and roaming |
1018 | IPW_ORD_LAST_ASSN_TIME = 147, // RTC time of last association | 1002 | IPW_ORD_LAST_ASSN_TIME = 147, // RTC time of last association |
1019 | IPW_ORD_STAT_PERCENT_MISSED_BCNS,// current calculation of % missed beacons | 1003 | IPW_ORD_STAT_PERCENT_MISSED_BCNS, // current calculation of % missed beacons |
1020 | IPW_ORD_STAT_PERCENT_RETRIES, // current calculation of % missed tx retries | 1004 | IPW_ORD_STAT_PERCENT_RETRIES, // current calculation of % missed tx retries |
1021 | 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 |
1022 | // AP table entry. set to 0 if not associated | 1006 | // AP table entry. set to 0 if not associated |
@@ -1151,7 +1135,7 @@ struct ipw2100_fw_chunk { | |||
1151 | }; | 1135 | }; |
1152 | 1136 | ||
1153 | struct ipw2100_fw_chunk_set { | 1137 | struct ipw2100_fw_chunk_set { |
1154 | const void *data; | 1138 | const void *data; |
1155 | unsigned long size; | 1139 | unsigned long size; |
1156 | }; | 1140 | }; |
1157 | 1141 | ||
@@ -1164,4 +1148,4 @@ struct ipw2100_fw { | |||
1164 | 1148 | ||
1165 | #define MAX_FW_VERSION_LEN 14 | 1149 | #define MAX_FW_VERSION_LEN 14 |
1166 | 1150 | ||
1167 | #endif /* _IPW2100_H */ | 1151 | #endif /* _IPW2100_H */ |