Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 1 | /* |
| 2 | * This file contains the function prototypes, data structure |
| 3 | * and defines for all the host/station commands |
| 4 | */ |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 5 | #ifndef _LBS_HOSTCMD_H |
| 6 | #define _LBS_HOSTCMD_H |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 7 | |
| 8 | #include <linux/wireless.h> |
| 9 | #include "11d.h" |
| 10 | #include "types.h" |
| 11 | |
| 12 | /* 802.11-related definitions */ |
| 13 | |
| 14 | /* TxPD descriptor */ |
| 15 | struct txpd { |
| 16 | /* Current Tx packet status */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 17 | __le32 tx_status; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 18 | /* Tx control */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 19 | __le32 tx_control; |
| 20 | __le32 tx_packet_location; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 21 | /* Tx packet length */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 22 | __le16 tx_packet_length; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 23 | /* First 2 byte of destination MAC address */ |
| 24 | u8 tx_dest_addr_high[2]; |
| 25 | /* Last 4 byte of destination MAC address */ |
| 26 | u8 tx_dest_addr_low[4]; |
| 27 | /* Pkt Priority */ |
| 28 | u8 priority; |
| 29 | /* Pkt Trasnit Power control */ |
| 30 | u8 powermgmt; |
| 31 | /* Amount of time the packet has been queued in the driver (units = 2ms) */ |
| 32 | u8 pktdelay_2ms; |
| 33 | /* reserved */ |
| 34 | u8 reserved1; |
| 35 | }; |
| 36 | |
| 37 | /* RxPD Descriptor */ |
| 38 | struct rxpd { |
| 39 | /* Current Rx packet status */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 40 | __le16 status; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 41 | |
| 42 | /* SNR */ |
| 43 | u8 snr; |
| 44 | |
| 45 | /* Tx control */ |
| 46 | u8 rx_control; |
| 47 | |
| 48 | /* Pkt length */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 49 | __le16 pkt_len; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 50 | |
| 51 | /* Noise Floor */ |
| 52 | u8 nf; |
| 53 | |
| 54 | /* Rx Packet Rate */ |
| 55 | u8 rx_rate; |
| 56 | |
| 57 | /* Pkt addr */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 58 | __le32 pkt_ptr; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 59 | |
| 60 | /* Next Rx RxPD addr */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 61 | __le32 next_rxpd_ptr; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 62 | |
| 63 | /* Pkt Priority */ |
| 64 | u8 priority; |
| 65 | u8 reserved[3]; |
| 66 | }; |
| 67 | |
| 68 | struct cmd_ctrl_node { |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 69 | struct list_head list; |
Holger Schurig | 675787e | 2007-12-05 17:58:11 +0100 | [diff] [blame] | 70 | /* wait for finish or not */ |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 71 | u16 wait_option; |
Holger Schurig | 675787e | 2007-12-05 17:58:11 +0100 | [diff] [blame] | 72 | /* command response */ |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 73 | void *pdata_buf; |
David Woodhouse | 1309b55 | 2007-12-10 13:36:10 -0500 | [diff] [blame^] | 74 | int (*callback)(struct lbs_private *priv, unsigned long arg, struct cmd_ds_command *resp); |
| 75 | unsigned long callback_arg; |
Holger Schurig | 675787e | 2007-12-05 17:58:11 +0100 | [diff] [blame] | 76 | /* command data */ |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 77 | u8 *bufvirtualaddr; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 78 | /* wait queue */ |
| 79 | u16 cmdwaitqwoken; |
| 80 | wait_queue_head_t cmdwait_q; |
| 81 | }; |
| 82 | |
Dan Williams | 1443b65 | 2007-08-02 10:45:55 -0400 | [diff] [blame] | 83 | /* Generic structure to hold all key types. */ |
| 84 | struct enc_key { |
| 85 | u16 len; |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 86 | u16 flags; /* KEY_INFO_* from defs.h */ |
| 87 | u16 type; /* KEY_TYPE_* from defs.h */ |
Dan Williams | 1443b65 | 2007-08-02 10:45:55 -0400 | [diff] [blame] | 88 | u8 key[32]; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 89 | }; |
| 90 | |
Holger Schurig | 1007832 | 2007-11-15 18:05:47 -0500 | [diff] [blame] | 91 | /* lbs_offset_value */ |
| 92 | struct lbs_offset_value { |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 93 | u32 offset; |
| 94 | u32 value; |
| 95 | }; |
| 96 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 97 | /* Define general data structure */ |
| 98 | /* cmd_DS_GEN */ |
| 99 | struct cmd_ds_gen { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 100 | __le16 command; |
| 101 | __le16 size; |
| 102 | __le16 seqnum; |
| 103 | __le16 result; |
Holger Schurig | 675787e | 2007-12-05 17:58:11 +0100 | [diff] [blame] | 104 | void *cmdresp[0]; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 105 | }; |
| 106 | |
| 107 | #define S_DS_GEN sizeof(struct cmd_ds_gen) |
Holger Schurig | 675787e | 2007-12-05 17:58:11 +0100 | [diff] [blame] | 108 | |
| 109 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 110 | /* |
Dan Williams | 0aef64d | 2007-08-02 11:31:18 -0400 | [diff] [blame] | 111 | * Define data structure for CMD_GET_HW_SPEC |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 112 | * This structure defines the response for the GET_HW_SPEC command |
| 113 | */ |
| 114 | struct cmd_ds_get_hw_spec { |
| 115 | /* HW Interface version number */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 116 | __le16 hwifversion; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 117 | /* HW version number */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 118 | __le16 version; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 119 | /* Max number of TxPD FW can handle */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 120 | __le16 nr_txpd; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 121 | /* Max no of Multicast address */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 122 | __le16 nr_mcast_adr; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 123 | /* MAC address */ |
| 124 | u8 permanentaddr[6]; |
| 125 | |
| 126 | /* region Code */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 127 | __le16 regioncode; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 128 | |
| 129 | /* Number of antenna used */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 130 | __le16 nr_antenna; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 131 | |
David Woodhouse | e5b3d47 | 2007-05-25 23:40:21 -0400 | [diff] [blame] | 132 | /* FW release number, example 1,2,3,4 = 3.2.1p4 */ |
| 133 | u8 fwreleasenumber[4]; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 134 | |
| 135 | /* Base Address of TxPD queue */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 136 | __le32 wcb_base; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 137 | /* Read Pointer of RxPd queue */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 138 | __le32 rxpd_rdptr; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 139 | |
| 140 | /* Write Pointer of RxPd queue */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 141 | __le32 rxpd_wrptr; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 142 | |
| 143 | /*FW/HW capability */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 144 | __le32 fwcapinfo; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 145 | } __attribute__ ((packed)); |
| 146 | |
| 147 | struct cmd_ds_802_11_reset { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 148 | __le16 action; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 149 | }; |
| 150 | |
| 151 | struct cmd_ds_802_11_subscribe_event { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 152 | __le16 action; |
| 153 | __le16 events; |
Holger Schurig | 3a18864 | 2007-11-26 10:07:14 +0100 | [diff] [blame] | 154 | |
| 155 | /* A TLV to the CMD_802_11_SUBSCRIBE_EVENT command can contain a |
| 156 | * number of TLVs. From the v5.1 manual, those TLVs would add up to |
| 157 | * 40 bytes. However, future firmware might add additional TLVs, so I |
| 158 | * bump this up a bit. |
| 159 | */ |
| 160 | u8 tlv[128]; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 161 | }; |
| 162 | |
| 163 | /* |
| 164 | * This scan handle Country Information IE(802.11d compliant) |
Dan Williams | 0aef64d | 2007-08-02 11:31:18 -0400 | [diff] [blame] | 165 | * Define data structure for CMD_802_11_SCAN |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 166 | */ |
| 167 | struct cmd_ds_802_11_scan { |
| 168 | u8 bsstype; |
Dan Williams | 492b6da | 2007-08-02 11:16:07 -0400 | [diff] [blame] | 169 | u8 bssid[ETH_ALEN]; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 170 | u8 tlvbuffer[1]; |
| 171 | #if 0 |
| 172 | mrvlietypes_ssidparamset_t ssidParamSet; |
| 173 | mrvlietypes_chanlistparamset_t ChanListParamSet; |
| 174 | mrvlietypes_ratesparamset_t OpRateSet; |
| 175 | #endif |
| 176 | }; |
| 177 | |
| 178 | struct cmd_ds_802_11_scan_rsp { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 179 | __le16 bssdescriptsize; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 180 | u8 nr_sets; |
| 181 | u8 bssdesc_and_tlvbuffer[1]; |
| 182 | }; |
| 183 | |
| 184 | struct cmd_ds_802_11_get_log { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 185 | __le32 mcasttxframe; |
| 186 | __le32 failed; |
| 187 | __le32 retry; |
| 188 | __le32 multiretry; |
| 189 | __le32 framedup; |
| 190 | __le32 rtssuccess; |
| 191 | __le32 rtsfailure; |
| 192 | __le32 ackfailure; |
| 193 | __le32 rxfrag; |
| 194 | __le32 mcastrxframe; |
| 195 | __le32 fcserror; |
| 196 | __le32 txframe; |
| 197 | __le32 wepundecryptable; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 198 | }; |
| 199 | |
| 200 | struct cmd_ds_mac_control { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 201 | __le16 action; |
| 202 | __le16 reserved; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 203 | }; |
| 204 | |
| 205 | struct cmd_ds_mac_multicast_adr { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 206 | __le16 action; |
| 207 | __le16 nr_of_adrs; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 208 | u8 maclist[ETH_ALEN * MRVDRV_MAX_MULTICAST_LIST_SIZE]; |
| 209 | }; |
| 210 | |
| 211 | struct cmd_ds_802_11_authenticate { |
| 212 | u8 macaddr[ETH_ALEN]; |
| 213 | u8 authtype; |
| 214 | u8 reserved[10]; |
| 215 | }; |
| 216 | |
| 217 | struct cmd_ds_802_11_deauthenticate { |
| 218 | u8 macaddr[6]; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 219 | __le16 reasoncode; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 220 | }; |
| 221 | |
| 222 | struct cmd_ds_802_11_associate { |
| 223 | u8 peerstaaddr[6]; |
Dan Williams | 0c9ca69 | 2007-08-02 10:43:44 -0400 | [diff] [blame] | 224 | __le16 capability; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 225 | __le16 listeninterval; |
| 226 | __le16 bcnperiod; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 227 | u8 dtimperiod; |
| 228 | |
| 229 | #if 0 |
| 230 | mrvlietypes_ssidparamset_t ssidParamSet; |
| 231 | mrvlietypes_phyparamset_t phyparamset; |
| 232 | mrvlietypes_ssparamset_t ssparamset; |
| 233 | mrvlietypes_ratesparamset_t ratesParamSet; |
| 234 | #endif |
| 235 | } __attribute__ ((packed)); |
| 236 | |
| 237 | struct cmd_ds_802_11_disassociate { |
| 238 | u8 destmacaddr[6]; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 239 | __le16 reasoncode; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 240 | }; |
| 241 | |
| 242 | struct cmd_ds_802_11_associate_rsp { |
| 243 | struct ieeetypes_assocrsp assocRsp; |
| 244 | }; |
| 245 | |
| 246 | struct cmd_ds_802_11_ad_hoc_result { |
Dan Williams | ea8da92 | 2007-08-02 11:18:23 -0400 | [diff] [blame] | 247 | u8 pad[3]; |
| 248 | u8 bssid[ETH_ALEN]; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 249 | }; |
| 250 | |
| 251 | struct cmd_ds_802_11_set_wep { |
| 252 | /* ACT_ADD, ACT_REMOVE or ACT_ENABLE */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 253 | __le16 action; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 254 | |
| 255 | /* key Index selected for Tx */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 256 | __le16 keyindex; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 257 | |
| 258 | /* 40, 128bit or TXWEP */ |
| 259 | u8 keytype[4]; |
| 260 | u8 keymaterial[4][16]; |
| 261 | }; |
| 262 | |
| 263 | struct cmd_ds_802_3_get_stat { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 264 | __le32 xmitok; |
| 265 | __le32 rcvok; |
| 266 | __le32 xmiterror; |
| 267 | __le32 rcverror; |
| 268 | __le32 rcvnobuffer; |
| 269 | __le32 rcvcrcerror; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 270 | }; |
| 271 | |
| 272 | struct cmd_ds_802_11_get_stat { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 273 | __le32 txfragmentcnt; |
| 274 | __le32 mcasttxframecnt; |
| 275 | __le32 failedcnt; |
| 276 | __le32 retrycnt; |
| 277 | __le32 Multipleretrycnt; |
| 278 | __le32 rtssuccesscnt; |
| 279 | __le32 rtsfailurecnt; |
| 280 | __le32 ackfailurecnt; |
| 281 | __le32 frameduplicatecnt; |
| 282 | __le32 rxfragmentcnt; |
| 283 | __le32 mcastrxframecnt; |
| 284 | __le32 fcserrorcnt; |
| 285 | __le32 bcasttxframecnt; |
| 286 | __le32 bcastrxframecnt; |
| 287 | __le32 txbeacon; |
| 288 | __le32 rxbeacon; |
| 289 | __le32 wepundecryptable; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 290 | }; |
| 291 | |
| 292 | struct cmd_ds_802_11_snmp_mib { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 293 | __le16 querytype; |
| 294 | __le16 oid; |
| 295 | __le16 bufsize; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 296 | u8 value[128]; |
| 297 | }; |
| 298 | |
| 299 | struct cmd_ds_mac_reg_map { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 300 | __le16 buffersize; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 301 | u8 regmap[128]; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 302 | __le16 reserved; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 303 | }; |
| 304 | |
| 305 | struct cmd_ds_bbp_reg_map { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 306 | __le16 buffersize; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 307 | u8 regmap[128]; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 308 | __le16 reserved; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 309 | }; |
| 310 | |
| 311 | struct cmd_ds_rf_reg_map { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 312 | __le16 buffersize; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 313 | u8 regmap[64]; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 314 | __le16 reserved; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 315 | }; |
| 316 | |
| 317 | struct cmd_ds_mac_reg_access { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 318 | __le16 action; |
| 319 | __le16 offset; |
| 320 | __le32 value; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 321 | }; |
| 322 | |
| 323 | struct cmd_ds_bbp_reg_access { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 324 | __le16 action; |
| 325 | __le16 offset; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 326 | u8 value; |
| 327 | u8 reserved[3]; |
| 328 | }; |
| 329 | |
| 330 | struct cmd_ds_rf_reg_access { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 331 | __le16 action; |
| 332 | __le16 offset; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 333 | u8 value; |
| 334 | u8 reserved[3]; |
| 335 | }; |
| 336 | |
| 337 | struct cmd_ds_802_11_radio_control { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 338 | __le16 action; |
| 339 | __le16 control; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 340 | }; |
| 341 | |
Brajesh Dave | 96287ac | 2007-11-20 17:44:28 -0500 | [diff] [blame] | 342 | struct cmd_ds_802_11_beacon_control { |
| 343 | __le16 action; |
| 344 | __le16 beacon_enable; |
| 345 | __le16 beacon_period; |
| 346 | }; |
| 347 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 348 | struct cmd_ds_802_11_sleep_params { |
| 349 | /* ACT_GET/ACT_SET */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 350 | __le16 action; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 351 | |
| 352 | /* Sleep clock error in ppm */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 353 | __le16 error; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 354 | |
| 355 | /* Wakeup offset in usec */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 356 | __le16 offset; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 357 | |
| 358 | /* Clock stabilization time in usec */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 359 | __le16 stabletime; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 360 | |
| 361 | /* control periodic calibration */ |
| 362 | u8 calcontrol; |
| 363 | |
| 364 | /* control the use of external sleep clock */ |
| 365 | u8 externalsleepclk; |
| 366 | |
| 367 | /* reserved field, should be set to zero */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 368 | __le16 reserved; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 369 | }; |
| 370 | |
| 371 | struct cmd_ds_802_11_inactivity_timeout { |
| 372 | /* ACT_GET/ACT_SET */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 373 | __le16 action; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 374 | |
| 375 | /* Inactivity timeout in msec */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 376 | __le16 timeout; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 377 | }; |
| 378 | |
| 379 | struct cmd_ds_802_11_rf_channel { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 380 | __le16 action; |
| 381 | __le16 currentchannel; |
| 382 | __le16 rftype; |
| 383 | __le16 reserved; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 384 | u8 channellist[32]; |
| 385 | }; |
| 386 | |
| 387 | struct cmd_ds_802_11_rssi { |
| 388 | /* weighting factor */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 389 | __le16 N; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 390 | |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 391 | __le16 reserved_0; |
| 392 | __le16 reserved_1; |
| 393 | __le16 reserved_2; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 394 | }; |
| 395 | |
| 396 | struct cmd_ds_802_11_rssi_rsp { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 397 | __le16 SNR; |
| 398 | __le16 noisefloor; |
| 399 | __le16 avgSNR; |
| 400 | __le16 avgnoisefloor; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 401 | }; |
| 402 | |
| 403 | struct cmd_ds_802_11_mac_address { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 404 | __le16 action; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 405 | u8 macadd[ETH_ALEN]; |
| 406 | }; |
| 407 | |
| 408 | struct cmd_ds_802_11_rf_tx_power { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 409 | __le16 action; |
| 410 | __le16 currentlevel; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 411 | }; |
| 412 | |
| 413 | struct cmd_ds_802_11_rf_antenna { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 414 | __le16 action; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 415 | |
| 416 | /* Number of antennas or 0xffff(diversity) */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 417 | __le16 antennamode; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 418 | |
| 419 | }; |
| 420 | |
Luis Carlos Cobo | 965f8bb | 2007-08-02 13:16:55 -0400 | [diff] [blame] | 421 | struct cmd_ds_802_11_monitor_mode { |
Holger Schurig | c2df2ef | 2007-12-07 15:30:44 +0000 | [diff] [blame] | 422 | __le16 action; |
| 423 | __le16 mode; |
Luis Carlos Cobo | 965f8bb | 2007-08-02 13:16:55 -0400 | [diff] [blame] | 424 | }; |
| 425 | |
Luis Carlos Cobo | 63f0023 | 2007-08-02 13:19:24 -0400 | [diff] [blame] | 426 | struct cmd_ds_set_boot2_ver { |
Holger Schurig | c2df2ef | 2007-12-07 15:30:44 +0000 | [diff] [blame] | 427 | __le16 action; |
| 428 | __le16 version; |
Luis Carlos Cobo | 63f0023 | 2007-08-02 13:19:24 -0400 | [diff] [blame] | 429 | }; |
| 430 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 431 | struct cmd_ds_802_11_ps_mode { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 432 | __le16 action; |
| 433 | __le16 nullpktinterval; |
| 434 | __le16 multipledtim; |
| 435 | __le16 reserved; |
| 436 | __le16 locallisteninterval; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 437 | }; |
| 438 | |
| 439 | struct PS_CMD_ConfirmSleep { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 440 | __le16 command; |
| 441 | __le16 size; |
| 442 | __le16 seqnum; |
| 443 | __le16 result; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 444 | |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 445 | __le16 action; |
| 446 | __le16 reserved1; |
| 447 | __le16 multipledtim; |
| 448 | __le16 reserved; |
| 449 | __le16 locallisteninterval; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 450 | }; |
| 451 | |
| 452 | struct cmd_ds_802_11_data_rate { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 453 | __le16 action; |
Dan Williams | 8c51276 | 2007-08-02 11:40:45 -0400 | [diff] [blame] | 454 | __le16 reserved; |
| 455 | u8 rates[MAX_RATES]; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 456 | }; |
| 457 | |
| 458 | struct cmd_ds_802_11_rate_adapt_rateset { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 459 | __le16 action; |
| 460 | __le16 enablehwauto; |
| 461 | __le16 bitmap; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 462 | }; |
| 463 | |
| 464 | struct cmd_ds_802_11_ad_hoc_start { |
Dan Williams | b44898e | 2007-08-02 11:18:40 -0400 | [diff] [blame] | 465 | u8 ssid[IW_ESSID_MAX_SIZE]; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 466 | u8 bsstype; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 467 | __le16 beaconperiod; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 468 | u8 dtimperiod; |
| 469 | union IEEEtypes_ssparamset ssparamset; |
| 470 | union ieeetypes_phyparamset phyparamset; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 471 | __le16 probedelay; |
Dan Williams | 0c9ca69 | 2007-08-02 10:43:44 -0400 | [diff] [blame] | 472 | __le16 capability; |
Dan Williams | 8c51276 | 2007-08-02 11:40:45 -0400 | [diff] [blame] | 473 | u8 rates[MAX_RATES]; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 474 | u8 tlv_memory_size_pad[100]; |
| 475 | } __attribute__ ((packed)); |
| 476 | |
| 477 | struct adhoc_bssdesc { |
Dan Williams | 0c9ca69 | 2007-08-02 10:43:44 -0400 | [diff] [blame] | 478 | u8 bssid[6]; |
| 479 | u8 ssid[32]; |
| 480 | u8 type; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 481 | __le16 beaconperiod; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 482 | u8 dtimperiod; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 483 | __le64 timestamp; |
| 484 | __le64 localtime; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 485 | union ieeetypes_phyparamset phyparamset; |
| 486 | union IEEEtypes_ssparamset ssparamset; |
Dan Williams | 0c9ca69 | 2007-08-02 10:43:44 -0400 | [diff] [blame] | 487 | __le16 capability; |
Dan Williams | 8c51276 | 2007-08-02 11:40:45 -0400 | [diff] [blame] | 488 | u8 rates[MAX_RATES]; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 489 | |
| 490 | /* DO NOT ADD ANY FIELDS TO THIS STRUCTURE. It is used below in the |
| 491 | * Adhoc join command and will cause a binary layout mismatch with |
| 492 | * the firmware |
| 493 | */ |
| 494 | } __attribute__ ((packed)); |
| 495 | |
| 496 | struct cmd_ds_802_11_ad_hoc_join { |
Dan Williams | 0c9ca69 | 2007-08-02 10:43:44 -0400 | [diff] [blame] | 497 | struct adhoc_bssdesc bss; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 498 | __le16 failtimeout; |
| 499 | __le16 probedelay; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 500 | |
| 501 | } __attribute__ ((packed)); |
| 502 | |
| 503 | struct cmd_ds_802_11_enable_rsn { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 504 | __le16 action; |
| 505 | __le16 enable; |
Dan Williams | 18c96c34 | 2007-06-18 12:01:12 -0400 | [diff] [blame] | 506 | } __attribute__ ((packed)); |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 507 | |
| 508 | struct MrvlIEtype_keyParamSet { |
| 509 | /* type ID */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 510 | __le16 type; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 511 | |
| 512 | /* length of Payload */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 513 | __le16 length; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 514 | |
| 515 | /* type of key: WEP=0, TKIP=1, AES=2 */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 516 | __le16 keytypeid; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 517 | |
| 518 | /* key control Info specific to a keytypeid */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 519 | __le16 keyinfo; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 520 | |
| 521 | /* length of key */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 522 | __le16 keylen; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 523 | |
| 524 | /* key material of size keylen */ |
| 525 | u8 key[32]; |
| 526 | }; |
| 527 | |
| 528 | struct cmd_ds_802_11_key_material { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 529 | __le16 action; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 530 | struct MrvlIEtype_keyParamSet keyParamSet[2]; |
| 531 | } __attribute__ ((packed)); |
| 532 | |
| 533 | struct cmd_ds_802_11_eeprom_access { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 534 | __le16 action; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 535 | |
| 536 | /* multiple 4 */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 537 | __le16 offset; |
| 538 | __le16 bytecount; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 539 | u8 value; |
| 540 | } __attribute__ ((packed)); |
| 541 | |
| 542 | struct cmd_ds_802_11_tpc_cfg { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 543 | __le16 action; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 544 | u8 enable; |
| 545 | s8 P0; |
| 546 | s8 P1; |
| 547 | s8 P2; |
| 548 | u8 usesnr; |
| 549 | } __attribute__ ((packed)); |
| 550 | |
| 551 | struct cmd_ds_802_11_led_ctrl { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 552 | __le16 action; |
| 553 | __le16 numled; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 554 | u8 data[256]; |
| 555 | } __attribute__ ((packed)); |
| 556 | |
| 557 | struct cmd_ds_802_11_pwr_cfg { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 558 | __le16 action; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 559 | u8 enable; |
| 560 | s8 PA_P0; |
| 561 | s8 PA_P1; |
| 562 | s8 PA_P2; |
| 563 | } __attribute__ ((packed)); |
| 564 | |
| 565 | struct cmd_ds_802_11_afc { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 566 | __le16 afc_auto; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 567 | union { |
| 568 | struct { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 569 | __le16 threshold; |
| 570 | __le16 period; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 571 | }; |
| 572 | struct { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 573 | __le16 timing_offset; /* signed */ |
| 574 | __le16 carrier_offset; /* signed */ |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 575 | }; |
| 576 | }; |
| 577 | } __attribute__ ((packed)); |
| 578 | |
| 579 | struct cmd_tx_rate_query { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 580 | __le16 txrate; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 581 | } __attribute__ ((packed)); |
| 582 | |
| 583 | struct cmd_ds_get_tsf { |
| 584 | __le64 tsfvalue; |
| 585 | } __attribute__ ((packed)); |
| 586 | |
| 587 | struct cmd_ds_bt_access { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 588 | __le16 action; |
| 589 | __le32 id; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 590 | u8 addr1[ETH_ALEN]; |
| 591 | u8 addr2[ETH_ALEN]; |
| 592 | } __attribute__ ((packed)); |
| 593 | |
| 594 | struct cmd_ds_fwt_access { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 595 | __le16 action; |
| 596 | __le32 id; |
Luis Carlos Cobo | 90e8eaf | 2007-05-25 13:53:26 -0400 | [diff] [blame] | 597 | u8 valid; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 598 | u8 da[ETH_ALEN]; |
| 599 | u8 dir; |
| 600 | u8 ra[ETH_ALEN]; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 601 | __le32 ssn; |
| 602 | __le32 dsn; |
| 603 | __le32 metric; |
Luis Carlos Cobo | 90e8eaf | 2007-05-25 13:53:26 -0400 | [diff] [blame] | 604 | u8 rate; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 605 | u8 hopcount; |
| 606 | u8 ttl; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 607 | __le32 expiration; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 608 | u8 sleepmode; |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 609 | __le32 snr; |
| 610 | __le32 references; |
Luis Carlos Cobo | 90e8eaf | 2007-05-25 13:53:26 -0400 | [diff] [blame] | 611 | u8 prec[ETH_ALEN]; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 612 | } __attribute__ ((packed)); |
| 613 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 614 | struct cmd_ds_mesh_access { |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 615 | __le16 action; |
| 616 | __le32 data[32]; /* last position reserved */ |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 617 | } __attribute__ ((packed)); |
| 618 | |
Javier Cardona | 0601e7e | 2007-05-25 12:12:06 -0400 | [diff] [blame] | 619 | /* Number of stats counters returned by the firmware */ |
| 620 | #define MESH_STATS_NUM 8 |
| 621 | |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 622 | struct cmd_ds_command { |
| 623 | /* command header */ |
David Woodhouse | 981f187 | 2007-05-25 23:36:54 -0400 | [diff] [blame] | 624 | __le16 command; |
| 625 | __le16 size; |
| 626 | __le16 seqnum; |
| 627 | __le16 result; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 628 | |
| 629 | /* command Body */ |
| 630 | union { |
| 631 | struct cmd_ds_get_hw_spec hwspec; |
| 632 | struct cmd_ds_802_11_ps_mode psmode; |
| 633 | struct cmd_ds_802_11_scan scan; |
| 634 | struct cmd_ds_802_11_scan_rsp scanresp; |
| 635 | struct cmd_ds_mac_control macctrl; |
| 636 | struct cmd_ds_802_11_associate associate; |
| 637 | struct cmd_ds_802_11_deauthenticate deauth; |
| 638 | struct cmd_ds_802_11_set_wep wep; |
| 639 | struct cmd_ds_802_11_ad_hoc_start ads; |
| 640 | struct cmd_ds_802_11_reset reset; |
| 641 | struct cmd_ds_802_11_ad_hoc_result result; |
| 642 | struct cmd_ds_802_11_get_log glog; |
| 643 | struct cmd_ds_802_11_authenticate auth; |
| 644 | struct cmd_ds_802_11_get_stat gstat; |
| 645 | struct cmd_ds_802_3_get_stat gstat_8023; |
| 646 | struct cmd_ds_802_11_snmp_mib smib; |
| 647 | struct cmd_ds_802_11_rf_tx_power txp; |
| 648 | struct cmd_ds_802_11_rf_antenna rant; |
Luis Carlos Cobo | 965f8bb | 2007-08-02 13:16:55 -0400 | [diff] [blame] | 649 | struct cmd_ds_802_11_monitor_mode monitor; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 650 | struct cmd_ds_802_11_data_rate drate; |
| 651 | struct cmd_ds_802_11_rate_adapt_rateset rateset; |
| 652 | struct cmd_ds_mac_multicast_adr madr; |
| 653 | struct cmd_ds_802_11_ad_hoc_join adj; |
| 654 | struct cmd_ds_802_11_radio_control radio; |
| 655 | struct cmd_ds_802_11_rf_channel rfchannel; |
| 656 | struct cmd_ds_802_11_rssi rssi; |
| 657 | struct cmd_ds_802_11_rssi_rsp rssirsp; |
| 658 | struct cmd_ds_802_11_disassociate dassociate; |
| 659 | struct cmd_ds_802_11_mac_address macadd; |
| 660 | struct cmd_ds_802_11_enable_rsn enbrsn; |
| 661 | struct cmd_ds_802_11_key_material keymaterial; |
| 662 | struct cmd_ds_mac_reg_access macreg; |
| 663 | struct cmd_ds_bbp_reg_access bbpreg; |
| 664 | struct cmd_ds_rf_reg_access rfreg; |
| 665 | struct cmd_ds_802_11_eeprom_access rdeeprom; |
| 666 | |
| 667 | struct cmd_ds_802_11d_domain_info domaininfo; |
| 668 | struct cmd_ds_802_11d_domain_info domaininforesp; |
| 669 | |
| 670 | struct cmd_ds_802_11_sleep_params sleep_params; |
| 671 | struct cmd_ds_802_11_inactivity_timeout inactivity_timeout; |
| 672 | struct cmd_ds_802_11_tpc_cfg tpccfg; |
| 673 | struct cmd_ds_802_11_pwr_cfg pwrcfg; |
| 674 | struct cmd_ds_802_11_afc afc; |
| 675 | struct cmd_ds_802_11_led_ctrl ledgpio; |
| 676 | |
| 677 | struct cmd_tx_rate_query txrate; |
| 678 | struct cmd_ds_bt_access bt; |
| 679 | struct cmd_ds_fwt_access fwt; |
| 680 | struct cmd_ds_mesh_access mesh; |
Luis Carlos Cobo | 63f0023 | 2007-08-02 13:19:24 -0400 | [diff] [blame] | 681 | struct cmd_ds_set_boot2_ver boot2_ver; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 682 | struct cmd_ds_get_tsf gettsf; |
| 683 | struct cmd_ds_802_11_subscribe_event subscribe_event; |
Brajesh Dave | 96287ac | 2007-11-20 17:44:28 -0500 | [diff] [blame] | 684 | struct cmd_ds_802_11_beacon_control bcn_ctrl; |
Marcelo Tosatti | 876c9d3 | 2007-02-10 12:25:27 -0200 | [diff] [blame] | 685 | } params; |
| 686 | } __attribute__ ((packed)); |
| 687 | |
| 688 | #endif |