diff options
Diffstat (limited to 'drivers/net/wireless/libertas/host.h')
-rw-r--r-- | drivers/net/wireless/libertas/host.h | 51 |
1 files changed, 17 insertions, 34 deletions
diff --git a/drivers/net/wireless/libertas/host.h b/drivers/net/wireless/libertas/host.h index c92e41b4faf4..5004d7679c02 100644 --- a/drivers/net/wireless/libertas/host.h +++ b/drivers/net/wireless/libertas/host.h | |||
@@ -9,17 +9,6 @@ | |||
9 | #define DEFAULT_AD_HOC_CHANNEL 6 | 9 | #define DEFAULT_AD_HOC_CHANNEL 6 |
10 | #define DEFAULT_AD_HOC_CHANNEL_A 36 | 10 | #define DEFAULT_AD_HOC_CHANNEL_A 36 |
11 | 11 | ||
12 | /** IEEE 802.11 oids */ | ||
13 | #define OID_802_11_SSID 0x00008002 | ||
14 | #define OID_802_11_INFRASTRUCTURE_MODE 0x00008008 | ||
15 | #define OID_802_11_FRAGMENTATION_THRESHOLD 0x00008009 | ||
16 | #define OID_802_11_RTS_THRESHOLD 0x0000800A | ||
17 | #define OID_802_11_TX_ANTENNA_SELECTED 0x0000800D | ||
18 | #define OID_802_11_SUPPORTED_RATES 0x0000800E | ||
19 | #define OID_802_11_STATISTICS 0x00008012 | ||
20 | #define OID_802_11_TX_RETRYCOUNT 0x0000801D | ||
21 | #define OID_802_11D_ENABLE 0x00008020 | ||
22 | |||
23 | #define CMD_OPTION_WAITFORRSP 0x0002 | 12 | #define CMD_OPTION_WAITFORRSP 0x0002 |
24 | 13 | ||
25 | /** Host command IDs */ | 14 | /** Host command IDs */ |
@@ -61,7 +50,6 @@ | |||
61 | #define CMD_RF_REG_MAP 0x0023 | 50 | #define CMD_RF_REG_MAP 0x0023 |
62 | #define CMD_802_11_DEAUTHENTICATE 0x0024 | 51 | #define CMD_802_11_DEAUTHENTICATE 0x0024 |
63 | #define CMD_802_11_REASSOCIATE 0x0025 | 52 | #define CMD_802_11_REASSOCIATE 0x0025 |
64 | #define CMD_802_11_DISASSOCIATE 0x0026 | ||
65 | #define CMD_MAC_CONTROL 0x0028 | 53 | #define CMD_MAC_CONTROL 0x0028 |
66 | #define CMD_802_11_AD_HOC_START 0x002b | 54 | #define CMD_802_11_AD_HOC_START 0x002b |
67 | #define CMD_802_11_AD_HOC_JOIN 0x002c | 55 | #define CMD_802_11_AD_HOC_JOIN 0x002c |
@@ -84,6 +72,7 @@ | |||
84 | #define CMD_802_11_INACTIVITY_TIMEOUT 0x0067 | 72 | #define CMD_802_11_INACTIVITY_TIMEOUT 0x0067 |
85 | #define CMD_802_11_SLEEP_PERIOD 0x0068 | 73 | #define CMD_802_11_SLEEP_PERIOD 0x0068 |
86 | #define CMD_802_11_TPC_CFG 0x0072 | 74 | #define CMD_802_11_TPC_CFG 0x0072 |
75 | #define CMD_802_11_PA_CFG 0x0073 | ||
87 | #define CMD_802_11_FW_WAKE_METHOD 0x0074 | 76 | #define CMD_802_11_FW_WAKE_METHOD 0x0074 |
88 | #define CMD_802_11_SUBSCRIBE_EVENT 0x0075 | 77 | #define CMD_802_11_SUBSCRIBE_EVENT 0x0075 |
89 | #define CMD_802_11_RATE_ADAPT_RATESET 0x0076 | 78 | #define CMD_802_11_RATE_ADAPT_RATESET 0x0076 |
@@ -153,11 +142,6 @@ | |||
153 | #define CMD_ACT_MAC_ALL_MULTICAST_ENABLE 0x0100 | 142 | #define CMD_ACT_MAC_ALL_MULTICAST_ENABLE 0x0100 |
154 | #define CMD_ACT_MAC_STRICT_PROTECTION_ENABLE 0x0400 | 143 | #define CMD_ACT_MAC_STRICT_PROTECTION_ENABLE 0x0400 |
155 | 144 | ||
156 | /* Define action or option for CMD_802_11_RADIO_CONTROL */ | ||
157 | #define CMD_TYPE_AUTO_PREAMBLE 0x0001 | ||
158 | #define CMD_TYPE_SHORT_PREAMBLE 0x0002 | ||
159 | #define CMD_TYPE_LONG_PREAMBLE 0x0003 | ||
160 | |||
161 | /* Event flags for CMD_802_11_SUBSCRIBE_EVENT */ | 145 | /* Event flags for CMD_802_11_SUBSCRIBE_EVENT */ |
162 | #define CMD_SUBSCRIBE_RSSI_LOW 0x0001 | 146 | #define CMD_SUBSCRIBE_RSSI_LOW 0x0001 |
163 | #define CMD_SUBSCRIBE_SNR_LOW 0x0002 | 147 | #define CMD_SUBSCRIBE_SNR_LOW 0x0002 |
@@ -166,28 +150,14 @@ | |||
166 | #define CMD_SUBSCRIBE_RSSI_HIGH 0x0010 | 150 | #define CMD_SUBSCRIBE_RSSI_HIGH 0x0010 |
167 | #define CMD_SUBSCRIBE_SNR_HIGH 0x0020 | 151 | #define CMD_SUBSCRIBE_SNR_HIGH 0x0020 |
168 | 152 | ||
169 | #define TURN_ON_RF 0x01 | 153 | #define RADIO_PREAMBLE_LONG 0x00 |
170 | #define RADIO_ON 0x01 | 154 | #define RADIO_PREAMBLE_SHORT 0x02 |
171 | #define RADIO_OFF 0x00 | 155 | #define RADIO_PREAMBLE_AUTO 0x04 |
172 | |||
173 | #define SET_AUTO_PREAMBLE 0x05 | ||
174 | #define SET_SHORT_PREAMBLE 0x03 | ||
175 | #define SET_LONG_PREAMBLE 0x01 | ||
176 | 156 | ||
177 | /* Define action or option for CMD_802_11_RF_CHANNEL */ | 157 | /* Define action or option for CMD_802_11_RF_CHANNEL */ |
178 | #define CMD_OPT_802_11_RF_CHANNEL_GET 0x00 | 158 | #define CMD_OPT_802_11_RF_CHANNEL_GET 0x00 |
179 | #define CMD_OPT_802_11_RF_CHANNEL_SET 0x01 | 159 | #define CMD_OPT_802_11_RF_CHANNEL_SET 0x01 |
180 | 160 | ||
181 | /* Define action or option for CMD_802_11_RF_TX_POWER */ | ||
182 | #define CMD_ACT_TX_POWER_OPT_GET 0x0000 | ||
183 | #define CMD_ACT_TX_POWER_OPT_SET_HIGH 0x8007 | ||
184 | #define CMD_ACT_TX_POWER_OPT_SET_MID 0x8004 | ||
185 | #define CMD_ACT_TX_POWER_OPT_SET_LOW 0x8000 | ||
186 | |||
187 | #define CMD_ACT_TX_POWER_INDEX_HIGH 0x0007 | ||
188 | #define CMD_ACT_TX_POWER_INDEX_MID 0x0004 | ||
189 | #define CMD_ACT_TX_POWER_INDEX_LOW 0x0000 | ||
190 | |||
191 | /* Define action or option for CMD_802_11_DATA_RATE */ | 161 | /* Define action or option for CMD_802_11_DATA_RATE */ |
192 | #define CMD_ACT_SET_TX_AUTO 0x0000 | 162 | #define CMD_ACT_SET_TX_AUTO 0x0000 |
193 | #define CMD_ACT_SET_TX_FIX_RATE 0x0001 | 163 | #define CMD_ACT_SET_TX_FIX_RATE 0x0001 |
@@ -210,6 +180,19 @@ | |||
210 | #define CMD_WAKE_METHOD_COMMAND_INT 0x0001 | 180 | #define CMD_WAKE_METHOD_COMMAND_INT 0x0001 |
211 | #define CMD_WAKE_METHOD_GPIO 0x0002 | 181 | #define CMD_WAKE_METHOD_GPIO 0x0002 |
212 | 182 | ||
183 | /* Object IDs for CMD_802_11_SNMP_MIB */ | ||
184 | #define SNMP_MIB_OID_BSS_TYPE 0x0000 | ||
185 | #define SNMP_MIB_OID_OP_RATE_SET 0x0001 | ||
186 | #define SNMP_MIB_OID_BEACON_PERIOD 0x0002 /* Reserved on v9+ */ | ||
187 | #define SNMP_MIB_OID_DTIM_PERIOD 0x0003 /* Reserved on v9+ */ | ||
188 | #define SNMP_MIB_OID_ASSOC_TIMEOUT 0x0004 /* Reserved on v9+ */ | ||
189 | #define SNMP_MIB_OID_RTS_THRESHOLD 0x0005 | ||
190 | #define SNMP_MIB_OID_SHORT_RETRY_LIMIT 0x0006 | ||
191 | #define SNMP_MIB_OID_LONG_RETRY_LIMIT 0x0007 | ||
192 | #define SNMP_MIB_OID_FRAG_THRESHOLD 0x0008 | ||
193 | #define SNMP_MIB_OID_11D_ENABLE 0x0009 | ||
194 | #define SNMP_MIB_OID_11H_ENABLE 0x000A | ||
195 | |||
213 | /* Define action or option for CMD_BT_ACCESS */ | 196 | /* Define action or option for CMD_BT_ACCESS */ |
214 | enum cmd_bt_access_opts { | 197 | enum cmd_bt_access_opts { |
215 | /* The bt commands start at 5 instead of 1 because the old dft commands | 198 | /* The bt commands start at 5 instead of 1 because the old dft commands |