diff options
| -rw-r--r-- | drivers/net/wireless/ipw2100.c | 2 | ||||
| -rw-r--r-- | drivers/net/wireless/ipw2100.h | 18 |
2 files changed, 4 insertions, 16 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 9360763735f0..69d7787b44b9 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
| @@ -915,12 +915,10 @@ static int sw_reset_and_clock(struct ipw2100_priv *priv) | |||
| 915 | if (i == 10000) | 915 | if (i == 10000) |
| 916 | return -EIO; /* TODO: better error value */ | 916 | return -EIO; /* TODO: better error value */ |
| 917 | 917 | ||
| 918 | //#if CONFIG_IPW2100_D0ENABLED | ||
| 919 | /* set D0 standby bit */ | 918 | /* set D0 standby bit */ |
| 920 | read_register(priv->net_dev, IPW_REG_GP_CNTRL, &r); | 919 | read_register(priv->net_dev, IPW_REG_GP_CNTRL, &r); |
| 921 | write_register(priv->net_dev, IPW_REG_GP_CNTRL, | 920 | write_register(priv->net_dev, IPW_REG_GP_CNTRL, |
| 922 | r | IPW_AUX_HOST_GP_CNTRL_BIT_HOST_ALLOWS_STANDBY); | 921 | r | IPW_AUX_HOST_GP_CNTRL_BIT_HOST_ALLOWS_STANDBY); |
| 923 | //#endif | ||
| 924 | 922 | ||
| 925 | return 0; | 923 | return 0; |
| 926 | } | 924 | } |
diff --git a/drivers/net/wireless/ipw2100.h b/drivers/net/wireless/ipw2100.h index bb31fa03f69f..40a1373defa9 100644 --- a/drivers/net/wireless/ipw2100.h +++ b/drivers/net/wireless/ipw2100.h | |||
| @@ -355,7 +355,7 @@ struct ipw2100_data_header { | |||
| 355 | u16 fragment_size; | 355 | u16 fragment_size; |
| 356 | } __attribute__ ((packed)); | 356 | } __attribute__ ((packed)); |
| 357 | 357 | ||
| 358 | // Host command data structure | 358 | /* Host command data structure */ |
| 359 | struct host_command { | 359 | struct host_command { |
| 360 | u32 host_command; // COMMAND ID | 360 | u32 host_command; // COMMAND ID |
| 361 | u32 host_command1; // COMMAND ID | 361 | u32 host_command1; // COMMAND ID |
| @@ -701,7 +701,7 @@ struct ipw2100_priv { | |||
| 701 | #define MSDU_TX_RATES 62 | 701 | #define MSDU_TX_RATES 62 |
| 702 | 702 | ||
| 703 | 703 | ||
| 704 | // Rogue AP Detection | 704 | /* Rogue AP Detection */ |
| 705 | #define SET_STATION_STAT_BITS 64 | 705 | #define SET_STATION_STAT_BITS 64 |
| 706 | #define CLEAR_STATIONS_STAT_BITS 65 | 706 | #define CLEAR_STATIONS_STAT_BITS 65 |
| 707 | #define LEAP_ROGUE_MODE 66 //TODO tbw replaced by CFG_LEAP_ROGUE_AP | 707 | #define LEAP_ROGUE_MODE 66 //TODO tbw replaced by CFG_LEAP_ROGUE_AP |
| @@ -711,25 +711,16 @@ struct ipw2100_priv { | |||
| 711 | 711 | ||
| 712 | 712 | ||
| 713 | 713 | ||
| 714 | // system configuration bit mask: | 714 | /* system configuration bit mask: */ |
| 715 | //#define IPW_CFG_ANTENNA_SETTING 0x03 | ||
| 716 | //#define IPW_CFG_ANTENNA_A 0x01 | ||
| 717 | //#define IPW_CFG_ANTENNA_B 0x02 | ||
| 718 | #define IPW_CFG_MONITOR 0x00004 | 715 | #define IPW_CFG_MONITOR 0x00004 |
| 719 | //#define IPW_CFG_TX_STATUS_ENABLE 0x00008 | ||
| 720 | #define IPW_CFG_PREAMBLE_AUTO 0x00010 | 716 | #define IPW_CFG_PREAMBLE_AUTO 0x00010 |
| 721 | #define IPW_CFG_IBSS_AUTO_START 0x00020 | 717 | #define IPW_CFG_IBSS_AUTO_START 0x00020 |
| 722 | //#define IPW_CFG_KERBEROS_ENABLE 0x00040 | ||
| 723 | #define IPW_CFG_LOOPBACK 0x00100 | 718 | #define IPW_CFG_LOOPBACK 0x00100 |
| 724 | //#define IPW_CFG_WNMP_PING_PASS 0x00200 | ||
| 725 | //#define IPW_CFG_DEBUG_ENABLE 0x00400 | ||
| 726 | #define IPW_CFG_ANSWER_BCSSID_PROBE 0x00800 | 719 | #define IPW_CFG_ANSWER_BCSSID_PROBE 0x00800 |
| 727 | //#define IPW_CFG_BT_PRIORITY 0x01000 | ||
| 728 | #define IPW_CFG_BT_SIDEBAND_SIGNAL 0x02000 | 720 | #define IPW_CFG_BT_SIDEBAND_SIGNAL 0x02000 |
| 729 | #define IPW_CFG_802_1x_ENABLE 0x04000 | 721 | #define IPW_CFG_802_1x_ENABLE 0x04000 |
| 730 | #define IPW_CFG_BSS_MASK 0x08000 | 722 | #define IPW_CFG_BSS_MASK 0x08000 |
| 731 | #define IPW_CFG_IBSS_MASK 0x10000 | 723 | #define IPW_CFG_IBSS_MASK 0x10000 |
| 732 | //#define IPW_CFG_DYNAMIC_CW 0x10000 | ||
| 733 | 724 | ||
| 734 | #define IPW_SCAN_NOASSOCIATE (1<<0) | 725 | #define IPW_SCAN_NOASSOCIATE (1<<0) |
| 735 | #define IPW_SCAN_MIXED_CELL (1<<1) | 726 | #define IPW_SCAN_MIXED_CELL (1<<1) |
| @@ -913,7 +904,7 @@ struct ipw2100_rx { | |||
| 913 | } rx_data; | 904 | } rx_data; |
| 914 | } __attribute__ ((packed)); | 905 | } __attribute__ ((packed)); |
| 915 | 906 | ||
| 916 | // Bit 0-7 are for 802.11b tx rates - . Bit 5-7 are reserved | 907 | /* Bit 0-7 are for 802.11b tx rates - . Bit 5-7 are reserved */ |
| 917 | #define TX_RATE_1_MBIT 0x0001 | 908 | #define TX_RATE_1_MBIT 0x0001 |
| 918 | #define TX_RATE_2_MBIT 0x0002 | 909 | #define TX_RATE_2_MBIT 0x0002 |
| 919 | #define TX_RATE_5_5_MBIT 0x0004 | 910 | #define TX_RATE_5_5_MBIT 0x0004 |
| @@ -1193,7 +1184,6 @@ typedef enum _ORDINAL_TABLE_1 { // NS - means Not Supported by FW | |||
| 1193 | IPW_ORD_UCODE_VERSION, // Ucode Version | 1184 | IPW_ORD_UCODE_VERSION, // Ucode Version |
| 1194 | IPW_ORD_HW_RF_SWITCH_STATE = 214, // HW RF Kill Switch State | 1185 | IPW_ORD_HW_RF_SWITCH_STATE = 214, // HW RF Kill Switch State |
| 1195 | } ORDINALTABLE1; | 1186 | } ORDINALTABLE1; |
| 1196 | //ENDOF TABLE1 | ||
| 1197 | 1187 | ||
| 1198 | // ordinal table 2 | 1188 | // ordinal table 2 |
| 1199 | // Variable length data: | 1189 | // Variable length data: |
