aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/ath6kl/include
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-02-02 17:05:49 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-02 17:34:49 -0500
commitab3655dae4948a82a3be52681af0b778ead2c0ff (patch)
tree3b3c7b695b241971fc559a293cb39752862889a9 /drivers/staging/ath6kl/include
parent4c42080f3e4efba6f79fe1840eb0b728f286702d (diff)
staging: ath6kl: Convert A_UINT8 to u8
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/ath6kl/include')
-rw-r--r--drivers/staging/ath6kl/include/aggr_recv_api.h8
-rw-r--r--drivers/staging/ath6kl/include/ar3kconfig.h2
-rw-r--r--drivers/staging/ath6kl/include/ar6kap_common.h10
-rw-r--r--drivers/staging/ath6kl/include/common/a_hci.h260
-rw-r--r--drivers/staging/ath6kl/include/common/bmi_msg.h6
-rw-r--r--drivers/staging/ath6kl/include/common/dbglog.h2
-rw-r--r--drivers/staging/ath6kl/include/common/epping_test.h22
-rw-r--r--drivers/staging/ath6kl/include/common/gmboxif.h8
-rw-r--r--drivers/staging/ath6kl/include/common/htc.h56
-rw-r--r--drivers/staging/ath6kl/include/common/regulatory/reg_dbschema.h20
-rw-r--r--drivers/staging/ath6kl/include/common/wlan_dset.h4
-rw-r--r--drivers/staging/ath6kl/include/common/wmi.h642
-rw-r--r--drivers/staging/ath6kl/include/common/wmi_thin.h104
-rw-r--r--drivers/staging/ath6kl/include/common/wmix.h2
-rw-r--r--drivers/staging/ath6kl/include/common_drv.h12
-rw-r--r--drivers/staging/ath6kl/include/dset_api.h2
-rw-r--r--drivers/staging/ath6kl/include/hif.h4
-rw-r--r--drivers/staging/ath6kl/include/htc_api.h12
-rw-r--r--drivers/staging/ath6kl/include/htc_packet.h6
-rw-r--r--drivers/staging/ath6kl/include/wlan_api.h46
-rw-r--r--drivers/staging/ath6kl/include/wmi_api.h169
21 files changed, 698 insertions, 699 deletions
diff --git a/drivers/staging/ath6kl/include/aggr_recv_api.h b/drivers/staging/ath6kl/include/aggr_recv_api.h
index d3140171ddc..8f76f3744b5 100644
--- a/drivers/staging/ath6kl/include/aggr_recv_api.h
+++ b/drivers/staging/ath6kl/include/aggr_recv_api.h
@@ -64,7 +64,7 @@ aggr_register_rx_dispatcher(void *cntxt, void * dev, RX_CALLBACK fn);
64 * up to the indicated sequence number. 64 * up to the indicated sequence number.
65 */ 65 */
66void 66void
67aggr_process_bar(void *cntxt, A_UINT8 tid, A_UINT16 seq_no); 67aggr_process_bar(void *cntxt, u8 tid, A_UINT16 seq_no);
68 68
69 69
70/* 70/*
@@ -82,7 +82,7 @@ aggr_process_bar(void *cntxt, A_UINT8 tid, A_UINT16 seq_no);
82 * in hold_q to OS. 82 * in hold_q to OS.
83 */ 83 */
84void 84void
85aggr_recv_addba_req_evt(void * cntxt, A_UINT8 tid, A_UINT16 seq_no, A_UINT8 win_sz); 85aggr_recv_addba_req_evt(void * cntxt, u8 tid, A_UINT16 seq_no, u8 win_sz);
86 86
87 87
88/* 88/*
@@ -93,7 +93,7 @@ aggr_recv_addba_req_evt(void * cntxt, A_UINT8 tid, A_UINT16 seq_no, A_UINT8 win_
93 * aggr is not enabled on any tid. 93 * aggr is not enabled on any tid.
94 */ 94 */
95void 95void
96aggr_recv_delba_req_evt(void * cntxt, A_UINT8 tid); 96aggr_recv_delba_req_evt(void * cntxt, u8 tid);
97 97
98 98
99 99
@@ -108,7 +108,7 @@ aggr_recv_delba_req_evt(void * cntxt, A_UINT8 tid);
108 * callback may be called to deliver frames in order. 108 * callback may be called to deliver frames in order.
109 */ 109 */
110void 110void
111aggr_process_recv_frm(void *cntxt, A_UINT8 tid, A_UINT16 seq_no, bool is_amsdu, void **osbuf); 111aggr_process_recv_frm(void *cntxt, u8 tid, A_UINT16 seq_no, bool is_amsdu, void **osbuf);
112 112
113 113
114/* 114/*
diff --git a/drivers/staging/ath6kl/include/ar3kconfig.h b/drivers/staging/ath6kl/include/ar3kconfig.h
index 24f5b2aa96c..5556660b270 100644
--- a/drivers/staging/ath6kl/include/ar3kconfig.h
+++ b/drivers/staging/ath6kl/include/ar3kconfig.h
@@ -51,7 +51,7 @@ typedef struct {
51 A_UINT32 PwrMgmtEnabled; /* TLPM enabled? */ 51 A_UINT32 PwrMgmtEnabled; /* TLPM enabled? */
52 A_UINT16 IdleTimeout; /* TLPM idle timeout */ 52 A_UINT16 IdleTimeout; /* TLPM idle timeout */
53 A_UINT16 WakeupTimeout; /* TLPM wakeup timeout */ 53 A_UINT16 WakeupTimeout; /* TLPM wakeup timeout */
54 A_UINT8 bdaddr[6]; /* Bluetooth device address */ 54 u8 bdaddr[6]; /* Bluetooth device address */
55} AR3K_CONFIG_INFO; 55} AR3K_CONFIG_INFO;
56 56
57int AR3KConfigure(AR3K_CONFIG_INFO *pConfigInfo); 57int AR3KConfigure(AR3K_CONFIG_INFO *pConfigInfo);
diff --git a/drivers/staging/ath6kl/include/ar6kap_common.h b/drivers/staging/ath6kl/include/ar6kap_common.h
index 9b1b8bfae67..532d8eba932 100644
--- a/drivers/staging/ath6kl/include/ar6kap_common.h
+++ b/drivers/staging/ath6kl/include/ar6kap_common.h
@@ -32,11 +32,11 @@
32 * Used with AR6000_XIOCTL_AP_GET_STA_LIST 32 * Used with AR6000_XIOCTL_AP_GET_STA_LIST
33 */ 33 */
34typedef struct { 34typedef struct {
35 A_UINT8 mac[ATH_MAC_LEN]; 35 u8 mac[ATH_MAC_LEN];
36 A_UINT8 aid; 36 u8 aid;
37 A_UINT8 keymgmt; 37 u8 keymgmt;
38 A_UINT8 ucipher; 38 u8 ucipher;
39 A_UINT8 auth; 39 u8 auth;
40} station_t; 40} station_t;
41typedef struct { 41typedef struct {
42 station_t sta[AP_MAX_NUM_STA]; 42 station_t sta[AP_MAX_NUM_STA];
diff --git a/drivers/staging/ath6kl/include/common/a_hci.h b/drivers/staging/ath6kl/include/common/a_hci.h
index f2943466339..1d7d5fa3542 100644
--- a/drivers/staging/ath6kl/include/common/a_hci.h
+++ b/drivers/staging/ath6kl/include/common/a_hci.h
@@ -243,8 +243,8 @@ typedef enum {
243/* Command pkt */ 243/* Command pkt */
244typedef struct hci_cmd_pkt_t { 244typedef struct hci_cmd_pkt_t {
245 A_UINT16 opcode; 245 A_UINT16 opcode;
246 A_UINT8 param_length; 246 u8 param_length;
247 A_UINT8 params[255]; 247 u8 params[255];
248} POSTPACK HCI_CMD_PKT; 248} POSTPACK HCI_CMD_PKT;
249 249
250#define ACL_DATA_HDR_SIZE 4 /* hdl_and flags + data_len */ 250#define ACL_DATA_HDR_SIZE 4 /* hdl_and flags + data_len */
@@ -252,40 +252,40 @@ typedef struct hci_cmd_pkt_t {
252typedef struct hci_acl_data_pkt_t { 252typedef struct hci_acl_data_pkt_t {
253 A_UINT16 hdl_and_flags; 253 A_UINT16 hdl_and_flags;
254 A_UINT16 data_len; 254 A_UINT16 data_len;
255 A_UINT8 data[Max80211_PAL_PDU_Size]; 255 u8 data[Max80211_PAL_PDU_Size];
256} POSTPACK HCI_ACL_DATA_PKT; 256} POSTPACK HCI_ACL_DATA_PKT;
257 257
258/* Event pkt */ 258/* Event pkt */
259typedef struct hci_event_pkt_t { 259typedef struct hci_event_pkt_t {
260 A_UINT8 event_code; 260 u8 event_code;
261 A_UINT8 param_len; 261 u8 param_len;
262 A_UINT8 params[256]; 262 u8 params[256];
263} POSTPACK HCI_EVENT_PKT; 263} POSTPACK HCI_EVENT_PKT;
264 264
265 265
266/*============== HCI Command definitions ======================= */ 266/*============== HCI Command definitions ======================= */
267typedef struct hci_cmd_phy_link_t { 267typedef struct hci_cmd_phy_link_t {
268 A_UINT16 opcode; 268 A_UINT16 opcode;
269 A_UINT8 param_length; 269 u8 param_length;
270 A_UINT8 phy_link_hdl; 270 u8 phy_link_hdl;
271 A_UINT8 link_key_len; 271 u8 link_key_len;
272 A_UINT8 link_key_type; 272 u8 link_key_type;
273 A_UINT8 link_key[LINK_KEY_LEN]; 273 u8 link_key[LINK_KEY_LEN];
274} POSTPACK HCI_CMD_PHY_LINK; 274} POSTPACK HCI_CMD_PHY_LINK;
275 275
276typedef struct hci_cmd_write_rem_amp_assoc_t { 276typedef struct hci_cmd_write_rem_amp_assoc_t {
277 A_UINT16 opcode; 277 A_UINT16 opcode;
278 A_UINT8 param_length; 278 u8 param_length;
279 A_UINT8 phy_link_hdl; 279 u8 phy_link_hdl;
280 A_UINT16 len_so_far; 280 A_UINT16 len_so_far;
281 A_UINT16 amp_assoc_remaining_len; 281 A_UINT16 amp_assoc_remaining_len;
282 A_UINT8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ]; 282 u8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ];
283} POSTPACK HCI_CMD_WRITE_REM_AMP_ASSOC; 283} POSTPACK HCI_CMD_WRITE_REM_AMP_ASSOC;
284 284
285 285
286typedef struct hci_cmd_opcode_hdl_t { 286typedef struct hci_cmd_opcode_hdl_t {
287 A_UINT16 opcode; 287 A_UINT16 opcode;
288 A_UINT8 param_length; 288 u8 param_length;
289 A_UINT16 hdl; 289 A_UINT16 hdl;
290} POSTPACK HCI_CMD_READ_LINK_QUAL, 290} POSTPACK HCI_CMD_READ_LINK_QUAL,
291 HCI_CMD_FLUSH, 291 HCI_CMD_FLUSH,
@@ -293,8 +293,8 @@ typedef struct hci_cmd_opcode_hdl_t {
293 293
294typedef struct hci_cmd_read_local_amp_assoc_t { 294typedef struct hci_cmd_read_local_amp_assoc_t {
295 A_UINT16 opcode; 295 A_UINT16 opcode;
296 A_UINT8 param_length; 296 u8 param_length;
297 A_UINT8 phy_link_hdl; 297 u8 phy_link_hdl;
298 A_UINT16 len_so_far; 298 A_UINT16 len_so_far;
299 A_UINT16 max_rem_amp_assoc_len; 299 A_UINT16 max_rem_amp_assoc_len;
300} POSTPACK HCI_CMD_READ_LOCAL_AMP_ASSOC; 300} POSTPACK HCI_CMD_READ_LOCAL_AMP_ASSOC;
@@ -302,54 +302,54 @@ typedef struct hci_cmd_read_local_amp_assoc_t {
302 302
303typedef struct hci_cmd_set_event_mask_t { 303typedef struct hci_cmd_set_event_mask_t {
304 A_UINT16 opcode; 304 A_UINT16 opcode;
305 A_UINT8 param_length; 305 u8 param_length;
306 A_UINT64 mask; 306 A_UINT64 mask;
307}POSTPACK HCI_CMD_SET_EVT_MASK, HCI_CMD_SET_EVT_MASK_PG_2; 307}POSTPACK HCI_CMD_SET_EVT_MASK, HCI_CMD_SET_EVT_MASK_PG_2;
308 308
309 309
310typedef struct hci_cmd_enhanced_flush_t{ 310typedef struct hci_cmd_enhanced_flush_t{
311 A_UINT16 opcode; 311 A_UINT16 opcode;
312 A_UINT8 param_length; 312 u8 param_length;
313 A_UINT16 hdl; 313 A_UINT16 hdl;
314 A_UINT8 type; 314 u8 type;
315} POSTPACK HCI_CMD_ENHANCED_FLUSH; 315} POSTPACK HCI_CMD_ENHANCED_FLUSH;
316 316
317 317
318typedef struct hci_cmd_write_timeout_t { 318typedef struct hci_cmd_write_timeout_t {
319 A_UINT16 opcode; 319 A_UINT16 opcode;
320 A_UINT8 param_length; 320 u8 param_length;
321 A_UINT16 timeout; 321 A_UINT16 timeout;
322} POSTPACK HCI_CMD_WRITE_TIMEOUT; 322} POSTPACK HCI_CMD_WRITE_TIMEOUT;
323 323
324typedef struct hci_cmd_write_link_supervision_timeout_t { 324typedef struct hci_cmd_write_link_supervision_timeout_t {
325 A_UINT16 opcode; 325 A_UINT16 opcode;
326 A_UINT8 param_length; 326 u8 param_length;
327 A_UINT16 hdl; 327 A_UINT16 hdl;
328 A_UINT16 timeout; 328 A_UINT16 timeout;
329} POSTPACK HCI_CMD_WRITE_LINK_SUPERVISION_TIMEOUT; 329} POSTPACK HCI_CMD_WRITE_LINK_SUPERVISION_TIMEOUT;
330 330
331typedef struct hci_cmd_write_flow_control_t { 331typedef struct hci_cmd_write_flow_control_t {
332 A_UINT16 opcode; 332 A_UINT16 opcode;
333 A_UINT8 param_length; 333 u8 param_length;
334 A_UINT8 mode; 334 u8 mode;
335} POSTPACK HCI_CMD_WRITE_FLOW_CONTROL; 335} POSTPACK HCI_CMD_WRITE_FLOW_CONTROL;
336 336
337typedef struct location_data_cfg_t { 337typedef struct location_data_cfg_t {
338 A_UINT8 reg_domain_aware; 338 u8 reg_domain_aware;
339 A_UINT8 reg_domain[3]; 339 u8 reg_domain[3];
340 A_UINT8 reg_options; 340 u8 reg_options;
341} POSTPACK LOCATION_DATA_CFG; 341} POSTPACK LOCATION_DATA_CFG;
342 342
343typedef struct hci_cmd_write_location_data_t { 343typedef struct hci_cmd_write_location_data_t {
344 A_UINT16 opcode; 344 A_UINT16 opcode;
345 A_UINT8 param_length; 345 u8 param_length;
346 LOCATION_DATA_CFG cfg; 346 LOCATION_DATA_CFG cfg;
347} POSTPACK HCI_CMD_WRITE_LOCATION_DATA; 347} POSTPACK HCI_CMD_WRITE_LOCATION_DATA;
348 348
349 349
350typedef struct flow_spec_t { 350typedef struct flow_spec_t {
351 A_UINT8 id; 351 u8 id;
352 A_UINT8 service_type; 352 u8 service_type;
353 A_UINT16 max_sdu; 353 A_UINT16 max_sdu;
354 A_UINT32 sdu_inter_arrival_time; 354 A_UINT32 sdu_inter_arrival_time;
355 A_UINT32 access_latency; 355 A_UINT32 access_latency;
@@ -359,15 +359,15 @@ typedef struct flow_spec_t {
359 359
360typedef struct hci_cmd_create_logical_link_t { 360typedef struct hci_cmd_create_logical_link_t {
361 A_UINT16 opcode; 361 A_UINT16 opcode;
362 A_UINT8 param_length; 362 u8 param_length;
363 A_UINT8 phy_link_hdl; 363 u8 phy_link_hdl;
364 FLOW_SPEC tx_flow_spec; 364 FLOW_SPEC tx_flow_spec;
365 FLOW_SPEC rx_flow_spec; 365 FLOW_SPEC rx_flow_spec;
366} POSTPACK HCI_CMD_CREATE_LOGICAL_LINK; 366} POSTPACK HCI_CMD_CREATE_LOGICAL_LINK;
367 367
368typedef struct hci_cmd_flow_spec_modify_t { 368typedef struct hci_cmd_flow_spec_modify_t {
369 A_UINT16 opcode; 369 A_UINT16 opcode;
370 A_UINT8 param_length; 370 u8 param_length;
371 A_UINT16 hdl; 371 A_UINT16 hdl;
372 FLOW_SPEC tx_flow_spec; 372 FLOW_SPEC tx_flow_spec;
373 FLOW_SPEC rx_flow_spec; 373 FLOW_SPEC rx_flow_spec;
@@ -375,28 +375,28 @@ typedef struct hci_cmd_flow_spec_modify_t {
375 375
376typedef struct hci_cmd_logical_link_cancel_t { 376typedef struct hci_cmd_logical_link_cancel_t {
377 A_UINT16 opcode; 377 A_UINT16 opcode;
378 A_UINT8 param_length; 378 u8 param_length;
379 A_UINT8 phy_link_hdl; 379 u8 phy_link_hdl;
380 A_UINT8 tx_flow_spec_id; 380 u8 tx_flow_spec_id;
381} POSTPACK HCI_CMD_LOGICAL_LINK_CANCEL; 381} POSTPACK HCI_CMD_LOGICAL_LINK_CANCEL;
382 382
383typedef struct hci_cmd_disconnect_logical_link_t { 383typedef struct hci_cmd_disconnect_logical_link_t {
384 A_UINT16 opcode; 384 A_UINT16 opcode;
385 A_UINT8 param_length; 385 u8 param_length;
386 A_UINT16 logical_link_hdl; 386 A_UINT16 logical_link_hdl;
387} POSTPACK HCI_CMD_DISCONNECT_LOGICAL_LINK; 387} POSTPACK HCI_CMD_DISCONNECT_LOGICAL_LINK;
388 388
389typedef struct hci_cmd_disconnect_phy_link_t { 389typedef struct hci_cmd_disconnect_phy_link_t {
390 A_UINT16 opcode; 390 A_UINT16 opcode;
391 A_UINT8 param_length; 391 u8 param_length;
392 A_UINT8 phy_link_hdl; 392 u8 phy_link_hdl;
393} POSTPACK HCI_CMD_DISCONNECT_PHY_LINK; 393} POSTPACK HCI_CMD_DISCONNECT_PHY_LINK;
394 394
395typedef struct hci_cmd_srm_t { 395typedef struct hci_cmd_srm_t {
396 A_UINT16 opcode; 396 A_UINT16 opcode;
397 A_UINT8 param_length; 397 u8 param_length;
398 A_UINT8 phy_link_hdl; 398 u8 phy_link_hdl;
399 A_UINT8 mode; 399 u8 mode;
400} POSTPACK HCI_CMD_SHORT_RANGE_MODE; 400} POSTPACK HCI_CMD_SHORT_RANGE_MODE;
401/*============== HCI Command definitions end ======================= */ 401/*============== HCI Command definitions end ======================= */
402 402
@@ -406,123 +406,123 @@ typedef struct hci_cmd_srm_t {
406 406
407/* Command complete event */ 407/* Command complete event */
408typedef struct hci_event_cmd_complete_t { 408typedef struct hci_event_cmd_complete_t {
409 A_UINT8 event_code; 409 u8 event_code;
410 A_UINT8 param_len; 410 u8 param_len;
411 A_UINT8 num_hci_cmd_pkts; 411 u8 num_hci_cmd_pkts;
412 A_UINT16 opcode; 412 A_UINT16 opcode;
413 A_UINT8 params[255]; 413 u8 params[255];
414} POSTPACK HCI_EVENT_CMD_COMPLETE; 414} POSTPACK HCI_EVENT_CMD_COMPLETE;
415 415
416 416
417/* Command status event */ 417/* Command status event */
418typedef struct hci_event_cmd_status_t { 418typedef struct hci_event_cmd_status_t {
419 A_UINT8 event_code; 419 u8 event_code;
420 A_UINT8 param_len; 420 u8 param_len;
421 A_UINT8 status; 421 u8 status;
422 A_UINT8 num_hci_cmd_pkts; 422 u8 num_hci_cmd_pkts;
423 A_UINT16 opcode; 423 A_UINT16 opcode;
424} POSTPACK HCI_EVENT_CMD_STATUS; 424} POSTPACK HCI_EVENT_CMD_STATUS;
425 425
426/* Hardware Error event */ 426/* Hardware Error event */
427typedef struct hci_event_hw_err_t { 427typedef struct hci_event_hw_err_t {
428 A_UINT8 event_code; 428 u8 event_code;
429 A_UINT8 param_len; 429 u8 param_len;
430 A_UINT8 hw_err_code; 430 u8 hw_err_code;
431} POSTPACK HCI_EVENT_HW_ERR; 431} POSTPACK HCI_EVENT_HW_ERR;
432 432
433/* Flush occured event */ 433/* Flush occured event */
434/* Qos Violation event */ 434/* Qos Violation event */
435typedef struct hci_event_handle_t { 435typedef struct hci_event_handle_t {
436 A_UINT8 event_code; 436 u8 event_code;
437 A_UINT8 param_len; 437 u8 param_len;
438 A_UINT16 handle; 438 A_UINT16 handle;
439} POSTPACK HCI_EVENT_FLUSH_OCCRD, 439} POSTPACK HCI_EVENT_FLUSH_OCCRD,
440 HCI_EVENT_QOS_VIOLATION; 440 HCI_EVENT_QOS_VIOLATION;
441 441
442/* Loopback command event */ 442/* Loopback command event */
443typedef struct hci_loopback_cmd_t { 443typedef struct hci_loopback_cmd_t {
444 A_UINT8 event_code; 444 u8 event_code;
445 A_UINT8 param_len; 445 u8 param_len;
446 A_UINT8 params[252]; 446 u8 params[252];
447} POSTPACK HCI_EVENT_LOOPBACK_CMD; 447} POSTPACK HCI_EVENT_LOOPBACK_CMD;
448 448
449/* Data buffer overflow event */ 449/* Data buffer overflow event */
450typedef struct hci_data_buf_overflow_t { 450typedef struct hci_data_buf_overflow_t {
451 A_UINT8 event_code; 451 u8 event_code;
452 A_UINT8 param_len; 452 u8 param_len;
453 A_UINT8 link_type; 453 u8 link_type;
454} POSTPACK HCI_EVENT_DATA_BUF_OVERFLOW; 454} POSTPACK HCI_EVENT_DATA_BUF_OVERFLOW;
455 455
456/* Enhanced Flush complete event */ 456/* Enhanced Flush complete event */
457typedef struct hci_enhanced_flush_complt_t{ 457typedef struct hci_enhanced_flush_complt_t{
458 A_UINT8 event_code; 458 u8 event_code;
459 A_UINT8 param_len; 459 u8 param_len;
460 A_UINT16 hdl; 460 A_UINT16 hdl;
461} POSTPACK HCI_EVENT_ENHANCED_FLUSH_COMPLT; 461} POSTPACK HCI_EVENT_ENHANCED_FLUSH_COMPLT;
462 462
463/* Channel select event */ 463/* Channel select event */
464typedef struct hci_event_chan_select_t { 464typedef struct hci_event_chan_select_t {
465 A_UINT8 event_code; 465 u8 event_code;
466 A_UINT8 param_len; 466 u8 param_len;
467 A_UINT8 phy_link_hdl; 467 u8 phy_link_hdl;
468} POSTPACK HCI_EVENT_CHAN_SELECT; 468} POSTPACK HCI_EVENT_CHAN_SELECT;
469 469
470/* Physical Link Complete event */ 470/* Physical Link Complete event */
471typedef struct hci_event_phy_link_complete_event_t { 471typedef struct hci_event_phy_link_complete_event_t {
472 A_UINT8 event_code; 472 u8 event_code;
473 A_UINT8 param_len; 473 u8 param_len;
474 A_UINT8 status; 474 u8 status;
475 A_UINT8 phy_link_hdl; 475 u8 phy_link_hdl;
476} POSTPACK HCI_EVENT_PHY_LINK_COMPLETE; 476} POSTPACK HCI_EVENT_PHY_LINK_COMPLETE;
477 477
478/* Logical Link complete event */ 478/* Logical Link complete event */
479typedef struct hci_event_logical_link_complete_event_t { 479typedef struct hci_event_logical_link_complete_event_t {
480 A_UINT8 event_code; 480 u8 event_code;
481 A_UINT8 param_len; 481 u8 param_len;
482 A_UINT8 status; 482 u8 status;
483 A_UINT16 logical_link_hdl; 483 A_UINT16 logical_link_hdl;
484 A_UINT8 phy_hdl; 484 u8 phy_hdl;
485 A_UINT8 tx_flow_id; 485 u8 tx_flow_id;
486} POSTPACK HCI_EVENT_LOGICAL_LINK_COMPLETE_EVENT; 486} POSTPACK HCI_EVENT_LOGICAL_LINK_COMPLETE_EVENT;
487 487
488/* Disconnect Logical Link complete event */ 488/* Disconnect Logical Link complete event */
489typedef struct hci_event_disconnect_logical_link_event_t { 489typedef struct hci_event_disconnect_logical_link_event_t {
490 A_UINT8 event_code; 490 u8 event_code;
491 A_UINT8 param_len; 491 u8 param_len;
492 A_UINT8 status; 492 u8 status;
493 A_UINT16 logical_link_hdl; 493 A_UINT16 logical_link_hdl;
494 A_UINT8 reason; 494 u8 reason;
495} POSTPACK HCI_EVENT_DISCONNECT_LOGICAL_LINK_EVENT; 495} POSTPACK HCI_EVENT_DISCONNECT_LOGICAL_LINK_EVENT;
496 496
497/* Disconnect Physical Link complete event */ 497/* Disconnect Physical Link complete event */
498typedef struct hci_event_disconnect_phy_link_complete_t { 498typedef struct hci_event_disconnect_phy_link_complete_t {
499 A_UINT8 event_code; 499 u8 event_code;
500 A_UINT8 param_len; 500 u8 param_len;
501 A_UINT8 status; 501 u8 status;
502 A_UINT8 phy_link_hdl; 502 u8 phy_link_hdl;
503 A_UINT8 reason; 503 u8 reason;
504} POSTPACK HCI_EVENT_DISCONNECT_PHY_LINK_COMPLETE; 504} POSTPACK HCI_EVENT_DISCONNECT_PHY_LINK_COMPLETE;
505 505
506typedef struct hci_event_physical_link_loss_early_warning_t{ 506typedef struct hci_event_physical_link_loss_early_warning_t{
507 A_UINT8 event_code; 507 u8 event_code;
508 A_UINT8 param_len; 508 u8 param_len;
509 A_UINT8 phy_hdl; 509 u8 phy_hdl;
510 A_UINT8 reason; 510 u8 reason;
511} POSTPACK HCI_EVENT_PHY_LINK_LOSS_EARLY_WARNING; 511} POSTPACK HCI_EVENT_PHY_LINK_LOSS_EARLY_WARNING;
512 512
513typedef struct hci_event_physical_link_recovery_t{ 513typedef struct hci_event_physical_link_recovery_t{
514 A_UINT8 event_code; 514 u8 event_code;
515 A_UINT8 param_len; 515 u8 param_len;
516 A_UINT8 phy_hdl; 516 u8 phy_hdl;
517} POSTPACK HCI_EVENT_PHY_LINK_RECOVERY; 517} POSTPACK HCI_EVENT_PHY_LINK_RECOVERY;
518 518
519 519
520/* Flow spec modify complete event */ 520/* Flow spec modify complete event */
521/* Flush event */ 521/* Flush event */
522typedef struct hci_event_status_handle_t { 522typedef struct hci_event_status_handle_t {
523 A_UINT8 event_code; 523 u8 event_code;
524 A_UINT8 param_len; 524 u8 param_len;
525 A_UINT8 status; 525 u8 status;
526 A_UINT16 handle; 526 A_UINT16 handle;
527} POSTPACK HCI_EVENT_FLOW_SPEC_MODIFY, 527} POSTPACK HCI_EVENT_FLOW_SPEC_MODIFY,
528 HCI_EVENT_FLUSH; 528 HCI_EVENT_FLUSH;
@@ -530,40 +530,40 @@ typedef struct hci_event_status_handle_t {
530 530
531/* Num of completed data blocks event */ 531/* Num of completed data blocks event */
532typedef struct hci_event_num_of_compl_data_blks_t { 532typedef struct hci_event_num_of_compl_data_blks_t {
533 A_UINT8 event_code; 533 u8 event_code;
534 A_UINT8 param_len; 534 u8 param_len;
535 A_UINT16 num_data_blks; 535 A_UINT16 num_data_blks;
536 A_UINT8 num_handles; 536 u8 num_handles;
537 A_UINT8 params[255]; 537 u8 params[255];
538} POSTPACK HCI_EVENT_NUM_COMPL_DATA_BLKS; 538} POSTPACK HCI_EVENT_NUM_COMPL_DATA_BLKS;
539 539
540/* Short range mode change complete event */ 540/* Short range mode change complete event */
541typedef struct hci_srm_cmpl_t { 541typedef struct hci_srm_cmpl_t {
542 A_UINT8 event_code; 542 u8 event_code;
543 A_UINT8 param_len; 543 u8 param_len;
544 A_UINT8 status; 544 u8 status;
545 A_UINT8 phy_link; 545 u8 phy_link;
546 A_UINT8 state; 546 u8 state;
547} POSTPACK HCI_EVENT_SRM_COMPL; 547} POSTPACK HCI_EVENT_SRM_COMPL;
548 548
549typedef struct hci_event_amp_status_change_t{ 549typedef struct hci_event_amp_status_change_t{
550 A_UINT8 event_code; 550 u8 event_code;
551 A_UINT8 param_len; 551 u8 param_len;
552 A_UINT8 status; 552 u8 status;
553 A_UINT8 amp_status; 553 u8 amp_status;
554} POSTPACK HCI_EVENT_AMP_STATUS_CHANGE; 554} POSTPACK HCI_EVENT_AMP_STATUS_CHANGE;
555 555
556/*============== Event definitions end =========================== */ 556/*============== Event definitions end =========================== */
557 557
558 558
559typedef struct local_amp_info_resp_t { 559typedef struct local_amp_info_resp_t {
560 A_UINT8 status; 560 u8 status;
561 A_UINT8 amp_status; 561 u8 amp_status;
562 A_UINT32 total_bw; /* kbps */ 562 A_UINT32 total_bw; /* kbps */
563 A_UINT32 max_guranteed_bw; /* kbps */ 563 A_UINT32 max_guranteed_bw; /* kbps */
564 A_UINT32 min_latency; 564 A_UINT32 min_latency;
565 A_UINT32 max_pdu_size; 565 A_UINT32 max_pdu_size;
566 A_UINT8 amp_type; 566 u8 amp_type;
567 A_UINT16 pal_capabilities; 567 A_UINT16 pal_capabilities;
568 A_UINT16 amp_assoc_len; 568 A_UINT16 amp_assoc_len;
569 A_UINT32 max_flush_timeout; /* in ms */ 569 A_UINT32 max_flush_timeout; /* in ms */
@@ -571,10 +571,10 @@ typedef struct local_amp_info_resp_t {
571} POSTPACK LOCAL_AMP_INFO; 571} POSTPACK LOCAL_AMP_INFO;
572 572
573typedef struct amp_assoc_cmd_resp_t{ 573typedef struct amp_assoc_cmd_resp_t{
574 A_UINT8 status; 574 u8 status;
575 A_UINT8 phy_hdl; 575 u8 phy_hdl;
576 A_UINT16 amp_assoc_len; 576 A_UINT16 amp_assoc_len;
577 A_UINT8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ]; 577 u8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ];
578}POSTPACK AMP_ASSOC_CMD_RESP; 578}POSTPACK AMP_ASSOC_CMD_RESP;
579 579
580 580
@@ -618,38 +618,38 @@ enum PAL_HCI_CMD_STATUS {
618/* Following are event return parameters.. part of HCI events 618/* Following are event return parameters.. part of HCI events
619 */ 619 */
620typedef struct timeout_read_t { 620typedef struct timeout_read_t {
621 A_UINT8 status; 621 u8 status;
622 A_UINT16 timeout; 622 A_UINT16 timeout;
623}POSTPACK TIMEOUT_INFO; 623}POSTPACK TIMEOUT_INFO;
624 624
625typedef struct link_supervision_timeout_read_t { 625typedef struct link_supervision_timeout_read_t {
626 A_UINT8 status; 626 u8 status;
627 A_UINT16 hdl; 627 A_UINT16 hdl;
628 A_UINT16 timeout; 628 A_UINT16 timeout;
629}POSTPACK LINK_SUPERVISION_TIMEOUT_INFO; 629}POSTPACK LINK_SUPERVISION_TIMEOUT_INFO;
630 630
631typedef struct status_hdl_t { 631typedef struct status_hdl_t {
632 A_UINT8 status; 632 u8 status;
633 A_UINT16 hdl; 633 A_UINT16 hdl;
634}POSTPACK INFO_STATUS_HDL; 634}POSTPACK INFO_STATUS_HDL;
635 635
636typedef struct write_remote_amp_assoc_t{ 636typedef struct write_remote_amp_assoc_t{
637 A_UINT8 status; 637 u8 status;
638 A_UINT8 hdl; 638 u8 hdl;
639}POSTPACK WRITE_REMOTE_AMP_ASSOC_INFO; 639}POSTPACK WRITE_REMOTE_AMP_ASSOC_INFO;
640 640
641typedef struct read_loc_info_t { 641typedef struct read_loc_info_t {
642 A_UINT8 status; 642 u8 status;
643 LOCATION_DATA_CFG loc; 643 LOCATION_DATA_CFG loc;
644}POSTPACK READ_LOC_INFO; 644}POSTPACK READ_LOC_INFO;
645 645
646typedef struct read_flow_ctrl_mode_t { 646typedef struct read_flow_ctrl_mode_t {
647 A_UINT8 status; 647 u8 status;
648 A_UINT8 mode; 648 u8 mode;
649}POSTPACK READ_FLWCTRL_INFO; 649}POSTPACK READ_FLWCTRL_INFO;
650 650
651typedef struct read_data_blk_size_t { 651typedef struct read_data_blk_size_t {
652 A_UINT8 status; 652 u8 status;
653 A_UINT16 max_acl_data_pkt_len; 653 A_UINT16 max_acl_data_pkt_len;
654 A_UINT16 data_block_len; 654 A_UINT16 data_block_len;
655 A_UINT16 total_num_data_blks; 655 A_UINT16 total_num_data_blks;
@@ -657,23 +657,23 @@ typedef struct read_data_blk_size_t {
657 657
658/* Read Link quality info */ 658/* Read Link quality info */
659typedef struct link_qual_t { 659typedef struct link_qual_t {
660 A_UINT8 status; 660 u8 status;
661 A_UINT16 hdl; 661 A_UINT16 hdl;
662 A_UINT8 link_qual; 662 u8 link_qual;
663} POSTPACK READ_LINK_QUAL_INFO, 663} POSTPACK READ_LINK_QUAL_INFO,
664 READ_RSSI_INFO; 664 READ_RSSI_INFO;
665 665
666typedef struct ll_cancel_resp_t { 666typedef struct ll_cancel_resp_t {
667 A_UINT8 status; 667 u8 status;
668 A_UINT8 phy_link_hdl; 668 u8 phy_link_hdl;
669 A_UINT8 tx_flow_spec_id; 669 u8 tx_flow_spec_id;
670} POSTPACK LL_CANCEL_RESP; 670} POSTPACK LL_CANCEL_RESP;
671 671
672typedef struct read_local_ver_info_t { 672typedef struct read_local_ver_info_t {
673 A_UINT8 status; 673 u8 status;
674 A_UINT8 hci_version; 674 u8 hci_version;
675 A_UINT16 hci_revision; 675 A_UINT16 hci_revision;
676 A_UINT8 pal_version; 676 u8 pal_version;
677 A_UINT16 manf_name; 677 A_UINT16 manf_name;
678 A_UINT16 pal_sub_ver; 678 A_UINT16 pal_sub_ver;
679} POSTPACK READ_LOCAL_VER_INFO; 679} POSTPACK READ_LOCAL_VER_INFO;
diff --git a/drivers/staging/ath6kl/include/common/bmi_msg.h b/drivers/staging/ath6kl/include/common/bmi_msg.h
index f9687d325b2..171bf378baa 100644
--- a/drivers/staging/ath6kl/include/common/bmi_msg.h
+++ b/drivers/staging/ath6kl/include/common/bmi_msg.h
@@ -77,7 +77,7 @@
77 * A_UINT32 address 77 * A_UINT32 address
78 * A_UINT32 length, at most BMI_DATASZ_MAX 78 * A_UINT32 length, at most BMI_DATASZ_MAX
79 * Response format: 79 * Response format:
80 * A_UINT8 data[length] 80 * u8 data[length]
81 */ 81 */
82 82
83#define BMI_WRITE_MEMORY 3 83#define BMI_WRITE_MEMORY 3
@@ -87,7 +87,7 @@
87 * A_UINT32 command (BMI_WRITE_MEMORY) 87 * A_UINT32 command (BMI_WRITE_MEMORY)
88 * A_UINT32 address 88 * A_UINT32 address
89 * A_UINT32 length, at most BMI_DATASZ_MAX 89 * A_UINT32 length, at most BMI_DATASZ_MAX
90 * A_UINT8 data[length] 90 * u8 data[length]
91 * Response format: none 91 * Response format: none
92 */ 92 */
93 93
@@ -229,7 +229,7 @@ PREPACK struct bmi_target_info {
229 * A_UINT32 command (BMI_LZ_DATA) 229 * A_UINT32 command (BMI_LZ_DATA)
230 * A_UINT32 length (of compressed data), 230 * A_UINT32 length (of compressed data),
231 * at most BMI_DATASZ_MAX 231 * at most BMI_DATASZ_MAX
232 * A_UINT8 CompressedData[length] 232 * u8 CompressedData[length]
233 * Response format: none 233 * Response format: none
234 * Note: Not supported on all versions of ROM firmware. 234 * Note: Not supported on all versions of ROM firmware.
235 */ 235 */
diff --git a/drivers/staging/ath6kl/include/common/dbglog.h b/drivers/staging/ath6kl/include/common/dbglog.h
index 382d9a2dd4e..060a6b16c19 100644
--- a/drivers/staging/ath6kl/include/common/dbglog.h
+++ b/drivers/staging/ath6kl/include/common/dbglog.h
@@ -89,7 +89,7 @@ extern "C" {
89 89
90PREPACK struct dbglog_buf_s { 90PREPACK struct dbglog_buf_s {
91 struct dbglog_buf_s *next; 91 struct dbglog_buf_s *next;
92 A_UINT8 *buffer; 92 u8 *buffer;
93 A_UINT32 bufsize; 93 A_UINT32 bufsize;
94 A_UINT32 length; 94 A_UINT32 length;
95 A_UINT32 count; 95 A_UINT32 count;
diff --git a/drivers/staging/ath6kl/include/common/epping_test.h b/drivers/staging/ath6kl/include/common/epping_test.h
index f8aeb3f657e..061884dfb33 100644
--- a/drivers/staging/ath6kl/include/common/epping_test.h
+++ b/drivers/staging/ath6kl/include/common/epping_test.h
@@ -41,25 +41,25 @@
41#define HCI_RSVD_EXPECTED_PKT_TYPE_RECV_OFFSET 7 41#define HCI_RSVD_EXPECTED_PKT_TYPE_RECV_OFFSET 7
42 42
43typedef PREPACK struct { 43typedef PREPACK struct {
44 A_UINT8 _HCIRsvd[8]; /* reserved for HCI packet header (GMBOX) testing */ 44 u8 _HCIRsvd[8]; /* reserved for HCI packet header (GMBOX) testing */
45 A_UINT8 StreamEcho_h; /* stream no. to echo this packet on (filled by host) */ 45 u8 StreamEcho_h; /* stream no. to echo this packet on (filled by host) */
46 A_UINT8 StreamEchoSent_t; /* stream no. packet was echoed to (filled by target) 46 u8 StreamEchoSent_t; /* stream no. packet was echoed to (filled by target)
47 When echoed: StreamEchoSent_t == StreamEcho_h */ 47 When echoed: StreamEchoSent_t == StreamEcho_h */
48 A_UINT8 StreamRecv_t; /* stream no. that target received this packet on (filled by target) */ 48 u8 StreamRecv_t; /* stream no. that target received this packet on (filled by target) */
49 A_UINT8 StreamNo_h; /* stream number to send on (filled by host) */ 49 u8 StreamNo_h; /* stream number to send on (filled by host) */
50 A_UINT8 Magic_h[4]; /* magic number to filter for this packet on the host*/ 50 u8 Magic_h[4]; /* magic number to filter for this packet on the host*/
51 A_UINT8 _rsvd[6]; /* reserved fields that must be set to a "reserved" value 51 u8 _rsvd[6]; /* reserved fields that must be set to a "reserved" value
52 since this packet maps to a 14-byte ethernet frame we want 52 since this packet maps to a 14-byte ethernet frame we want
53 to make sure ethertype field is set to something unknown */ 53 to make sure ethertype field is set to something unknown */
54 54
55 A_UINT8 _pad[2]; /* padding for alignment */ 55 u8 _pad[2]; /* padding for alignment */
56 A_UINT8 TimeStamp[8]; /* timestamp of packet (host or target) */ 56 u8 TimeStamp[8]; /* timestamp of packet (host or target) */
57 A_UINT32 HostContext_h; /* 4 byte host context, target echos this back */ 57 A_UINT32 HostContext_h; /* 4 byte host context, target echos this back */
58 A_UINT32 SeqNo; /* sequence number (set by host or target) */ 58 A_UINT32 SeqNo; /* sequence number (set by host or target) */
59 A_UINT16 Cmd_h; /* ping command (filled by host) */ 59 A_UINT16 Cmd_h; /* ping command (filled by host) */
60 A_UINT16 CmdFlags_h; /* optional flags */ 60 A_UINT16 CmdFlags_h; /* optional flags */
61 A_UINT8 CmdBuffer_h[8]; /* buffer for command (host -> target) */ 61 u8 CmdBuffer_h[8]; /* buffer for command (host -> target) */
62 A_UINT8 CmdBuffer_t[8]; /* buffer for command (target -> host) */ 62 u8 CmdBuffer_t[8]; /* buffer for command (target -> host) */
63 A_UINT16 DataLength; /* length of data */ 63 A_UINT16 DataLength; /* length of data */
64 A_UINT16 DataCRC; /* 16 bit CRC of data */ 64 A_UINT16 DataCRC; /* 16 bit CRC of data */
65 A_UINT16 HeaderCRC; /* header CRC (fields : StreamNo_h to end, minus HeaderCRC) */ 65 A_UINT16 HeaderCRC; /* header CRC (fields : StreamNo_h to end, minus HeaderCRC) */
diff --git a/drivers/staging/ath6kl/include/common/gmboxif.h b/drivers/staging/ath6kl/include/common/gmboxif.h
index 4d8d85fd2e7..374007569d6 100644
--- a/drivers/staging/ath6kl/include/common/gmboxif.h
+++ b/drivers/staging/ath6kl/include/common/gmboxif.h
@@ -47,17 +47,17 @@ typedef PREPACK struct {
47 47
48typedef PREPACK struct { 48typedef PREPACK struct {
49 A_UINT16 Flags_ConnHandle; 49 A_UINT16 Flags_ConnHandle;
50 A_UINT8 Length; 50 u8 Length;
51} POSTPACK BT_HCI_SCO_HEADER; 51} POSTPACK BT_HCI_SCO_HEADER;
52 52
53typedef PREPACK struct { 53typedef PREPACK struct {
54 A_UINT16 OpCode; 54 A_UINT16 OpCode;
55 A_UINT8 ParamLength; 55 u8 ParamLength;
56} POSTPACK BT_HCI_COMMAND_HEADER; 56} POSTPACK BT_HCI_COMMAND_HEADER;
57 57
58typedef PREPACK struct { 58typedef PREPACK struct {
59 A_UINT8 EventCode; 59 u8 EventCode;
60 A_UINT8 ParamLength; 60 u8 ParamLength;
61} POSTPACK BT_HCI_EVENT_HEADER; 61} POSTPACK BT_HCI_EVENT_HEADER;
62 62
63/* MBOX host interrupt signal assignments */ 63/* MBOX host interrupt signal assignments */
diff --git a/drivers/staging/ath6kl/include/common/htc.h b/drivers/staging/ath6kl/include/common/htc.h
index f96cf7db7e0..13a24da3af8 100644
--- a/drivers/staging/ath6kl/include/common/htc.h
+++ b/drivers/staging/ath6kl/include/common/htc.h
@@ -31,7 +31,7 @@
31#define A_OFFSETOF(type,field) (unsigned long)(&(((type *)NULL)->field)) 31#define A_OFFSETOF(type,field) (unsigned long)(&(((type *)NULL)->field))
32 32
33#define ASSEMBLE_UNALIGNED_UINT16(p,highbyte,lowbyte) \ 33#define ASSEMBLE_UNALIGNED_UINT16(p,highbyte,lowbyte) \
34 (((A_UINT16)(((A_UINT8 *)(p))[(highbyte)])) << 8 | (A_UINT16)(((A_UINT8 *)(p))[(lowbyte)])) 34 (((A_UINT16)(((u8 *)(p))[(highbyte)])) << 8 | (A_UINT16)(((u8 *)(p))[(lowbyte)]))
35 35
36/* alignment independent macros (little-endian) to fetch UINT16s or UINT8s from a 36/* alignment independent macros (little-endian) to fetch UINT16s or UINT8s from a
37 * structure using only the type and field name. 37 * structure using only the type and field name.
@@ -43,15 +43,15 @@
43 43
44#define A_SET_UINT16_FIELD(p,type,field,value) \ 44#define A_SET_UINT16_FIELD(p,type,field,value) \
45{ \ 45{ \
46 ((A_UINT8 *)(p))[A_OFFSETOF(type,field)] = (A_UINT8)(value); \ 46 ((u8 *)(p))[A_OFFSETOF(type,field)] = (u8)(value); \
47 ((A_UINT8 *)(p))[A_OFFSETOF(type,field) + 1] = (A_UINT8)((value) >> 8); \ 47 ((u8 *)(p))[A_OFFSETOF(type,field) + 1] = (u8)((value) >> 8); \
48} 48}
49 49
50#define A_GET_UINT8_FIELD(p,type,field) \ 50#define A_GET_UINT8_FIELD(p,type,field) \
51 ((A_UINT8 *)(p))[A_OFFSETOF(type,field)] 51 ((u8 *)(p))[A_OFFSETOF(type,field)]
52 52
53#define A_SET_UINT8_FIELD(p,type,field,value) \ 53#define A_SET_UINT8_FIELD(p,type,field,value) \
54 ((A_UINT8 *)(p))[A_OFFSETOF(type,field)] = (value) 54 ((u8 *)(p))[A_OFFSETOF(type,field)] = (value)
55 55
56/****** DANGER DANGER *************** 56/****** DANGER DANGER ***************
57 * 57 *
@@ -69,13 +69,13 @@
69typedef PREPACK struct _HTC_FRAME_HDR{ 69typedef PREPACK struct _HTC_FRAME_HDR{
70 /* do not remove or re-arrange these fields, these are minimally required 70 /* do not remove or re-arrange these fields, these are minimally required
71 * to take advantage of 4-byte lookaheads in some hardware implementations */ 71 * to take advantage of 4-byte lookaheads in some hardware implementations */
72 A_UINT8 EndpointID; 72 u8 EndpointID;
73 A_UINT8 Flags; 73 u8 Flags;
74 A_UINT16 PayloadLen; /* length of data (including trailer) that follows the header */ 74 A_UINT16 PayloadLen; /* length of data (including trailer) that follows the header */
75 75
76 /***** end of 4-byte lookahead ****/ 76 /***** end of 4-byte lookahead ****/
77 77
78 A_UINT8 ControlBytes[2]; 78 u8 ControlBytes[2];
79 79
80 /* message payload starts after the header */ 80 /* message payload starts after the header */
81 81
@@ -119,16 +119,16 @@ typedef PREPACK struct {
119 A_UINT16 MessageID; /* ID */ 119 A_UINT16 MessageID; /* ID */
120 A_UINT16 CreditCount; /* number of credits the target can offer */ 120 A_UINT16 CreditCount; /* number of credits the target can offer */
121 A_UINT16 CreditSize; /* size of each credit */ 121 A_UINT16 CreditSize; /* size of each credit */
122 A_UINT8 MaxEndpoints; /* maximum number of endpoints the target has resources for */ 122 u8 MaxEndpoints; /* maximum number of endpoints the target has resources for */
123 A_UINT8 _Pad1; 123 u8 _Pad1;
124} POSTPACK HTC_READY_MSG; 124} POSTPACK HTC_READY_MSG;
125 125
126 /* extended HTC ready message */ 126 /* extended HTC ready message */
127typedef PREPACK struct { 127typedef PREPACK struct {
128 HTC_READY_MSG Version2_0_Info; /* legacy version 2.0 information at the front... */ 128 HTC_READY_MSG Version2_0_Info; /* legacy version 2.0 information at the front... */
129 /* extended information */ 129 /* extended information */
130 A_UINT8 HTCVersion; 130 u8 HTCVersion;
131 A_UINT8 MaxMsgsPerHTCBundle; 131 u8 MaxMsgsPerHTCBundle;
132} POSTPACK HTC_READY_EX_MSG; 132} POSTPACK HTC_READY_EX_MSG;
133 133
134#define HTC_VERSION_2P0 0x00 134#define HTC_VERSION_2P0 0x00
@@ -151,8 +151,8 @@ typedef PREPACK struct {
151#define HTC_CONNECT_FLAGS_THRESHOLD_LEVEL_THREE_FOURTHS 0x2 151#define HTC_CONNECT_FLAGS_THRESHOLD_LEVEL_THREE_FOURTHS 0x2
152#define HTC_CONNECT_FLAGS_THRESHOLD_LEVEL_UNITY 0x3 152#define HTC_CONNECT_FLAGS_THRESHOLD_LEVEL_UNITY 0x3
153 153
154 A_UINT8 ServiceMetaLength; /* length of meta data that follows */ 154 u8 ServiceMetaLength; /* length of meta data that follows */
155 A_UINT8 _Pad1; 155 u8 _Pad1;
156 156
157 /* service-specific meta data starts after the header */ 157 /* service-specific meta data starts after the header */
158 158
@@ -163,11 +163,11 @@ typedef PREPACK struct {
163typedef PREPACK struct { 163typedef PREPACK struct {
164 A_UINT16 MessageID; 164 A_UINT16 MessageID;
165 A_UINT16 ServiceID; /* service ID that the connection request was made */ 165 A_UINT16 ServiceID; /* service ID that the connection request was made */
166 A_UINT8 Status; /* service connection status */ 166 u8 Status; /* service connection status */
167 A_UINT8 EndpointID; /* assigned endpoint ID */ 167 u8 EndpointID; /* assigned endpoint ID */
168 A_UINT16 MaxMsgSize; /* maximum expected message size on this endpoint */ 168 A_UINT16 MaxMsgSize; /* maximum expected message size on this endpoint */
169 A_UINT8 ServiceMetaLength; /* length of meta data that follows */ 169 u8 ServiceMetaLength; /* length of meta data that follows */
170 A_UINT8 _Pad1; 170 u8 _Pad1;
171 171
172 /* service-specific meta data starts after the header */ 172 /* service-specific meta data starts after the header */
173 173
@@ -182,8 +182,8 @@ typedef PREPACK struct {
182typedef PREPACK struct { 182typedef PREPACK struct {
183 A_UINT16 MessageID; 183 A_UINT16 MessageID;
184 A_UINT32 SetupFlags; 184 A_UINT32 SetupFlags;
185 A_UINT8 MaxMsgsPerBundledRecv; 185 u8 MaxMsgsPerBundledRecv;
186 A_UINT8 Rsvd[3]; 186 u8 Rsvd[3];
187} POSTPACK HTC_SETUP_COMPLETE_EX_MSG; 187} POSTPACK HTC_SETUP_COMPLETE_EX_MSG;
188 188
189#define HTC_SETUP_COMPLETE_FLAGS_ENABLE_BUNDLE_RECV (1 << 0) 189#define HTC_SETUP_COMPLETE_FLAGS_ENABLE_BUNDLE_RECV (1 << 0)
@@ -204,19 +204,19 @@ typedef PREPACK struct {
204#define HTC_RECORD_LOOKAHEAD_BUNDLE 3 204#define HTC_RECORD_LOOKAHEAD_BUNDLE 3
205 205
206typedef PREPACK struct { 206typedef PREPACK struct {
207 A_UINT8 RecordID; /* Record ID */ 207 u8 RecordID; /* Record ID */
208 A_UINT8 Length; /* Length of record */ 208 u8 Length; /* Length of record */
209} POSTPACK HTC_RECORD_HDR; 209} POSTPACK HTC_RECORD_HDR;
210 210
211typedef PREPACK struct { 211typedef PREPACK struct {
212 A_UINT8 EndpointID; /* Endpoint that owns these credits */ 212 u8 EndpointID; /* Endpoint that owns these credits */
213 A_UINT8 Credits; /* credits to report since last report */ 213 u8 Credits; /* credits to report since last report */
214} POSTPACK HTC_CREDIT_REPORT; 214} POSTPACK HTC_CREDIT_REPORT;
215 215
216typedef PREPACK struct { 216typedef PREPACK struct {
217 A_UINT8 PreValid; /* pre valid guard */ 217 u8 PreValid; /* pre valid guard */
218 A_UINT8 LookAhead[4]; /* 4 byte lookahead */ 218 u8 LookAhead[4]; /* 4 byte lookahead */
219 A_UINT8 PostValid; /* post valid guard */ 219 u8 PostValid; /* post valid guard */
220 220
221 /* NOTE: the LookAhead array is guarded by a PreValid and Post Valid guard bytes. 221 /* NOTE: the LookAhead array is guarded by a PreValid and Post Valid guard bytes.
222 * The PreValid bytes must equal the inverse of the PostValid byte */ 222 * The PreValid bytes must equal the inverse of the PostValid byte */
@@ -224,7 +224,7 @@ typedef PREPACK struct {
224} POSTPACK HTC_LOOKAHEAD_REPORT; 224} POSTPACK HTC_LOOKAHEAD_REPORT;
225 225
226typedef PREPACK struct { 226typedef PREPACK struct {
227 A_UINT8 LookAhead[4]; /* 4 byte lookahead */ 227 u8 LookAhead[4]; /* 4 byte lookahead */
228} POSTPACK HTC_BUNDLED_LOOKAHEAD_REPORT; 228} POSTPACK HTC_BUNDLED_LOOKAHEAD_REPORT;
229 229
230#ifndef ATH_TARGET 230#ifndef ATH_TARGET
diff --git a/drivers/staging/ath6kl/include/common/regulatory/reg_dbschema.h b/drivers/staging/ath6kl/include/common/regulatory/reg_dbschema.h
index 325d2051eec..a50e9eb2458 100644
--- a/drivers/staging/ath6kl/include/common/regulatory/reg_dbschema.h
+++ b/drivers/staging/ath6kl/include/common/regulatory/reg_dbschema.h
@@ -172,8 +172,8 @@ typedef PREPACK struct reg_dmn_pair_mapping {
172 A_UINT16 regDmnEnum; /* 16 bit reg domain pair */ 172 A_UINT16 regDmnEnum; /* 16 bit reg domain pair */
173 A_UINT16 regDmn5GHz; /* 5GHz reg domain */ 173 A_UINT16 regDmn5GHz; /* 5GHz reg domain */
174 A_UINT16 regDmn2GHz; /* 2GHz reg domain */ 174 A_UINT16 regDmn2GHz; /* 2GHz reg domain */
175 A_UINT8 flags5GHz; /* Requirements flags (AdHoc disallow etc) */ 175 u8 flags5GHz; /* Requirements flags (AdHoc disallow etc) */
176 A_UINT8 flags2GHz; /* Requirements flags (AdHoc disallow etc) */ 176 u8 flags2GHz; /* Requirements flags (AdHoc disallow etc) */
177 A_UINT32 pscanMask; /* Passive Scan flags which can override unitary domain passive scan 177 A_UINT32 pscanMask; /* Passive Scan flags which can override unitary domain passive scan
178 flags. This value is used as a mask on the unitary flags*/ 178 flags. This value is used as a mask on the unitary flags*/
179} POSTPACK REG_DMN_PAIR_MAPPING; 179} POSTPACK REG_DMN_PAIR_MAPPING;
@@ -211,10 +211,10 @@ typedef PREPACK struct {
211typedef PREPACK struct RegDmnFreqBand { 211typedef PREPACK struct RegDmnFreqBand {
212 A_UINT16 lowChannel; /* Low channel center in MHz */ 212 A_UINT16 lowChannel; /* Low channel center in MHz */
213 A_UINT16 highChannel; /* High Channel center in MHz */ 213 A_UINT16 highChannel; /* High Channel center in MHz */
214 A_UINT8 power; /* Max power (dBm) for channel range */ 214 u8 power; /* Max power (dBm) for channel range */
215 A_UINT8 channelSep; /* Channel separation within the band */ 215 u8 channelSep; /* Channel separation within the band */
216 A_UINT8 useDfs; /* Use DFS in the RegDomain if corresponding bit is set */ 216 u8 useDfs; /* Use DFS in the RegDomain if corresponding bit is set */
217 A_UINT8 mode; /* Mode of operation */ 217 u8 mode; /* Mode of operation */
218 A_UINT32 usePassScan; /* Use Passive Scan in the RegDomain if corresponding bit is set */ 218 A_UINT32 usePassScan; /* Use Passive Scan in the RegDomain if corresponding bit is set */
219 A_UINT32 ht40ChanMask; /* lower 16 bits: indicate which frequencies in the block is HT40 capable 219 A_UINT32 ht40ChanMask; /* lower 16 bits: indicate which frequencies in the block is HT40 capable
220 upper 16 bits: what rate (half/quarter) the channel is */ 220 upper 16 bits: what rate (half/quarter) the channel is */
@@ -224,10 +224,10 @@ typedef PREPACK struct RegDmnFreqBand {
224 224
225typedef PREPACK struct regDomain { 225typedef PREPACK struct regDomain {
226 A_UINT16 regDmnEnum; /* value from EnumRd table */ 226 A_UINT16 regDmnEnum; /* value from EnumRd table */
227 A_UINT8 rdCTL; 227 u8 rdCTL;
228 A_UINT8 maxAntGain; 228 u8 maxAntGain;
229 A_UINT8 dfsMask; /* DFS bitmask for 5Ghz tables */ 229 u8 dfsMask; /* DFS bitmask for 5Ghz tables */
230 A_UINT8 flags; /* Requirement flags (AdHoc disallow etc) */ 230 u8 flags; /* Requirement flags (AdHoc disallow etc) */
231 A_UINT16 reserved; /* for alignment */ 231 A_UINT16 reserved; /* for alignment */
232 A_UINT32 pscan; /* Bitmask for passive scan */ 232 A_UINT32 pscan; /* Bitmask for passive scan */
233 A_UINT32 chan11a[BMLEN]; /* 64 bit bitmask for channel/band selection */ 233 A_UINT32 chan11a[BMLEN]; /* 64 bit bitmask for channel/band selection */
diff --git a/drivers/staging/ath6kl/include/common/wlan_dset.h b/drivers/staging/ath6kl/include/common/wlan_dset.h
index 864a60cedf1..e092020a263 100644
--- a/drivers/staging/ath6kl/include/common/wlan_dset.h
+++ b/drivers/staging/ath6kl/include/common/wlan_dset.h
@@ -25,8 +25,8 @@
25 25
26typedef PREPACK struct wow_config_dset { 26typedef PREPACK struct wow_config_dset {
27 27
28 A_UINT8 valid_dset; 28 u8 valid_dset;
29 A_UINT8 gpio_enable; 29 u8 gpio_enable;
30 A_UINT16 gpio_pin; 30 A_UINT16 gpio_pin;
31} POSTPACK WOW_CONFIG_DSET; 31} POSTPACK WOW_CONFIG_DSET;
32 32
diff --git a/drivers/staging/ath6kl/include/common/wmi.h b/drivers/staging/ath6kl/include/common/wmi.h
index 70758bfaa13..d39e7282ec2 100644
--- a/drivers/staging/ath6kl/include/common/wmi.h
+++ b/drivers/staging/ath6kl/include/common/wmi.h
@@ -77,16 +77,16 @@ PREPACK struct host_app_area_s {
77 * Data Path 77 * Data Path
78 */ 78 */
79typedef PREPACK struct { 79typedef PREPACK struct {
80 A_UINT8 dstMac[ATH_MAC_LEN]; 80 u8 dstMac[ATH_MAC_LEN];
81 A_UINT8 srcMac[ATH_MAC_LEN]; 81 u8 srcMac[ATH_MAC_LEN];
82 A_UINT16 typeOrLen; 82 A_UINT16 typeOrLen;
83} POSTPACK ATH_MAC_HDR; 83} POSTPACK ATH_MAC_HDR;
84 84
85typedef PREPACK struct { 85typedef PREPACK struct {
86 A_UINT8 dsap; 86 u8 dsap;
87 A_UINT8 ssap; 87 u8 ssap;
88 A_UINT8 cntl; 88 u8 cntl;
89 A_UINT8 orgCode[3]; 89 u8 orgCode[3];
90 A_UINT16 etherType; 90 A_UINT16 etherType;
91} POSTPACK ATH_LLC_SNAP_HDR; 91} POSTPACK ATH_LLC_SNAP_HDR;
92 92
@@ -161,7 +161,7 @@ typedef enum {
161 161
162typedef PREPACK struct { 162typedef PREPACK struct {
163 A_INT8 rssi; 163 A_INT8 rssi;
164 A_UINT8 info; /* usage of 'info' field(8-bit): 164 u8 info; /* usage of 'info' field(8-bit):
165 * b1:b0 - WMI_MSG_TYPE 165 * b1:b0 - WMI_MSG_TYPE
166 * b4:b3:b2 - UP(tid) 166 * b4:b3:b2 - UP(tid)
167 * b5 - Used in AP mode. More-data in tx dir, PS in rx. 167 * b5 - Used in AP mode. More-data in tx dir, PS in rx.
@@ -195,17 +195,17 @@ typedef PREPACK struct {
195#endif 195#endif
196 196
197typedef PREPACK struct { 197typedef PREPACK struct {
198 A_UINT8 pktID; /* The packet ID to identify the tx request */ 198 u8 pktID; /* The packet ID to identify the tx request */
199 A_UINT8 ratePolicyID; /* The rate policy to be used for the tx of this frame */ 199 u8 ratePolicyID; /* The rate policy to be used for the tx of this frame */
200} POSTPACK WMI_TX_META_V1; 200} POSTPACK WMI_TX_META_V1;
201 201
202 202
203#define WMI_CSUM_DIR_TX (0x1) 203#define WMI_CSUM_DIR_TX (0x1)
204#define TX_CSUM_CALC_FILL (0x1) 204#define TX_CSUM_CALC_FILL (0x1)
205typedef PREPACK struct { 205typedef PREPACK struct {
206 A_UINT8 csumStart; /*Offset from start of the WMI header for csum calculation to begin */ 206 u8 csumStart; /*Offset from start of the WMI header for csum calculation to begin */
207 A_UINT8 csumDest; /*Offset from start of WMI header where final csum goes*/ 207 u8 csumDest; /*Offset from start of WMI header where final csum goes*/
208 A_UINT8 csumFlags; /*number of bytes over which csum is calculated*/ 208 u8 csumFlags; /*number of bytes over which csum is calculated*/
209} POSTPACK WMI_TX_META_V2; 209} POSTPACK WMI_TX_META_V2;
210 210
211 211
@@ -242,17 +242,17 @@ typedef PREPACK struct {
242#endif 242#endif
243 243
244typedef PREPACK struct { 244typedef PREPACK struct {
245 A_UINT8 status; /* one of WMI_RX_STATUS_... */ 245 u8 status; /* one of WMI_RX_STATUS_... */
246 A_UINT8 rix; /* rate index mapped to rate at which this packet was received. */ 246 u8 rix; /* rate index mapped to rate at which this packet was received. */
247 A_UINT8 rssi; /* rssi of packet */ 247 u8 rssi; /* rssi of packet */
248 A_UINT8 channel;/* rf channel during packet reception */ 248 u8 channel;/* rf channel during packet reception */
249 A_UINT16 flags; /* a combination of WMI_RX_FLAGS_... */ 249 A_UINT16 flags; /* a combination of WMI_RX_FLAGS_... */
250} POSTPACK WMI_RX_META_V1; 250} POSTPACK WMI_RX_META_V1;
251 251
252#define RX_CSUM_VALID_FLAG (0x1) 252#define RX_CSUM_VALID_FLAG (0x1)
253typedef PREPACK struct { 253typedef PREPACK struct {
254 A_UINT16 csum; 254 A_UINT16 csum;
255 A_UINT8 csumFlags;/* bit 0 set -partial csum valid 255 u8 csumFlags;/* bit 0 set -partial csum valid
256 bit 1 set -test mode */ 256 bit 1 set -test mode */
257} POSTPACK WMI_RX_META_V2; 257} POSTPACK WMI_RX_META_V2;
258 258
@@ -522,17 +522,17 @@ typedef enum {
522#define DEFAULT_CONNECT_CTRL_FLAGS (CONNECT_CSA_FOLLOW_BSS) 522#define DEFAULT_CONNECT_CTRL_FLAGS (CONNECT_CSA_FOLLOW_BSS)
523 523
524typedef PREPACK struct { 524typedef PREPACK struct {
525 A_UINT8 networkType; 525 u8 networkType;
526 A_UINT8 dot11AuthMode; 526 u8 dot11AuthMode;
527 A_UINT8 authMode; 527 u8 authMode;
528 A_UINT8 pairwiseCryptoType; 528 u8 pairwiseCryptoType;
529 A_UINT8 pairwiseCryptoLen; 529 u8 pairwiseCryptoLen;
530 A_UINT8 groupCryptoType; 530 u8 groupCryptoType;
531 A_UINT8 groupCryptoLen; 531 u8 groupCryptoLen;
532 A_UINT8 ssidLength; 532 u8 ssidLength;
533 A_UCHAR ssid[WMI_MAX_SSID_LEN]; 533 A_UCHAR ssid[WMI_MAX_SSID_LEN];
534 A_UINT16 channel; 534 A_UINT16 channel;
535 A_UINT8 bssid[ATH_MAC_LEN]; 535 u8 bssid[ATH_MAC_LEN];
536 A_UINT32 ctrl_flags; 536 A_UINT32 ctrl_flags;
537} POSTPACK WMI_CONNECT_CMD; 537} POSTPACK WMI_CONNECT_CMD;
538 538
@@ -541,12 +541,12 @@ typedef PREPACK struct {
541 */ 541 */
542typedef PREPACK struct { 542typedef PREPACK struct {
543 A_UINT16 channel; /* hint */ 543 A_UINT16 channel; /* hint */
544 A_UINT8 bssid[ATH_MAC_LEN]; /* mandatory if set */ 544 u8 bssid[ATH_MAC_LEN]; /* mandatory if set */
545} POSTPACK WMI_RECONNECT_CMD; 545} POSTPACK WMI_RECONNECT_CMD;
546 546
547#define WMI_PMK_LEN 32 547#define WMI_PMK_LEN 32
548typedef PREPACK struct { 548typedef PREPACK struct {
549 A_UINT8 pmk[WMI_PMK_LEN]; 549 u8 pmk[WMI_PMK_LEN];
550} POSTPACK WMI_SET_PMK_CMD; 550} POSTPACK WMI_SET_PMK_CMD;
551 551
552/* 552/*
@@ -572,21 +572,21 @@ typedef enum {
572#define KEY_OP_VALID_MASK 0x03 572#define KEY_OP_VALID_MASK 0x03
573 573
574typedef PREPACK struct { 574typedef PREPACK struct {
575 A_UINT8 keyIndex; 575 u8 keyIndex;
576 A_UINT8 keyType; 576 u8 keyType;
577 A_UINT8 keyUsage; /* KEY_USAGE */ 577 u8 keyUsage; /* KEY_USAGE */
578 A_UINT8 keyLength; 578 u8 keyLength;
579 A_UINT8 keyRSC[8]; /* key replay sequence counter */ 579 u8 keyRSC[8]; /* key replay sequence counter */
580 A_UINT8 key[WMI_MAX_KEY_LEN]; 580 u8 key[WMI_MAX_KEY_LEN];
581 A_UINT8 key_op_ctrl; /* Additional Key Control information */ 581 u8 key_op_ctrl; /* Additional Key Control information */
582 A_UINT8 key_macaddr[ATH_MAC_LEN]; 582 u8 key_macaddr[ATH_MAC_LEN];
583} POSTPACK WMI_ADD_CIPHER_KEY_CMD; 583} POSTPACK WMI_ADD_CIPHER_KEY_CMD;
584 584
585/* 585/*
586 * WMI_DELETE_CIPHER_KEY_CMDID 586 * WMI_DELETE_CIPHER_KEY_CMDID
587 */ 587 */
588typedef PREPACK struct { 588typedef PREPACK struct {
589 A_UINT8 keyIndex; 589 u8 keyIndex;
590} POSTPACK WMI_DELETE_CIPHER_KEY_CMD; 590} POSTPACK WMI_DELETE_CIPHER_KEY_CMD;
591 591
592#define WMI_KRK_LEN 16 592#define WMI_KRK_LEN 16
@@ -594,7 +594,7 @@ typedef PREPACK struct {
594 * WMI_ADD_KRK_CMDID 594 * WMI_ADD_KRK_CMDID
595 */ 595 */
596typedef PREPACK struct { 596typedef PREPACK struct {
597 A_UINT8 krk[WMI_KRK_LEN]; 597 u8 krk[WMI_KRK_LEN];
598} POSTPACK WMI_ADD_KRK_CMD; 598} POSTPACK WMI_ADD_KRK_CMD;
599 599
600/* 600/*
@@ -606,7 +606,7 @@ typedef enum {
606} WMI_TKIP_CM_CONTROL; 606} WMI_TKIP_CM_CONTROL;
607 607
608typedef PREPACK struct { 608typedef PREPACK struct {
609 A_UINT8 cm_en; /* WMI_TKIP_CM_CONTROL */ 609 u8 cm_en; /* WMI_TKIP_CM_CONTROL */
610} POSTPACK WMI_SET_TKIP_COUNTERMEASURES_CMD; 610} POSTPACK WMI_SET_TKIP_COUNTERMEASURES_CMD;
611 611
612/* 612/*
@@ -621,9 +621,9 @@ typedef enum {
621} PMKID_ENABLE_FLG; 621} PMKID_ENABLE_FLG;
622 622
623typedef PREPACK struct { 623typedef PREPACK struct {
624 A_UINT8 bssid[ATH_MAC_LEN]; 624 u8 bssid[ATH_MAC_LEN];
625 A_UINT8 enable; /* PMKID_ENABLE_FLG */ 625 u8 enable; /* PMKID_ENABLE_FLG */
626 A_UINT8 pmkid[WMI_PMKID_LEN]; 626 u8 pmkid[WMI_PMKID_LEN];
627} POSTPACK WMI_SET_PMKID_CMD; 627} POSTPACK WMI_SET_PMKID_CMD;
628 628
629/* 629/*
@@ -639,8 +639,8 @@ typedef PREPACK struct {
639 u32 isLegacy; /* For Legacy Cisco AP compatibility */ 639 u32 isLegacy; /* For Legacy Cisco AP compatibility */
640 A_UINT32 homeDwellTime; /* Maximum duration in the home channel(milliseconds) */ 640 A_UINT32 homeDwellTime; /* Maximum duration in the home channel(milliseconds) */
641 A_UINT32 forceScanInterval; /* Time interval between scans (milliseconds)*/ 641 A_UINT32 forceScanInterval; /* Time interval between scans (milliseconds)*/
642 A_UINT8 scanType; /* WMI_SCAN_TYPE */ 642 u8 scanType; /* WMI_SCAN_TYPE */
643 A_UINT8 numChannels; /* how many channels follow */ 643 u8 numChannels; /* how many channels follow */
644 A_UINT16 channelList[1]; /* channels in Mhz */ 644 A_UINT16 channelList[1]; /* channels in Mhz */
645} POSTPACK WMI_START_SCAN_CMD; 645} POSTPACK WMI_START_SCAN_CMD;
646 646
@@ -681,8 +681,8 @@ typedef PREPACK struct {
681 A_UINT16 bg_period; /* seconds */ 681 A_UINT16 bg_period; /* seconds */
682 A_UINT16 maxact_chdwell_time; /* msec */ 682 A_UINT16 maxact_chdwell_time; /* msec */
683 A_UINT16 pas_chdwell_time; /* msec */ 683 A_UINT16 pas_chdwell_time; /* msec */
684 A_UINT8 shortScanRatio; /* how many shorts scan for one long */ 684 u8 shortScanRatio; /* how many shorts scan for one long */
685 A_UINT8 scanCtrlFlags; 685 u8 scanCtrlFlags;
686 A_UINT16 minact_chdwell_time; /* msec */ 686 A_UINT16 minact_chdwell_time; /* msec */
687 A_UINT16 maxact_scan_per_ssid; /* max active scans per ssid */ 687 A_UINT16 maxact_scan_per_ssid; /* max active scans per ssid */
688 A_UINT32 max_dfsch_act_time; /* msecs */ 688 A_UINT32 max_dfsch_act_time; /* msecs */
@@ -703,8 +703,8 @@ typedef enum {
703} WMI_BSS_FILTER; 703} WMI_BSS_FILTER;
704 704
705typedef PREPACK struct { 705typedef PREPACK struct {
706 A_UINT8 bssFilter; /* see WMI_BSS_FILTER */ 706 u8 bssFilter; /* see WMI_BSS_FILTER */
707 A_UINT8 reserved1; /* For alignment */ 707 u8 reserved1; /* For alignment */
708 A_UINT16 reserved2; /* For alignment */ 708 A_UINT16 reserved2; /* For alignment */
709 A_UINT32 ieMask; 709 A_UINT32 ieMask;
710} POSTPACK WMI_BSS_FILTER_CMD; 710} POSTPACK WMI_BSS_FILTER_CMD;
@@ -721,10 +721,10 @@ typedef enum {
721} WMI_SSID_FLAG; 721} WMI_SSID_FLAG;
722 722
723typedef PREPACK struct { 723typedef PREPACK struct {
724 A_UINT8 entryIndex; /* 0 to MAX_PROBED_SSID_INDEX */ 724 u8 entryIndex; /* 0 to MAX_PROBED_SSID_INDEX */
725 A_UINT8 flag; /* WMI_SSID_FLG */ 725 u8 flag; /* WMI_SSID_FLG */
726 A_UINT8 ssidLength; 726 u8 ssidLength;
727 A_UINT8 ssid[32]; 727 u8 ssid[32];
728} POSTPACK WMI_PROBED_SSID_CMD; 728} POSTPACK WMI_PROBED_SSID_CMD;
729 729
730/* 730/*
@@ -772,7 +772,7 @@ typedef enum {
772} WMI_POWER_MODE; 772} WMI_POWER_MODE;
773 773
774typedef PREPACK struct { 774typedef PREPACK struct {
775 A_UINT8 powerMode; /* WMI_POWER_MODE */ 775 u8 powerMode; /* WMI_POWER_MODE */
776} POSTPACK WMI_POWER_MODE_CMD; 776} POSTPACK WMI_POWER_MODE_CMD;
777 777
778typedef PREPACK struct { 778typedef PREPACK struct {
@@ -786,11 +786,11 @@ typedef PREPACK struct {
786} POSTPACK WMI_SET_PARAMS_CMD; 786} POSTPACK WMI_SET_PARAMS_CMD;
787 787
788typedef PREPACK struct { 788typedef PREPACK struct {
789 A_UINT8 multicast_mac[ATH_MAC_LEN]; /* WMI_SET_MCAST_FILTER */ 789 u8 multicast_mac[ATH_MAC_LEN]; /* WMI_SET_MCAST_FILTER */
790} POSTPACK WMI_SET_MCAST_FILTER_CMD; 790} POSTPACK WMI_SET_MCAST_FILTER_CMD;
791 791
792typedef PREPACK struct { 792typedef PREPACK struct {
793 A_UINT8 enable; /* WMI_MCAST_FILTER */ 793 u8 enable; /* WMI_MCAST_FILTER */
794} POSTPACK WMI_MCAST_FILTER_CMD; 794} POSTPACK WMI_MCAST_FILTER_CMD;
795 795
796/* 796/*
@@ -836,8 +836,8 @@ typedef enum {
836} WMI_ADHOC_PS_TYPE; 836} WMI_ADHOC_PS_TYPE;
837 837
838typedef PREPACK struct { 838typedef PREPACK struct {
839 A_UINT8 power_saving; 839 u8 power_saving;
840 A_UINT8 ttl; /* number of beacon periods */ 840 u8 ttl; /* number of beacon periods */
841 A_UINT16 atim_windows; /* msec */ 841 A_UINT16 atim_windows; /* msec */
842 A_UINT16 timeout_value; /* msec */ 842 A_UINT16 timeout_value; /* msec */
843} POSTPACK WMI_IBSS_PM_CAPS_CMD; 843} POSTPACK WMI_IBSS_PM_CAPS_CMD;
@@ -851,8 +851,8 @@ typedef enum {
851typedef PREPACK struct { 851typedef PREPACK struct {
852 A_UINT32 idle_time; /* in msec */ 852 A_UINT32 idle_time; /* in msec */
853 A_UINT32 ps_period; /* in usec */ 853 A_UINT32 ps_period; /* in usec */
854 A_UINT8 sleep_period; /* in ps periods */ 854 u8 sleep_period; /* in ps periods */
855 A_UINT8 psType; 855 u8 psType;
856} POSTPACK WMI_AP_PS_CMD; 856} POSTPACK WMI_AP_PS_CMD;
857 857
858/* 858/*
@@ -890,14 +890,14 @@ typedef enum {
890} APSD_SP_LEN_TYPE; 890} APSD_SP_LEN_TYPE;
891 891
892typedef PREPACK struct { 892typedef PREPACK struct {
893 A_UINT8 maxSPLen; 893 u8 maxSPLen;
894} POSTPACK WMI_SET_MAX_SP_LEN_CMD; 894} POSTPACK WMI_SET_MAX_SP_LEN_CMD;
895 895
896/* 896/*
897 * WMI_SET_DISC_TIMEOUT_CMDID 897 * WMI_SET_DISC_TIMEOUT_CMDID
898 */ 898 */
899typedef PREPACK struct { 899typedef PREPACK struct {
900 A_UINT8 disconnectTimeout; /* seconds */ 900 u8 disconnectTimeout; /* seconds */
901} POSTPACK WMI_DISC_TIMEOUT_CMD; 901} POSTPACK WMI_DISC_TIMEOUT_CMD;
902 902
903typedef enum { 903typedef enum {
@@ -921,7 +921,7 @@ typedef enum {
921 * WMI_SYNCHRONIZE_CMDID 921 * WMI_SYNCHRONIZE_CMDID
922 */ 922 */
923typedef PREPACK struct { 923typedef PREPACK struct {
924 A_UINT8 dataSyncMap; 924 u8 dataSyncMap;
925} POSTPACK WMI_SYNC_CMD; 925} POSTPACK WMI_SYNC_CMD;
926 926
927/* 927/*
@@ -943,25 +943,25 @@ typedef PREPACK struct {
943 A_UINT32 mediumTime; 943 A_UINT32 mediumTime;
944 A_UINT16 nominalMSDU; /* in octects */ 944 A_UINT16 nominalMSDU; /* in octects */
945 A_UINT16 maxMSDU; /* in octects */ 945 A_UINT16 maxMSDU; /* in octects */
946 A_UINT8 trafficClass; 946 u8 trafficClass;
947 A_UINT8 trafficDirection; /* DIR_TYPE */ 947 u8 trafficDirection; /* DIR_TYPE */
948 A_UINT8 rxQueueNum; 948 u8 rxQueueNum;
949 A_UINT8 trafficType; /* TRAFFIC_TYPE */ 949 u8 trafficType; /* TRAFFIC_TYPE */
950 A_UINT8 voicePSCapability; /* VOICEPS_CAP_TYPE */ 950 u8 voicePSCapability; /* VOICEPS_CAP_TYPE */
951 A_UINT8 tsid; 951 u8 tsid;
952 A_UINT8 userPriority; /* 802.1D user priority */ 952 u8 userPriority; /* 802.1D user priority */
953 A_UINT8 nominalPHY; /* nominal phy rate */ 953 u8 nominalPHY; /* nominal phy rate */
954} POSTPACK WMI_CREATE_PSTREAM_CMD; 954} POSTPACK WMI_CREATE_PSTREAM_CMD;
955 955
956/* 956/*
957 * WMI_DELETE_PSTREAM_CMDID 957 * WMI_DELETE_PSTREAM_CMDID
958 */ 958 */
959typedef PREPACK struct { 959typedef PREPACK struct {
960 A_UINT8 txQueueNumber; 960 u8 txQueueNumber;
961 A_UINT8 rxQueueNumber; 961 u8 rxQueueNumber;
962 A_UINT8 trafficDirection; 962 u8 trafficDirection;
963 A_UINT8 trafficClass; 963 u8 trafficClass;
964 A_UINT8 tsid; 964 u8 tsid;
965} POSTPACK WMI_DELETE_PSTREAM_CMD; 965} POSTPACK WMI_DELETE_PSTREAM_CMD;
966 966
967/* 967/*
@@ -978,10 +978,10 @@ typedef enum {
978#define WMI_MAX_CHANNELS 32 978#define WMI_MAX_CHANNELS 32
979 979
980typedef PREPACK struct { 980typedef PREPACK struct {
981 A_UINT8 reserved1; 981 u8 reserved1;
982 A_UINT8 scanParam; /* set if enable scan */ 982 u8 scanParam; /* set if enable scan */
983 A_UINT8 phyMode; /* see WMI_PHY_MODE */ 983 u8 phyMode; /* see WMI_PHY_MODE */
984 A_UINT8 numChannels; /* how many channels follow */ 984 u8 numChannels; /* how many channels follow */
985 A_UINT16 channelList[1]; /* channels in Mhz */ 985 A_UINT16 channelList[1]; /* channels in Mhz */
986} POSTPACK WMI_CHANNEL_PARAMS_CMD; 986} POSTPACK WMI_CHANNEL_PARAMS_CMD;
987 987
@@ -1008,8 +1008,8 @@ typedef PREPACK struct WMI_RSSI_THRESHOLD_PARAMS{
1008 A_INT16 thresholdBelow4_Val; 1008 A_INT16 thresholdBelow4_Val;
1009 A_INT16 thresholdBelow5_Val; 1009 A_INT16 thresholdBelow5_Val;
1010 A_INT16 thresholdBelow6_Val; /* highest of bellow */ 1010 A_INT16 thresholdBelow6_Val; /* highest of bellow */
1011 A_UINT8 weight; /* "alpha" */ 1011 u8 weight; /* "alpha" */
1012 A_UINT8 reserved[3]; 1012 u8 reserved[3];
1013} POSTPACK WMI_RSSI_THRESHOLD_PARAMS_CMD; 1013} POSTPACK WMI_RSSI_THRESHOLD_PARAMS_CMD;
1014 1014
1015/* 1015/*
@@ -1019,32 +1019,32 @@ typedef PREPACK struct WMI_RSSI_THRESHOLD_PARAMS{
1019 1019
1020typedef PREPACK struct WMI_SNR_THRESHOLD_PARAMS{ 1020typedef PREPACK struct WMI_SNR_THRESHOLD_PARAMS{
1021 A_UINT32 pollTime; /* Polling time as a factor of LI */ 1021 A_UINT32 pollTime; /* Polling time as a factor of LI */
1022 A_UINT8 weight; /* "alpha" */ 1022 u8 weight; /* "alpha" */
1023 A_UINT8 thresholdAbove1_Val; /* lowest of uppper*/ 1023 u8 thresholdAbove1_Val; /* lowest of uppper*/
1024 A_UINT8 thresholdAbove2_Val; 1024 u8 thresholdAbove2_Val;
1025 A_UINT8 thresholdAbove3_Val; 1025 u8 thresholdAbove3_Val;
1026 A_UINT8 thresholdAbove4_Val; /* highest of upper */ 1026 u8 thresholdAbove4_Val; /* highest of upper */
1027 A_UINT8 thresholdBelow1_Val; /* lowest of bellow */ 1027 u8 thresholdBelow1_Val; /* lowest of bellow */
1028 A_UINT8 thresholdBelow2_Val; 1028 u8 thresholdBelow2_Val;
1029 A_UINT8 thresholdBelow3_Val; 1029 u8 thresholdBelow3_Val;
1030 A_UINT8 thresholdBelow4_Val; /* highest of bellow */ 1030 u8 thresholdBelow4_Val; /* highest of bellow */
1031 A_UINT8 reserved[3]; 1031 u8 reserved[3];
1032} POSTPACK WMI_SNR_THRESHOLD_PARAMS_CMD; 1032} POSTPACK WMI_SNR_THRESHOLD_PARAMS_CMD;
1033 1033
1034/* 1034/*
1035 * WMI_LQ_THRESHOLD_PARAMS_CMDID 1035 * WMI_LQ_THRESHOLD_PARAMS_CMDID
1036 */ 1036 */
1037typedef PREPACK struct WMI_LQ_THRESHOLD_PARAMS { 1037typedef PREPACK struct WMI_LQ_THRESHOLD_PARAMS {
1038 A_UINT8 enable; 1038 u8 enable;
1039 A_UINT8 thresholdAbove1_Val; 1039 u8 thresholdAbove1_Val;
1040 A_UINT8 thresholdAbove2_Val; 1040 u8 thresholdAbove2_Val;
1041 A_UINT8 thresholdAbove3_Val; 1041 u8 thresholdAbove3_Val;
1042 A_UINT8 thresholdAbove4_Val; 1042 u8 thresholdAbove4_Val;
1043 A_UINT8 thresholdBelow1_Val; 1043 u8 thresholdBelow1_Val;
1044 A_UINT8 thresholdBelow2_Val; 1044 u8 thresholdBelow2_Val;
1045 A_UINT8 thresholdBelow3_Val; 1045 u8 thresholdBelow3_Val;
1046 A_UINT8 thresholdBelow4_Val; 1046 u8 thresholdBelow4_Val;
1047 A_UINT8 reserved[3]; 1047 u8 reserved[3];
1048} POSTPACK WMI_LQ_THRESHOLD_PARAMS_CMD; 1048} POSTPACK WMI_LQ_THRESHOLD_PARAMS_CMD;
1049 1049
1050typedef enum { 1050typedef enum {
@@ -1058,8 +1058,8 @@ typedef enum {
1058} WMI_PREAMBLE_POLICY; 1058} WMI_PREAMBLE_POLICY;
1059 1059
1060typedef PREPACK struct { 1060typedef PREPACK struct {
1061 A_UINT8 status; 1061 u8 status;
1062 A_UINT8 preamblePolicy; 1062 u8 preamblePolicy;
1063}POSTPACK WMI_SET_LPREAMBLE_CMD; 1063}POSTPACK WMI_SET_LPREAMBLE_CMD;
1064 1064
1065typedef PREPACK struct { 1065typedef PREPACK struct {
@@ -1080,7 +1080,7 @@ typedef PREPACK struct {
1080 * WMI_SET_TX_PWR_CMDID 1080 * WMI_SET_TX_PWR_CMDID
1081 */ 1081 */
1082typedef PREPACK struct { 1082typedef PREPACK struct {
1083 A_UINT8 dbM; /* in dbM units */ 1083 u8 dbM; /* in dbM units */
1084} POSTPACK WMI_SET_TX_PWR_CMD, WMI_TX_PWR_REPLY; 1084} POSTPACK WMI_SET_TX_PWR_CMD, WMI_TX_PWR_REPLY;
1085 1085
1086/* 1086/*
@@ -1095,9 +1095,9 @@ typedef PREPACK struct {
1095#define WMI_MAX_ASSOC_INFO_LEN 240 1095#define WMI_MAX_ASSOC_INFO_LEN 240
1096 1096
1097typedef PREPACK struct { 1097typedef PREPACK struct {
1098 A_UINT8 ieType; 1098 u8 ieType;
1099 A_UINT8 bufferSize; 1099 u8 bufferSize;
1100 A_UINT8 assocInfo[1]; /* up to WMI_MAX_ASSOC_INFO_LEN */ 1100 u8 assocInfo[1]; /* up to WMI_MAX_ASSOC_INFO_LEN */
1101} POSTPACK WMI_SET_ASSOC_INFO_CMD; 1101} POSTPACK WMI_SET_ASSOC_INFO_CMD;
1102 1102
1103 1103
@@ -1111,15 +1111,15 @@ typedef PREPACK struct {
1111#define WMI_MAX_BAD_AP_INDEX 1 1111#define WMI_MAX_BAD_AP_INDEX 1
1112 1112
1113typedef PREPACK struct { 1113typedef PREPACK struct {
1114 A_UINT8 badApIndex; /* 0 to WMI_MAX_BAD_AP_INDEX */ 1114 u8 badApIndex; /* 0 to WMI_MAX_BAD_AP_INDEX */
1115 A_UINT8 bssid[ATH_MAC_LEN]; 1115 u8 bssid[ATH_MAC_LEN];
1116} POSTPACK WMI_ADD_BAD_AP_CMD; 1116} POSTPACK WMI_ADD_BAD_AP_CMD;
1117 1117
1118/* 1118/*
1119 * WMI_DELETE_BAD_AP_CMDID 1119 * WMI_DELETE_BAD_AP_CMDID
1120 */ 1120 */
1121typedef PREPACK struct { 1121typedef PREPACK struct {
1122 A_UINT8 badApIndex; /* 0 to WMI_MAX_BAD_AP_INDEX */ 1122 u8 badApIndex; /* 0 to WMI_MAX_BAD_AP_INDEX */
1123} POSTPACK WMI_DELETE_BAD_AP_CMD; 1123} POSTPACK WMI_DELETE_BAD_AP_CMD;
1124 1124
1125/* 1125/*
@@ -1133,10 +1133,10 @@ typedef PREPACK struct {
1133#define WMI_MAX_AIFSN_ACPARAM 15 1133#define WMI_MAX_AIFSN_ACPARAM 15
1134typedef PREPACK struct { 1134typedef PREPACK struct {
1135 A_UINT16 txop; /* in units of 32 usec */ 1135 A_UINT16 txop; /* in units of 32 usec */
1136 A_UINT8 eCWmin; 1136 u8 eCWmin;
1137 A_UINT8 eCWmax; 1137 u8 eCWmax;
1138 A_UINT8 aifsn; 1138 u8 aifsn;
1139 A_UINT8 ac; 1139 u8 ac;
1140} POSTPACK WMI_SET_ACCESS_PARAMS_CMD; 1140} POSTPACK WMI_SET_ACCESS_PARAMS_CMD;
1141 1141
1142 1142
@@ -1155,10 +1155,10 @@ typedef enum {
1155} WMI_FRAMETYPE; 1155} WMI_FRAMETYPE;
1156 1156
1157typedef PREPACK struct { 1157typedef PREPACK struct {
1158 A_UINT8 frameType; /* WMI_FRAMETYPE */ 1158 u8 frameType; /* WMI_FRAMETYPE */
1159 A_UINT8 trafficClass; /* applies only to DATA_FRAMETYPE */ 1159 u8 trafficClass; /* applies only to DATA_FRAMETYPE */
1160 A_UINT8 maxRetries; 1160 u8 maxRetries;
1161 A_UINT8 enableNotify; 1161 u8 enableNotify;
1162} POSTPACK WMI_SET_RETRY_LIMITS_CMD; 1162} POSTPACK WMI_SET_RETRY_LIMITS_CMD;
1163 1163
1164/* 1164/*
@@ -1198,12 +1198,12 @@ typedef enum {
1198 */ 1198 */
1199 1199
1200typedef PREPACK struct { 1200typedef PREPACK struct {
1201 A_UINT8 bssid[ATH_MAC_LEN]; 1201 u8 bssid[ATH_MAC_LEN];
1202 A_INT8 bias; 1202 A_INT8 bias;
1203} POSTPACK WMI_BSS_BIAS; 1203} POSTPACK WMI_BSS_BIAS;
1204 1204
1205typedef PREPACK struct { 1205typedef PREPACK struct {
1206 A_UINT8 numBss; 1206 u8 numBss;
1207 WMI_BSS_BIAS bssBias[1]; 1207 WMI_BSS_BIAS bssBias[1];
1208} POSTPACK WMI_BSS_BIAS_INFO; 1208} POSTPACK WMI_BSS_BIAS_INFO;
1209 1209
@@ -1211,18 +1211,18 @@ typedef PREPACK struct WMI_LOWRSSI_SCAN_PARAMS {
1211 A_UINT16 lowrssi_scan_period; 1211 A_UINT16 lowrssi_scan_period;
1212 A_INT16 lowrssi_scan_threshold; 1212 A_INT16 lowrssi_scan_threshold;
1213 A_INT16 lowrssi_roam_threshold; 1213 A_INT16 lowrssi_roam_threshold;
1214 A_UINT8 roam_rssi_floor; 1214 u8 roam_rssi_floor;
1215 A_UINT8 reserved[1]; /* For alignment */ 1215 u8 reserved[1]; /* For alignment */
1216} POSTPACK WMI_LOWRSSI_SCAN_PARAMS; 1216} POSTPACK WMI_LOWRSSI_SCAN_PARAMS;
1217 1217
1218typedef PREPACK struct { 1218typedef PREPACK struct {
1219 PREPACK union { 1219 PREPACK union {
1220 A_UINT8 bssid[ATH_MAC_LEN]; /* WMI_FORCE_ROAM */ 1220 u8 bssid[ATH_MAC_LEN]; /* WMI_FORCE_ROAM */
1221 A_UINT8 roamMode; /* WMI_SET_ROAM_MODE */ 1221 u8 roamMode; /* WMI_SET_ROAM_MODE */
1222 WMI_BSS_BIAS_INFO bssBiasInfo; /* WMI_SET_HOST_BIAS */ 1222 WMI_BSS_BIAS_INFO bssBiasInfo; /* WMI_SET_HOST_BIAS */
1223 WMI_LOWRSSI_SCAN_PARAMS lrScanParams; 1223 WMI_LOWRSSI_SCAN_PARAMS lrScanParams;
1224 } POSTPACK info; 1224 } POSTPACK info;
1225 A_UINT8 roamCtrlType ; 1225 u8 roamCtrlType ;
1226} POSTPACK WMI_SET_ROAM_CTRL_CMD; 1226} POSTPACK WMI_SET_ROAM_CTRL_CMD;
1227 1227
1228/* 1228/*
@@ -1234,7 +1234,7 @@ typedef enum {
1234} BT_WLAN_CONN_PRECEDENCE; 1234} BT_WLAN_CONN_PRECEDENCE;
1235 1235
1236typedef PREPACK struct { 1236typedef PREPACK struct {
1237 A_UINT8 precedence; 1237 u8 precedence;
1238} POSTPACK WMI_SET_BT_WLAN_CONN_PRECEDENCE; 1238} POSTPACK WMI_SET_BT_WLAN_CONN_PRECEDENCE;
1239 1239
1240/* 1240/*
@@ -1248,12 +1248,12 @@ typedef PREPACK struct {
1248 * WMI_SET_MAX_OFFHOME_DURATION_CMDID 1248 * WMI_SET_MAX_OFFHOME_DURATION_CMDID
1249 */ 1249 */
1250typedef PREPACK struct { 1250typedef PREPACK struct {
1251 A_UINT8 max_offhome_duration; 1251 u8 max_offhome_duration;
1252} POSTPACK WMI_SET_MAX_OFFHOME_DURATION_CMD; 1252} POSTPACK WMI_SET_MAX_OFFHOME_DURATION_CMD;
1253 1253
1254typedef PREPACK struct { 1254typedef PREPACK struct {
1255 A_UINT32 frequency; 1255 A_UINT32 frequency;
1256 A_UINT8 threshold; 1256 u8 threshold;
1257} POSTPACK WMI_SET_HB_CHALLENGE_RESP_PARAMS_CMD; 1257} POSTPACK WMI_SET_HB_CHALLENGE_RESP_PARAMS_CMD;
1258/*---------------------- BTCOEX RELATED -------------------------------------*/ 1258/*---------------------- BTCOEX RELATED -------------------------------------*/
1259/*----------------------COMMON to AR6002 and AR6003 -------------------------*/ 1259/*----------------------COMMON to AR6002 and AR6003 -------------------------*/
@@ -1286,8 +1286,8 @@ typedef enum {
1286} BT_STREAM_STATUS; 1286} BT_STREAM_STATUS;
1287 1287
1288typedef PREPACK struct { 1288typedef PREPACK struct {
1289 A_UINT8 streamType; 1289 u8 streamType;
1290 A_UINT8 status; 1290 u8 status;
1291} POSTPACK WMI_SET_BT_STATUS_CMD; 1291} POSTPACK WMI_SET_BT_STATUS_CMD;
1292 1292
1293typedef enum { 1293typedef enum {
@@ -1346,23 +1346,23 @@ typedef PREPACK struct {
1346 16..23 Low Data Rate Max Cnt 1346 16..23 Low Data Rate Max Cnt
1347 */ 1347 */
1348 1348
1349 A_UINT8 stompDutyCyleVal; /* Sco cycles to limit ps-poll queuing 1349 u8 stompDutyCyleVal; /* Sco cycles to limit ps-poll queuing
1350 if stomped */ 1350 if stomped */
1351 A_UINT8 stompDutyCyleMaxVal; /*firm ware increases stomp duty cycle 1351 u8 stompDutyCyleMaxVal; /*firm ware increases stomp duty cycle
1352 gradually uptill this value on need basis*/ 1352 gradually uptill this value on need basis*/
1353 A_UINT8 psPollLatencyFraction; /* Fraction of idle 1353 u8 psPollLatencyFraction; /* Fraction of idle
1354 period, within which 1354 period, within which
1355 additional ps-polls 1355 additional ps-polls
1356 can be queued */ 1356 can be queued */
1357 A_UINT8 noSCOSlots; /* Number of SCO Tx/Rx slots. 1357 u8 noSCOSlots; /* Number of SCO Tx/Rx slots.
1358 HVx, EV3, 2EV3 = 2 */ 1358 HVx, EV3, 2EV3 = 2 */
1359 A_UINT8 noIdleSlots; /* Number of Bluetooth idle slots between 1359 u8 noIdleSlots; /* Number of Bluetooth idle slots between
1360 consecutive SCO Tx/Rx slots 1360 consecutive SCO Tx/Rx slots
1361 HVx, EV3 = 4 1361 HVx, EV3 = 4
1362 2EV3 = 10 */ 1362 2EV3 = 10 */
1363 A_UINT8 scoOptOffRssi;/*RSSI value below which we go to ps poll*/ 1363 u8 scoOptOffRssi;/*RSSI value below which we go to ps poll*/
1364 A_UINT8 scoOptOnRssi; /*RSSI value above which we reenter opt mode*/ 1364 u8 scoOptOnRssi; /*RSSI value above which we reenter opt mode*/
1365 A_UINT8 scoOptRtsCount; 1365 u8 scoOptRtsCount;
1366} POSTPACK BT_PARAMS_SCO; 1366} POSTPACK BT_PARAMS_SCO;
1367 1367
1368#define BT_A2DP_ALLOW_CLOSE_RANGE_OPT (1 << 0) 1368#define BT_A2DP_ALLOW_CLOSE_RANGE_OPT (1 << 0)
@@ -1393,10 +1393,10 @@ typedef PREPACK struct {
1393 8..15 Low Data Rate Min Cnt 1393 8..15 Low Data Rate Min Cnt
1394 16..23 Low Data Rate Max Cnt 1394 16..23 Low Data Rate Max Cnt
1395 */ 1395 */
1396 A_UINT8 isCoLocatedBtRoleMaster; 1396 u8 isCoLocatedBtRoleMaster;
1397 A_UINT8 a2dpOptOffRssi;/*RSSI value below which we go to ps poll*/ 1397 u8 a2dpOptOffRssi;/*RSSI value below which we go to ps poll*/
1398 A_UINT8 a2dpOptOnRssi; /*RSSI value above which we reenter opt mode*/ 1398 u8 a2dpOptOnRssi; /*RSSI value above which we reenter opt mode*/
1399 A_UINT8 a2dpOptRtsCount; 1399 u8 a2dpOptRtsCount;
1400}POSTPACK BT_PARAMS_A2DP; 1400}POSTPACK BT_PARAMS_A2DP;
1401 1401
1402/* During BT ftp/ BT OPP or any another data based acl profile on bluetooth 1402/* During BT ftp/ BT OPP or any another data based acl profile on bluetooth
@@ -1419,16 +1419,16 @@ typedef PREPACK struct {
1419 BT_PARAMS_SCO scoParams; 1419 BT_PARAMS_SCO scoParams;
1420 BT_PARAMS_A2DP a2dpParams; 1420 BT_PARAMS_A2DP a2dpParams;
1421 BT_PARAMS_ACLCOEX aclCoexParams; 1421 BT_PARAMS_ACLCOEX aclCoexParams;
1422 A_UINT8 antType; /* 0 -Disabled (default) 1422 u8 antType; /* 0 -Disabled (default)
1423 1 - BT_ANT_TYPE_DUAL 1423 1 - BT_ANT_TYPE_DUAL
1424 2 - BT_ANT_TYPE_SPLITTER 1424 2 - BT_ANT_TYPE_SPLITTER
1425 3 - BT_ANT_TYPE_SWITCH */ 1425 3 - BT_ANT_TYPE_SWITCH */
1426 A_UINT8 coLocatedBtDev; /* 0 - BT_COLOCATED_DEV_BTS4020 (default) 1426 u8 coLocatedBtDev; /* 0 - BT_COLOCATED_DEV_BTS4020 (default)
1427 1 - BT_COLCATED_DEV_CSR 1427 1 - BT_COLCATED_DEV_CSR
1428 2 - BT_COLOCATED_DEV_VALKYRIe 1428 2 - BT_COLOCATED_DEV_VALKYRIe
1429 */ 1429 */
1430 } POSTPACK info; 1430 } POSTPACK info;
1431 A_UINT8 paramType ; 1431 u8 paramType ;
1432} POSTPACK WMI_SET_BT_PARAMS_CMD; 1432} POSTPACK WMI_SET_BT_PARAMS_CMD;
1433 1433
1434/************************ END AR6002 BTCOEX *******************************/ 1434/************************ END AR6002 BTCOEX *******************************/
@@ -1448,7 +1448,7 @@ typedef enum {
1448}WMI_BTCOEX_FE_ANT_TYPE; 1448}WMI_BTCOEX_FE_ANT_TYPE;
1449 1449
1450typedef PREPACK struct { 1450typedef PREPACK struct {
1451 A_UINT8 btcoexFeAntType; /* 1 - WMI_BTCOEX_FE_ANT_SINGLE for single antenna front end 1451 u8 btcoexFeAntType; /* 1 - WMI_BTCOEX_FE_ANT_SINGLE for single antenna front end
1452 2 - WMI_BTCOEX_FE_ANT_DUAL for dual antenna front end 1452 2 - WMI_BTCOEX_FE_ANT_DUAL for dual antenna front end
1453 (for isolations less 35dB, for higher isolation there 1453 (for isolations less 35dB, for higher isolation there
1454 is not need to pass this command). 1454 is not need to pass this command).
@@ -1461,7 +1461,7 @@ typedef PREPACK struct {
1461 * bluetooth chip type.Based on bluetooth device, different coexistence protocol would be used. 1461 * bluetooth chip type.Based on bluetooth device, different coexistence protocol would be used.
1462 */ 1462 */
1463typedef PREPACK struct { 1463typedef PREPACK struct {
1464 A_UINT8 btcoexCoLocatedBTdev; /*1 - Qcom BT (3 -wire PTA) 1464 u8 btcoexCoLocatedBTdev; /*1 - Qcom BT (3 -wire PTA)
1465 2 - CSR BT (3 wire PTA) 1465 2 - CSR BT (3 wire PTA)
1466 3 - Atheros 3001 BT (3 wire PTA) 1466 3 - Atheros 3001 BT (3 wire PTA)
1467 4 - STE bluetooth (4-wire ePTA) 1467 4 - STE bluetooth (4-wire ePTA)
@@ -1867,7 +1867,7 @@ typedef PREPACK struct {
1867 1867
1868typedef PREPACK struct { 1868typedef PREPACK struct {
1869 A_UINT16 cmd_buf_sz; /* HCI cmd buffer size */ 1869 A_UINT16 cmd_buf_sz; /* HCI cmd buffer size */
1870 A_UINT8 buf[1]; /* Absolute HCI cmd */ 1870 u8 buf[1]; /* Absolute HCI cmd */
1871} POSTPACK WMI_HCI_CMD; 1871} POSTPACK WMI_HCI_CMD;
1872 1872
1873/* 1873/*
@@ -1878,8 +1878,8 @@ typedef PREPACK struct {
1878 * WMI_GET_CHANNEL_LIST_CMDID reply 1878 * WMI_GET_CHANNEL_LIST_CMDID reply
1879 */ 1879 */
1880typedef PREPACK struct { 1880typedef PREPACK struct {
1881 A_UINT8 reserved1; 1881 u8 reserved1;
1882 A_UINT8 numChannels; /* number of channels in reply */ 1882 u8 numChannels; /* number of channels in reply */
1883 A_UINT16 channelList[1]; /* channel in Mhz */ 1883 A_UINT16 channelList[1]; /* channel in Mhz */
1884} POSTPACK WMI_CHANNEL_LIST_REPLY; 1884} POSTPACK WMI_CHANNEL_LIST_REPLY;
1885 1885
@@ -1893,19 +1893,19 @@ typedef enum {
1893} PSTREAM_REPLY_STATUS; 1893} PSTREAM_REPLY_STATUS;
1894 1894
1895typedef PREPACK struct { 1895typedef PREPACK struct {
1896 A_UINT8 status; /* PSTREAM_REPLY_STATUS */ 1896 u8 status; /* PSTREAM_REPLY_STATUS */
1897 A_UINT8 txQueueNumber; 1897 u8 txQueueNumber;
1898 A_UINT8 rxQueueNumber; 1898 u8 rxQueueNumber;
1899 A_UINT8 trafficClass; 1899 u8 trafficClass;
1900 A_UINT8 trafficDirection; /* DIR_TYPE */ 1900 u8 trafficDirection; /* DIR_TYPE */
1901} POSTPACK WMI_CRE_PRIORITY_STREAM_REPLY; 1901} POSTPACK WMI_CRE_PRIORITY_STREAM_REPLY;
1902 1902
1903typedef PREPACK struct { 1903typedef PREPACK struct {
1904 A_UINT8 status; /* PSTREAM_REPLY_STATUS */ 1904 u8 status; /* PSTREAM_REPLY_STATUS */
1905 A_UINT8 txQueueNumber; 1905 u8 txQueueNumber;
1906 A_UINT8 rxQueueNumber; 1906 u8 rxQueueNumber;
1907 A_UINT8 trafficDirection; /* DIR_TYPE */ 1907 u8 trafficDirection; /* DIR_TYPE */
1908 A_UINT8 trafficClass; 1908 u8 trafficClass;
1909} POSTPACK WMI_DEL_PRIORITY_STREAM_REPLY; 1909} POSTPACK WMI_DEL_PRIORITY_STREAM_REPLY;
1910 1910
1911/* 1911/*
@@ -1976,15 +1976,15 @@ typedef enum {
1976} WMI_PHY_CAPABILITY; 1976} WMI_PHY_CAPABILITY;
1977 1977
1978typedef PREPACK struct { 1978typedef PREPACK struct {
1979 A_UINT8 macaddr[ATH_MAC_LEN]; 1979 u8 macaddr[ATH_MAC_LEN];
1980 A_UINT8 phyCapability; /* WMI_PHY_CAPABILITY */ 1980 u8 phyCapability; /* WMI_PHY_CAPABILITY */
1981} POSTPACK WMI_READY_EVENT_1; 1981} POSTPACK WMI_READY_EVENT_1;
1982 1982
1983typedef PREPACK struct { 1983typedef PREPACK struct {
1984 A_UINT32 sw_version; 1984 A_UINT32 sw_version;
1985 A_UINT32 abi_version; 1985 A_UINT32 abi_version;
1986 A_UINT8 macaddr[ATH_MAC_LEN]; 1986 u8 macaddr[ATH_MAC_LEN];
1987 A_UINT8 phyCapability; /* WMI_PHY_CAPABILITY */ 1987 u8 phyCapability; /* WMI_PHY_CAPABILITY */
1988} POSTPACK WMI_READY_EVENT_2; 1988} POSTPACK WMI_READY_EVENT_2;
1989 1989
1990#if defined(ATH_TARGET) 1990#if defined(ATH_TARGET)
@@ -2003,14 +2003,14 @@ typedef PREPACK struct {
2003 */ 2003 */
2004typedef PREPACK struct { 2004typedef PREPACK struct {
2005 A_UINT16 channel; 2005 A_UINT16 channel;
2006 A_UINT8 bssid[ATH_MAC_LEN]; 2006 u8 bssid[ATH_MAC_LEN];
2007 A_UINT16 listenInterval; 2007 A_UINT16 listenInterval;
2008 A_UINT16 beaconInterval; 2008 A_UINT16 beaconInterval;
2009 A_UINT32 networkType; 2009 A_UINT32 networkType;
2010 A_UINT8 beaconIeLen; 2010 u8 beaconIeLen;
2011 A_UINT8 assocReqLen; 2011 u8 assocReqLen;
2012 A_UINT8 assocRespLen; 2012 u8 assocRespLen;
2013 A_UINT8 assocInfo[1]; 2013 u8 assocInfo[1];
2014} POSTPACK WMI_CONNECT_EVENT; 2014} POSTPACK WMI_CONNECT_EVENT;
2015 2015
2016/* 2016/*
@@ -2034,10 +2034,10 @@ typedef enum {
2034 2034
2035typedef PREPACK struct { 2035typedef PREPACK struct {
2036 A_UINT16 protocolReasonStatus; /* reason code, see 802.11 spec. */ 2036 A_UINT16 protocolReasonStatus; /* reason code, see 802.11 spec. */
2037 A_UINT8 bssid[ATH_MAC_LEN]; /* set if known */ 2037 u8 bssid[ATH_MAC_LEN]; /* set if known */
2038 A_UINT8 disconnectReason ; /* see WMI_DISCONNECT_REASON */ 2038 u8 disconnectReason ; /* see WMI_DISCONNECT_REASON */
2039 A_UINT8 assocRespLen; 2039 u8 assocRespLen;
2040 A_UINT8 assocInfo[1]; 2040 u8 assocInfo[1];
2041} POSTPACK WMI_DISCONNECT_EVENT; 2041} POSTPACK WMI_DISCONNECT_EVENT;
2042 2042
2043/* 2043/*
@@ -2060,10 +2060,10 @@ enum {
2060 2060
2061typedef PREPACK struct { 2061typedef PREPACK struct {
2062 A_UINT16 channel; 2062 A_UINT16 channel;
2063 A_UINT8 frameType; /* see WMI_BI_FTYPE */ 2063 u8 frameType; /* see WMI_BI_FTYPE */
2064 A_UINT8 snr; 2064 u8 snr;
2065 A_INT16 rssi; 2065 A_INT16 rssi;
2066 A_UINT8 bssid[ATH_MAC_LEN]; 2066 u8 bssid[ATH_MAC_LEN];
2067 A_UINT32 ieMask; 2067 A_UINT32 ieMask;
2068} POSTPACK WMI_BSS_INFO_HDR; 2068} POSTPACK WMI_BSS_INFO_HDR;
2069 2069
@@ -2077,9 +2077,9 @@ typedef PREPACK struct {
2077 */ 2077 */
2078typedef PREPACK struct { 2078typedef PREPACK struct {
2079 A_UINT16 channel; 2079 A_UINT16 channel;
2080 A_UINT8 frameType; /* see WMI_BI_FTYPE */ 2080 u8 frameType; /* see WMI_BI_FTYPE */
2081 A_UINT8 snr; 2081 u8 snr;
2082 A_UINT8 bssid[ATH_MAC_LEN]; 2082 u8 bssid[ATH_MAC_LEN];
2083 A_UINT16 ieMask; 2083 A_UINT16 ieMask;
2084} POSTPACK WMI_BSS_INFO_HDR2; 2084} POSTPACK WMI_BSS_INFO_HDR2;
2085 2085
@@ -2094,7 +2094,7 @@ typedef enum {
2094 2094
2095typedef PREPACK struct { 2095typedef PREPACK struct {
2096 A_UINT16 commandId; 2096 A_UINT16 commandId;
2097 A_UINT8 errorCode; 2097 u8 errorCode;
2098} POSTPACK WMI_CMD_ERROR_EVENT; 2098} POSTPACK WMI_CMD_ERROR_EVENT;
2099 2099
2100/* 2100/*
@@ -2105,17 +2105,17 @@ typedef PREPACK struct {
2105} POSTPACK WMI_REG_DOMAIN_EVENT; 2105} POSTPACK WMI_REG_DOMAIN_EVENT;
2106 2106
2107typedef PREPACK struct { 2107typedef PREPACK struct {
2108 A_UINT8 txQueueNumber; 2108 u8 txQueueNumber;
2109 A_UINT8 rxQueueNumber; 2109 u8 rxQueueNumber;
2110 A_UINT8 trafficDirection; 2110 u8 trafficDirection;
2111 A_UINT8 trafficClass; 2111 u8 trafficClass;
2112} POSTPACK WMI_PSTREAM_TIMEOUT_EVENT; 2112} POSTPACK WMI_PSTREAM_TIMEOUT_EVENT;
2113 2113
2114typedef PREPACK struct { 2114typedef PREPACK struct {
2115 A_UINT8 reserve1; 2115 u8 reserve1;
2116 A_UINT8 reserve2; 2116 u8 reserve2;
2117 A_UINT8 reserve3; 2117 u8 reserve3;
2118 A_UINT8 trafficClass; 2118 u8 trafficClass;
2119} POSTPACK WMI_ACM_REJECT_EVENT; 2119} POSTPACK WMI_ACM_REJECT_EVENT;
2120 2120
2121/* 2121/*
@@ -2134,8 +2134,8 @@ typedef enum {
2134} WMI_BSS_FLAGS; 2134} WMI_BSS_FLAGS;
2135 2135
2136typedef PREPACK struct { 2136typedef PREPACK struct {
2137 A_UINT8 bssid[ATH_MAC_LEN]; 2137 u8 bssid[ATH_MAC_LEN];
2138 A_UINT8 bssFlags; /* see WMI_BSS_FLAGS */ 2138 u8 bssFlags; /* see WMI_BSS_FLAGS */
2139} POSTPACK WMI_NEIGHBOR_INFO; 2139} POSTPACK WMI_NEIGHBOR_INFO;
2140 2140
2141typedef PREPACK struct { 2141typedef PREPACK struct {
@@ -2147,8 +2147,8 @@ typedef PREPACK struct {
2147 * TKIP MIC Error Event 2147 * TKIP MIC Error Event
2148 */ 2148 */
2149typedef PREPACK struct { 2149typedef PREPACK struct {
2150 A_UINT8 keyid; 2150 u8 keyid;
2151 A_UINT8 ismcast; 2151 u8 ismcast;
2152} POSTPACK WMI_TKIP_MICERR_EVENT; 2152} POSTPACK WMI_TKIP_MICERR_EVENT;
2153 2153
2154/* 2154/*
@@ -2164,7 +2164,7 @@ typedef PREPACK struct {
2164 * WMI_SET_ADHOC_BSSID_CMDID 2164 * WMI_SET_ADHOC_BSSID_CMDID
2165 */ 2165 */
2166typedef PREPACK struct { 2166typedef PREPACK struct {
2167 A_UINT8 bssid[ATH_MAC_LEN]; 2167 u8 bssid[ATH_MAC_LEN];
2168} POSTPACK WMI_SET_ADHOC_BSSID_CMD; 2168} POSTPACK WMI_SET_ADHOC_BSSID_CMD;
2169 2169
2170/* 2170/*
@@ -2176,7 +2176,7 @@ typedef enum {
2176} OPT_MODE_TYPE; 2176} OPT_MODE_TYPE;
2177 2177
2178typedef PREPACK struct { 2178typedef PREPACK struct {
2179 A_UINT8 optMode; 2179 u8 optMode;
2180} POSTPACK WMI_SET_OPT_MODE_CMD; 2180} POSTPACK WMI_SET_OPT_MODE_CMD;
2181 2181
2182/* 2182/*
@@ -2191,11 +2191,11 @@ typedef enum {
2191 2191
2192typedef PREPACK struct { 2192typedef PREPACK struct {
2193 A_UINT16 optIEDataLen; 2193 A_UINT16 optIEDataLen;
2194 A_UINT8 frmType; 2194 u8 frmType;
2195 A_UINT8 dstAddr[ATH_MAC_LEN]; 2195 u8 dstAddr[ATH_MAC_LEN];
2196 A_UINT8 bssid[ATH_MAC_LEN]; 2196 u8 bssid[ATH_MAC_LEN];
2197 A_UINT8 reserved; /* For alignment */ 2197 u8 reserved; /* For alignment */
2198 A_UINT8 optIEData[1]; 2198 u8 optIEData[1];
2199} POSTPACK WMI_OPT_TX_FRAME_CMD; 2199} POSTPACK WMI_OPT_TX_FRAME_CMD;
2200 2200
2201/* 2201/*
@@ -2206,10 +2206,10 @@ typedef PREPACK struct {
2206 */ 2206 */
2207typedef PREPACK struct { 2207typedef PREPACK struct {
2208 A_UINT16 channel; 2208 A_UINT16 channel;
2209 A_UINT8 frameType; /* see WMI_OPT_FTYPE */ 2209 u8 frameType; /* see WMI_OPT_FTYPE */
2210 A_INT8 snr; 2210 A_INT8 snr;
2211 A_UINT8 srcAddr[ATH_MAC_LEN]; 2211 u8 srcAddr[ATH_MAC_LEN];
2212 A_UINT8 bssid[ATH_MAC_LEN]; 2212 u8 bssid[ATH_MAC_LEN];
2213} POSTPACK WMI_OPT_RX_INFO_HDR; 2213} POSTPACK WMI_OPT_RX_INFO_HDR;
2214 2214
2215/* 2215/*
@@ -2280,9 +2280,9 @@ typedef PREPACK struct {
2280 A_INT16 cs_aveBeacon_rssi; 2280 A_INT16 cs_aveBeacon_rssi;
2281 A_UINT16 cs_roam_count; 2281 A_UINT16 cs_roam_count;
2282 A_INT16 cs_rssi; 2282 A_INT16 cs_rssi;
2283 A_UINT8 cs_snr; 2283 u8 cs_snr;
2284 A_UINT8 cs_aveBeacon_snr; 2284 u8 cs_aveBeacon_snr;
2285 A_UINT8 cs_lastRoam_msec; 2285 u8 cs_lastRoam_msec;
2286} POSTPACK cserv_stats_t; 2286} POSTPACK cserv_stats_t;
2287 2287
2288typedef PREPACK struct { 2288typedef PREPACK struct {
@@ -2300,8 +2300,8 @@ typedef PREPACK struct {
2300typedef PREPACK struct { 2300typedef PREPACK struct {
2301 A_UINT32 wow_num_pkts_dropped; 2301 A_UINT32 wow_num_pkts_dropped;
2302 A_UINT16 wow_num_events_discarded; 2302 A_UINT16 wow_num_events_discarded;
2303 A_UINT8 wow_num_host_pkt_wakeups; 2303 u8 wow_num_host_pkt_wakeups;
2304 A_UINT8 wow_num_host_event_wakeups; 2304 u8 wow_num_host_event_wakeups;
2305} POSTPACK wlan_wow_stats_t; 2305} POSTPACK wlan_wow_stats_t;
2306 2306
2307typedef PREPACK struct { 2307typedef PREPACK struct {
@@ -2336,7 +2336,7 @@ typedef enum{
2336 2336
2337typedef PREPACK struct { 2337typedef PREPACK struct {
2338 A_INT16 rssi; 2338 A_INT16 rssi;
2339 A_UINT8 range; 2339 u8 range;
2340}POSTPACK WMI_RSSI_THRESHOLD_EVENT; 2340}POSTPACK WMI_RSSI_THRESHOLD_EVENT;
2341 2341
2342/* 2342/*
@@ -2357,7 +2357,7 @@ typedef PREPACK struct {
2357}POSTPACK WMI_TARGET_ERROR_REPORT_EVENT; 2357}POSTPACK WMI_TARGET_ERROR_REPORT_EVENT;
2358 2358
2359typedef PREPACK struct { 2359typedef PREPACK struct {
2360 A_UINT8 retrys; 2360 u8 retrys;
2361}POSTPACK WMI_TX_RETRY_ERR_EVENT; 2361}POSTPACK WMI_TX_RETRY_ERR_EVENT;
2362 2362
2363typedef enum{ 2363typedef enum{
@@ -2372,8 +2372,8 @@ typedef enum{
2372} WMI_SNR_THRESHOLD_VAL; 2372} WMI_SNR_THRESHOLD_VAL;
2373 2373
2374typedef PREPACK struct { 2374typedef PREPACK struct {
2375 A_UINT8 range; /* WMI_SNR_THRESHOLD_VAL */ 2375 u8 range; /* WMI_SNR_THRESHOLD_VAL */
2376 A_UINT8 snr; 2376 u8 snr;
2377}POSTPACK WMI_SNR_THRESHOLD_EVENT; 2377}POSTPACK WMI_SNR_THRESHOLD_EVENT;
2378 2378
2379typedef enum{ 2379typedef enum{
@@ -2389,7 +2389,7 @@ typedef enum{
2389 2389
2390typedef PREPACK struct { 2390typedef PREPACK struct {
2391 A_INT32 lq; 2391 A_INT32 lq;
2392 A_UINT8 range; /* WMI_LQ_THRESHOLD_VAL */ 2392 u8 range; /* WMI_LQ_THRESHOLD_VAL */
2393}POSTPACK WMI_LQ_THRESHOLD_EVENT; 2393}POSTPACK WMI_LQ_THRESHOLD_EVENT;
2394/* 2394/*
2395 * WMI_REPORT_ROAM_TBL_EVENTID 2395 * WMI_REPORT_ROAM_TBL_EVENTID
@@ -2398,13 +2398,13 @@ typedef PREPACK struct {
2398 2398
2399typedef PREPACK struct { 2399typedef PREPACK struct {
2400 A_INT32 roam_util; 2400 A_INT32 roam_util;
2401 A_UINT8 bssid[ATH_MAC_LEN]; 2401 u8 bssid[ATH_MAC_LEN];
2402 A_INT8 rssi; 2402 A_INT8 rssi;
2403 A_INT8 rssidt; 2403 A_INT8 rssidt;
2404 A_INT8 last_rssi; 2404 A_INT8 last_rssi;
2405 A_INT8 util; 2405 A_INT8 util;
2406 A_INT8 bias; 2406 A_INT8 bias;
2407 A_UINT8 reserved; /* For alignment */ 2407 u8 reserved; /* For alignment */
2408} POSTPACK WMI_BSS_ROAM_INFO; 2408} POSTPACK WMI_BSS_ROAM_INFO;
2409 2409
2410 2410
@@ -2419,7 +2419,7 @@ typedef PREPACK struct {
2419 */ 2419 */
2420typedef PREPACK struct { 2420typedef PREPACK struct {
2421 A_UINT16 evt_buf_sz; /* HCI event buffer size */ 2421 A_UINT16 evt_buf_sz; /* HCI event buffer size */
2422 A_UINT8 buf[1]; /* HCI event */ 2422 u8 buf[1]; /* HCI event */
2423} POSTPACK WMI_HCI_EVENT; 2423} POSTPACK WMI_HCI_EVENT;
2424 2424
2425/* 2425/*
@@ -2435,10 +2435,10 @@ typedef enum {
2435#define WMM_TSPEC_IE_LEN 63 2435#define WMM_TSPEC_IE_LEN 63
2436 2436
2437typedef PREPACK struct { 2437typedef PREPACK struct {
2438 A_UINT8 ac; 2438 u8 ac;
2439 A_UINT8 cac_indication; 2439 u8 cac_indication;
2440 A_UINT8 statusCode; 2440 u8 statusCode;
2441 A_UINT8 tspecSuggestion[WMM_TSPEC_IE_LEN]; 2441 u8 tspecSuggestion[WMM_TSPEC_IE_LEN];
2442}POSTPACK WMI_CAC_EVENT; 2442}POSTPACK WMI_CAC_EVENT;
2443 2443
2444/* 2444/*
@@ -2450,7 +2450,7 @@ typedef enum {
2450} APLIST_VER; 2450} APLIST_VER;
2451 2451
2452typedef PREPACK struct { 2452typedef PREPACK struct {
2453 A_UINT8 bssid[ATH_MAC_LEN]; 2453 u8 bssid[ATH_MAC_LEN];
2454 A_UINT16 channel; 2454 A_UINT16 channel;
2455} POSTPACK WMI_AP_INFO_V1; 2455} POSTPACK WMI_AP_INFO_V1;
2456 2456
@@ -2459,8 +2459,8 @@ typedef PREPACK union {
2459} POSTPACK WMI_AP_INFO; 2459} POSTPACK WMI_AP_INFO;
2460 2460
2461typedef PREPACK struct { 2461typedef PREPACK struct {
2462 A_UINT8 apListVer; 2462 u8 apListVer;
2463 A_UINT8 numAP; 2463 u8 numAP;
2464 WMI_AP_INFO apList[1]; 2464 WMI_AP_INFO apList[1];
2465} POSTPACK WMI_APLIST_EVENT; 2465} POSTPACK WMI_APLIST_EVENT;
2466 2466
@@ -2556,8 +2556,8 @@ typedef PREPACK struct {
2556} POSTPACK WMI_FIX_RATES_CMD, WMI_FIX_RATES_REPLY; 2556} POSTPACK WMI_FIX_RATES_CMD, WMI_FIX_RATES_REPLY;
2557 2557
2558typedef PREPACK struct { 2558typedef PREPACK struct {
2559 A_UINT8 bEnableMask; 2559 u8 bEnableMask;
2560 A_UINT8 frameType; /*type and subtype*/ 2560 u8 frameType; /*type and subtype*/
2561 A_UINT32 frameRateMask; /* see WMI_BIT_RATE */ 2561 A_UINT32 frameRateMask; /* see WMI_BIT_RATE */
2562} POSTPACK WMI_FRAME_RATES_CMD, WMI_FRAME_RATES_REPLY; 2562} POSTPACK WMI_FRAME_RATES_CMD, WMI_FRAME_RATES_REPLY;
2563 2563
@@ -2572,7 +2572,7 @@ typedef enum {
2572} WMI_AUTH_MODE; 2572} WMI_AUTH_MODE;
2573 2573
2574typedef PREPACK struct { 2574typedef PREPACK struct {
2575 A_UINT8 mode; 2575 u8 mode;
2576} POSTPACK WMI_SET_AUTH_MODE_CMD; 2576} POSTPACK WMI_SET_AUTH_MODE_CMD;
2577 2577
2578/* 2578/*
@@ -2586,7 +2586,7 @@ typedef enum {
2586} WMI_REASSOC_MODE; 2586} WMI_REASSOC_MODE;
2587 2587
2588typedef PREPACK struct { 2588typedef PREPACK struct {
2589 A_UINT8 mode; 2589 u8 mode;
2590}POSTPACK WMI_SET_REASSOC_MODE_CMD; 2590}POSTPACK WMI_SET_REASSOC_MODE_CMD;
2591 2591
2592typedef enum { 2592typedef enum {
@@ -2598,9 +2598,9 @@ typedef PREPACK struct {
2598 A_UINT32 no_txrx_time; 2598 A_UINT32 no_txrx_time;
2599 A_UINT32 assoc_time; 2599 A_UINT32 assoc_time;
2600 A_UINT32 allow_txrx_time; 2600 A_UINT32 allow_txrx_time;
2601 A_UINT8 disassoc_bssid[ATH_MAC_LEN]; 2601 u8 disassoc_bssid[ATH_MAC_LEN];
2602 A_INT8 disassoc_bss_rssi; 2602 A_INT8 disassoc_bss_rssi;
2603 A_UINT8 assoc_bssid[ATH_MAC_LEN]; 2603 u8 assoc_bssid[ATH_MAC_LEN];
2604 A_INT8 assoc_bss_rssi; 2604 A_INT8 assoc_bss_rssi;
2605} POSTPACK WMI_TARGET_ROAM_TIME; 2605} POSTPACK WMI_TARGET_ROAM_TIME;
2606 2606
@@ -2608,7 +2608,7 @@ typedef PREPACK struct {
2608 PREPACK union { 2608 PREPACK union {
2609 WMI_TARGET_ROAM_TIME roamTime; 2609 WMI_TARGET_ROAM_TIME roamTime;
2610 } POSTPACK u; 2610 } POSTPACK u;
2611 A_UINT8 roamDataType ; 2611 u8 roamDataType ;
2612} POSTPACK WMI_TARGET_ROAM_DATA; 2612} POSTPACK WMI_TARGET_ROAM_DATA;
2613 2613
2614typedef enum { 2614typedef enum {
@@ -2617,11 +2617,11 @@ typedef enum {
2617} WMI_WMM_STATUS; 2617} WMI_WMM_STATUS;
2618 2618
2619typedef PREPACK struct { 2619typedef PREPACK struct {
2620 A_UINT8 status; 2620 u8 status;
2621}POSTPACK WMI_SET_WMM_CMD; 2621}POSTPACK WMI_SET_WMM_CMD;
2622 2622
2623typedef PREPACK struct { 2623typedef PREPACK struct {
2624 A_UINT8 status; 2624 u8 status;
2625}POSTPACK WMI_SET_QOS_SUPP_CMD; 2625}POSTPACK WMI_SET_QOS_SUPP_CMD;
2626 2626
2627typedef enum { 2627typedef enum {
@@ -2630,16 +2630,16 @@ typedef enum {
2630} WMI_TXOP_CFG; 2630} WMI_TXOP_CFG;
2631 2631
2632typedef PREPACK struct { 2632typedef PREPACK struct {
2633 A_UINT8 txopEnable; 2633 u8 txopEnable;
2634}POSTPACK WMI_SET_WMM_TXOP_CMD; 2634}POSTPACK WMI_SET_WMM_TXOP_CMD;
2635 2635
2636typedef PREPACK struct { 2636typedef PREPACK struct {
2637 A_UINT8 keepaliveInterval; 2637 u8 keepaliveInterval;
2638} POSTPACK WMI_SET_KEEPALIVE_CMD; 2638} POSTPACK WMI_SET_KEEPALIVE_CMD;
2639 2639
2640typedef PREPACK struct { 2640typedef PREPACK struct {
2641 u32 configured; 2641 u32 configured;
2642 A_UINT8 keepaliveInterval; 2642 u8 keepaliveInterval;
2643} POSTPACK WMI_GET_KEEPALIVE_CMD; 2643} POSTPACK WMI_GET_KEEPALIVE_CMD;
2644 2644
2645/* 2645/*
@@ -2648,9 +2648,9 @@ typedef PREPACK struct {
2648#define WMI_MAX_IE_LEN 255 2648#define WMI_MAX_IE_LEN 255
2649 2649
2650typedef PREPACK struct { 2650typedef PREPACK struct {
2651 A_UINT8 mgmtFrmType; /* one of WMI_MGMT_FRAME_TYPE */ 2651 u8 mgmtFrmType; /* one of WMI_MGMT_FRAME_TYPE */
2652 A_UINT8 ieLen; /* Length of the IE that should be added to the MGMT frame */ 2652 u8 ieLen; /* Length of the IE that should be added to the MGMT frame */
2653 A_UINT8 ieInfo[1]; 2653 u8 ieInfo[1];
2654} POSTPACK WMI_SET_APPIE_CMD; 2654} POSTPACK WMI_SET_APPIE_CMD;
2655 2655
2656/* 2656/*
@@ -2665,12 +2665,12 @@ typedef enum {
2665}WHAL_CMDID; 2665}WHAL_CMDID;
2666 2666
2667typedef PREPACK struct { 2667typedef PREPACK struct {
2668 A_UINT8 cabTimeOut; 2668 u8 cabTimeOut;
2669} POSTPACK WHAL_SETCABTO_PARAM; 2669} POSTPACK WHAL_SETCABTO_PARAM;
2670 2670
2671typedef PREPACK struct { 2671typedef PREPACK struct {
2672 A_UINT8 whalCmdId; 2672 u8 whalCmdId;
2673 A_UINT8 data[1]; 2673 u8 data[1];
2674} POSTPACK WHAL_PARAMCMD; 2674} POSTPACK WHAL_PARAMCMD;
2675 2675
2676 2676
@@ -2682,32 +2682,32 @@ typedef PREPACK struct {
2682#define MAC_MAX_FILTERS_PER_LIST 4 2682#define MAC_MAX_FILTERS_PER_LIST 4
2683 2683
2684typedef PREPACK struct { 2684typedef PREPACK struct {
2685 A_UINT8 wow_valid_filter; 2685 u8 wow_valid_filter;
2686 A_UINT8 wow_filter_id; 2686 u8 wow_filter_id;
2687 A_UINT8 wow_filter_size; 2687 u8 wow_filter_size;
2688 A_UINT8 wow_filter_offset; 2688 u8 wow_filter_offset;
2689 A_UINT8 wow_filter_mask[WOW_MASK_SIZE]; 2689 u8 wow_filter_mask[WOW_MASK_SIZE];
2690 A_UINT8 wow_filter_pattern[WOW_PATTERN_SIZE]; 2690 u8 wow_filter_pattern[WOW_PATTERN_SIZE];
2691} POSTPACK WOW_FILTER; 2691} POSTPACK WOW_FILTER;
2692 2692
2693 2693
2694typedef PREPACK struct { 2694typedef PREPACK struct {
2695 A_UINT8 wow_valid_list; 2695 u8 wow_valid_list;
2696 A_UINT8 wow_list_id; 2696 u8 wow_list_id;
2697 A_UINT8 wow_num_filters; 2697 u8 wow_num_filters;
2698 A_UINT8 wow_total_list_size; 2698 u8 wow_total_list_size;
2699 WOW_FILTER list[WOW_MAX_FILTERS_PER_LIST]; 2699 WOW_FILTER list[WOW_MAX_FILTERS_PER_LIST];
2700} POSTPACK WOW_FILTER_LIST; 2700} POSTPACK WOW_FILTER_LIST;
2701 2701
2702typedef PREPACK struct { 2702typedef PREPACK struct {
2703 A_UINT8 valid_filter; 2703 u8 valid_filter;
2704 A_UINT8 mac_addr[ATH_MAC_LEN]; 2704 u8 mac_addr[ATH_MAC_LEN];
2705} POSTPACK MAC_FILTER; 2705} POSTPACK MAC_FILTER;
2706 2706
2707 2707
2708typedef PREPACK struct { 2708typedef PREPACK struct {
2709 A_UINT8 total_list_size; 2709 u8 total_list_size;
2710 A_UINT8 enable; 2710 u8 enable;
2711 MAC_FILTER list[MAC_MAX_FILTERS_PER_LIST]; 2711 MAC_FILTER list[MAC_MAX_FILTERS_PER_LIST];
2712} POSTPACK MAC_FILTER_LIST; 2712} POSTPACK MAC_FILTER_LIST;
2713 2713
@@ -2732,25 +2732,25 @@ typedef PREPACK struct {
2732} POSTPACK WMI_SET_WOW_MODE_CMD; 2732} POSTPACK WMI_SET_WOW_MODE_CMD;
2733 2733
2734typedef PREPACK struct { 2734typedef PREPACK struct {
2735 A_UINT8 filter_list_id; 2735 u8 filter_list_id;
2736} POSTPACK WMI_GET_WOW_LIST_CMD; 2736} POSTPACK WMI_GET_WOW_LIST_CMD;
2737 2737
2738/* 2738/*
2739 * WMI_GET_WOW_LIST_CMD reply 2739 * WMI_GET_WOW_LIST_CMD reply
2740 */ 2740 */
2741typedef PREPACK struct { 2741typedef PREPACK struct {
2742 A_UINT8 num_filters; /* number of patterns in reply */ 2742 u8 num_filters; /* number of patterns in reply */
2743 A_UINT8 this_filter_num; /* this is filter # x of total num_filters */ 2743 u8 this_filter_num; /* this is filter # x of total num_filters */
2744 A_UINT8 wow_mode; 2744 u8 wow_mode;
2745 A_UINT8 host_mode; 2745 u8 host_mode;
2746 WOW_FILTER wow_filters[1]; 2746 WOW_FILTER wow_filters[1];
2747} POSTPACK WMI_GET_WOW_LIST_REPLY; 2747} POSTPACK WMI_GET_WOW_LIST_REPLY;
2748 2748
2749typedef PREPACK struct { 2749typedef PREPACK struct {
2750 A_UINT8 filter_list_id; 2750 u8 filter_list_id;
2751 A_UINT8 filter_size; 2751 u8 filter_size;
2752 A_UINT8 filter_offset; 2752 u8 filter_offset;
2753 A_UINT8 filter[1]; 2753 u8 filter[1];
2754} POSTPACK WMI_ADD_WOW_PATTERN_CMD; 2754} POSTPACK WMI_ADD_WOW_PATTERN_CMD;
2755 2755
2756typedef PREPACK struct { 2756typedef PREPACK struct {
@@ -2759,7 +2759,7 @@ typedef PREPACK struct {
2759} POSTPACK WMI_DEL_WOW_PATTERN_CMD; 2759} POSTPACK WMI_DEL_WOW_PATTERN_CMD;
2760 2760
2761typedef PREPACK struct { 2761typedef PREPACK struct {
2762 A_UINT8 macaddr[ATH_MAC_LEN]; 2762 u8 macaddr[ATH_MAC_LEN];
2763} POSTPACK WMI_SET_MAC_ADDRESS_CMD; 2763} POSTPACK WMI_SET_MAC_ADDRESS_CMD;
2764 2764
2765/* 2765/*
@@ -2773,7 +2773,7 @@ typedef PREPACK struct {
2773} POSTPACK WMI_SET_AKMP_PARAMS_CMD; 2773} POSTPACK WMI_SET_AKMP_PARAMS_CMD;
2774 2774
2775typedef PREPACK struct { 2775typedef PREPACK struct {
2776 A_UINT8 pmkid[WMI_PMKID_LEN]; 2776 u8 pmkid[WMI_PMKID_LEN];
2777} POSTPACK WMI_PMKID; 2777} POSTPACK WMI_PMKID;
2778 2778
2779/* 2779/*
@@ -2792,7 +2792,7 @@ typedef PREPACK struct {
2792 */ 2792 */
2793typedef PREPACK struct { 2793typedef PREPACK struct {
2794 A_UINT32 numPMKID; 2794 A_UINT32 numPMKID;
2795 A_UINT8 bssidList[ATH_MAC_LEN][1]; 2795 u8 bssidList[ATH_MAC_LEN][1];
2796 WMI_PMKID pmkidList[1]; 2796 WMI_PMKID pmkidList[1];
2797} POSTPACK WMI_PMKID_LIST_REPLY; 2797} POSTPACK WMI_PMKID_LIST_REPLY;
2798 2798
@@ -2808,16 +2808,16 @@ typedef PREPACK struct {
2808 2808
2809/* WMI_ADDBA_REQ_EVENTID */ 2809/* WMI_ADDBA_REQ_EVENTID */
2810typedef PREPACK struct { 2810typedef PREPACK struct {
2811 A_UINT8 tid; 2811 u8 tid;
2812 A_UINT8 win_sz; 2812 u8 win_sz;
2813 A_UINT16 st_seq_no; 2813 A_UINT16 st_seq_no;
2814 A_UINT8 status; /* f/w response for ADDBA Req; OK(0) or failure(!=0) */ 2814 u8 status; /* f/w response for ADDBA Req; OK(0) or failure(!=0) */
2815} POSTPACK WMI_ADDBA_REQ_EVENT; 2815} POSTPACK WMI_ADDBA_REQ_EVENT;
2816 2816
2817/* WMI_ADDBA_RESP_EVENTID */ 2817/* WMI_ADDBA_RESP_EVENTID */
2818typedef PREPACK struct { 2818typedef PREPACK struct {
2819 A_UINT8 tid; 2819 u8 tid;
2820 A_UINT8 status; /* OK(0), failure (!=0) */ 2820 u8 status; /* OK(0), failure (!=0) */
2821 A_UINT16 amsdu_sz; /* Three values: Not supported(0), 3839, 8k */ 2821 A_UINT16 amsdu_sz; /* Three values: Not supported(0), 3839, 8k */
2822} POSTPACK WMI_ADDBA_RESP_EVENT; 2822} POSTPACK WMI_ADDBA_RESP_EVENT;
2823 2823
@@ -2826,8 +2826,8 @@ typedef PREPACK struct {
2826 * Host is notified of this 2826 * Host is notified of this
2827 */ 2827 */
2828typedef PREPACK struct { 2828typedef PREPACK struct {
2829 A_UINT8 tid; 2829 u8 tid;
2830 A_UINT8 is_peer_initiator; 2830 u8 is_peer_initiator;
2831 A_UINT16 reason_code; 2831 A_UINT16 reason_code;
2832} POSTPACK WMI_DELBA_EVENT; 2832} POSTPACK WMI_DELBA_EVENT;
2833 2833
@@ -2836,8 +2836,8 @@ typedef PREPACK struct {
2836#define WAPI_REKEY_UCAST 1 2836#define WAPI_REKEY_UCAST 1
2837#define WAPI_REKEY_MCAST 2 2837#define WAPI_REKEY_MCAST 2
2838typedef PREPACK struct { 2838typedef PREPACK struct {
2839 A_UINT8 type; 2839 u8 type;
2840 A_UINT8 macAddr[ATH_MAC_LEN]; 2840 u8 macAddr[ATH_MAC_LEN];
2841} POSTPACK WMI_WAPIREKEY_EVENT; 2841} POSTPACK WMI_WAPIREKEY_EVENT;
2842#endif 2842#endif
2843 2843
@@ -2856,7 +2856,7 @@ typedef PREPACK struct {
2856 * on the given tid 2856 * on the given tid
2857 */ 2857 */
2858typedef PREPACK struct { 2858typedef PREPACK struct {
2859 A_UINT8 tid; 2859 u8 tid;
2860} POSTPACK WMI_ADDBA_REQ_CMD; 2860} POSTPACK WMI_ADDBA_REQ_CMD;
2861 2861
2862/* WMI_DELBA_REQ_CMDID 2862/* WMI_DELBA_REQ_CMDID
@@ -2864,8 +2864,8 @@ typedef PREPACK struct {
2864 * is_send_initiator indicates if it's or tx or rx side 2864 * is_send_initiator indicates if it's or tx or rx side
2865 */ 2865 */
2866typedef PREPACK struct { 2866typedef PREPACK struct {
2867 A_UINT8 tid; 2867 u8 tid;
2868 A_UINT8 is_sender_initiator; 2868 u8 is_sender_initiator;
2869 2869
2870} POSTPACK WMI_DELBA_REQ_CMD; 2870} POSTPACK WMI_DELBA_REQ_CMD;
2871 2871
@@ -2874,8 +2874,8 @@ typedef PREPACK struct {
2874#define PEER_FIRST_NODE_JOIN_EVENT 0x10 2874#define PEER_FIRST_NODE_JOIN_EVENT 0x10
2875#define PEER_LAST_NODE_LEAVE_EVENT 0x11 2875#define PEER_LAST_NODE_LEAVE_EVENT 0x11
2876typedef PREPACK struct { 2876typedef PREPACK struct {
2877 A_UINT8 eventCode; 2877 u8 eventCode;
2878 A_UINT8 peerMacAddr[ATH_MAC_LEN]; 2878 u8 peerMacAddr[ATH_MAC_LEN];
2879} POSTPACK WMI_PEER_NODE_EVENT; 2879} POSTPACK WMI_PEER_NODE_EVENT;
2880 2880
2881#define IEEE80211_FRAME_TYPE_MGT 0x00 2881#define IEEE80211_FRAME_TYPE_MGT 0x00
@@ -2893,10 +2893,10 @@ typedef PREPACK struct {
2893#define TX_COMPLETE_STATUS_TIMEOUT 3 2893#define TX_COMPLETE_STATUS_TIMEOUT 3
2894#define TX_COMPLETE_STATUS_OTHER 4 2894#define TX_COMPLETE_STATUS_OTHER 4
2895 2895
2896 A_UINT8 status; /* one of TX_COMPLETE_STATUS_... */ 2896 u8 status; /* one of TX_COMPLETE_STATUS_... */
2897 A_UINT8 pktID; /* packet ID to identify parent packet */ 2897 u8 pktID; /* packet ID to identify parent packet */
2898 A_UINT8 rateIdx; /* rate index on successful transmission */ 2898 u8 rateIdx; /* rate index on successful transmission */
2899 A_UINT8 ackFailures; /* number of ACK failures in tx attempt */ 2899 u8 ackFailures; /* number of ACK failures in tx attempt */
2900#if 0 /* optional params currently ommitted. */ 2900#if 0 /* optional params currently ommitted. */
2901 A_UINT32 queueDelay; // usec delay measured Tx Start time - host delivery time 2901 A_UINT32 queueDelay; // usec delay measured Tx Start time - host delivery time
2902 A_UINT32 mediaDelay; // usec delay measured ACK rx time - host delivery time 2902 A_UINT32 mediaDelay; // usec delay measured ACK rx time - host delivery time
@@ -2904,10 +2904,10 @@ typedef PREPACK struct {
2904} POSTPACK TX_COMPLETE_MSG_V1; /* version 1 of tx complete msg */ 2904} POSTPACK TX_COMPLETE_MSG_V1; /* version 1 of tx complete msg */
2905 2905
2906typedef PREPACK struct { 2906typedef PREPACK struct {
2907 A_UINT8 numMessages; /* number of tx comp msgs following this struct */ 2907 u8 numMessages; /* number of tx comp msgs following this struct */
2908 A_UINT8 msgLen; /* length in bytes for each individual msg following this struct */ 2908 u8 msgLen; /* length in bytes for each individual msg following this struct */
2909 A_UINT8 msgType; /* version of tx complete msg data following this struct */ 2909 u8 msgType; /* version of tx complete msg data following this struct */
2910 A_UINT8 reserved; /* individual messages follow this header */ 2910 u8 reserved; /* individual messages follow this header */
2911} POSTPACK WMI_TX_COMPLETE_EVENT; 2911} POSTPACK WMI_TX_COMPLETE_EVENT;
2912 2912
2913#define WMI_TXCOMPLETE_VERSION_1 (0x01) 2913#define WMI_TXCOMPLETE_VERSION_1 (0x01)
@@ -2946,7 +2946,7 @@ typedef PREPACK struct {
2946#define HIDDEN_SSID_FALSE 0 2946#define HIDDEN_SSID_FALSE 0
2947#define HIDDEN_SSID_TRUE 1 2947#define HIDDEN_SSID_TRUE 1
2948typedef PREPACK struct { 2948typedef PREPACK struct {
2949 A_UINT8 hidden_ssid; 2949 u8 hidden_ssid;
2950} POSTPACK WMI_AP_HIDDEN_SSID_CMD; 2950} POSTPACK WMI_AP_HIDDEN_SSID_CMD;
2951 2951
2952/* 2952/*
@@ -2957,7 +2957,7 @@ typedef PREPACK struct {
2957#define AP_ACL_DENY_MAC 0x02 2957#define AP_ACL_DENY_MAC 0x02
2958#define AP_ACL_RETAIN_LIST_MASK 0x80 2958#define AP_ACL_RETAIN_LIST_MASK 0x80
2959typedef PREPACK struct { 2959typedef PREPACK struct {
2960 A_UINT8 policy; 2960 u8 policy;
2961} POSTPACK WMI_AP_ACL_POLICY_CMD; 2961} POSTPACK WMI_AP_ACL_POLICY_CMD;
2962 2962
2963/* 2963/*
@@ -2966,33 +2966,33 @@ typedef PREPACK struct {
2966#define ADD_MAC_ADDR 1 2966#define ADD_MAC_ADDR 1
2967#define DEL_MAC_ADDR 2 2967#define DEL_MAC_ADDR 2
2968typedef PREPACK struct { 2968typedef PREPACK struct {
2969 A_UINT8 action; 2969 u8 action;
2970 A_UINT8 index; 2970 u8 index;
2971 A_UINT8 mac[ATH_MAC_LEN]; 2971 u8 mac[ATH_MAC_LEN];
2972 A_UINT8 wildcard; 2972 u8 wildcard;
2973} POSTPACK WMI_AP_ACL_MAC_CMD; 2973} POSTPACK WMI_AP_ACL_MAC_CMD;
2974 2974
2975typedef PREPACK struct { 2975typedef PREPACK struct {
2976 A_UINT16 index; 2976 A_UINT16 index;
2977 A_UINT8 acl_mac[AP_ACL_SIZE][ATH_MAC_LEN]; 2977 u8 acl_mac[AP_ACL_SIZE][ATH_MAC_LEN];
2978 A_UINT8 wildcard[AP_ACL_SIZE]; 2978 u8 wildcard[AP_ACL_SIZE];
2979 A_UINT8 policy; 2979 u8 policy;
2980} POSTPACK WMI_AP_ACL; 2980} POSTPACK WMI_AP_ACL;
2981 2981
2982/* 2982/*
2983 * Used with WMI_AP_SET_NUM_STA_CMDID 2983 * Used with WMI_AP_SET_NUM_STA_CMDID
2984 */ 2984 */
2985typedef PREPACK struct { 2985typedef PREPACK struct {
2986 A_UINT8 num_sta; 2986 u8 num_sta;
2987} POSTPACK WMI_AP_SET_NUM_STA_CMD; 2987} POSTPACK WMI_AP_SET_NUM_STA_CMD;
2988 2988
2989/* 2989/*
2990 * Used with WMI_AP_SET_MLME_CMDID 2990 * Used with WMI_AP_SET_MLME_CMDID
2991 */ 2991 */
2992typedef PREPACK struct { 2992typedef PREPACK struct {
2993 A_UINT8 mac[ATH_MAC_LEN]; 2993 u8 mac[ATH_MAC_LEN];
2994 A_UINT16 reason; /* 802.11 reason code */ 2994 A_UINT16 reason; /* 802.11 reason code */
2995 A_UINT8 cmd; /* operation to perform */ 2995 u8 cmd; /* operation to perform */
2996#define WMI_AP_MLME_ASSOC 1 /* associate station */ 2996#define WMI_AP_MLME_ASSOC 1 /* associate station */
2997#define WMI_AP_DISASSOC 2 /* disassociate station */ 2997#define WMI_AP_DISASSOC 2 /* disassociate station */
2998#define WMI_AP_DEAUTH 3 /* deauthenticate station */ 2998#define WMI_AP_DEAUTH 3 /* deauthenticate station */
@@ -3021,21 +3021,21 @@ typedef PREPACK struct {
3021} POSTPACK WMI_AP_SET_COUNTRY_CMD; 3021} POSTPACK WMI_AP_SET_COUNTRY_CMD;
3022 3022
3023typedef PREPACK struct { 3023typedef PREPACK struct {
3024 A_UINT8 dtim; 3024 u8 dtim;
3025} POSTPACK WMI_AP_SET_DTIM_CMD; 3025} POSTPACK WMI_AP_SET_DTIM_CMD;
3026 3026
3027typedef PREPACK struct { 3027typedef PREPACK struct {
3028 A_UINT8 band; /* specifies which band to apply these values */ 3028 u8 band; /* specifies which band to apply these values */
3029 A_UINT8 enable; /* allows 11n to be disabled on a per band basis */ 3029 u8 enable; /* allows 11n to be disabled on a per band basis */
3030 A_UINT8 chan_width_40M_supported; 3030 u8 chan_width_40M_supported;
3031 A_UINT8 short_GI_20MHz; 3031 u8 short_GI_20MHz;
3032 A_UINT8 short_GI_40MHz; 3032 u8 short_GI_40MHz;
3033 A_UINT8 intolerance_40MHz; 3033 u8 intolerance_40MHz;
3034 A_UINT8 max_ampdu_len_exp; 3034 u8 max_ampdu_len_exp;
3035} POSTPACK WMI_SET_HT_CAP_CMD; 3035} POSTPACK WMI_SET_HT_CAP_CMD;
3036 3036
3037typedef PREPACK struct { 3037typedef PREPACK struct {
3038 A_UINT8 sta_chan_width; 3038 u8 sta_chan_width;
3039} POSTPACK WMI_SET_HT_OP_CMD; 3039} POSTPACK WMI_SET_HT_OP_CMD;
3040 3040
3041typedef PREPACK struct { 3041typedef PREPACK struct {
@@ -3044,7 +3044,7 @@ typedef PREPACK struct {
3044 3044
3045typedef PREPACK struct { 3045typedef PREPACK struct {
3046 A_UINT32 sgiMask; 3046 A_UINT32 sgiMask;
3047 A_UINT8 sgiPERThreshold; 3047 u8 sgiPERThreshold;
3048} POSTPACK WMI_SET_TX_SGI_PARAM_CMD; 3048} POSTPACK WMI_SET_TX_SGI_PARAM_CMD;
3049 3049
3050#define DEFAULT_SGI_MASK 0x08080000 3050#define DEFAULT_SGI_MASK 0x08080000
@@ -3052,23 +3052,23 @@ typedef PREPACK struct {
3052 3052
3053typedef PREPACK struct { 3053typedef PREPACK struct {
3054 A_UINT32 rateField; /* 1 bit per rate corresponding to index */ 3054 A_UINT32 rateField; /* 1 bit per rate corresponding to index */
3055 A_UINT8 id; 3055 u8 id;
3056 A_UINT8 shortTrys; 3056 u8 shortTrys;
3057 A_UINT8 longTrys; 3057 u8 longTrys;
3058 A_UINT8 reserved; /* padding */ 3058 u8 reserved; /* padding */
3059} POSTPACK WMI_SET_RATE_POLICY_CMD; 3059} POSTPACK WMI_SET_RATE_POLICY_CMD;
3060 3060
3061typedef PREPACK struct { 3061typedef PREPACK struct {
3062 A_UINT8 metaVersion; /* version of meta data for rx packets <0 = default> (0-7 = valid) */ 3062 u8 metaVersion; /* version of meta data for rx packets <0 = default> (0-7 = valid) */
3063 A_UINT8 dot11Hdr; /* 1 == leave .11 header intact , 0 == replace .11 header with .3 <default> */ 3063 u8 dot11Hdr; /* 1 == leave .11 header intact , 0 == replace .11 header with .3 <default> */
3064 A_UINT8 defragOnHost; /* 1 == defragmentation is performed by host, 0 == performed by target <default> */ 3064 u8 defragOnHost; /* 1 == defragmentation is performed by host, 0 == performed by target <default> */
3065 A_UINT8 reserved[1]; /* alignment */ 3065 u8 reserved[1]; /* alignment */
3066} POSTPACK WMI_RX_FRAME_FORMAT_CMD; 3066} POSTPACK WMI_RX_FRAME_FORMAT_CMD;
3067 3067
3068 3068
3069typedef PREPACK struct { 3069typedef PREPACK struct {
3070 A_UINT8 enable; /* 1 == device operates in thin mode , 0 == normal mode <default> */ 3070 u8 enable; /* 1 == device operates in thin mode , 0 == normal mode <default> */
3071 A_UINT8 reserved[3]; 3071 u8 reserved[3];
3072} POSTPACK WMI_SET_THIN_MODE_CMD; 3072} POSTPACK WMI_SET_THIN_MODE_CMD;
3073 3073
3074/* AP mode events */ 3074/* AP mode events */
@@ -3102,7 +3102,7 @@ typedef PREPACK struct {
3102#define AP_11BG_RATESET2 2 3102#define AP_11BG_RATESET2 2
3103#define DEF_AP_11BG_RATESET AP_11BG_RATESET1 3103#define DEF_AP_11BG_RATESET AP_11BG_RATESET1
3104typedef PREPACK struct { 3104typedef PREPACK struct {
3105 A_UINT8 rateset; 3105 u8 rateset;
3106} POSTPACK WMI_AP_SET_11BG_RATESET_CMD; 3106} POSTPACK WMI_AP_SET_11BG_RATESET_CMD;
3107/* 3107/*
3108 * End of AP mode definitions 3108 * End of AP mode definitions
diff --git a/drivers/staging/ath6kl/include/common/wmi_thin.h b/drivers/staging/ath6kl/include/common/wmi_thin.h
index 35391edd20a..5444a0b9197 100644
--- a/drivers/staging/ath6kl/include/common/wmi_thin.h
+++ b/drivers/staging/ath6kl/include/common/wmi_thin.h
@@ -101,8 +101,8 @@ typedef enum{
101 * disabled by default but can be enabled using this structure and the 101 * disabled by default but can be enabled using this structure and the
102 * WMI_THIN_CONFIG_CMDID. */ 102 * WMI_THIN_CONFIG_CMDID. */
103typedef PREPACK struct { 103typedef PREPACK struct {
104 A_UINT8 version; /* the versioned type of messages to use or 0 to disable */ 104 u8 version; /* the versioned type of messages to use or 0 to disable */
105 A_UINT8 countThreshold; /* msg count threshold triggering a tx complete message */ 105 u8 countThreshold; /* msg count threshold triggering a tx complete message */
106 A_UINT16 timeThreshold; /* timeout interval in MSEC triggering a tx complete message */ 106 A_UINT16 timeThreshold; /* timeout interval in MSEC triggering a tx complete message */
107} POSTPACK WMI_THIN_CONFIG_TXCOMPLETE; 107} POSTPACK WMI_THIN_CONFIG_TXCOMPLETE;
108 108
@@ -111,8 +111,8 @@ typedef PREPACK struct {
111 * without notification. Alternately, the MAC Header is forwarded to the host 111 * without notification. Alternately, the MAC Header is forwarded to the host
112 * with the failed status. */ 112 * with the failed status. */
113typedef PREPACK struct { 113typedef PREPACK struct {
114 A_UINT8 enable; /* 1 == send decrypt errors to the host, 0 == don't */ 114 u8 enable; /* 1 == send decrypt errors to the host, 0 == don't */
115 A_UINT8 reserved[3]; /* align padding */ 115 u8 reserved[3]; /* align padding */
116} POSTPACK WMI_THIN_CONFIG_DECRYPT_ERR; 116} POSTPACK WMI_THIN_CONFIG_DECRYPT_ERR;
117 117
118/* WMI_THIN_CONFIG_TX_MAC_RULES -- Used to configure behavior for transmitted 118/* WMI_THIN_CONFIG_TX_MAC_RULES -- Used to configure behavior for transmitted
@@ -140,7 +140,7 @@ typedef PREPACK struct {
140#define WMI_THIN_CFG_FILTER_RULES 0x00000008 140#define WMI_THIN_CFG_FILTER_RULES 0x00000008
141 A_UINT32 cfgField; /* combination of WMI_THIN_CFG_... describes contents of config command */ 141 A_UINT32 cfgField; /* combination of WMI_THIN_CFG_... describes contents of config command */
142 A_UINT16 length; /* length in bytes of appended sub-commands */ 142 A_UINT16 length; /* length in bytes of appended sub-commands */
143 A_UINT8 reserved[2]; /* align padding */ 143 u8 reserved[2]; /* align padding */
144} POSTPACK WMI_THIN_CONFIG_CMD; 144} POSTPACK WMI_THIN_CONFIG_CMD;
145 145
146/* MIB Access Identifiers tailored for Symbian. */ 146/* MIB Access Identifiers tailored for Symbian. */
@@ -176,7 +176,7 @@ enum {
176}; 176};
177 177
178typedef PREPACK struct { 178typedef PREPACK struct {
179 A_UINT8 addr[ATH_MAC_LEN]; 179 u8 addr[ATH_MAC_LEN];
180} POSTPACK WMI_THIN_MIB_STA_MAC; 180} POSTPACK WMI_THIN_MIB_STA_MAC;
181 181
182typedef PREPACK struct { 182typedef PREPACK struct {
@@ -184,7 +184,7 @@ typedef PREPACK struct {
184} POSTPACK WMI_THIN_MIB_RX_LIFE_TIME; 184} POSTPACK WMI_THIN_MIB_RX_LIFE_TIME;
185 185
186typedef PREPACK struct { 186typedef PREPACK struct {
187 A_UINT8 enable; //1 = on, 0 = off 187 u8 enable; //1 = on, 0 = off
188} POSTPACK WMI_THIN_MIB_CTS_TO_SELF; 188} POSTPACK WMI_THIN_MIB_CTS_TO_SELF;
189 189
190typedef PREPACK struct { 190typedef PREPACK struct {
@@ -196,8 +196,8 @@ typedef PREPACK struct {
196} POSTPACK WMI_THIN_MIB_RTS_THRESHOLD; 196} POSTPACK WMI_THIN_MIB_RTS_THRESHOLD;
197 197
198typedef PREPACK struct { 198typedef PREPACK struct {
199 A_UINT8 type; // type of frame 199 u8 type; // type of frame
200 A_UINT8 rate; // tx rate to be used (one of WMI_BIT_RATE) 200 u8 rate; // tx rate to be used (one of WMI_BIT_RATE)
201 A_UINT16 length; // num bytes following this structure as the template data 201 A_UINT16 length; // num bytes following this structure as the template data
202} POSTPACK WMI_THIN_MIB_TEMPLATE_FRAME; 202} POSTPACK WMI_THIN_MIB_TEMPLATE_FRAME;
203 203
@@ -212,28 +212,28 @@ typedef PREPACK struct {
212#define IE_FILTER_TREATMENT_APPEAR 2 212#define IE_FILTER_TREATMENT_APPEAR 2
213 213
214typedef PREPACK struct { 214typedef PREPACK struct {
215 A_UINT8 ie; 215 u8 ie;
216 A_UINT8 treatment; 216 u8 treatment;
217} POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE; 217} POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE;
218 218
219typedef PREPACK struct { 219typedef PREPACK struct {
220 A_UINT8 ie; 220 u8 ie;
221 A_UINT8 treatment; 221 u8 treatment;
222 A_UINT8 oui[3]; 222 u8 oui[3];
223 A_UINT8 type; 223 u8 type;
224 A_UINT16 version; 224 A_UINT16 version;
225} POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE_OUI; 225} POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE_OUI;
226 226
227typedef PREPACK struct { 227typedef PREPACK struct {
228 A_UINT16 numElements; 228 A_UINT16 numElements;
229 A_UINT8 entrySize; // sizeof(WMI_THIN_MIB_BEACON_FILTER_TABLE) on host cpu may be 2 may be 4 229 u8 entrySize; // sizeof(WMI_THIN_MIB_BEACON_FILTER_TABLE) on host cpu may be 2 may be 4
230 A_UINT8 reserved; 230 u8 reserved;
231} POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE_HEADER; 231} POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE_HEADER;
232 232
233typedef PREPACK struct { 233typedef PREPACK struct {
234 A_UINT32 count; /* num beacons between deliveries */ 234 A_UINT32 count; /* num beacons between deliveries */
235 A_UINT8 enable; 235 u8 enable;
236 A_UINT8 reserved[3]; 236 u8 reserved[3];
237} POSTPACK WMI_THIN_MIB_BEACON_FILTER; 237} POSTPACK WMI_THIN_MIB_BEACON_FILTER;
238 238
239typedef PREPACK struct { 239typedef PREPACK struct {
@@ -241,10 +241,10 @@ typedef PREPACK struct {
241} POSTPACK WMI_THIN_MIB_BEACON_LOST_COUNT; 241} POSTPACK WMI_THIN_MIB_BEACON_LOST_COUNT;
242 242
243typedef PREPACK struct { 243typedef PREPACK struct {
244 A_UINT8 rssi; /* the low threshold which can trigger an event warning */ 244 u8 rssi; /* the low threshold which can trigger an event warning */
245 A_UINT8 tolerance; /* the range above and below the threshold to prevent event flooding to the host. */ 245 u8 tolerance; /* the range above and below the threshold to prevent event flooding to the host. */
246 A_UINT8 count; /* the sample count of consecutive frames necessary to trigger an event. */ 246 u8 count; /* the sample count of consecutive frames necessary to trigger an event. */
247 A_UINT8 reserved[1]; /* padding */ 247 u8 reserved[1]; /* padding */
248} POSTPACK WMI_THIN_MIB_RSSI_THRESHOLD; 248} POSTPACK WMI_THIN_MIB_RSSI_THRESHOLD;
249 249
250 250
@@ -252,52 +252,52 @@ typedef PREPACK struct {
252 A_UINT32 cap; 252 A_UINT32 cap;
253 A_UINT32 rxRateField; 253 A_UINT32 rxRateField;
254 A_UINT32 beamForming; 254 A_UINT32 beamForming;
255 A_UINT8 addr[ATH_MAC_LEN]; 255 u8 addr[ATH_MAC_LEN];
256 A_UINT8 enable; 256 u8 enable;
257 A_UINT8 stbc; 257 u8 stbc;
258 A_UINT8 maxAMPDU; 258 u8 maxAMPDU;
259 A_UINT8 msduSpacing; 259 u8 msduSpacing;
260 A_UINT8 mcsFeedback; 260 u8 mcsFeedback;
261 A_UINT8 antennaSelCap; 261 u8 antennaSelCap;
262} POSTPACK WMI_THIN_MIB_HT_CAP; 262} POSTPACK WMI_THIN_MIB_HT_CAP;
263 263
264typedef PREPACK struct { 264typedef PREPACK struct {
265 A_UINT32 infoField; 265 A_UINT32 infoField;
266 A_UINT32 basicRateField; 266 A_UINT32 basicRateField;
267 A_UINT8 protection; 267 u8 protection;
268 A_UINT8 secondChanneloffset; 268 u8 secondChanneloffset;
269 A_UINT8 channelWidth; 269 u8 channelWidth;
270 A_UINT8 reserved; 270 u8 reserved;
271} POSTPACK WMI_THIN_MIB_HT_OP; 271} POSTPACK WMI_THIN_MIB_HT_OP;
272 272
273typedef PREPACK struct { 273typedef PREPACK struct {
274#define SECOND_BEACON_PRIMARY 1 274#define SECOND_BEACON_PRIMARY 1
275#define SECOND_BEACON_EITHER 2 275#define SECOND_BEACON_EITHER 2
276#define SECOND_BEACON_SECONDARY 3 276#define SECOND_BEACON_SECONDARY 3
277 A_UINT8 cfg; 277 u8 cfg;
278 A_UINT8 reserved[3]; /* padding */ 278 u8 reserved[3]; /* padding */
279} POSTPACK WMI_THIN_MIB_HT_2ND_BEACON; 279} POSTPACK WMI_THIN_MIB_HT_2ND_BEACON;
280 280
281typedef PREPACK struct { 281typedef PREPACK struct {
282 A_UINT8 txTIDField; 282 u8 txTIDField;
283 A_UINT8 rxTIDField; 283 u8 rxTIDField;
284 A_UINT8 reserved[2]; /* padding */ 284 u8 reserved[2]; /* padding */
285} POSTPACK WMI_THIN_MIB_HT_BLOCK_ACK; 285} POSTPACK WMI_THIN_MIB_HT_BLOCK_ACK;
286 286
287typedef PREPACK struct { 287typedef PREPACK struct {
288 A_UINT8 enableLong; // 1 == long preamble, 0 == short preamble 288 u8 enableLong; // 1 == long preamble, 0 == short preamble
289 A_UINT8 reserved[3]; 289 u8 reserved[3];
290} POSTPACK WMI_THIN_MIB_PREAMBLE; 290} POSTPACK WMI_THIN_MIB_PREAMBLE;
291 291
292typedef PREPACK struct { 292typedef PREPACK struct {
293 A_UINT16 length; /* the length in bytes of the appended MIB data */ 293 A_UINT16 length; /* the length in bytes of the appended MIB data */
294 A_UINT8 mibID; /* the ID of the MIB element being set */ 294 u8 mibID; /* the ID of the MIB element being set */
295 A_UINT8 reserved; /* align padding */ 295 u8 reserved; /* align padding */
296} POSTPACK WMI_THIN_SET_MIB_CMD; 296} POSTPACK WMI_THIN_SET_MIB_CMD;
297 297
298typedef PREPACK struct { 298typedef PREPACK struct {
299 A_UINT8 mibID; /* the ID of the MIB element being set */ 299 u8 mibID; /* the ID of the MIB element being set */
300 A_UINT8 reserved[3]; /* align padding */ 300 u8 reserved[3]; /* align padding */
301} POSTPACK WMI_THIN_GET_MIB_CMD; 301} POSTPACK WMI_THIN_GET_MIB_CMD;
302 302
303typedef PREPACK struct { 303typedef PREPACK struct {
@@ -305,12 +305,12 @@ typedef PREPACK struct {
305 A_UINT32 beaconIntval; /* TUs */ 305 A_UINT32 beaconIntval; /* TUs */
306 A_UINT16 atimWindow; /* TUs */ 306 A_UINT16 atimWindow; /* TUs */
307 A_UINT16 channel; /* frequency in Mhz */ 307 A_UINT16 channel; /* frequency in Mhz */
308 A_UINT8 networkType; /* INFRA_NETWORK | ADHOC_NETWORK */ 308 u8 networkType; /* INFRA_NETWORK | ADHOC_NETWORK */
309 A_UINT8 ssidLength; /* 0 - 32 */ 309 u8 ssidLength; /* 0 - 32 */
310 A_UINT8 probe; /* != 0 : issue probe req at start */ 310 u8 probe; /* != 0 : issue probe req at start */
311 A_UINT8 reserved; /* alignment */ 311 u8 reserved; /* alignment */
312 A_UCHAR ssid[WMI_MAX_SSID_LEN]; 312 A_UCHAR ssid[WMI_MAX_SSID_LEN];
313 A_UINT8 bssid[ATH_MAC_LEN]; 313 u8 bssid[ATH_MAC_LEN];
314} POSTPACK WMI_THIN_JOIN_CMD; 314} POSTPACK WMI_THIN_JOIN_CMD;
315 315
316typedef PREPACK struct { 316typedef PREPACK struct {
@@ -336,8 +336,8 @@ typedef enum {
336}WMI_THIN_JOIN_RESULT; 336}WMI_THIN_JOIN_RESULT;
337 337
338typedef PREPACK struct { 338typedef PREPACK struct {
339 A_UINT8 result; /* the result of the join cmd. one of WMI_THIN_JOIN_RESULT */ 339 u8 result; /* the result of the join cmd. one of WMI_THIN_JOIN_RESULT */
340 A_UINT8 reserved[3]; /* alignment */ 340 u8 reserved[3]; /* alignment */
341} POSTPACK WMI_THIN_JOIN_EVENT; 341} POSTPACK WMI_THIN_JOIN_EVENT;
342 342
343#ifdef __cplusplus 343#ifdef __cplusplus
diff --git a/drivers/staging/ath6kl/include/common/wmix.h b/drivers/staging/ath6kl/include/common/wmix.h
index 87046e364ba..7dd5434136a 100644
--- a/drivers/staging/ath6kl/include/common/wmix.h
+++ b/drivers/staging/ath6kl/include/common/wmix.h
@@ -139,7 +139,7 @@ typedef PREPACK struct {
139 A_UINT32 targ_reply_fn; 139 A_UINT32 targ_reply_fn;
140 A_UINT32 targ_reply_arg; 140 A_UINT32 targ_reply_arg;
141 A_UINT32 length; 141 A_UINT32 length;
142 A_UINT8 buf[1]; 142 u8 buf[1];
143} POSTPACK WMIX_DSETDATA_REPLY_CMD; 143} POSTPACK WMIX_DSETDATA_REPLY_CMD;
144 144
145 145
diff --git a/drivers/staging/ath6kl/include/common_drv.h b/drivers/staging/ath6kl/include/common_drv.h
index 8407c9f1627..0d2902db817 100644
--- a/drivers/staging/ath6kl/include/common_drv.h
+++ b/drivers/staging/ath6kl/include/common_drv.h
@@ -79,7 +79,7 @@ void ar6000_dump_target_assert_info(HIF_DEVICE *hifDevice, A_UINT32 TargetType);
79int ar6000_set_htc_params(HIF_DEVICE *hifDevice, 79int ar6000_set_htc_params(HIF_DEVICE *hifDevice,
80 A_UINT32 TargetType, 80 A_UINT32 TargetType,
81 A_UINT32 MboxIsrYieldValue, 81 A_UINT32 MboxIsrYieldValue,
82 A_UINT8 HtcControlBuffers); 82 u8 HtcControlBuffers);
83 83
84int ar6000_prepare_target(HIF_DEVICE *hifDevice, 84int ar6000_prepare_target(HIF_DEVICE *hifDevice,
85 A_UINT32 TargetType, 85 A_UINT32 TargetType,
@@ -91,15 +91,15 @@ int ar6000_set_hci_bridge_flags(HIF_DEVICE *hifDevice,
91 91
92void ar6000_copy_cust_data_from_target(HIF_DEVICE *hifDevice, A_UINT32 TargetType); 92void ar6000_copy_cust_data_from_target(HIF_DEVICE *hifDevice, A_UINT32 TargetType);
93 93
94A_UINT8 *ar6000_get_cust_data_buffer(A_UINT32 TargetType); 94u8 *ar6000_get_cust_data_buffer(A_UINT32 TargetType);
95 95
96int ar6000_setBTState(void *context, A_UINT8 *pInBuf, A_UINT32 InBufSize); 96int ar6000_setBTState(void *context, u8 *pInBuf, A_UINT32 InBufSize);
97 97
98int ar6000_setDevicePowerState(void *context, A_UINT8 *pInBuf, A_UINT32 InBufSize); 98int ar6000_setDevicePowerState(void *context, u8 *pInBuf, A_UINT32 InBufSize);
99 99
100int ar6000_setWowMode(void *context, A_UINT8 *pInBuf, A_UINT32 InBufSize); 100int ar6000_setWowMode(void *context, u8 *pInBuf, A_UINT32 InBufSize);
101 101
102int ar6000_setHostMode(void *context, A_UINT8 *pInBuf, A_UINT32 InBufSize); 102int ar6000_setHostMode(void *context, u8 *pInBuf, A_UINT32 InBufSize);
103 103
104#ifdef __cplusplus 104#ifdef __cplusplus
105} 105}
diff --git a/drivers/staging/ath6kl/include/dset_api.h b/drivers/staging/ath6kl/include/dset_api.h
index c2014f2b864..7ebc588f51c 100644
--- a/drivers/staging/ath6kl/include/dset_api.h
+++ b/drivers/staging/ath6kl/include/dset_api.h
@@ -51,7 +51,7 @@ int wmi_dset_open_reply(struct wmi_t *wmip,
51/* Called to send a DataSet Data Reply back to the Target. */ 51/* Called to send a DataSet Data Reply back to the Target. */
52int wmi_dset_data_reply(struct wmi_t *wmip, 52int wmi_dset_data_reply(struct wmi_t *wmip,
53 A_UINT32 status, 53 A_UINT32 status,
54 A_UINT8 *host_buf, 54 u8 *host_buf,
55 A_UINT32 length, 55 A_UINT32 length,
56 A_UINT32 targ_buf, 56 A_UINT32 targ_buf,
57 A_UINT32 targ_reply_fn, 57 A_UINT32 targ_reply_fn,
diff --git a/drivers/staging/ath6kl/include/hif.h b/drivers/staging/ath6kl/include/hif.h
index 6a4d2700705..06ddb688392 100644
--- a/drivers/staging/ath6kl/include/hif.h
+++ b/drivers/staging/ath6kl/include/hif.h
@@ -271,7 +271,7 @@ typedef struct {
271 271
272 272
273typedef struct _HIF_SCATTER_ITEM { 273typedef struct _HIF_SCATTER_ITEM {
274 A_UINT8 *pBuffer; /* CPU accessible address of buffer */ 274 u8 *pBuffer; /* CPU accessible address of buffer */
275 int Length; /* length of transfer to/from this buffer */ 275 int Length; /* length of transfer to/from this buffer */
276 void *pCallerContexts[2]; /* space for caller to insert a context associated with this item */ 276 void *pCallerContexts[2]; /* space for caller to insert a context associated with this item */
277} HIF_SCATTER_ITEM; 277} HIF_SCATTER_ITEM;
@@ -298,7 +298,7 @@ typedef struct _HIF_SCATTER_REQ {
298 int ValidScatterEntries; /* number of valid entries set by caller */ 298 int ValidScatterEntries; /* number of valid entries set by caller */
299 HIF_SCATTER_METHOD ScatterMethod; /* scatter method handled by HIF */ 299 HIF_SCATTER_METHOD ScatterMethod; /* scatter method handled by HIF */
300 void *HIFPrivate[4]; /* HIF private area */ 300 void *HIFPrivate[4]; /* HIF private area */
301 A_UINT8 *pScatterBounceBuffer; /* bounce buffer for upper layers to copy to/from */ 301 u8 *pScatterBounceBuffer; /* bounce buffer for upper layers to copy to/from */
302 HIF_SCATTER_ITEM ScatterList[1]; /* start of scatter list */ 302 HIF_SCATTER_ITEM ScatterList[1]; /* start of scatter list */
303} HIF_SCATTER_REQ; 303} HIF_SCATTER_REQ;
304 304
diff --git a/drivers/staging/ath6kl/include/htc_api.h b/drivers/staging/ath6kl/include/htc_api.h
index d9d4e2e7196..9059f249856 100644
--- a/drivers/staging/ath6kl/include/htc_api.h
+++ b/drivers/staging/ath6kl/include/htc_api.h
@@ -142,8 +142,8 @@ typedef struct _HTC_EP_CALLBACKS {
142typedef struct _HTC_SERVICE_CONNECT_REQ { 142typedef struct _HTC_SERVICE_CONNECT_REQ {
143 HTC_SERVICE_ID ServiceID; /* service ID to connect to */ 143 HTC_SERVICE_ID ServiceID; /* service ID to connect to */
144 A_UINT16 ConnectionFlags; /* connection flags, see htc protocol definition */ 144 A_UINT16 ConnectionFlags; /* connection flags, see htc protocol definition */
145 A_UINT8 *pMetaData; /* ptr to optional service-specific meta-data */ 145 u8 *pMetaData; /* ptr to optional service-specific meta-data */
146 A_UINT8 MetaDataLength; /* optional meta data length */ 146 u8 MetaDataLength; /* optional meta data length */
147 HTC_EP_CALLBACKS EpCallbacks; /* endpoint callbacks */ 147 HTC_EP_CALLBACKS EpCallbacks; /* endpoint callbacks */
148 int MaxSendQueueDepth; /* maximum depth of any send queue */ 148 int MaxSendQueueDepth; /* maximum depth of any send queue */
149 A_UINT32 LocalConnectionFlags; /* HTC flags for the host-side (local) connection */ 149 A_UINT32 LocalConnectionFlags; /* HTC flags for the host-side (local) connection */
@@ -154,12 +154,12 @@ typedef struct _HTC_SERVICE_CONNECT_REQ {
154 154
155/* service connection response information */ 155/* service connection response information */
156typedef struct _HTC_SERVICE_CONNECT_RESP { 156typedef struct _HTC_SERVICE_CONNECT_RESP {
157 A_UINT8 *pMetaData; /* caller supplied buffer to optional meta-data */ 157 u8 *pMetaData; /* caller supplied buffer to optional meta-data */
158 A_UINT8 BufferLength; /* length of caller supplied buffer */ 158 u8 BufferLength; /* length of caller supplied buffer */
159 A_UINT8 ActualLength; /* actual length of meta data */ 159 u8 ActualLength; /* actual length of meta data */
160 HTC_ENDPOINT_ID Endpoint; /* endpoint to communicate over */ 160 HTC_ENDPOINT_ID Endpoint; /* endpoint to communicate over */
161 unsigned int MaxMsgLength; /* max length of all messages over this endpoint */ 161 unsigned int MaxMsgLength; /* max length of all messages over this endpoint */
162 A_UINT8 ConnectRespCode; /* connect response code from target */ 162 u8 ConnectRespCode; /* connect response code from target */
163} HTC_SERVICE_CONNECT_RESP; 163} HTC_SERVICE_CONNECT_RESP;
164 164
165/* endpoint distribution structure */ 165/* endpoint distribution structure */
diff --git a/drivers/staging/ath6kl/include/htc_packet.h b/drivers/staging/ath6kl/include/htc_packet.h
index 243268c9d51..55914efd4be 100644
--- a/drivers/staging/ath6kl/include/htc_packet.h
+++ b/drivers/staging/ath6kl/include/htc_packet.h
@@ -51,7 +51,7 @@ typedef A_UINT16 HTC_TX_TAG;
51typedef struct _HTC_TX_PACKET_INFO { 51typedef struct _HTC_TX_PACKET_INFO {
52 HTC_TX_TAG Tag; /* tag used to selective flush packets */ 52 HTC_TX_TAG Tag; /* tag used to selective flush packets */
53 int CreditsUsed; /* number of credits used for this TX packet (HTC internal) */ 53 int CreditsUsed; /* number of credits used for this TX packet (HTC internal) */
54 A_UINT8 SendFlags; /* send flags (HTC internal) */ 54 u8 SendFlags; /* send flags (HTC internal) */
55 int SeqNo; /* internal seq no for debugging (HTC internal) */ 55 int SeqNo; /* internal seq no for debugging (HTC internal) */
56} HTC_TX_PACKET_INFO; 56} HTC_TX_PACKET_INFO;
57 57
@@ -72,7 +72,7 @@ typedef struct _HTC_PACKET {
72 DL_LIST ListLink; /* double link */ 72 DL_LIST ListLink; /* double link */
73 void *pPktContext; /* caller's per packet specific context */ 73 void *pPktContext; /* caller's per packet specific context */
74 74
75 A_UINT8 *pBufferStart; /* the true buffer start , the caller can 75 u8 *pBufferStart; /* the true buffer start , the caller can
76 store the real buffer start here. In 76 store the real buffer start here. In
77 receive callbacks, the HTC layer sets pBuffer 77 receive callbacks, the HTC layer sets pBuffer
78 to the start of the payload past the header. This 78 to the start of the payload past the header. This
@@ -85,7 +85,7 @@ typedef struct _HTC_PACKET {
85 * points to the start of the HTC header but when returned 85 * points to the start of the HTC header but when returned
86 * to the caller points to the start of the payload 86 * to the caller points to the start of the payload
87 */ 87 */
88 A_UINT8 *pBuffer; /* payload start (RX/TX) */ 88 u8 *pBuffer; /* payload start (RX/TX) */
89 A_UINT32 BufferLength; /* length of buffer */ 89 A_UINT32 BufferLength; /* length of buffer */
90 A_UINT32 ActualLength; /* actual length of payload */ 90 A_UINT32 ActualLength; /* actual length of payload */
91 HTC_ENDPOINT_ID Endpoint; /* endpoint that this packet was sent/recv'd from */ 91 HTC_ENDPOINT_ID Endpoint; /* endpoint that this packet was sent/recv'd from */
diff --git a/drivers/staging/ath6kl/include/wlan_api.h b/drivers/staging/ath6kl/include/wlan_api.h
index 5114ff8bc17..bbc9b1f1982 100644
--- a/drivers/staging/ath6kl/include/wlan_api.h
+++ b/drivers/staging/ath6kl/include/wlan_api.h
@@ -36,38 +36,38 @@ struct ieee80211_frame;
36 36
37struct ieee80211_common_ie { 37struct ieee80211_common_ie {
38 A_UINT16 ie_chan; 38 A_UINT16 ie_chan;
39 A_UINT8 *ie_tstamp; 39 u8 *ie_tstamp;
40 A_UINT8 *ie_ssid; 40 u8 *ie_ssid;
41 A_UINT8 *ie_rates; 41 u8 *ie_rates;
42 A_UINT8 *ie_xrates; 42 u8 *ie_xrates;
43 A_UINT8 *ie_country; 43 u8 *ie_country;
44 A_UINT8 *ie_wpa; 44 u8 *ie_wpa;
45 A_UINT8 *ie_rsn; 45 u8 *ie_rsn;
46 A_UINT8 *ie_wmm; 46 u8 *ie_wmm;
47 A_UINT8 *ie_ath; 47 u8 *ie_ath;
48 A_UINT16 ie_capInfo; 48 A_UINT16 ie_capInfo;
49 A_UINT16 ie_beaconInt; 49 A_UINT16 ie_beaconInt;
50 A_UINT8 *ie_tim; 50 u8 *ie_tim;
51 A_UINT8 *ie_chswitch; 51 u8 *ie_chswitch;
52 A_UINT8 ie_erp; 52 u8 ie_erp;
53 A_UINT8 *ie_wsc; 53 u8 *ie_wsc;
54 A_UINT8 *ie_htcap; 54 u8 *ie_htcap;
55 A_UINT8 *ie_htop; 55 u8 *ie_htop;
56#ifdef WAPI_ENABLE 56#ifdef WAPI_ENABLE
57 A_UINT8 *ie_wapi; 57 u8 *ie_wapi;
58#endif 58#endif
59}; 59};
60 60
61typedef struct bss { 61typedef struct bss {
62 A_UINT8 ni_macaddr[6]; 62 u8 ni_macaddr[6];
63 A_UINT8 ni_snr; 63 u8 ni_snr;
64 A_INT16 ni_rssi; 64 A_INT16 ni_rssi;
65 struct bss *ni_list_next; 65 struct bss *ni_list_next;
66 struct bss *ni_list_prev; 66 struct bss *ni_list_prev;
67 struct bss *ni_hash_next; 67 struct bss *ni_hash_next;
68 struct bss *ni_hash_prev; 68 struct bss *ni_hash_prev;
69 struct ieee80211_common_ie ni_cie; 69 struct ieee80211_common_ie ni_cie;
70 A_UINT8 *ni_buf; 70 u8 *ni_buf;
71 A_UINT16 ni_framelen; 71 A_UINT16 ni_framelen;
72 struct ieee80211_node_table *ni_table; 72 struct ieee80211_node_table *ni_table;
73 A_UINT32 ni_refcnt; 73 A_UINT32 ni_refcnt;
@@ -85,8 +85,8 @@ typedef void wlan_node_iter_func(void *arg, bss_t *);
85bss_t *wlan_node_alloc(struct ieee80211_node_table *nt, int wh_size); 85bss_t *wlan_node_alloc(struct ieee80211_node_table *nt, int wh_size);
86void wlan_node_free(bss_t *ni); 86void wlan_node_free(bss_t *ni);
87void wlan_setup_node(struct ieee80211_node_table *nt, bss_t *ni, 87void wlan_setup_node(struct ieee80211_node_table *nt, bss_t *ni,
88 const A_UINT8 *macaddr); 88 const u8 *macaddr);
89bss_t *wlan_find_node(struct ieee80211_node_table *nt, const A_UINT8 *macaddr); 89bss_t *wlan_find_node(struct ieee80211_node_table *nt, const u8 *macaddr);
90void wlan_node_reclaim(struct ieee80211_node_table *nt, bss_t *ni); 90void wlan_node_reclaim(struct ieee80211_node_table *nt, bss_t *ni);
91void wlan_free_allnodes(struct ieee80211_node_table *nt); 91void wlan_free_allnodes(struct ieee80211_node_table *nt);
92void wlan_iterate_nodes(struct ieee80211_node_table *nt, wlan_node_iter_func *f, 92void wlan_iterate_nodes(struct ieee80211_node_table *nt, wlan_node_iter_func *f,
@@ -96,7 +96,7 @@ void wlan_node_table_init(void *wmip, struct ieee80211_node_table *nt);
96void wlan_node_table_reset(struct ieee80211_node_table *nt); 96void wlan_node_table_reset(struct ieee80211_node_table *nt);
97void wlan_node_table_cleanup(struct ieee80211_node_table *nt); 97void wlan_node_table_cleanup(struct ieee80211_node_table *nt);
98 98
99int wlan_parse_beacon(A_UINT8 *buf, int framelen, 99int wlan_parse_beacon(u8 *buf, int framelen,
100 struct ieee80211_common_ie *cie); 100 struct ieee80211_common_ie *cie);
101 101
102A_UINT16 wlan_ieee2freq(int chan); 102A_UINT16 wlan_ieee2freq(int chan);
@@ -114,7 +114,7 @@ wlan_find_Ssidnode (struct ieee80211_node_table *nt, A_UCHAR *pSsid,
114void 114void
115wlan_node_return (struct ieee80211_node_table *nt, bss_t *ni); 115wlan_node_return (struct ieee80211_node_table *nt, bss_t *ni);
116 116
117bss_t *wlan_node_remove(struct ieee80211_node_table *nt, A_UINT8 *bssid); 117bss_t *wlan_node_remove(struct ieee80211_node_table *nt, u8 *bssid);
118 118
119bss_t * 119bss_t *
120wlan_find_matching_Ssidnode (struct ieee80211_node_table *nt, A_UCHAR *pSsid, 120wlan_find_matching_Ssidnode (struct ieee80211_node_table *nt, A_UCHAR *pSsid,
diff --git a/drivers/staging/ath6kl/include/wmi_api.h b/drivers/staging/ath6kl/include/wmi_api.h
index ae720a07320..3f622100e9b 100644
--- a/drivers/staging/ath6kl/include/wmi_api.h
+++ b/drivers/staging/ath6kl/include/wmi_api.h
@@ -69,9 +69,9 @@ void wmi_qos_state_init(struct wmi_t *wmip);
69void wmi_shutdown(struct wmi_t *wmip); 69void wmi_shutdown(struct wmi_t *wmip);
70HTC_ENDPOINT_ID wmi_get_control_ep(struct wmi_t * wmip); 70HTC_ENDPOINT_ID wmi_get_control_ep(struct wmi_t * wmip);
71void wmi_set_control_ep(struct wmi_t * wmip, HTC_ENDPOINT_ID eid); 71void wmi_set_control_ep(struct wmi_t * wmip, HTC_ENDPOINT_ID eid);
72A_UINT16 wmi_get_mapped_qos_queue(struct wmi_t *, A_UINT8); 72A_UINT16 wmi_get_mapped_qos_queue(struct wmi_t *, u8 );
73int wmi_dix_2_dot3(struct wmi_t *wmip, void *osbuf); 73int wmi_dix_2_dot3(struct wmi_t *wmip, void *osbuf);
74int wmi_data_hdr_add(struct wmi_t *wmip, void *osbuf, A_UINT8 msgType, bool bMoreData, WMI_DATA_HDR_DATA_TYPE data_type,A_UINT8 metaVersion, void *pTxMetaS); 74int wmi_data_hdr_add(struct wmi_t *wmip, void *osbuf, u8 msgType, bool bMoreData, WMI_DATA_HDR_DATA_TYPE data_type,u8 metaVersion, void *pTxMetaS);
75int wmi_dot3_2_dix(void *osbuf); 75int wmi_dot3_2_dix(void *osbuf);
76 76
77int wmi_dot11_hdr_remove (struct wmi_t *wmip, void *osbuf); 77int wmi_dot11_hdr_remove (struct wmi_t *wmip, void *osbuf);
@@ -80,15 +80,15 @@ int wmi_dot11_hdr_add(struct wmi_t *wmip, void *osbuf, NETWORK_TYPE mode);
80int wmi_data_hdr_remove(struct wmi_t *wmip, void *osbuf); 80int wmi_data_hdr_remove(struct wmi_t *wmip, void *osbuf);
81int wmi_syncpoint(struct wmi_t *wmip); 81int wmi_syncpoint(struct wmi_t *wmip);
82int wmi_syncpoint_reset(struct wmi_t *wmip); 82int wmi_syncpoint_reset(struct wmi_t *wmip);
83A_UINT8 wmi_implicit_create_pstream(struct wmi_t *wmip, void *osbuf, A_UINT32 layer2Priority, bool wmmEnabled); 83u8 wmi_implicit_create_pstream(struct wmi_t *wmip, void *osbuf, A_UINT32 layer2Priority, bool wmmEnabled);
84 84
85A_UINT8 wmi_determine_userPriority (A_UINT8 *pkt, A_UINT32 layer2Pri); 85u8 wmi_determine_userPriority (u8 *pkt, A_UINT32 layer2Pri);
86 86
87int wmi_control_rx(struct wmi_t *wmip, void *osbuf); 87int wmi_control_rx(struct wmi_t *wmip, void *osbuf);
88void wmi_iterate_nodes(struct wmi_t *wmip, wlan_node_iter_func *f, void *arg); 88void wmi_iterate_nodes(struct wmi_t *wmip, wlan_node_iter_func *f, void *arg);
89void wmi_free_allnodes(struct wmi_t *wmip); 89void wmi_free_allnodes(struct wmi_t *wmip);
90bss_t *wmi_find_node(struct wmi_t *wmip, const A_UINT8 *macaddr); 90bss_t *wmi_find_node(struct wmi_t *wmip, const u8 *macaddr);
91void wmi_free_node(struct wmi_t *wmip, const A_UINT8 *macaddr); 91void wmi_free_node(struct wmi_t *wmip, const u8 *macaddr);
92 92
93 93
94typedef enum { 94typedef enum {
@@ -107,17 +107,17 @@ int wmi_connect_cmd(struct wmi_t *wmip,
107 DOT11_AUTH_MODE dot11AuthMode, 107 DOT11_AUTH_MODE dot11AuthMode,
108 AUTH_MODE authMode, 108 AUTH_MODE authMode,
109 CRYPTO_TYPE pairwiseCrypto, 109 CRYPTO_TYPE pairwiseCrypto,
110 A_UINT8 pairwiseCryptoLen, 110 u8 pairwiseCryptoLen,
111 CRYPTO_TYPE groupCrypto, 111 CRYPTO_TYPE groupCrypto,
112 A_UINT8 groupCryptoLen, 112 u8 groupCryptoLen,
113 int ssidLength, 113 int ssidLength,
114 A_UCHAR *ssid, 114 A_UCHAR *ssid,
115 A_UINT8 *bssid, 115 u8 *bssid,
116 A_UINT16 channel, 116 A_UINT16 channel,
117 A_UINT32 ctrl_flags); 117 A_UINT32 ctrl_flags);
118 118
119int wmi_reconnect_cmd(struct wmi_t *wmip, 119int wmi_reconnect_cmd(struct wmi_t *wmip,
120 A_UINT8 *bssid, 120 u8 *bssid,
121 A_UINT16 channel); 121 A_UINT16 channel);
122int wmi_disconnect_cmd(struct wmi_t *wmip); 122int wmi_disconnect_cmd(struct wmi_t *wmip);
123int wmi_getrev_cmd(struct wmi_t *wmip); 123int wmi_getrev_cmd(struct wmi_t *wmip);
@@ -129,36 +129,36 @@ int wmi_scanparams_cmd(struct wmi_t *wmip, A_UINT16 fg_start_sec,
129 A_UINT16 fg_end_sec, A_UINT16 bg_sec, 129 A_UINT16 fg_end_sec, A_UINT16 bg_sec,
130 A_UINT16 minact_chdw_msec, 130 A_UINT16 minact_chdw_msec,
131 A_UINT16 maxact_chdw_msec, A_UINT16 pas_chdw_msec, 131 A_UINT16 maxact_chdw_msec, A_UINT16 pas_chdw_msec,
132 A_UINT8 shScanRatio, A_UINT8 scanCtrlFlags, 132 u8 shScanRatio, u8 scanCtrlFlags,
133 A_UINT32 max_dfsch_act_time, 133 A_UINT32 max_dfsch_act_time,
134 A_UINT16 maxact_scan_per_ssid); 134 A_UINT16 maxact_scan_per_ssid);
135int wmi_bssfilter_cmd(struct wmi_t *wmip, A_UINT8 filter, A_UINT32 ieMask); 135int wmi_bssfilter_cmd(struct wmi_t *wmip, u8 filter, A_UINT32 ieMask);
136int wmi_probedSsid_cmd(struct wmi_t *wmip, A_UINT8 index, A_UINT8 flag, 136int wmi_probedSsid_cmd(struct wmi_t *wmip, u8 index, u8 flag,
137 A_UINT8 ssidLength, A_UCHAR *ssid); 137 u8 ssidLength, A_UCHAR *ssid);
138int wmi_listeninterval_cmd(struct wmi_t *wmip, A_UINT16 listenInterval, A_UINT16 listenBeacons); 138int wmi_listeninterval_cmd(struct wmi_t *wmip, A_UINT16 listenInterval, A_UINT16 listenBeacons);
139int wmi_bmisstime_cmd(struct wmi_t *wmip, A_UINT16 bmisstime, A_UINT16 bmissbeacons); 139int wmi_bmisstime_cmd(struct wmi_t *wmip, A_UINT16 bmisstime, A_UINT16 bmissbeacons);
140int wmi_associnfo_cmd(struct wmi_t *wmip, A_UINT8 ieType, 140int wmi_associnfo_cmd(struct wmi_t *wmip, u8 ieType,
141 A_UINT8 ieLen, A_UINT8 *ieInfo); 141 u8 ieLen, u8 *ieInfo);
142int wmi_powermode_cmd(struct wmi_t *wmip, A_UINT8 powerMode); 142int wmi_powermode_cmd(struct wmi_t *wmip, u8 powerMode);
143int wmi_ibsspmcaps_cmd(struct wmi_t *wmip, A_UINT8 pmEnable, A_UINT8 ttl, 143int wmi_ibsspmcaps_cmd(struct wmi_t *wmip, u8 pmEnable, u8 ttl,
144 A_UINT16 atim_windows, A_UINT16 timeout_value); 144 A_UINT16 atim_windows, A_UINT16 timeout_value);
145int wmi_apps_cmd(struct wmi_t *wmip, A_UINT8 psType, A_UINT32 idle_time, 145int wmi_apps_cmd(struct wmi_t *wmip, u8 psType, A_UINT32 idle_time,
146 A_UINT32 ps_period, A_UINT8 sleep_period); 146 A_UINT32 ps_period, u8 sleep_period);
147int wmi_pmparams_cmd(struct wmi_t *wmip, A_UINT16 idlePeriod, 147int wmi_pmparams_cmd(struct wmi_t *wmip, A_UINT16 idlePeriod,
148 A_UINT16 psPollNum, A_UINT16 dtimPolicy, 148 A_UINT16 psPollNum, A_UINT16 dtimPolicy,
149 A_UINT16 wakup_tx_policy, A_UINT16 num_tx_to_wakeup, 149 A_UINT16 wakup_tx_policy, A_UINT16 num_tx_to_wakeup,
150 A_UINT16 ps_fail_event_policy); 150 A_UINT16 ps_fail_event_policy);
151int wmi_disctimeout_cmd(struct wmi_t *wmip, A_UINT8 timeout); 151int wmi_disctimeout_cmd(struct wmi_t *wmip, u8 timeout);
152int wmi_sync_cmd(struct wmi_t *wmip, A_UINT8 syncNumber); 152int wmi_sync_cmd(struct wmi_t *wmip, u8 syncNumber);
153int wmi_create_pstream_cmd(struct wmi_t *wmip, WMI_CREATE_PSTREAM_CMD *pstream); 153int wmi_create_pstream_cmd(struct wmi_t *wmip, WMI_CREATE_PSTREAM_CMD *pstream);
154int wmi_delete_pstream_cmd(struct wmi_t *wmip, A_UINT8 trafficClass, A_UINT8 streamID); 154int wmi_delete_pstream_cmd(struct wmi_t *wmip, u8 trafficClass, u8 streamID);
155int wmi_set_framerate_cmd(struct wmi_t *wmip, A_UINT8 bEnable, A_UINT8 type, A_UINT8 subType, A_UINT16 rateMask); 155int wmi_set_framerate_cmd(struct wmi_t *wmip, u8 bEnable, u8 type, u8 subType, A_UINT16 rateMask);
156int wmi_set_bitrate_cmd(struct wmi_t *wmip, A_INT32 dataRate, A_INT32 mgmtRate, A_INT32 ctlRate); 156int wmi_set_bitrate_cmd(struct wmi_t *wmip, A_INT32 dataRate, A_INT32 mgmtRate, A_INT32 ctlRate);
157int wmi_get_bitrate_cmd(struct wmi_t *wmip); 157int wmi_get_bitrate_cmd(struct wmi_t *wmip);
158A_INT8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, A_INT8 *rate_idx); 158A_INT8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, A_INT8 *rate_idx);
159int wmi_get_regDomain_cmd(struct wmi_t *wmip); 159int wmi_get_regDomain_cmd(struct wmi_t *wmip);
160int wmi_get_channelList_cmd(struct wmi_t *wmip); 160int wmi_get_channelList_cmd(struct wmi_t *wmip);
161int wmi_set_channelParams_cmd(struct wmi_t *wmip, A_UINT8 scanParam, 161int wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam,
162 WMI_PHY_MODE mode, A_INT8 numChan, 162 WMI_PHY_MODE mode, A_INT8 numChan,
163 A_UINT16 *channelList); 163 A_UINT16 *channelList);
164 164
@@ -170,7 +170,7 @@ int wmi_clr_rssi_snr(struct wmi_t *wmip);
170int wmi_set_lq_threshold_params(struct wmi_t *wmip, 170int wmi_set_lq_threshold_params(struct wmi_t *wmip,
171 WMI_LQ_THRESHOLD_PARAMS_CMD *lqCmd); 171 WMI_LQ_THRESHOLD_PARAMS_CMD *lqCmd);
172int wmi_set_rts_cmd(struct wmi_t *wmip, A_UINT16 threshold); 172int wmi_set_rts_cmd(struct wmi_t *wmip, A_UINT16 threshold);
173int wmi_set_lpreamble_cmd(struct wmi_t *wmip, A_UINT8 status, A_UINT8 preamblePolicy); 173int wmi_set_lpreamble_cmd(struct wmi_t *wmip, u8 status, u8 preamblePolicy);
174 174
175int wmi_set_error_report_bitmask(struct wmi_t *wmip, A_UINT32 bitmask); 175int wmi_set_error_report_bitmask(struct wmi_t *wmip, A_UINT32 bitmask);
176 176
@@ -183,64 +183,64 @@ int wmi_config_debug_module_cmd(struct wmi_t *wmip, A_UINT16 mmask,
183 183
184int wmi_get_stats_cmd(struct wmi_t *wmip); 184int wmi_get_stats_cmd(struct wmi_t *wmip);
185 185
186int wmi_addKey_cmd(struct wmi_t *wmip, A_UINT8 keyIndex, 186int wmi_addKey_cmd(struct wmi_t *wmip, u8 keyIndex,
187 CRYPTO_TYPE keyType, A_UINT8 keyUsage, 187 CRYPTO_TYPE keyType, u8 keyUsage,
188 A_UINT8 keyLength,A_UINT8 *keyRSC, 188 u8 keyLength,u8 *keyRSC,
189 A_UINT8 *keyMaterial, A_UINT8 key_op_ctrl, A_UINT8 *mac, 189 u8 *keyMaterial, u8 key_op_ctrl, u8 *mac,
190 WMI_SYNC_FLAG sync_flag); 190 WMI_SYNC_FLAG sync_flag);
191int wmi_add_krk_cmd(struct wmi_t *wmip, A_UINT8 *krk); 191int wmi_add_krk_cmd(struct wmi_t *wmip, u8 *krk);
192int wmi_delete_krk_cmd(struct wmi_t *wmip); 192int wmi_delete_krk_cmd(struct wmi_t *wmip);
193int wmi_deleteKey_cmd(struct wmi_t *wmip, A_UINT8 keyIndex); 193int wmi_deleteKey_cmd(struct wmi_t *wmip, u8 keyIndex);
194int wmi_set_akmp_params_cmd(struct wmi_t *wmip, 194int wmi_set_akmp_params_cmd(struct wmi_t *wmip,
195 WMI_SET_AKMP_PARAMS_CMD *akmpParams); 195 WMI_SET_AKMP_PARAMS_CMD *akmpParams);
196int wmi_get_pmkid_list_cmd(struct wmi_t *wmip); 196int wmi_get_pmkid_list_cmd(struct wmi_t *wmip);
197int wmi_set_pmkid_list_cmd(struct wmi_t *wmip, 197int wmi_set_pmkid_list_cmd(struct wmi_t *wmip,
198 WMI_SET_PMKID_LIST_CMD *pmkInfo); 198 WMI_SET_PMKID_LIST_CMD *pmkInfo);
199int wmi_abort_scan_cmd(struct wmi_t *wmip); 199int wmi_abort_scan_cmd(struct wmi_t *wmip);
200int wmi_set_txPwr_cmd(struct wmi_t *wmip, A_UINT8 dbM); 200int wmi_set_txPwr_cmd(struct wmi_t *wmip, u8 dbM);
201int wmi_get_txPwr_cmd(struct wmi_t *wmip); 201int wmi_get_txPwr_cmd(struct wmi_t *wmip);
202int wmi_addBadAp_cmd(struct wmi_t *wmip, A_UINT8 apIndex, A_UINT8 *bssid); 202int wmi_addBadAp_cmd(struct wmi_t *wmip, u8 apIndex, u8 *bssid);
203int wmi_deleteBadAp_cmd(struct wmi_t *wmip, A_UINT8 apIndex); 203int wmi_deleteBadAp_cmd(struct wmi_t *wmip, u8 apIndex);
204int wmi_set_tkip_countermeasures_cmd(struct wmi_t *wmip, bool en); 204int wmi_set_tkip_countermeasures_cmd(struct wmi_t *wmip, bool en);
205int wmi_setPmkid_cmd(struct wmi_t *wmip, A_UINT8 *bssid, A_UINT8 *pmkId, 205int wmi_setPmkid_cmd(struct wmi_t *wmip, u8 *bssid, u8 *pmkId,
206 bool set); 206 bool set);
207int wmi_set_access_params_cmd(struct wmi_t *wmip, A_UINT8 ac, A_UINT16 txop, 207int wmi_set_access_params_cmd(struct wmi_t *wmip, u8 ac, A_UINT16 txop,
208 A_UINT8 eCWmin, A_UINT8 eCWmax, 208 u8 eCWmin, u8 eCWmax,
209 A_UINT8 aifsn); 209 u8 aifsn);
210int wmi_set_retry_limits_cmd(struct wmi_t *wmip, A_UINT8 frameType, 210int wmi_set_retry_limits_cmd(struct wmi_t *wmip, u8 frameType,
211 A_UINT8 trafficClass, A_UINT8 maxRetries, 211 u8 trafficClass, u8 maxRetries,
212 A_UINT8 enableNotify); 212 u8 enableNotify);
213 213
214void wmi_get_current_bssid(struct wmi_t *wmip, A_UINT8 *bssid); 214void wmi_get_current_bssid(struct wmi_t *wmip, u8 *bssid);
215 215
216int wmi_get_roam_tbl_cmd(struct wmi_t *wmip); 216int wmi_get_roam_tbl_cmd(struct wmi_t *wmip);
217int wmi_get_roam_data_cmd(struct wmi_t *wmip, A_UINT8 roamDataType); 217int wmi_get_roam_data_cmd(struct wmi_t *wmip, u8 roamDataType);
218int wmi_set_roam_ctrl_cmd(struct wmi_t *wmip, WMI_SET_ROAM_CTRL_CMD *p, 218int wmi_set_roam_ctrl_cmd(struct wmi_t *wmip, WMI_SET_ROAM_CTRL_CMD *p,
219 A_UINT8 size); 219 u8 size);
220int wmi_set_powersave_timers_cmd(struct wmi_t *wmip, 220int wmi_set_powersave_timers_cmd(struct wmi_t *wmip,
221 WMI_POWERSAVE_TIMERS_POLICY_CMD *pCmd, 221 WMI_POWERSAVE_TIMERS_POLICY_CMD *pCmd,
222 A_UINT8 size); 222 u8 size);
223 223
224int wmi_set_opt_mode_cmd(struct wmi_t *wmip, A_UINT8 optMode); 224int wmi_set_opt_mode_cmd(struct wmi_t *wmip, u8 optMode);
225int wmi_opt_tx_frame_cmd(struct wmi_t *wmip, 225int wmi_opt_tx_frame_cmd(struct wmi_t *wmip,
226 A_UINT8 frmType, 226 u8 frmType,
227 A_UINT8 *dstMacAddr, 227 u8 *dstMacAddr,
228 A_UINT8 *bssid, 228 u8 *bssid,
229 A_UINT16 optIEDataLen, 229 A_UINT16 optIEDataLen,
230 A_UINT8 *optIEData); 230 u8 *optIEData);
231 231
232int wmi_set_adhoc_bconIntvl_cmd(struct wmi_t *wmip, A_UINT16 intvl); 232int wmi_set_adhoc_bconIntvl_cmd(struct wmi_t *wmip, A_UINT16 intvl);
233int wmi_set_voice_pkt_size_cmd(struct wmi_t *wmip, A_UINT16 voicePktSize); 233int wmi_set_voice_pkt_size_cmd(struct wmi_t *wmip, A_UINT16 voicePktSize);
234int wmi_set_max_sp_len_cmd(struct wmi_t *wmip, A_UINT8 maxSpLen); 234int wmi_set_max_sp_len_cmd(struct wmi_t *wmip, u8 maxSpLen);
235A_UINT8 convert_userPriority_to_trafficClass(A_UINT8 userPriority); 235u8 convert_userPriority_to_trafficClass(u8 userPriority);
236A_UINT8 wmi_get_power_mode_cmd(struct wmi_t *wmip); 236u8 wmi_get_power_mode_cmd(struct wmi_t *wmip);
237int wmi_verify_tspec_params(WMI_CREATE_PSTREAM_CMD *pCmd, int tspecCompliance); 237int wmi_verify_tspec_params(WMI_CREATE_PSTREAM_CMD *pCmd, int tspecCompliance);
238 238
239#ifdef CONFIG_HOST_TCMD_SUPPORT 239#ifdef CONFIG_HOST_TCMD_SUPPORT
240int wmi_test_cmd(struct wmi_t *wmip, A_UINT8 *buf, A_UINT32 len); 240int wmi_test_cmd(struct wmi_t *wmip, u8 *buf, A_UINT32 len);
241#endif 241#endif
242 242
243int wmi_set_bt_status_cmd(struct wmi_t *wmip, A_UINT8 streamType, A_UINT8 status); 243int wmi_set_bt_status_cmd(struct wmi_t *wmip, u8 streamType, u8 status);
244int wmi_set_bt_params_cmd(struct wmi_t *wmip, WMI_SET_BT_PARAMS_CMD* cmd); 244int wmi_set_bt_params_cmd(struct wmi_t *wmip, WMI_SET_BT_PARAMS_CMD* cmd);
245 245
246int wmi_set_btcoex_fe_ant_cmd(struct wmi_t *wmip, WMI_SET_BTCOEX_FE_ANT_CMD * cmd); 246int wmi_set_btcoex_fe_ant_cmd(struct wmi_t *wmip, WMI_SET_BTCOEX_FE_ANT_CMD * cmd);
@@ -269,7 +269,7 @@ int wmi_get_btcoex_config_cmd(struct wmi_t * wmip, WMI_GET_BTCOEX_CONFIG_CMD * c
269 269
270int wmi_get_btcoex_stats_cmd(struct wmi_t * wmip); 270int wmi_get_btcoex_stats_cmd(struct wmi_t * wmip);
271 271
272int wmi_SGI_cmd(struct wmi_t *wmip, A_UINT32 sgiMask, A_UINT8 sgiPERThreshold); 272int wmi_SGI_cmd(struct wmi_t *wmip, A_UINT32 sgiMask, u8 sgiPERThreshold);
273 273
274/* 274/*
275 * This function is used to configure the fix rates mask to the target. 275 * This function is used to configure the fix rates mask to the target.
@@ -277,23 +277,23 @@ int wmi_SGI_cmd(struct wmi_t *wmip, A_UINT32 sgiMask, A_UINT8 sgiPERThreshold);
277int wmi_set_fixrates_cmd(struct wmi_t *wmip, A_UINT32 fixRatesMask); 277int wmi_set_fixrates_cmd(struct wmi_t *wmip, A_UINT32 fixRatesMask);
278int wmi_get_ratemask_cmd(struct wmi_t *wmip); 278int wmi_get_ratemask_cmd(struct wmi_t *wmip);
279 279
280int wmi_set_authmode_cmd(struct wmi_t *wmip, A_UINT8 mode); 280int wmi_set_authmode_cmd(struct wmi_t *wmip, u8 mode);
281 281
282int wmi_set_reassocmode_cmd(struct wmi_t *wmip, A_UINT8 mode); 282int wmi_set_reassocmode_cmd(struct wmi_t *wmip, u8 mode);
283 283
284int wmi_set_qos_supp_cmd(struct wmi_t *wmip,A_UINT8 status); 284int wmi_set_qos_supp_cmd(struct wmi_t *wmip,u8 status);
285int wmi_set_wmm_cmd(struct wmi_t *wmip, WMI_WMM_STATUS status); 285int wmi_set_wmm_cmd(struct wmi_t *wmip, WMI_WMM_STATUS status);
286int wmi_set_wmm_txop(struct wmi_t *wmip, WMI_TXOP_CFG txEnable); 286int wmi_set_wmm_txop(struct wmi_t *wmip, WMI_TXOP_CFG txEnable);
287int wmi_set_country(struct wmi_t *wmip, A_UCHAR *countryCode); 287int wmi_set_country(struct wmi_t *wmip, A_UCHAR *countryCode);
288 288
289int wmi_get_keepalive_configured(struct wmi_t *wmip); 289int wmi_get_keepalive_configured(struct wmi_t *wmip);
290A_UINT8 wmi_get_keepalive_cmd(struct wmi_t *wmip); 290u8 wmi_get_keepalive_cmd(struct wmi_t *wmip);
291int wmi_set_keepalive_cmd(struct wmi_t *wmip, A_UINT8 keepaliveInterval); 291int wmi_set_keepalive_cmd(struct wmi_t *wmip, u8 keepaliveInterval);
292 292
293int wmi_set_appie_cmd(struct wmi_t *wmip, A_UINT8 mgmtFrmType, 293int wmi_set_appie_cmd(struct wmi_t *wmip, u8 mgmtFrmType,
294 A_UINT8 ieLen,A_UINT8 *ieInfo); 294 u8 ieLen,u8 *ieInfo);
295 295
296int wmi_set_halparam_cmd(struct wmi_t *wmip, A_UINT8 *cmd, A_UINT16 dataLen); 296int wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, A_UINT16 dataLen);
297 297
298A_INT32 wmi_get_rate(A_INT8 rateindex); 298A_INT32 wmi_get_rate(A_INT8 rateindex);
299 299
@@ -304,7 +304,7 @@ int wmi_set_host_sleep_mode_cmd(struct wmi_t *wmip, WMI_SET_HOST_SLEEP_MODE_CMD
304int wmi_set_wow_mode_cmd(struct wmi_t *wmip, WMI_SET_WOW_MODE_CMD *cmd); 304int wmi_set_wow_mode_cmd(struct wmi_t *wmip, WMI_SET_WOW_MODE_CMD *cmd);
305int wmi_get_wow_list_cmd(struct wmi_t *wmip, WMI_GET_WOW_LIST_CMD *cmd); 305int wmi_get_wow_list_cmd(struct wmi_t *wmip, WMI_GET_WOW_LIST_CMD *cmd);
306int wmi_add_wow_pattern_cmd(struct wmi_t *wmip, 306int wmi_add_wow_pattern_cmd(struct wmi_t *wmip,
307 WMI_ADD_WOW_PATTERN_CMD *cmd, A_UINT8* pattern, A_UINT8* mask, A_UINT8 pattern_size); 307 WMI_ADD_WOW_PATTERN_CMD *cmd, u8 *pattern, u8 *mask, u8 pattern_size);
308int wmi_del_wow_pattern_cmd(struct wmi_t *wmip, 308int wmi_del_wow_pattern_cmd(struct wmi_t *wmip,
309 WMI_DEL_WOW_PATTERN_CMD *cmd); 309 WMI_DEL_WOW_PATTERN_CMD *cmd);
310int wmi_set_wsc_status_cmd(struct wmi_t *wmip, A_UINT32 status); 310int wmi_set_wsc_status_cmd(struct wmi_t *wmip, A_UINT32 status);
@@ -313,13 +313,13 @@ int
313wmi_set_params_cmd(struct wmi_t *wmip, A_UINT32 opcode, A_UINT32 length, char *buffer); 313wmi_set_params_cmd(struct wmi_t *wmip, A_UINT32 opcode, A_UINT32 length, char *buffer);
314 314
315int 315int
316wmi_set_mcast_filter_cmd(struct wmi_t *wmip, A_UINT8 dot1, A_UINT8 dot2, A_UINT8 dot3, A_UINT8 dot4); 316wmi_set_mcast_filter_cmd(struct wmi_t *wmip, u8 dot1, u8 dot2, u8 dot3, u8 dot4);
317 317
318int 318int
319wmi_del_mcast_filter_cmd(struct wmi_t *wmip, A_UINT8 dot1, A_UINT8 dot2, A_UINT8 dot3, A_UINT8 dot4); 319wmi_del_mcast_filter_cmd(struct wmi_t *wmip, u8 dot1, u8 dot2, u8 dot3, u8 dot4);
320 320
321int 321int
322wmi_mcast_filter_cmd(struct wmi_t *wmip, A_UINT8 enable); 322wmi_mcast_filter_cmd(struct wmi_t *wmip, u8 enable);
323 323
324bss_t * 324bss_t *
325wmi_find_Ssidnode (struct wmi_t *wmip, A_UCHAR *pSsid, 325wmi_find_Ssidnode (struct wmi_t *wmip, A_UCHAR *pSsid,
@@ -346,8 +346,8 @@ void wmi_scan_indication (struct wmi_t *wmip);
346int 346int
347wmi_set_target_event_report_cmd(struct wmi_t *wmip, WMI_SET_TARGET_EVENT_REPORT_CMD* cmd); 347wmi_set_target_event_report_cmd(struct wmi_t *wmip, WMI_SET_TARGET_EVENT_REPORT_CMD* cmd);
348 348
349bss_t *wmi_rm_current_bss (struct wmi_t *wmip, A_UINT8 *id); 349bss_t *wmi_rm_current_bss (struct wmi_t *wmip, u8 *id);
350int wmi_add_current_bss (struct wmi_t *wmip, A_UINT8 *id, bss_t *bss); 350int wmi_add_current_bss (struct wmi_t *wmip, u8 *id, bss_t *bss);
351 351
352 352
353/* 353/*
@@ -357,22 +357,21 @@ int
357wmi_ap_profile_commit(struct wmi_t *wmip, WMI_CONNECT_CMD *p); 357wmi_ap_profile_commit(struct wmi_t *wmip, WMI_CONNECT_CMD *p);
358 358
359int 359int
360wmi_ap_set_hidden_ssid(struct wmi_t *wmip, A_UINT8 hidden_ssid); 360wmi_ap_set_hidden_ssid(struct wmi_t *wmip, u8 hidden_ssid);
361 361
362int 362int
363wmi_ap_set_num_sta(struct wmi_t *wmip, A_UINT8 num_sta); 363wmi_ap_set_num_sta(struct wmi_t *wmip, u8 num_sta);
364 364
365int 365int
366wmi_ap_set_acl_policy(struct wmi_t *wmip, A_UINT8 policy); 366wmi_ap_set_acl_policy(struct wmi_t *wmip, u8 policy);
367 367
368int 368int
369wmi_ap_acl_mac_list(struct wmi_t *wmip, WMI_AP_ACL_MAC_CMD *a); 369wmi_ap_acl_mac_list(struct wmi_t *wmip, WMI_AP_ACL_MAC_CMD *a);
370 370
371A_UINT8 371u8 acl_add_del_mac(WMI_AP_ACL *a, WMI_AP_ACL_MAC_CMD *acl);
372acl_add_del_mac(WMI_AP_ACL *a, WMI_AP_ACL_MAC_CMD *acl);
373 372
374int 373int
375wmi_ap_set_mlme(struct wmi_t *wmip, A_UINT8 cmd, A_UINT8 *mac, A_UINT16 reason); 374wmi_ap_set_mlme(struct wmi_t *wmip, u8 cmd, u8 *mac, A_UINT16 reason);
376 375
377int 376int
378wmi_set_pvb_cmd(struct wmi_t *wmip, A_UINT16 aid, bool flag); 377wmi_set_pvb_cmd(struct wmi_t *wmip, A_UINT16 aid, bool flag);
@@ -384,34 +383,34 @@ int
384wmi_ap_bgscan_time(struct wmi_t *wmip, A_UINT32 period, A_UINT32 dwell); 383wmi_ap_bgscan_time(struct wmi_t *wmip, A_UINT32 period, A_UINT32 dwell);
385 384
386int 385int
387wmi_ap_set_dtim(struct wmi_t *wmip, A_UINT8 dtim); 386wmi_ap_set_dtim(struct wmi_t *wmip, u8 dtim);
388 387
389int 388int
390wmi_ap_set_rateset(struct wmi_t *wmip, A_UINT8 rateset); 389wmi_ap_set_rateset(struct wmi_t *wmip, u8 rateset);
391 390
392int 391int
393wmi_set_ht_cap_cmd(struct wmi_t *wmip, WMI_SET_HT_CAP_CMD *cmd); 392wmi_set_ht_cap_cmd(struct wmi_t *wmip, WMI_SET_HT_CAP_CMD *cmd);
394 393
395int 394int
396wmi_set_ht_op_cmd(struct wmi_t *wmip, A_UINT8 sta_chan_width); 395wmi_set_ht_op_cmd(struct wmi_t *wmip, u8 sta_chan_width);
397 396
398int 397int
399wmi_send_hci_cmd(struct wmi_t *wmip, A_UINT8 *buf, A_UINT16 sz); 398wmi_send_hci_cmd(struct wmi_t *wmip, u8 *buf, A_UINT16 sz);
400 399
401int 400int
402wmi_set_tx_select_rates_cmd(struct wmi_t *wmip, A_UINT32 *pMaskArray); 401wmi_set_tx_select_rates_cmd(struct wmi_t *wmip, A_UINT32 *pMaskArray);
403 402
404int 403int
405wmi_setup_aggr_cmd(struct wmi_t *wmip, A_UINT8 tid); 404wmi_setup_aggr_cmd(struct wmi_t *wmip, u8 tid);
406 405
407int 406int
408wmi_delete_aggr_cmd(struct wmi_t *wmip, A_UINT8 tid, bool uplink); 407wmi_delete_aggr_cmd(struct wmi_t *wmip, u8 tid, bool uplink);
409 408
410int 409int
411wmi_allow_aggr_cmd(struct wmi_t *wmip, A_UINT16 tx_tidmask, A_UINT16 rx_tidmask); 410wmi_allow_aggr_cmd(struct wmi_t *wmip, A_UINT16 tx_tidmask, A_UINT16 rx_tidmask);
412 411
413int 412int
414wmi_set_rx_frame_format_cmd(struct wmi_t *wmip, A_UINT8 rxMetaVersion, bool rxDot11Hdr, bool defragOnHost); 413wmi_set_rx_frame_format_cmd(struct wmi_t *wmip, u8 rxMetaVersion, bool rxDot11Hdr, bool defragOnHost);
415 414
416int 415int
417wmi_set_thin_mode_cmd(struct wmi_t *wmip, bool bThinMode); 416wmi_set_thin_mode_cmd(struct wmi_t *wmip, bool bThinMode);
@@ -420,7 +419,7 @@ int
420wmi_set_wlan_conn_precedence_cmd(struct wmi_t *wmip, BT_WLAN_CONN_PRECEDENCE precedence); 419wmi_set_wlan_conn_precedence_cmd(struct wmi_t *wmip, BT_WLAN_CONN_PRECEDENCE precedence);
421 420
422int 421int
423wmi_set_pmk_cmd(struct wmi_t *wmip, A_UINT8 *pmk); 422wmi_set_pmk_cmd(struct wmi_t *wmip, u8 *pmk);
424 423
425A_UINT16 424A_UINT16
426wmi_ieee2freq (int chan); 425wmi_ieee2freq (int chan);