Commit 4853ac05 authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman

staging: ath6kl: Convert A_UINT16 to u16

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ab3655da
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
#define HIF_DEFAULT_IO_BLOCK_SIZE 128 #define HIF_DEFAULT_IO_BLOCK_SIZE 128
/* set extended MBOX window information for SDIO interconnects */ /* set extended MBOX window information for SDIO interconnects */
static INLINE void SetExtendedMboxWindowInfo(A_UINT16 Manfid, HIF_DEVICE_MBOX_INFO *pInfo) static INLINE void SetExtendedMboxWindowInfo(u16 Manfid, HIF_DEVICE_MBOX_INFO *pInfo)
{ {
switch (Manfid & MANUFACTURER_ID_AR6K_BASE_MASK) { switch (Manfid & MANUFACTURER_ID_AR6K_BASE_MASK) {
case MANUFACTURER_ID_AR6002_BASE : case MANUFACTURER_ID_AR6002_BASE :
......
...@@ -507,7 +507,7 @@ int ReinitSDIO(HIF_DEVICE *device) ...@@ -507,7 +507,7 @@ int ReinitSDIO(HIF_DEVICE *device)
do { do {
if (!device->is_suspend) { if (!device->is_suspend) {
A_UINT32 resp; A_UINT32 resp;
A_UINT16 rca; u16 rca;
A_UINT32 i; A_UINT32 i;
int bit = fls(host->ocr_avail) - 1; int bit = fls(host->ocr_avail) - 1;
/* emulate the mmc_power_up(...) */ /* emulate the mmc_power_up(...) */
...@@ -711,7 +711,7 @@ HIFConfigureDevice(HIF_DEVICE *device, HIF_DEVICE_CONFIG_OPCODE opcode, ...@@ -711,7 +711,7 @@ HIFConfigureDevice(HIF_DEVICE *device, HIF_DEVICE_CONFIG_OPCODE opcode,
} }
if (configLen >= sizeof(HIF_DEVICE_MBOX_INFO)) { if (configLen >= sizeof(HIF_DEVICE_MBOX_INFO)) {
SetExtendedMboxWindowInfo((A_UINT16)device->func->device, SetExtendedMboxWindowInfo((u16)device->func->device,
(HIF_DEVICE_MBOX_INFO *)config); (HIF_DEVICE_MBOX_INFO *)config);
} }
......
...@@ -1042,13 +1042,13 @@ static void AssembleBufferList(BUFFER_PROC_LIST *pList) ...@@ -1042,13 +1042,13 @@ static void AssembleBufferList(BUFFER_PROC_LIST *pList)
#define FILL_COUNTING false #define FILL_COUNTING false
static void InitBuffers(bool Zero) static void InitBuffers(bool Zero)
{ {
A_UINT16 *pBuffer16 = (A_UINT16 *)g_Buffer; u16 *pBuffer16 = (u16 *)g_Buffer;
int i; int i;
/* fill buffer with 16 bit counting pattern or zeros */ /* fill buffer with 16 bit counting pattern or zeros */
for (i = 0; i < (TOTAL_BYTES / 2) ; i++) { for (i = 0; i < (TOTAL_BYTES / 2) ; i++) {
if (!Zero) { if (!Zero) {
pBuffer16[i] = (A_UINT16)i; pBuffer16[i] = (u16)i;
} else { } else {
pBuffer16[i] = 0; pBuffer16[i] = 0;
} }
...@@ -1056,10 +1056,10 @@ static void InitBuffers(bool Zero) ...@@ -1056,10 +1056,10 @@ static void InitBuffers(bool Zero)
} }
static bool CheckOneBuffer(A_UINT16 *pBuffer16, int Length) static bool CheckOneBuffer(u16 *pBuffer16, int Length)
{ {
int i; int i;
A_UINT16 startCount; u16 startCount;
bool success = true; bool success = true;
/* get the starting count */ /* get the starting count */
...@@ -1069,10 +1069,10 @@ static bool CheckOneBuffer(A_UINT16 *pBuffer16, int Length) ...@@ -1069,10 +1069,10 @@ static bool CheckOneBuffer(A_UINT16 *pBuffer16, int Length)
/* scan the buffer and verify */ /* scan the buffer and verify */
for (i = 0; i < (Length / 2) ; i++,startCount++) { for (i = 0; i < (Length / 2) ; i++,startCount++) {
/* target will invert all the data */ /* target will invert all the data */
if ((A_UINT16)pBuffer16[i] != (A_UINT16)~startCount) { if ((u16)pBuffer16[i] != (u16)~startCount) {
success = false; success = false;
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Invalid Data Got:0x%X, Expecting:0x%X (offset:%d, total:%d) \n", AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Invalid Data Got:0x%X, Expecting:0x%X (offset:%d, total:%d) \n",
pBuffer16[i], ((A_UINT16)~startCount), i, Length)); pBuffer16[i], ((u16)~startCount), i, Length));
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("0x%X 0x%X 0x%X 0x%X \n", AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("0x%X 0x%X 0x%X 0x%X \n",
pBuffer16[i], pBuffer16[i + 1], pBuffer16[i + 2],pBuffer16[i+3])); pBuffer16[i], pBuffer16[i + 1], pBuffer16[i + 2],pBuffer16[i+3]));
break; break;
...@@ -1093,7 +1093,7 @@ static bool CheckBuffers(void) ...@@ -1093,7 +1093,7 @@ static bool CheckBuffers(void)
/* scan the buffers and verify */ /* scan the buffers and verify */
for (i = 0; i < BUFFER_PROC_LIST_DEPTH ; i++) { for (i = 0; i < BUFFER_PROC_LIST_DEPTH ; i++) {
success = CheckOneBuffer((A_UINT16 *)checkList[i].pBuffer, checkList[i].length); success = CheckOneBuffer((u16 *)checkList[i].pBuffer, checkList[i].length);
if (!success) { if (!success) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Buffer : 0x%X, Length:%d failed verify \n", AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Buffer : 0x%X, Length:%d failed verify \n",
(A_UINT32)checkList[i].pBuffer, checkList[i].length)); (A_UINT32)checkList[i].pBuffer, checkList[i].length));
...@@ -1105,7 +1105,7 @@ static bool CheckBuffers(void) ...@@ -1105,7 +1105,7 @@ static bool CheckBuffers(void)
} }
/* find the end marker for the last buffer we will be sending */ /* find the end marker for the last buffer we will be sending */
static A_UINT16 GetEndMarker(void) static u16 GetEndMarker(void)
{ {
u8 *pBuffer; u8 *pBuffer;
BUFFER_PROC_LIST checkList[BUFFER_PROC_LIST_DEPTH]; BUFFER_PROC_LIST checkList[BUFFER_PROC_LIST_DEPTH];
...@@ -1119,7 +1119,7 @@ static A_UINT16 GetEndMarker(void) ...@@ -1119,7 +1119,7 @@ static A_UINT16 GetEndMarker(void)
pBuffer = &(checkList[BUFFER_PROC_LIST_DEPTH - 1].pBuffer[(checkList[BUFFER_PROC_LIST_DEPTH - 1].length) - 2]); pBuffer = &(checkList[BUFFER_PROC_LIST_DEPTH - 1].pBuffer[(checkList[BUFFER_PROC_LIST_DEPTH - 1].length) - 2]);
/* the last count in the last buffer is the marker */ /* the last count in the last buffer is the marker */
return (A_UINT16)pBuffer[0] | ((A_UINT16)pBuffer[1] << 8); return (u16)pBuffer[0] | ((u16)pBuffer[1] << 8);
} }
#define ATH_PRINT_OUT_ZONE ATH_DEBUG_ERR #define ATH_PRINT_OUT_ZONE ATH_DEBUG_ERR
...@@ -1338,7 +1338,7 @@ int DoMboxHWTest(AR6K_DEVICE *pDev) ...@@ -1338,7 +1338,7 @@ int DoMboxHWTest(AR6K_DEVICE *pDev)
u8 params[4]; u8 params[4];
int numBufs; int numBufs;
int bufferSize; int bufferSize;
A_UINT16 temp; u16 temp;
AR_DEBUG_PRINTF(ATH_PRINT_OUT_ZONE, (" DoMboxHWTest START - \n")); AR_DEBUG_PRINTF(ATH_PRINT_OUT_ZONE, (" DoMboxHWTest START - \n"));
...@@ -1401,7 +1401,7 @@ int DoMboxHWTest(AR6K_DEVICE *pDev) ...@@ -1401,7 +1401,7 @@ int DoMboxHWTest(AR6K_DEVICE *pDev)
} }
numBufs = params[0]; numBufs = params[0];
bufferSize = (int)(((A_UINT16)params[2] << 8) | (A_UINT16)params[1]); bufferSize = (int)(((u16)params[2] << 8) | (u16)params[1]);
AR_DEBUG_PRINTF(ATH_PRINT_OUT_ZONE, AR_DEBUG_PRINTF(ATH_PRINT_OUT_ZONE,
("Target parameters: bufs per mailbox:%d, buffer size:%d bytes (total space: %d, minimum required space (w/padding): %d) \n", ("Target parameters: bufs per mailbox:%d, buffer size:%d bytes (total space: %d, minimum required space (w/padding): %d) \n",
...@@ -1430,7 +1430,7 @@ int DoMboxHWTest(AR6K_DEVICE *pDev) ...@@ -1430,7 +1430,7 @@ int DoMboxHWTest(AR6K_DEVICE *pDev)
AR_DEBUG_PRINTF(ATH_PRINT_OUT_ZONE, ("End Marker: 0x%X \n",temp)); AR_DEBUG_PRINTF(ATH_PRINT_OUT_ZONE, ("End Marker: 0x%X \n",temp));
temp = (A_UINT16)g_BlockSizes[1]; temp = (u16)g_BlockSizes[1];
/* convert to a mask */ /* convert to a mask */
temp = temp - 1; temp = temp - 1;
status = HIFReadWrite(pDev->HIFDevice, status = HIFReadWrite(pDev->HIFDevice,
......
...@@ -178,7 +178,7 @@ void HTCFlushSendPkts(HTC_TARGET *target); ...@@ -178,7 +178,7 @@ void HTCFlushSendPkts(HTC_TARGET *target);
#ifdef ATH_DEBUG_MODULE #ifdef ATH_DEBUG_MODULE
void DumpCreditDist(HTC_ENDPOINT_CREDIT_DIST *pEPDist); void DumpCreditDist(HTC_ENDPOINT_CREDIT_DIST *pEPDist);
void DumpCreditDistStates(HTC_TARGET *target); void DumpCreditDistStates(HTC_TARGET *target);
void DebugDumpBytes(A_UCHAR *buffer, A_UINT16 length, char *pDescription); void DebugDumpBytes(A_UCHAR *buffer, u16 length, char *pDescription);
#endif #endif
static INLINE HTC_PACKET *HTC_ALLOC_CONTROL_TX(HTC_TARGET *target) { static INLINE HTC_PACKET *HTC_ALLOC_CONTROL_TX(HTC_TARGET *target) {
...@@ -203,7 +203,7 @@ static INLINE HTC_PACKET *HTC_ALLOC_CONTROL_TX(HTC_TARGET *target) { ...@@ -203,7 +203,7 @@ static INLINE HTC_PACKET *HTC_ALLOC_CONTROL_TX(HTC_TARGET *target) {
u8 *pHdrBuf; \ u8 *pHdrBuf; \
(pP)->pBuffer -= HTC_HDR_LENGTH; \ (pP)->pBuffer -= HTC_HDR_LENGTH; \
pHdrBuf = (pP)->pBuffer; \ pHdrBuf = (pP)->pBuffer; \
A_SET_UINT16_FIELD(pHdrBuf,HTC_FRAME_HDR,PayloadLen,(A_UINT16)(pP)->ActualLength); \ A_SET_UINT16_FIELD(pHdrBuf,HTC_FRAME_HDR,PayloadLen,(u16)(pP)->ActualLength); \
A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,Flags,(sendflags)); \ A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,Flags,(sendflags)); \
A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,EndpointID, (u8)(pP)->Endpoint); \ A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,EndpointID, (u8)(pP)->Endpoint); \
A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,ControlBytes[0], (u8)(ctrl0)); \ A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,ControlBytes[0], (u8)(ctrl0)); \
......
...@@ -234,7 +234,7 @@ static int HTCProcessRecvHeader(HTC_TARGET *target, ...@@ -234,7 +234,7 @@ static int HTCProcessRecvHeader(HTC_TARGET *target,
u8 temp; u8 temp;
u8 *pBuf; u8 *pBuf;
int status = A_OK; int status = A_OK;
A_UINT16 payloadLen; u16 payloadLen;
A_UINT32 lookAhead; A_UINT32 lookAhead;
pBuf = pPacket->pBuffer; pBuf = pPacket->pBuffer;
......
...@@ -57,7 +57,7 @@ extern "C" { ...@@ -57,7 +57,7 @@ extern "C" {
/* macro to make a module-specific masks */ /* macro to make a module-specific masks */
#define ATH_DEBUG_MAKE_MODULE_MASK(index) (1 << (ATH_DEBUG_MODULE_MASK_SHIFT + (index))) #define ATH_DEBUG_MAKE_MODULE_MASK(index) (1 << (ATH_DEBUG_MODULE_MASK_SHIFT + (index)))
void DebugDumpBytes(A_UCHAR *buffer, A_UINT16 length, char *pDescription); void DebugDumpBytes(A_UCHAR *buffer, u16 length, char *pDescription);
/* Debug support on a per-module basis /* Debug support on a per-module basis
* *
......
...@@ -30,7 +30,7 @@ extern "C" { ...@@ -30,7 +30,7 @@ extern "C" {
typedef void (* RX_CALLBACK)(void * dev, void *osbuf); typedef void (* RX_CALLBACK)(void * dev, void *osbuf);
typedef void (* ALLOC_NETBUFS)(A_NETBUF_QUEUE_T *q, A_UINT16 num); typedef void (* ALLOC_NETBUFS)(A_NETBUF_QUEUE_T *q, u16 num);
/* /*
* aggr_init: * aggr_init:
...@@ -64,7 +64,7 @@ aggr_register_rx_dispatcher(void *cntxt, void * dev, RX_CALLBACK fn); ...@@ -64,7 +64,7 @@ aggr_register_rx_dispatcher(void *cntxt, void * dev, RX_CALLBACK fn);
* up to the indicated sequence number. * up to the indicated sequence number.
*/ */
void void
aggr_process_bar(void *cntxt, u8 tid, A_UINT16 seq_no); aggr_process_bar(void *cntxt, u8 tid, u16 seq_no);
/* /*
...@@ -82,7 +82,7 @@ aggr_process_bar(void *cntxt, u8 tid, A_UINT16 seq_no); ...@@ -82,7 +82,7 @@ aggr_process_bar(void *cntxt, u8 tid, A_UINT16 seq_no);
* in hold_q to OS. * in hold_q to OS.
*/ */
void void
aggr_recv_addba_req_evt(void * cntxt, u8 tid, A_UINT16 seq_no, u8 win_sz); aggr_recv_addba_req_evt(void * cntxt, u8 tid, u16 seq_no, u8 win_sz);
/* /*
...@@ -108,7 +108,7 @@ aggr_recv_delba_req_evt(void * cntxt, u8 tid); ...@@ -108,7 +108,7 @@ aggr_recv_delba_req_evt(void * cntxt, u8 tid);
* callback may be called to deliver frames in order. * callback may be called to deliver frames in order.
*/ */
void void
aggr_process_recv_frm(void *cntxt, u8 tid, A_UINT16 seq_no, bool is_amsdu, void **osbuf); aggr_process_recv_frm(void *cntxt, u8 tid, u16 seq_no, bool is_amsdu, void **osbuf);
/* /*
......
...@@ -45,12 +45,12 @@ typedef struct { ...@@ -45,12 +45,12 @@ typedef struct {
HIF_DEVICE *pHIFDevice; /* HIF layer device */ HIF_DEVICE *pHIFDevice; /* HIF layer device */
A_UINT32 AR3KBaudRate; /* AR3K operational baud rate */ A_UINT32 AR3KBaudRate; /* AR3K operational baud rate */
A_UINT16 AR6KScale; /* AR6K UART scale value */ u16 AR6KScale; /* AR6K UART scale value */
A_UINT16 AR6KStep; /* AR6K UART step value */ u16 AR6KStep; /* AR6K UART step value */
struct hci_dev *pBtStackHCIDev; /* BT Stack HCI dev */ struct hci_dev *pBtStackHCIDev; /* BT Stack HCI dev */
A_UINT32 PwrMgmtEnabled; /* TLPM enabled? */ A_UINT32 PwrMgmtEnabled; /* TLPM enabled? */
A_UINT16 IdleTimeout; /* TLPM idle timeout */ u16 IdleTimeout; /* TLPM idle timeout */
A_UINT16 WakeupTimeout; /* TLPM wakeup timeout */ u16 WakeupTimeout; /* TLPM wakeup timeout */
u8 bdaddr[6]; /* Bluetooth device address */ u8 bdaddr[6]; /* Bluetooth device address */
} AR3K_CONFIG_INFO; } AR3K_CONFIG_INFO;
......
...@@ -242,7 +242,7 @@ typedef enum { ...@@ -242,7 +242,7 @@ typedef enum {
/* Command pkt */ /* Command pkt */
typedef struct hci_cmd_pkt_t { typedef struct hci_cmd_pkt_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
u8 params[255]; u8 params[255];
} POSTPACK HCI_CMD_PKT; } POSTPACK HCI_CMD_PKT;
...@@ -250,8 +250,8 @@ typedef struct hci_cmd_pkt_t { ...@@ -250,8 +250,8 @@ typedef struct hci_cmd_pkt_t {
#define ACL_DATA_HDR_SIZE 4 /* hdl_and flags + data_len */ #define ACL_DATA_HDR_SIZE 4 /* hdl_and flags + data_len */
/* Data pkt */ /* Data pkt */
typedef struct hci_acl_data_pkt_t { typedef struct hci_acl_data_pkt_t {
A_UINT16 hdl_and_flags; u16 hdl_and_flags;
A_UINT16 data_len; u16 data_len;
u8 data[Max80211_PAL_PDU_Size]; u8 data[Max80211_PAL_PDU_Size];
} POSTPACK HCI_ACL_DATA_PKT; } POSTPACK HCI_ACL_DATA_PKT;
...@@ -265,7 +265,7 @@ typedef struct hci_event_pkt_t { ...@@ -265,7 +265,7 @@ typedef struct hci_event_pkt_t {
/*============== HCI Command definitions ======================= */ /*============== HCI Command definitions ======================= */
typedef struct hci_cmd_phy_link_t { typedef struct hci_cmd_phy_link_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
u8 phy_link_hdl; u8 phy_link_hdl;
u8 link_key_len; u8 link_key_len;
...@@ -274,62 +274,62 @@ typedef struct hci_cmd_phy_link_t { ...@@ -274,62 +274,62 @@ typedef struct hci_cmd_phy_link_t {
} POSTPACK HCI_CMD_PHY_LINK; } POSTPACK HCI_CMD_PHY_LINK;
typedef struct hci_cmd_write_rem_amp_assoc_t { typedef struct hci_cmd_write_rem_amp_assoc_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
u8 phy_link_hdl; u8 phy_link_hdl;
A_UINT16 len_so_far; u16 len_so_far;
A_UINT16 amp_assoc_remaining_len; u16 amp_assoc_remaining_len;
u8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ]; u8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ];
} POSTPACK HCI_CMD_WRITE_REM_AMP_ASSOC; } POSTPACK HCI_CMD_WRITE_REM_AMP_ASSOC;
typedef struct hci_cmd_opcode_hdl_t { typedef struct hci_cmd_opcode_hdl_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
A_UINT16 hdl; u16 hdl;
} POSTPACK HCI_CMD_READ_LINK_QUAL, } POSTPACK HCI_CMD_READ_LINK_QUAL,
HCI_CMD_FLUSH, HCI_CMD_FLUSH,
HCI_CMD_READ_LINK_SUPERVISION_TIMEOUT; HCI_CMD_READ_LINK_SUPERVISION_TIMEOUT;
typedef struct hci_cmd_read_local_amp_assoc_t { typedef struct hci_cmd_read_local_amp_assoc_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
u8 phy_link_hdl; u8 phy_link_hdl;
A_UINT16 len_so_far; u16 len_so_far;
A_UINT16 max_rem_amp_assoc_len; u16 max_rem_amp_assoc_len;
} POSTPACK HCI_CMD_READ_LOCAL_AMP_ASSOC; } POSTPACK HCI_CMD_READ_LOCAL_AMP_ASSOC;
typedef struct hci_cmd_set_event_mask_t { typedef struct hci_cmd_set_event_mask_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
A_UINT64 mask; A_UINT64 mask;
}POSTPACK HCI_CMD_SET_EVT_MASK, HCI_CMD_SET_EVT_MASK_PG_2; }POSTPACK HCI_CMD_SET_EVT_MASK, HCI_CMD_SET_EVT_MASK_PG_2;
typedef struct hci_cmd_enhanced_flush_t{ typedef struct hci_cmd_enhanced_flush_t{
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
A_UINT16 hdl; u16 hdl;
u8 type; u8 type;
} POSTPACK HCI_CMD_ENHANCED_FLUSH; } POSTPACK HCI_CMD_ENHANCED_FLUSH;
typedef struct hci_cmd_write_timeout_t { typedef struct hci_cmd_write_timeout_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
A_UINT16 timeout; u16 timeout;
} POSTPACK HCI_CMD_WRITE_TIMEOUT; } POSTPACK HCI_CMD_WRITE_TIMEOUT;
typedef struct hci_cmd_write_link_supervision_timeout_t { typedef struct hci_cmd_write_link_supervision_timeout_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
A_UINT16 hdl; u16 hdl;
A_UINT16 timeout; u16 timeout;
} POSTPACK HCI_CMD_WRITE_LINK_SUPERVISION_TIMEOUT; } POSTPACK HCI_CMD_WRITE_LINK_SUPERVISION_TIMEOUT;
typedef struct hci_cmd_write_flow_control_t { typedef struct hci_cmd_write_flow_control_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
u8 mode; u8 mode;
} POSTPACK HCI_CMD_WRITE_FLOW_CONTROL; } POSTPACK HCI_CMD_WRITE_FLOW_CONTROL;
...@@ -341,7 +341,7 @@ typedef struct location_data_cfg_t { ...@@ -341,7 +341,7 @@ typedef struct location_data_cfg_t {
} POSTPACK LOCATION_DATA_CFG; } POSTPACK LOCATION_DATA_CFG;
typedef struct hci_cmd_write_location_data_t { typedef struct hci_cmd_write_location_data_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
LOCATION_DATA_CFG cfg; LOCATION_DATA_CFG cfg;
} POSTPACK HCI_CMD_WRITE_LOCATION_DATA; } POSTPACK HCI_CMD_WRITE_LOCATION_DATA;
...@@ -350,7 +350,7 @@ typedef struct hci_cmd_write_location_data_t { ...@@ -350,7 +350,7 @@ typedef struct hci_cmd_write_location_data_t {
typedef struct flow_spec_t { typedef struct flow_spec_t {
u8 id; u8 id;
u8 service_type; u8 service_type;
A_UINT16 max_sdu; u16 max_sdu;
A_UINT32 sdu_inter_arrival_time; A_UINT32 sdu_inter_arrival_time;
A_UINT32 access_latency; A_UINT32 access_latency;
A_UINT32 flush_timeout; A_UINT32 flush_timeout;
...@@ -358,7 +358,7 @@ typedef struct flow_spec_t { ...@@ -358,7 +358,7 @@ typedef struct flow_spec_t {
typedef struct hci_cmd_create_logical_link_t { typedef struct hci_cmd_create_logical_link_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
u8 phy_link_hdl; u8 phy_link_hdl;
FLOW_SPEC tx_flow_spec; FLOW_SPEC tx_flow_spec;
...@@ -366,34 +366,34 @@ typedef struct hci_cmd_create_logical_link_t { ...@@ -366,34 +366,34 @@ typedef struct hci_cmd_create_logical_link_t {
} POSTPACK HCI_CMD_CREATE_LOGICAL_LINK; } POSTPACK HCI_CMD_CREATE_LOGICAL_LINK;
typedef struct hci_cmd_flow_spec_modify_t { typedef struct hci_cmd_flow_spec_modify_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
A_UINT16 hdl; u16 hdl;
FLOW_SPEC tx_flow_spec; FLOW_SPEC tx_flow_spec;
FLOW_SPEC rx_flow_spec; FLOW_SPEC rx_flow_spec;
} POSTPACK HCI_CMD_FLOW_SPEC_MODIFY; } POSTPACK HCI_CMD_FLOW_SPEC_MODIFY;
typedef struct hci_cmd_logical_link_cancel_t { typedef struct hci_cmd_logical_link_cancel_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
u8 phy_link_hdl; u8 phy_link_hdl;
u8 tx_flow_spec_id; u8 tx_flow_spec_id;
} POSTPACK HCI_CMD_LOGICAL_LINK_CANCEL; } POSTPACK HCI_CMD_LOGICAL_LINK_CANCEL;
typedef struct hci_cmd_disconnect_logical_link_t { typedef struct hci_cmd_disconnect_logical_link_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
A_UINT16 logical_link_hdl; u16 logical_link_hdl;
} POSTPACK HCI_CMD_DISCONNECT_LOGICAL_LINK; } POSTPACK HCI_CMD_DISCONNECT_LOGICAL_LINK;
typedef struct hci_cmd_disconnect_phy_link_t { typedef struct hci_cmd_disconnect_phy_link_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
u8 phy_link_hdl; u8 phy_link_hdl;
} POSTPACK HCI_CMD_DISCONNECT_PHY_LINK; } POSTPACK HCI_CMD_DISCONNECT_PHY_LINK;
typedef struct hci_cmd_srm_t { typedef struct hci_cmd_srm_t {
A_UINT16 opcode; u16 opcode;
u8 param_length; u8 param_length;
u8 phy_link_hdl; u8 phy_link_hdl;
u8 mode; u8 mode;
...@@ -409,7 +409,7 @@ typedef struct hci_event_cmd_complete_t { ...@@ -409,7 +409,7 @@ typedef struct hci_event_cmd_complete_t {
u8 event_code; u8 event_code;
u8 param_len; u8 param_len;
u8 num_hci_cmd_pkts; u8 num_hci_cmd_pkts;
A_UINT16 opcode; u16 opcode;
u8 params[255]; u8 params[255];
} POSTPACK HCI_EVENT_CMD_COMPLETE; } POSTPACK HCI_EVENT_CMD_COMPLETE;
...@@ -420,7 +420,7 @@ typedef struct hci_event_cmd_status_t { ...@@ -420,7 +420,7 @@ typedef struct hci_event_cmd_status_t {
u8 param_len; u8 param_len;
u8 status; u8 status;
u8 num_hci_cmd_pkts; u8 num_hci_cmd_pkts;
A_UINT16 opcode; u16 opcode;
} POSTPACK HCI_EVENT_CMD_STATUS; } POSTPACK HCI_EVENT_CMD_STATUS;
/* Hardware Error event */ /* Hardware Error event */
...@@ -435,7 +435,7 @@ typedef struct hci_event_hw_err_t { ...@@ -435,7 +435,7 @@ typedef struct hci_event_hw_err_t {
typedef struct hci_event_handle_t { typedef struct hci_event_handle_t {
u8 event_code; u8 event_code;
u8 param_len; u8 param_len;
A_UINT16 handle; u16 handle;
} POSTPACK HCI_EVENT_FLUSH_OCCRD, } POSTPACK HCI_EVENT_FLUSH_OCCRD,
HCI_EVENT_QOS_VIOLATION; HCI_EVENT_QOS_VIOLATION;
...@@ -457,7 +457,7 @@ typedef struct hci_data_buf_overflow_t { ...@@ -457,7 +457,7 @@ typedef struct hci_data_buf_overflow_t {
typedef struct hci_enhanced_flush_complt_t{ typedef struct hci_enhanced_flush_complt_t{
u8 event_code; u8 event_code;
u8 param_len; u8 param_len;
A_UINT16 hdl; u16 hdl;
} POSTPACK HCI_EVENT_ENHANCED_FLUSH_COMPLT; } POSTPACK HCI_EVENT_ENHANCED_FLUSH_COMPLT;
/* Channel select event */ /* Channel select event */
...@@ -480,7 +480,7 @@ typedef struct hci_event_logical_link_complete_event_t { ...@@ -480,7 +480,7 @@ typedef struct hci_event_logical_link_complete_event_t {
u8 event_code; u8 event_code;
u8 param_len; u8 param_len;
u8 status; u8 status;
A_UINT16 logical_link_hdl; u16 logical_link_hdl;
u8 phy_hdl; u8 phy_hdl;
u8 tx_flow_id; u8 tx_flow_id;
} POSTPACK HCI_EVENT_LOGICAL_LINK_COMPLETE_EVENT; } POSTPACK HCI_EVENT_LOGICAL_LINK_COMPLETE_EVENT;
...@@ -490,7 +490,7 @@ typedef struct hci_event_disconnect_logical_link_event_t { ...@@ -490,7 +490,7 @@ typedef struct hci_event_disconnect_logical_link_event_t {
u8 event_code; u8 event_code;
u8 param_len; u8 param_len;
u8 status; u8 status;
A_UINT16 logical_link_hdl; u16 logical_link_hdl;
u8 reason; u8 reason;
} POSTPACK HCI_EVENT_DISCONNECT_LOGICAL_LINK_EVENT; } POSTPACK HCI_EVENT_DISCONNECT_LOGICAL_LINK_EVENT;
...@@ -523,7 +523,7 @@ typedef struct hci_event_status_handle_t { ...@@ -523,7 +523,7 @@ typedef struct hci_event_status_handle_t {
u8 event_code; u8 event_code;
u8 param_len; u8 param_len;
u8 status; u8 status;
A_UINT16 handle; u16 handle;
} POSTPACK HCI_EVENT_FLOW_SPEC_MODIFY, } POSTPACK HCI_EVENT_FLOW_SPEC_MODIFY,
HCI_EVENT_FLUSH; HCI_EVENT_FLUSH;
...@@ -532,7 +532,7 @@ typedef struct hci_event_status_handle_t { ...@@ -532,7 +532,7 @@ typedef struct hci_event_status_handle_t {
typedef struct hci_event_num_of_compl_data_blks_t { typedef struct hci_event_num_of_compl_data_blks_t {
u8 event_code; u8 event_code;
u8 param_len; u8 param_len;
A_UINT16 num_data_blks; u16 num_data_blks;
u8 num_handles; u8 num_handles;
u8 params[255]; u8 params[255];
} POSTPACK HCI_EVENT_NUM_COMPL_DATA_BLKS; } POSTPACK HCI_EVENT_NUM_COMPL_DATA_BLKS;
...@@ -564,8 +564,8 @@ typedef struct local_amp_info_resp_t { ...@@ -564,8 +564,8 @@ typedef struct local_amp_info_resp_t {
A_UINT32 min_latency; A_UINT32 min_latency;
A_UINT32 max_pdu_size; A_UINT32 max_pdu_size;
u8 amp_type; u8 amp_type;
A_UINT16 pal_capabilities; u16 pal_capabilities;
A_UINT16 amp_assoc_len; u16 amp_assoc_len;
A_UINT32 max_flush_timeout; /* in ms */ A_UINT32 max_flush_timeout; /* in ms */
A_UINT32 be_flush_timeout; /* in ms */ A_UINT32 be_flush_timeout; /* in ms */
} POSTPACK LOCAL_AMP_INFO; } POSTPACK LOCAL_AMP_INFO;
...@@ -573,7 +573,7 @@ typedef struct local_amp_info_resp_t { ...@@ -573,7 +573,7 @@ typedef struct local_amp_info_resp_t {
typedef struct amp_assoc_cmd_resp_t{ typedef struct amp_assoc_cmd_resp_t{
u8 status; u8 status;
u8 phy_hdl; u8 phy_hdl;
A_UINT16 amp_assoc_len; u16 amp_assoc_len;
u8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ]; u8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ];
}POSTPACK AMP_ASSOC_CMD_RESP; }POSTPACK AMP_ASSOC_CMD_RESP;
...@@ -619,18 +619,18 @@ enum PAL_HCI_CMD_STATUS { ...@@ -619,18 +619,18 @@ enum PAL_HCI_CMD_STATUS {
*/ */
typedef struct timeout_read_t { typedef struct timeout_read_t {
u8 status; u8 status;
A_UINT16 timeout; u16 timeout;
}POSTPACK TIMEOUT_INFO; }POSTPACK TIMEOUT_INFO;
typedef struct link_supervision_timeout_read_t { typedef struct link_supervision_timeout_read_t {
u8 status; u8 status;
A_UINT16 hdl; u16 hdl;
A_UINT16 timeout; u16 timeout;
}POSTPACK LINK_SUPERVISION_TIMEOUT_INFO; }POSTPACK LINK_SUPERVISION_TIMEOUT_INFO;
typedef struct status_hdl_t { typedef struct status_hdl_t {
u8 status; u8 status;
A_UINT16 hdl; u16 hdl;
}POSTPACK INFO_STATUS_HDL; }POSTPACK INFO_STATUS_HDL;
typedef struct write_remote_amp_assoc_t{ typedef struct write_remote_amp_assoc_t{
...@@ -650,15 +650,15 @@ typedef struct read_flow_ctrl_mode_t { ...@@ -650,15 +650,15 @@ typedef struct read_flow_ctrl_mode_t {
typedef struct read_data_blk_size_t { typedef struct read_data_blk_size_t {
u8 status; u8 status;
A_UINT16 max_acl_data_pkt_len; u16 max_acl_data_pkt_len;
A_UINT16 data_block_len; u16 data_block_len;
A_UINT16 total_num_data_blks; u16 total_num_data_blks;
}POSTPACK READ_DATA_BLK_SIZE_INFO; }POSTPACK READ_DATA_BLK_SIZE_INFO;
/* Read Link quality info */ /* Read Link quality info */
typedef struct link_qual_t { typedef struct link_qual_t {
u8 status; u8 status;
A_UINT16 hdl; u16 hdl;
u8 link_qual; u8 link_qual;
} POSTPACK READ_LINK_QUAL_INFO, } POSTPACK READ_LINK_QUAL_INFO,
READ_RSSI_INFO; READ_RSSI_INFO;
...@@ -672,10 +672,10 @@ typedef struct ll_cancel_resp_t { ...@@ -672,10 +672,10 @@ typedef struct ll_cancel_resp_t {
typedef struct read_local_ver_info_t { typedef struct read_local_ver_info_t {
u8 status; u8 status;
u8 hci_version; u8 hci_version;
A_UINT16 hci_revision; u16 hci_revision;
u8 pal_version; u8 pal_version;
A_UINT16 manf_name; u16 manf_name;
A_UINT16 pal_sub_ver; u16 pal_sub_ver;
} POSTPACK READ_LOCAL_VER_INFO; } POSTPACK READ_LOCAL_VER_INFO;
......
...@@ -42,8 +42,8 @@ ...@@ -42,8 +42,8 @@
typedef PREPACK struct dset_descriptor_s { typedef PREPACK struct dset_descriptor_s {
struct dset_descriptor_s *next; /* List link. NULL only at the last struct dset_descriptor_s *next; /* List link. NULL only at the last
descriptor */ descriptor */
A_UINT16 id; /* Dset ID */ u16 id; /* Dset ID */
A_UINT16 size; /* Dset size. */ u16 size; /* Dset size. */
void *DataPtr; /* Pointer to raw data for standard void *DataPtr; /* Pointer to raw data for standard
DataSet or pointer to original DataSet or pointer to original
dset_descriptor for patched dset_descriptor for patched
......
...@@ -56,13 +56,13 @@ typedef PREPACK struct { ...@@ -56,13 +56,13 @@ typedef PREPACK struct {
u8 TimeStamp[8]; /* timestamp of packet (host or target) */ u8 TimeStamp[8]; /* timestamp of packet (host or target) */
A_UINT32 HostContext_h; /* 4 byte host context, target echos this back */ A_UINT32 HostContext_h; /* 4 byte host context, target echos this back */
A_UINT32 SeqNo; /* sequence number (set by host or target) */ A_UINT32 SeqNo; /* sequence number (set by host or target) */
A_UINT16 Cmd_h; /* ping command (filled by host) */ u16 Cmd_h; /* ping command (filled by host) */
A_UINT16 CmdFlags_h; /* optional flags */ u16 CmdFlags_h; /* optional flags */
u8 CmdBuffer_h[8]; /* buffer for command (host -> target) */ u8 CmdBuffer_h[8]; /* buffer for command (host -> target) */
u8 CmdBuffer_t[8]; /* buffer for command (target -> host) */ u8 CmdBuffer_t[8]; /* buffer for command (target -> host) */
A_UINT16 DataLength; /* length of data */ u16 DataLength; /* length of data */
A_UINT16 DataCRC; /* 16 bit CRC of data */ u16 DataCRC; /* 16 bit CRC of data */
A_UINT16 HeaderCRC; /* header CRC (fields : StreamNo_h to end, minus HeaderCRC) */ u16 HeaderCRC; /* header CRC (fields : StreamNo_h to end, minus HeaderCRC) */
} POSTPACK EPPING_HEADER; } POSTPACK EPPING_HEADER;
#define EPPING_PING_MAGIC_0 0xAA #define EPPING_PING_MAGIC_0 0xAA
...@@ -97,9 +97,9 @@ typedef PREPACK struct { ...@@ -97,9 +97,9 @@ typedef PREPACK struct {
/* test command parameters may be no more than 8 bytes */ /* test command parameters may be no more than 8 bytes */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 BurstCnt; /* number of packets to burst together (for HTC 2.1 testing) */ u16 BurstCnt; /* number of packets to burst together (for HTC 2.1 testing) */
A_UINT16 PacketLength; /* length of packet to generate including header */ u16 PacketLength; /* length of packet to generate including header */
A_UINT16 Flags; /* flags */ u16 Flags; /* flags */
#define EPPING_CONT_RX_DATA_CRC (1 << 0) /* Add CRC to all data */ #define EPPING_CONT_RX_DATA_CRC (1 << 0) /* Add CRC to all data */
#define EPPING_CONT_RX_RANDOM_DATA (1 << 1) /* randomize the data pattern */ #define EPPING_CONT_RX_RANDOM_DATA (1 << 1) /* randomize the data pattern */
...@@ -107,7 +107,7 @@ typedef PREPACK struct { ...@@ -107,7 +107,7 @@ typedef PREPACK struct {
} POSTPACK EPPING_CONT_RX_PARAMS; } POSTPACK EPPING_CONT_RX_PARAMS;
#define EPPING_HDR_CRC_OFFSET A_OFFSETOF(EPPING_HEADER,StreamNo_h) #define EPPING_HDR_CRC_OFFSET A_OFFSETOF(EPPING_HEADER,StreamNo_h)
#define EPPING_HDR_BYTES_CRC (sizeof(EPPING_HEADER) - EPPING_HDR_CRC_OFFSET - (sizeof(A_UINT16))) #define EPPING_HDR_BYTES_CRC (sizeof(EPPING_HEADER) - EPPING_HDR_CRC_OFFSET - (sizeof(u16)))
#define HCI_TRANSPORT_STREAM_NUM 16 /* this number is higher than the define WMM AC classes so we #define HCI_TRANSPORT_STREAM_NUM 16 /* this number is higher than the define WMM AC classes so we
can use this to distinguish packets */ can use this to distinguish packets */
......
...@@ -41,17 +41,17 @@ ...@@ -41,17 +41,17 @@
/* definitions for BT HCI packets */ /* definitions for BT HCI packets */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 Flags_ConnHandle; u16 Flags_ConnHandle;
A_UINT16 Length; u16 Length;
} POSTPACK BT_HCI_ACL_HEADER; } POSTPACK BT_HCI_ACL_HEADER;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 Flags_ConnHandle; u16 Flags_ConnHandle;
u8 Length; u8 Length;
} POSTPACK BT_HCI_SCO_HEADER; } POSTPACK BT_HCI_SCO_HEADER;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 OpCode; u16 OpCode;
u8 ParamLength; u8 ParamLength;
} POSTPACK BT_HCI_COMMAND_HEADER; } POSTPACK BT_HCI_COMMAND_HEADER;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#define A_OFFSETOF(type,field) (unsigned long)(&(((type *)NULL)->field)) #define A_OFFSETOF(type,field) (unsigned long)(&(((type *)NULL)->field))
#define ASSEMBLE_UNALIGNED_UINT16(p,highbyte,lowbyte) \ #define ASSEMBLE_UNALIGNED_UINT16(p,highbyte,lowbyte) \
(((A_UINT16)(((u8 *)(p))[(highbyte)])) << 8 | (A_UINT16)(((u8 *)(p))[(lowbyte)])) (((u16)(((u8 *)(p))[(highbyte)])) << 8 | (u16)(((u8 *)(p))[(lowbyte)]))
/* alignment independent macros (little-endian) to fetch UINT16s or UINT8s from a /* alignment independent macros (little-endian) to fetch UINT16s or UINT8s from a
* structure using only the type and field name. * structure using only the type and field name.
...@@ -71,7 +71,7 @@ typedef PREPACK struct _HTC_FRAME_HDR{ ...@@ -71,7 +71,7 @@ typedef PREPACK struct _HTC_FRAME_HDR{
* to take advantage of 4-byte lookaheads in some hardware implementations */ * to take advantage of 4-byte lookaheads in some hardware implementations */
u8 EndpointID; u8 EndpointID;
u8 Flags; u8 Flags;
A_UINT16 PayloadLen; /* length of data (including trailer) that follows the header */ u16 PayloadLen; /* length of data (including trailer) that follows the header */
/***** end of 4-byte lookahead ****/ /***** end of 4-byte lookahead ****/
...@@ -110,15 +110,15 @@ typedef PREPACK struct _HTC_FRAME_HDR{ ...@@ -110,15 +110,15 @@ typedef PREPACK struct _HTC_FRAME_HDR{
/* base message ID header */ /* base message ID header */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 MessageID; u16 MessageID;
} POSTPACK HTC_UNKNOWN_MSG; } POSTPACK HTC_UNKNOWN_MSG;
/* HTC ready message /* HTC ready message
* direction : target-to-host */ * direction : target-to-host */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 MessageID; /* ID */ u16 MessageID; /* ID */
A_UINT16 CreditCount; /* number of credits the target can offer */ u16 CreditCount; /* number of credits the target can offer */
A_UINT16 CreditSize; /* size of each credit */ u16 CreditSize; /* size of each credit */
u8 MaxEndpoints; /* maximum number of endpoints the target has resources for */ u8 MaxEndpoints; /* maximum number of endpoints the target has resources for */
u8 _Pad1; u8 _Pad1;
} POSTPACK HTC_READY_MSG; } POSTPACK HTC_READY_MSG;
...@@ -139,9 +139,9 @@ typedef PREPACK struct { ...@@ -139,9 +139,9 @@ typedef PREPACK struct {
/* connect service /* connect service
* direction : host-to-target */ * direction : host-to-target */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 MessageID; u16 MessageID;
A_UINT16 ServiceID; /* service ID of the service to connect to */ u16 ServiceID; /* service ID of the service to connect to */
A_UINT16 ConnectionFlags; /* connection flags */ u16 ConnectionFlags; /* connection flags */
#define HTC_CONNECT_FLAGS_REDUCE_CREDIT_DRIBBLE (1 << 2) /* reduce credit dribbling when #define HTC_CONNECT_FLAGS_REDUCE_CREDIT_DRIBBLE (1 << 2) /* reduce credit dribbling when
the host needs credits */ the host needs credits */
...@@ -161,11 +161,11 @@ typedef PREPACK struct { ...@@ -161,11 +161,11 @@ typedef PREPACK struct {
/* connect response /* connect response
* direction : target-to-host */ * direction : target-to-host */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 MessageID; u16 MessageID;
A_UINT16 ServiceID; /* service ID that the connection request was made */ u16 ServiceID; /* service ID that the connection request was made */
u8 Status; /* service connection status */ u8 Status; /* service connection status */
u8 EndpointID; /* assigned endpoint ID */ u8 EndpointID; /* assigned endpoint ID */
A_UINT16 MaxMsgSize; /* maximum expected message size on this endpoint */ u16 MaxMsgSize; /* maximum expected message size on this endpoint */
u8 ServiceMetaLength; /* length of meta data that follows */ u8 ServiceMetaLength; /* length of meta data that follows */
u8 _Pad1; u8 _Pad1;
...@@ -174,13 +174,13 @@ typedef PREPACK struct { ...@@ -174,13 +174,13 @@ typedef PREPACK struct {
} POSTPACK HTC_CONNECT_SERVICE_RESPONSE_MSG; } POSTPACK HTC_CONNECT_SERVICE_RESPONSE_MSG;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 MessageID; u16 MessageID;
/* currently, no other fields */ /* currently, no other fields */
} POSTPACK HTC_SETUP_COMPLETE_MSG; } POSTPACK HTC_SETUP_COMPLETE_MSG;
/* extended setup completion message */ /* extended setup completion message */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 MessageID; u16 MessageID;
A_UINT32 SetupFlags; A_UINT32 SetupFlags;
u8 MaxMsgsPerBundledRecv; u8 MaxMsgsPerBundledRecv;
u8 Rsvd[3]; u8 Rsvd[3];
......
...@@ -74,8 +74,8 @@ typedef enum { ...@@ -74,8 +74,8 @@ typedef enum {
} WHAL_INI_DATA_ID; } WHAL_INI_DATA_ID;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 freqIndex; // 1 - A mode 2 - B or G mode 0 - common u16 freqIndex; // 1 - A mode 2 - B or G mode 0 - common
A_UINT16 offset; u16 offset;
A_UINT32 newValue; A_UINT32 newValue;
} POSTPACK INI_DSET_REG_OVERRIDE; } POSTPACK INI_DSET_REG_OVERRIDE;
......
...@@ -31,11 +31,11 @@ extern "C" { ...@@ -31,11 +31,11 @@ extern "C" {
/* Pkt log info */ /* Pkt log info */
typedef PREPACK struct pkt_log_t { typedef PREPACK struct pkt_log_t {
struct info_t { struct info_t {
A_UINT16 st; u16 st;
A_UINT16 end; u16 end;
A_UINT16 cur; u16 cur;
}info[4096]; }info[4096];
A_UINT16 last_idx; u16 last_idx;
}POSTPACK PACKET_LOG; }POSTPACK PACKET_LOG;
......
...@@ -128,7 +128,7 @@ typedef PREPACK struct dbMasterTable_t { /* Hold ptrs to Table data structure ...@@ -128,7 +128,7 @@ typedef PREPACK struct dbMasterTable_t { /* Hold ptrs to Table data structure
char entrySize; /* Entry size per table row */ char entrySize; /* Entry size per table row */
char searchType; /* Index based access or key based */ char searchType; /* Index based access or key based */
char reserved[3]; /* for alignment */ char reserved[3]; /* for alignment */
A_UINT16 tableSize; /* Size of this table */ u16 tableSize; /* Size of this table */
char *dataPtr; /* Ptr to the actual Table */ char *dataPtr; /* Ptr to the actual Table */
} POSTPACK dbMasterTable; /* Master table - table of tables */ } POSTPACK dbMasterTable; /* Master table - table of tables */
...@@ -169,9 +169,9 @@ typedef PREPACK struct dbMasterTable_t { /* Hold ptrs to Table data structure ...@@ -169,9 +169,9 @@ typedef PREPACK struct dbMasterTable_t { /* Hold ptrs to Table data structure
*/ */
typedef PREPACK struct reg_dmn_pair_mapping { typedef PREPACK struct reg_dmn_pair_mapping {
A_UINT16 regDmnEnum; /* 16 bit reg domain pair */ u16 regDmnEnum; /* 16 bit reg domain pair */
A_UINT16 regDmn5GHz; /* 5GHz reg domain */ u16 regDmn5GHz; /* 5GHz reg domain */
A_UINT16 regDmn2GHz; /* 2GHz reg domain */ u16 regDmn2GHz; /* 2GHz reg domain */
u8 flags5GHz; /* Requirements flags (AdHoc disallow etc) */ u8 flags5GHz; /* Requirements flags (AdHoc disallow etc) */
u8 flags2GHz; /* Requirements flags (AdHoc disallow etc) */ u8 flags2GHz; /* Requirements flags (AdHoc disallow etc) */
A_UINT32 pscanMask; /* Passive Scan flags which can override unitary domain passive scan A_UINT32 pscanMask; /* Passive Scan flags which can override unitary domain passive scan
...@@ -188,8 +188,8 @@ typedef PREPACK struct reg_dmn_pair_mapping { ...@@ -188,8 +188,8 @@ typedef PREPACK struct reg_dmn_pair_mapping {
#define MCS_HT40_G_NO (0 << 3) #define MCS_HT40_G_NO (0 << 3)
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 countryCode; u16 countryCode;
A_UINT16 regDmnEnum; u16 regDmnEnum;
char isoName[3]; char isoName[3];
char allowMode; /* what mode is allowed - bit 0: OFDM; bit 1: MCS_HT20; bit 2: MCS_HT40_A; bit 3: MCS_HT40_G */ char allowMode; /* what mode is allowed - bit 0: OFDM; bit 1: MCS_HT20; bit 2: MCS_HT40_A; bit 3: MCS_HT40_G */
} POSTPACK COUNTRY_CODE_TO_ENUM_RD; } POSTPACK COUNTRY_CODE_TO_ENUM_RD;
...@@ -209,8 +209,8 @@ typedef PREPACK struct { ...@@ -209,8 +209,8 @@ typedef PREPACK struct {
#define FREQ_QUARTER_RATE 0x20000 #define FREQ_QUARTER_RATE 0x20000
typedef PREPACK struct RegDmnFreqBand { typedef PREPACK struct RegDmnFreqBand {
A_UINT16 lowChannel; /* Low channel center in MHz */ u16 lowChannel; /* Low channel center in MHz */
A_UINT16 highChannel; /* High Channel center in MHz */ u16 highChannel; /* High Channel center in MHz */
u8 power; /* Max power (dBm) for channel range */ u8 power; /* Max power (dBm) for channel range */
u8 channelSep; /* Channel separation within the band */ u8 channelSep; /* Channel separation within the band */
u8 useDfs; /* Use DFS in the RegDomain if corresponding bit is set */ u8 useDfs; /* Use DFS in the RegDomain if corresponding bit is set */
...@@ -223,12 +223,12 @@ typedef PREPACK struct RegDmnFreqBand { ...@@ -223,12 +223,12 @@ typedef PREPACK struct RegDmnFreqBand {
typedef PREPACK struct regDomain { typedef PREPACK struct regDomain {
A_UINT16 regDmnEnum; /* value from EnumRd table */ u16 regDmnEnum; /* value from EnumRd table */
u8 rdCTL; u8 rdCTL;
u8 maxAntGain; u8 maxAntGain;
u8 dfsMask; /* DFS bitmask for 5Ghz tables */ u8 dfsMask; /* DFS bitmask for 5Ghz tables */
u8 flags; /* Requirement flags (AdHoc disallow etc) */ u8 flags; /* Requirement flags (AdHoc disallow etc) */
A_UINT16 reserved; /* for alignment */ u16 reserved; /* for alignment */
A_UINT32 pscan; /* Bitmask for passive scan */ A_UINT32 pscan; /* Bitmask for passive scan */
A_UINT32 chan11a[BMLEN]; /* 64 bit bitmask for channel/band selection */ A_UINT32 chan11a[BMLEN]; /* 64 bit bitmask for channel/band selection */
A_UINT32 chan11bg[BMLEN];/* 64 bit bitmask for channel/band selection */ A_UINT32 chan11bg[BMLEN];/* 64 bit bitmask for channel/band selection */
......
...@@ -91,8 +91,8 @@ typedef PREPACK struct { ...@@ -91,8 +91,8 @@ typedef PREPACK struct {
A_UINT32 enANI; A_UINT32 enANI;
A_UINT32 scramblerOff; A_UINT32 scramblerOff;
A_UINT32 aifsn; A_UINT32 aifsn;
A_UINT16 pktSz; u16 pktSz;
A_UINT16 txPattern; u16 txPattern;
A_UINT32 shortGuard; A_UINT32 shortGuard;
A_UINT32 numPackets; A_UINT32 numPackets;
A_UINT32 wlanMode; A_UINT32 wlanMode;
...@@ -138,8 +138,8 @@ typedef PREPACK struct { ...@@ -138,8 +138,8 @@ typedef PREPACK struct {
A_INT32 rssiInDBm; A_INT32 rssiInDBm;
A_UINT32 crcErrPkt; A_UINT32 crcErrPkt;
A_UINT32 secErrPkt; A_UINT32 secErrPkt;
A_UINT16 rateCnt[TCMD_MAX_RATES]; u16 rateCnt[TCMD_MAX_RATES];
A_UINT16 rateCntShortGuard[TCMD_MAX_RATES]; u16 rateCntShortGuard[TCMD_MAX_RATES];
} POSTPACK report; } POSTPACK report;
struct PREPACK TCMD_CONT_RX_MAC { struct PREPACK TCMD_CONT_RX_MAC {
A_UCHAR addr[ATH_MAC_LEN]; A_UCHAR addr[ATH_MAC_LEN];
......
...@@ -27,7 +27,7 @@ typedef PREPACK struct wow_config_dset { ...@@ -27,7 +27,7 @@ typedef PREPACK struct wow_config_dset {
u8 valid_dset; u8 valid_dset;
u8 gpio_enable; u8 gpio_enable;
A_UINT16 gpio_pin; u16 gpio_pin;
} POSTPACK WOW_CONFIG_DSET; } POSTPACK WOW_CONFIG_DSET;
#endif #endif
...@@ -79,7 +79,7 @@ PREPACK struct host_app_area_s { ...@@ -79,7 +79,7 @@ PREPACK struct host_app_area_s {
typedef PREPACK struct { typedef PREPACK struct {
u8 dstMac[ATH_MAC_LEN]; u8 dstMac[ATH_MAC_LEN];
u8 srcMac[ATH_MAC_LEN]; u8 srcMac[ATH_MAC_LEN];
A_UINT16 typeOrLen; u16 typeOrLen;
} POSTPACK ATH_MAC_HDR; } POSTPACK ATH_MAC_HDR;
typedef PREPACK struct { typedef PREPACK struct {
...@@ -87,7 +87,7 @@ typedef PREPACK struct { ...@@ -87,7 +87,7 @@ typedef PREPACK struct {
u8 ssap; u8 ssap;
u8 cntl; u8 cntl;
u8 orgCode[3]; u8 orgCode[3];
A_UINT16 etherType; u16 etherType;
} POSTPACK ATH_LLC_SNAP_HDR; } POSTPACK ATH_LLC_SNAP_HDR;
typedef enum { typedef enum {
...@@ -170,12 +170,12 @@ typedef PREPACK struct { ...@@ -170,12 +170,12 @@ typedef PREPACK struct {
* ACL data(2) * ACL data(2)
*/ */
A_UINT16 info2; /* usage of 'info2' field(16-bit): u16 info2; /* usage of 'info2' field(16-bit):
* b11:b0 - seq_no * b11:b0 - seq_no
* b12 - A-MSDU? * b12 - A-MSDU?
* b15:b13 - META_DATA_VERSION 0 - 7 * b15:b13 - META_DATA_VERSION 0 - 7
*/ */
A_UINT16 reserved; u16 reserved;
} POSTPACK WMI_DATA_HDR; } POSTPACK WMI_DATA_HDR;
/* /*
...@@ -246,12 +246,12 @@ typedef PREPACK struct { ...@@ -246,12 +246,12 @@ typedef PREPACK struct {
u8 rix; /* rate index mapped to rate at which this packet was received. */ u8 rix; /* rate index mapped to rate at which this packet was received. */
u8 rssi; /* rssi of packet */ u8 rssi; /* rssi of packet */
u8 channel;/* rf channel during packet reception */ u8 channel;/* rf channel during packet reception */
A_UINT16 flags; /* a combination of WMI_RX_FLAGS_... */ u16 flags; /* a combination of WMI_RX_FLAGS_... */
} POSTPACK WMI_RX_META_V1; } POSTPACK WMI_RX_META_V1;
#define RX_CSUM_VALID_FLAG (0x1) #define RX_CSUM_VALID_FLAG (0x1)
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 csum; u16 csum;
u8 csumFlags;/* bit 0 set -partial csum valid u8 csumFlags;/* bit 0 set -partial csum valid
bit 1 set -test mode */ bit 1 set -test mode */
} POSTPACK WMI_RX_META_V2; } POSTPACK WMI_RX_META_V2;
...@@ -264,15 +264,15 @@ typedef PREPACK struct { ...@@ -264,15 +264,15 @@ typedef PREPACK struct {
* Control Path * Control Path
*/ */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 commandId; u16 commandId;
/* /*
* info1 - 16 bits * info1 - 16 bits
* b03:b00 - id * b03:b00 - id
* b15:b04 - unused * b15:b04 - unused
*/ */
A_UINT16 info1; u16 info1;
A_UINT16 reserved; /* For alignment */ u16 reserved; /* For alignment */
} POSTPACK WMI_CMD_HDR; /* used for commands and events */ } POSTPACK WMI_CMD_HDR; /* used for commands and events */
/* /*
...@@ -531,7 +531,7 @@ typedef PREPACK struct { ...@@ -531,7 +531,7 @@ typedef PREPACK struct {
u8 groupCryptoLen; u8 groupCryptoLen;
u8 ssidLength; u8 ssidLength;
A_UCHAR ssid[WMI_MAX_SSID_LEN]; A_UCHAR ssid[WMI_MAX_SSID_LEN];
A_UINT16 channel; u16 channel;
u8 bssid[ATH_MAC_LEN]; u8 bssid[ATH_MAC_LEN];
A_UINT32 ctrl_flags; A_UINT32 ctrl_flags;
} POSTPACK WMI_CONNECT_CMD; } POSTPACK WMI_CONNECT_CMD;
...@@ -540,7 +540,7 @@ typedef PREPACK struct { ...@@ -540,7 +540,7 @@ typedef PREPACK struct {
* WMI_RECONNECT_CMDID * WMI_RECONNECT_CMDID
*/ */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 channel; /* hint */ u16 channel; /* hint */
u8 bssid[ATH_MAC_LEN]; /* mandatory if set */ u8 bssid[ATH_MAC_LEN]; /* mandatory if set */
} POSTPACK WMI_RECONNECT_CMD; } POSTPACK WMI_RECONNECT_CMD;
...@@ -641,7 +641,7 @@ typedef PREPACK struct { ...@@ -641,7 +641,7 @@ typedef PREPACK struct {
A_UINT32 forceScanInterval; /* Time interval between scans (milliseconds)*/ A_UINT32 forceScanInterval; /* Time interval between scans (milliseconds)*/
u8 scanType; /* WMI_SCAN_TYPE */ u8 scanType; /* WMI_SCAN_TYPE */
u8 numChannels; /* how many channels follow */ u8 numChannels; /* how many channels follow */
A_UINT16 channelList[1]; /* channels in Mhz */ u16 channelList[1]; /* channels in Mhz */
} POSTPACK WMI_START_SCAN_CMD; } POSTPACK WMI_START_SCAN_CMD;
/* /*
...@@ -676,15 +676,15 @@ typedef enum { ...@@ -676,15 +676,15 @@ typedef enum {
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 fg_start_period; /* seconds */ u16 fg_start_period; /* seconds */
A_UINT16 fg_end_period; /* seconds */ u16 fg_end_period; /* seconds */
A_UINT16 bg_period; /* seconds */ u16 bg_period; /* seconds */
A_UINT16 maxact_chdwell_time; /* msec */ u16 maxact_chdwell_time; /* msec */
A_UINT16 pas_chdwell_time; /* msec */ u16 pas_chdwell_time; /* msec */
u8 shortScanRatio; /* how many shorts scan for one long */ u8 shortScanRatio; /* how many shorts scan for one long */
u8 scanCtrlFlags; u8 scanCtrlFlags;
A_UINT16 minact_chdwell_time; /* msec */ u16 minact_chdwell_time; /* msec */
A_UINT16 maxact_scan_per_ssid; /* max active scans per ssid */ u16 maxact_scan_per_ssid; /* max active scans per ssid */
A_UINT32 max_dfsch_act_time; /* msecs */ A_UINT32 max_dfsch_act_time; /* msecs */
} POSTPACK WMI_SCAN_PARAMS_CMD; } POSTPACK WMI_SCAN_PARAMS_CMD;
...@@ -705,7 +705,7 @@ typedef enum { ...@@ -705,7 +705,7 @@ typedef enum {
typedef PREPACK struct { typedef PREPACK struct {
u8 bssFilter; /* see WMI_BSS_FILTER */ u8 bssFilter; /* see WMI_BSS_FILTER */
u8 reserved1; /* For alignment */ u8 reserved1; /* For alignment */
A_UINT16 reserved2; /* For alignment */ u16 reserved2; /* For alignment */
A_UINT32 ieMask; A_UINT32 ieMask;
} POSTPACK WMI_BSS_FILTER_CMD; } POSTPACK WMI_BSS_FILTER_CMD;
...@@ -737,15 +737,15 @@ typedef PREPACK struct { ...@@ -737,15 +737,15 @@ typedef PREPACK struct {
#define MAX_LISTEN_BEACONS 50 #define MAX_LISTEN_BEACONS 50
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 listenInterval; u16 listenInterval;
A_UINT16 numBeacons; u16 numBeacons;
} POSTPACK WMI_LISTEN_INT_CMD; } POSTPACK WMI_LISTEN_INT_CMD;
/* /*
* WMI_SET_BEACON_INT_CMDID * WMI_SET_BEACON_INT_CMDID
*/ */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 beaconInterval; u16 beaconInterval;
} POSTPACK WMI_BEACON_INT_CMD; } POSTPACK WMI_BEACON_INT_CMD;
/* /*
...@@ -759,8 +759,8 @@ typedef PREPACK struct { ...@@ -759,8 +759,8 @@ typedef PREPACK struct {
#define MAX_BMISS_BEACONS 50 #define MAX_BMISS_BEACONS 50
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 bmissTime; u16 bmissTime;
A_UINT16 numBeacons; u16 numBeacons;
} POSTPACK WMI_BMISS_TIME_CMD; } POSTPACK WMI_BMISS_TIME_CMD;
/* /*
...@@ -819,12 +819,12 @@ typedef enum { ...@@ -819,12 +819,12 @@ typedef enum {
} POWER_SAVE_FAIL_EVENT_POLICY; } POWER_SAVE_FAIL_EVENT_POLICY;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 idle_period; /* msec */ u16 idle_period; /* msec */
A_UINT16 pspoll_number; u16 pspoll_number;
A_UINT16 dtim_policy; u16 dtim_policy;
A_UINT16 tx_wakeup_policy; u16 tx_wakeup_policy;
A_UINT16 num_tx_to_wakeup; u16 num_tx_to_wakeup;
A_UINT16 ps_fail_event_policy; u16 ps_fail_event_policy;
} POSTPACK WMI_POWER_PARAMS_CMD; } POSTPACK WMI_POWER_PARAMS_CMD;
/* Adhoc power save types */ /* Adhoc power save types */
...@@ -838,8 +838,8 @@ typedef enum { ...@@ -838,8 +838,8 @@ typedef enum {
typedef PREPACK struct { typedef PREPACK struct {
u8 power_saving; u8 power_saving;
u8 ttl; /* number of beacon periods */ u8 ttl; /* number of beacon periods */
A_UINT16 atim_windows; /* msec */ u16 atim_windows; /* msec */
A_UINT16 timeout_value; /* msec */ u16 timeout_value; /* msec */
} POSTPACK WMI_IBSS_PM_CAPS_CMD; } POSTPACK WMI_IBSS_PM_CAPS_CMD;
/* AP power save types */ /* AP power save types */
...@@ -866,8 +866,8 @@ typedef enum { ...@@ -866,8 +866,8 @@ typedef enum {
} APSD_TIM_POLICY; } APSD_TIM_POLICY;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 psPollTimeout; /* msec */ u16 psPollTimeout; /* msec */
A_UINT16 triggerTimeout; /* msec */ u16 triggerTimeout; /* msec */
A_UINT32 apsdTimPolicy; /* TIM behavior with ques APSD enabled. Default is IGNORE_TIM_ALL_QUEUES_APSD */ A_UINT32 apsdTimPolicy; /* TIM behavior with ques APSD enabled. Default is IGNORE_TIM_ALL_QUEUES_APSD */
A_UINT32 simulatedAPSDTimPolicy; /* TIM behavior with simulated APSD enabled. Default is PROCESS_TIM_SIMULATED_APSD */ A_UINT32 simulatedAPSDTimPolicy; /* TIM behavior with simulated APSD enabled. Default is PROCESS_TIM_SIMULATED_APSD */
} POSTPACK WMI_POWERSAVE_TIMERS_POLICY_CMD; } POSTPACK WMI_POWERSAVE_TIMERS_POLICY_CMD;
...@@ -876,7 +876,7 @@ typedef PREPACK struct { ...@@ -876,7 +876,7 @@ typedef PREPACK struct {
* WMI_SET_VOICE_PKT_SIZE_CMDID * WMI_SET_VOICE_PKT_SIZE_CMDID
*/ */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 voicePktSize; u16 voicePktSize;
} POSTPACK WMI_SET_VOICE_PKT_SIZE_CMD; } POSTPACK WMI_SET_VOICE_PKT_SIZE_CMD;
/* /*
...@@ -941,8 +941,8 @@ typedef PREPACK struct { ...@@ -941,8 +941,8 @@ typedef PREPACK struct {
A_UINT32 minPhyRate; /* in bps */ A_UINT32 minPhyRate; /* in bps */
A_UINT32 sba; A_UINT32 sba;
A_UINT32 mediumTime; A_UINT32 mediumTime;
A_UINT16 nominalMSDU; /* in octects */ u16 nominalMSDU; /* in octects */
A_UINT16 maxMSDU; /* in octects */ u16 maxMSDU; /* in octects */
u8 trafficClass; u8 trafficClass;
u8 trafficDirection; /* DIR_TYPE */ u8 trafficDirection; /* DIR_TYPE */
u8 rxQueueNum; u8 rxQueueNum;
...@@ -982,7 +982,7 @@ typedef PREPACK struct { ...@@ -982,7 +982,7 @@ typedef PREPACK struct {
u8 scanParam; /* set if enable scan */ u8 scanParam; /* set if enable scan */
u8 phyMode; /* see WMI_PHY_MODE */ u8 phyMode; /* see WMI_PHY_MODE */
u8 numChannels; /* how many channels follow */ u8 numChannels; /* how many channels follow */
A_UINT16 channelList[1]; /* channels in Mhz */ u16 channelList[1]; /* channels in Mhz */
} POSTPACK WMI_CHANNEL_PARAMS_CMD; } POSTPACK WMI_CHANNEL_PARAMS_CMD;
...@@ -1063,7 +1063,7 @@ typedef PREPACK struct { ...@@ -1063,7 +1063,7 @@ typedef PREPACK struct {
}POSTPACK WMI_SET_LPREAMBLE_CMD; }POSTPACK WMI_SET_LPREAMBLE_CMD;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 threshold; u16 threshold;
}POSTPACK WMI_SET_RTS_CMD; }POSTPACK WMI_SET_RTS_CMD;
/* /*
...@@ -1132,7 +1132,7 @@ typedef PREPACK struct { ...@@ -1132,7 +1132,7 @@ typedef PREPACK struct {
#define WMI_DEFAULT_AIFSN_ACPARAM 2 #define WMI_DEFAULT_AIFSN_ACPARAM 2
#define WMI_MAX_AIFSN_ACPARAM 15 #define WMI_MAX_AIFSN_ACPARAM 15
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 txop; /* in units of 32 usec */ u16 txop; /* in units of 32 usec */
u8 eCWmin; u8 eCWmin;
u8 eCWmax; u8 eCWmax;
u8 aifsn; u8 aifsn;
...@@ -1208,7 +1208,7 @@ typedef PREPACK struct { ...@@ -1208,7 +1208,7 @@ typedef PREPACK struct {
} POSTPACK WMI_BSS_BIAS_INFO; } POSTPACK WMI_BSS_BIAS_INFO;
typedef PREPACK struct WMI_LOWRSSI_SCAN_PARAMS { typedef PREPACK struct WMI_LOWRSSI_SCAN_PARAMS {
A_UINT16 lowrssi_scan_period; u16 lowrssi_scan_period;
A_INT16 lowrssi_scan_threshold; A_INT16 lowrssi_scan_threshold;
A_INT16 lowrssi_roam_threshold; A_INT16 lowrssi_roam_threshold;
u8 roam_rssi_floor; u8 roam_rssi_floor;
...@@ -1866,7 +1866,7 @@ typedef PREPACK struct { ...@@ -1866,7 +1866,7 @@ typedef PREPACK struct {
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 cmd_buf_sz; /* HCI cmd buffer size */ u16 cmd_buf_sz; /* HCI cmd buffer size */
u8 buf[1]; /* Absolute HCI cmd */ u8 buf[1]; /* Absolute HCI cmd */
} POSTPACK WMI_HCI_CMD; } POSTPACK WMI_HCI_CMD;
...@@ -1880,7 +1880,7 @@ typedef PREPACK struct { ...@@ -1880,7 +1880,7 @@ typedef PREPACK struct {
typedef PREPACK struct { typedef PREPACK struct {
u8 reserved1; u8 reserved1;
u8 numChannels; /* number of channels in reply */ u8 numChannels; /* number of channels in reply */
A_UINT16 channelList[1]; /* channel in Mhz */ u16 channelList[1]; /* channel in Mhz */
} POSTPACK WMI_CHANNEL_LIST_REPLY; } POSTPACK WMI_CHANNEL_LIST_REPLY;
typedef enum { typedef enum {
...@@ -2002,10 +2002,10 @@ typedef PREPACK struct { ...@@ -2002,10 +2002,10 @@ typedef PREPACK struct {
* Connect Event * Connect Event
*/ */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 channel; u16 channel;
u8 bssid[ATH_MAC_LEN]; u8 bssid[ATH_MAC_LEN];
A_UINT16 listenInterval; u16 listenInterval;
A_UINT16 beaconInterval; u16 beaconInterval;
A_UINT32 networkType; A_UINT32 networkType;
u8 beaconIeLen; u8 beaconIeLen;
u8 assocReqLen; u8 assocReqLen;
...@@ -2033,7 +2033,7 @@ typedef enum { ...@@ -2033,7 +2033,7 @@ typedef enum {
} WMI_DISCONNECT_REASON; } WMI_DISCONNECT_REASON;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 protocolReasonStatus; /* reason code, see 802.11 spec. */ u16 protocolReasonStatus; /* reason code, see 802.11 spec. */
u8 bssid[ATH_MAC_LEN]; /* set if known */ u8 bssid[ATH_MAC_LEN]; /* set if known */
u8 disconnectReason ; /* see WMI_DISCONNECT_REASON */ u8 disconnectReason ; /* see WMI_DISCONNECT_REASON */
u8 assocRespLen; u8 assocRespLen;
...@@ -2059,7 +2059,7 @@ enum { ...@@ -2059,7 +2059,7 @@ enum {
}; };
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 channel; u16 channel;
u8 frameType; /* see WMI_BI_FTYPE */ u8 frameType; /* see WMI_BI_FTYPE */
u8 snr; u8 snr;
A_INT16 rssi; A_INT16 rssi;
...@@ -2076,11 +2076,11 @@ typedef PREPACK struct { ...@@ -2076,11 +2076,11 @@ typedef PREPACK struct {
* - Remove rssi and compute it on the host. rssi = snr - 95 * - Remove rssi and compute it on the host. rssi = snr - 95
*/ */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 channel; u16 channel;
u8 frameType; /* see WMI_BI_FTYPE */ u8 frameType; /* see WMI_BI_FTYPE */
u8 snr; u8 snr;
u8 bssid[ATH_MAC_LEN]; u8 bssid[ATH_MAC_LEN];
A_UINT16 ieMask; u16 ieMask;
} POSTPACK WMI_BSS_INFO_HDR2; } POSTPACK WMI_BSS_INFO_HDR2;
/* /*
...@@ -2093,7 +2093,7 @@ typedef enum { ...@@ -2093,7 +2093,7 @@ typedef enum {
} WMI_ERROR_CODE; } WMI_ERROR_CODE;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 commandId; u16 commandId;
u8 errorCode; u8 errorCode;
} POSTPACK WMI_CMD_ERROR_EVENT; } POSTPACK WMI_CMD_ERROR_EVENT;
...@@ -2190,7 +2190,7 @@ typedef enum { ...@@ -2190,7 +2190,7 @@ typedef enum {
} WMI_OPT_FTYPE; } WMI_OPT_FTYPE;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 optIEDataLen; u16 optIEDataLen;
u8 frmType; u8 frmType;
u8 dstAddr[ATH_MAC_LEN]; u8 dstAddr[ATH_MAC_LEN];
u8 bssid[ATH_MAC_LEN]; u8 bssid[ATH_MAC_LEN];
...@@ -2205,7 +2205,7 @@ typedef PREPACK struct { ...@@ -2205,7 +2205,7 @@ typedef PREPACK struct {
* The 802.11 header is not included. * The 802.11 header is not included.
*/ */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 channel; u16 channel;
u8 frameType; /* see WMI_OPT_FTYPE */ u8 frameType; /* see WMI_OPT_FTYPE */
A_INT8 snr; A_INT8 snr;
u8 srcAddr[ATH_MAC_LEN]; u8 srcAddr[ATH_MAC_LEN];
...@@ -2266,19 +2266,19 @@ typedef PREPACK struct { ...@@ -2266,19 +2266,19 @@ typedef PREPACK struct {
typedef PREPACK struct { typedef PREPACK struct {
A_UINT32 power_save_failure_cnt; A_UINT32 power_save_failure_cnt;
A_UINT16 stop_tx_failure_cnt; u16 stop_tx_failure_cnt;
A_UINT16 atim_tx_failure_cnt; u16 atim_tx_failure_cnt;
A_UINT16 atim_rx_failure_cnt; u16 atim_rx_failure_cnt;
A_UINT16 bcn_rx_failure_cnt; u16 bcn_rx_failure_cnt;
}POSTPACK pm_stats_t; }POSTPACK pm_stats_t;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT32 cs_bmiss_cnt; A_UINT32 cs_bmiss_cnt;
A_UINT32 cs_lowRssi_cnt; A_UINT32 cs_lowRssi_cnt;
A_UINT16 cs_connect_cnt; u16 cs_connect_cnt;
A_UINT16 cs_disconnect_cnt; u16 cs_disconnect_cnt;
A_INT16 cs_aveBeacon_rssi; A_INT16 cs_aveBeacon_rssi;
A_UINT16 cs_roam_count; u16 cs_roam_count;
A_INT16 cs_rssi; A_INT16 cs_rssi;
u8 cs_snr; u8 cs_snr;
u8 cs_aveBeacon_snr; u8 cs_aveBeacon_snr;
...@@ -2299,7 +2299,7 @@ typedef PREPACK struct { ...@@ -2299,7 +2299,7 @@ typedef PREPACK struct {
typedef PREPACK struct { typedef PREPACK struct {
A_UINT32 wow_num_pkts_dropped; A_UINT32 wow_num_pkts_dropped;
A_UINT16 wow_num_events_discarded; u16 wow_num_events_discarded;
u8 wow_num_host_pkt_wakeups; u8 wow_num_host_pkt_wakeups;
u8 wow_num_host_event_wakeups; u8 wow_num_host_event_wakeups;
} POSTPACK wlan_wow_stats_t; } POSTPACK wlan_wow_stats_t;
...@@ -2409,8 +2409,8 @@ typedef PREPACK struct { ...@@ -2409,8 +2409,8 @@ typedef PREPACK struct {
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 roamMode; u16 roamMode;
A_UINT16 numEntries; u16 numEntries;
WMI_BSS_ROAM_INFO bssRoamInfo[1]; WMI_BSS_ROAM_INFO bssRoamInfo[1];
} POSTPACK WMI_TARGET_ROAM_TBL; } POSTPACK WMI_TARGET_ROAM_TBL;
...@@ -2418,7 +2418,7 @@ typedef PREPACK struct { ...@@ -2418,7 +2418,7 @@ typedef PREPACK struct {
* WMI_HCI_EVENT_EVENTID * WMI_HCI_EVENT_EVENTID
*/ */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 evt_buf_sz; /* HCI event buffer size */ u16 evt_buf_sz; /* HCI event buffer size */
u8 buf[1]; /* HCI event */ u8 buf[1]; /* HCI event */
} POSTPACK WMI_HCI_EVENT; } POSTPACK WMI_HCI_EVENT;
...@@ -2451,7 +2451,7 @@ typedef enum { ...@@ -2451,7 +2451,7 @@ typedef enum {
typedef PREPACK struct { typedef PREPACK struct {
u8 bssid[ATH_MAC_LEN]; u8 bssid[ATH_MAC_LEN];
A_UINT16 channel; u16 channel;
} POSTPACK WMI_AP_INFO_V1; } POSTPACK WMI_AP_INFO_V1;
typedef PREPACK union { typedef PREPACK union {
...@@ -2728,7 +2728,7 @@ typedef enum { ...@@ -2728,7 +2728,7 @@ typedef enum {
typedef PREPACK struct { typedef PREPACK struct {
u32 enable_wow; u32 enable_wow;
WMI_WOW_FILTER filter; WMI_WOW_FILTER filter;
A_UINT16 hostReqDelay; u16 hostReqDelay;
} POSTPACK WMI_SET_WOW_MODE_CMD; } POSTPACK WMI_SET_WOW_MODE_CMD;
typedef PREPACK struct { typedef PREPACK struct {
...@@ -2754,8 +2754,8 @@ typedef PREPACK struct { ...@@ -2754,8 +2754,8 @@ typedef PREPACK struct {
} POSTPACK WMI_ADD_WOW_PATTERN_CMD; } POSTPACK WMI_ADD_WOW_PATTERN_CMD;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 filter_list_id; u16 filter_list_id;
A_UINT16 filter_id; u16 filter_id;
} POSTPACK WMI_DEL_WOW_PATTERN_CMD; } POSTPACK WMI_DEL_WOW_PATTERN_CMD;
typedef PREPACK struct { typedef PREPACK struct {
...@@ -2797,7 +2797,7 @@ typedef PREPACK struct { ...@@ -2797,7 +2797,7 @@ typedef PREPACK struct {
} POSTPACK WMI_PMKID_LIST_REPLY; } POSTPACK WMI_PMKID_LIST_REPLY;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 oldChannel; u16 oldChannel;
A_UINT32 newChannel; A_UINT32 newChannel;
} POSTPACK WMI_CHANNEL_CHANGE_EVENT; } POSTPACK WMI_CHANNEL_CHANGE_EVENT;
...@@ -2810,7 +2810,7 @@ typedef PREPACK struct { ...@@ -2810,7 +2810,7 @@ typedef PREPACK struct {
typedef PREPACK struct { typedef PREPACK struct {
u8 tid; u8 tid;
u8 win_sz; u8 win_sz;
A_UINT16 st_seq_no; u16 st_seq_no;
u8 status; /* f/w response for ADDBA Req; OK(0) or failure(!=0) */ u8 status; /* f/w response for ADDBA Req; OK(0) or failure(!=0) */
} POSTPACK WMI_ADDBA_REQ_EVENT; } POSTPACK WMI_ADDBA_REQ_EVENT;
...@@ -2818,7 +2818,7 @@ typedef PREPACK struct { ...@@ -2818,7 +2818,7 @@ typedef PREPACK struct {
typedef PREPACK struct { typedef PREPACK struct {
u8 tid; u8 tid;
u8 status; /* OK(0), failure (!=0) */ u8 status; /* OK(0), failure (!=0) */
A_UINT16 amsdu_sz; /* Three values: Not supported(0), 3839, 8k */ u16 amsdu_sz; /* Three values: Not supported(0), 3839, 8k */
} POSTPACK WMI_ADDBA_RESP_EVENT; } POSTPACK WMI_ADDBA_RESP_EVENT;
/* WMI_DELBA_EVENTID /* WMI_DELBA_EVENTID
...@@ -2828,7 +2828,7 @@ typedef PREPACK struct { ...@@ -2828,7 +2828,7 @@ typedef PREPACK struct {
typedef PREPACK struct { typedef PREPACK struct {
u8 tid; u8 tid;
u8 is_peer_initiator; u8 is_peer_initiator;
A_UINT16 reason_code; u16 reason_code;
} POSTPACK WMI_DELBA_EVENT; } POSTPACK WMI_DELBA_EVENT;
...@@ -2847,8 +2847,8 @@ typedef PREPACK struct { ...@@ -2847,8 +2847,8 @@ typedef PREPACK struct {
* on each tid, in each direction * on each tid, in each direction
*/ */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 tx_allow_aggr; /* 16-bit mask to allow uplink ADDBA negotiation - bit position indicates tid*/ u16 tx_allow_aggr; /* 16-bit mask to allow uplink ADDBA negotiation - bit position indicates tid*/
A_UINT16 rx_allow_aggr; /* 16-bit mask to allow donwlink ADDBA negotiation - bit position indicates tid*/ u16 rx_allow_aggr; /* 16-bit mask to allow donwlink ADDBA negotiation - bit position indicates tid*/
} POSTPACK WMI_ALLOW_AGGR_CMD; } POSTPACK WMI_ALLOW_AGGR_CMD;
/* WMI_ADDBA_REQ_CMDID /* WMI_ADDBA_REQ_CMDID
...@@ -2973,7 +2973,7 @@ typedef PREPACK struct { ...@@ -2973,7 +2973,7 @@ typedef PREPACK struct {
} POSTPACK WMI_AP_ACL_MAC_CMD; } POSTPACK WMI_AP_ACL_MAC_CMD;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 index; u16 index;
u8 acl_mac[AP_ACL_SIZE][ATH_MAC_LEN]; u8 acl_mac[AP_ACL_SIZE][ATH_MAC_LEN];
u8 wildcard[AP_ACL_SIZE]; u8 wildcard[AP_ACL_SIZE];
u8 policy; u8 policy;
...@@ -2991,7 +2991,7 @@ typedef PREPACK struct { ...@@ -2991,7 +2991,7 @@ typedef PREPACK struct {
*/ */
typedef PREPACK struct { typedef PREPACK struct {
u8 mac[ATH_MAC_LEN]; u8 mac[ATH_MAC_LEN];
A_UINT16 reason; /* 802.11 reason code */ u16 reason; /* 802.11 reason code */
u8 cmd; /* operation to perform */ u8 cmd; /* operation to perform */
#define WMI_AP_MLME_ASSOC 1 /* associate station */ #define WMI_AP_MLME_ASSOC 1 /* associate station */
#define WMI_AP_DISASSOC 2 /* disassociate station */ #define WMI_AP_DISASSOC 2 /* disassociate station */
...@@ -3011,7 +3011,7 @@ typedef PREPACK struct { ...@@ -3011,7 +3011,7 @@ typedef PREPACK struct {
typedef PREPACK struct { typedef PREPACK struct {
u32 flag; u32 flag;
A_UINT16 aid; u16 aid;
} POSTPACK WMI_AP_SET_PVB_CMD; } POSTPACK WMI_AP_SET_PVB_CMD;
#define WMI_DISABLE_REGULATORY_CODE "FF" #define WMI_DISABLE_REGULATORY_CODE "FF"
...@@ -3074,7 +3074,7 @@ typedef PREPACK struct { ...@@ -3074,7 +3074,7 @@ typedef PREPACK struct {
/* AP mode events */ /* AP mode events */
/* WMI_PS_POLL_EVENT */ /* WMI_PS_POLL_EVENT */
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 aid; u16 aid;
} POSTPACK WMI_PSPOLL_EVENT; } POSTPACK WMI_PSPOLL_EVENT;
typedef PREPACK struct { typedef PREPACK struct {
......
...@@ -103,7 +103,7 @@ typedef enum{ ...@@ -103,7 +103,7 @@ typedef enum{
typedef PREPACK struct { typedef PREPACK struct {
u8 version; /* the versioned type of messages to use or 0 to disable */ u8 version; /* the versioned type of messages to use or 0 to disable */
u8 countThreshold; /* msg count threshold triggering a tx complete message */ u8 countThreshold; /* msg count threshold triggering a tx complete message */
A_UINT16 timeThreshold; /* timeout interval in MSEC triggering a tx complete message */ u16 timeThreshold; /* timeout interval in MSEC triggering a tx complete message */
} POSTPACK WMI_THIN_CONFIG_TXCOMPLETE; } POSTPACK WMI_THIN_CONFIG_TXCOMPLETE;
/* WMI_THIN_CONFIG_DECRYPT_ERR -- Used to configure behavior for received frames /* WMI_THIN_CONFIG_DECRYPT_ERR -- Used to configure behavior for received frames
...@@ -139,7 +139,7 @@ typedef PREPACK struct { ...@@ -139,7 +139,7 @@ typedef PREPACK struct {
#define WMI_THIN_CFG_MAC_RULES 0x00000004 #define WMI_THIN_CFG_MAC_RULES 0x00000004
#define WMI_THIN_CFG_FILTER_RULES 0x00000008 #define WMI_THIN_CFG_FILTER_RULES 0x00000008
A_UINT32 cfgField; /* combination of WMI_THIN_CFG_... describes contents of config command */ A_UINT32 cfgField; /* combination of WMI_THIN_CFG_... describes contents of config command */
A_UINT16 length; /* length in bytes of appended sub-commands */ u16 length; /* length in bytes of appended sub-commands */
u8 reserved[2]; /* align padding */ u8 reserved[2]; /* align padding */
} POSTPACK WMI_THIN_CONFIG_CMD; } POSTPACK WMI_THIN_CONFIG_CMD;
...@@ -192,13 +192,13 @@ typedef PREPACK struct { ...@@ -192,13 +192,13 @@ typedef PREPACK struct {
} POSTPACK WMI_THIN_MIB_SLOT_TIME; } POSTPACK WMI_THIN_MIB_SLOT_TIME;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 length; //units == bytes u16 length; //units == bytes
} POSTPACK WMI_THIN_MIB_RTS_THRESHOLD; } POSTPACK WMI_THIN_MIB_RTS_THRESHOLD;
typedef PREPACK struct { typedef PREPACK struct {
u8 type; // type of frame u8 type; // type of frame
u8 rate; // tx rate to be used (one of WMI_BIT_RATE) u8 rate; // tx rate to be used (one of WMI_BIT_RATE)
A_UINT16 length; // num bytes following this structure as the template data u16 length; // num bytes following this structure as the template data
} POSTPACK WMI_THIN_MIB_TEMPLATE_FRAME; } POSTPACK WMI_THIN_MIB_TEMPLATE_FRAME;
typedef PREPACK struct { typedef PREPACK struct {
...@@ -221,11 +221,11 @@ typedef PREPACK struct { ...@@ -221,11 +221,11 @@ typedef PREPACK struct {
u8 treatment; u8 treatment;
u8 oui[3]; u8 oui[3];
u8 type; u8 type;
A_UINT16 version; u16 version;
} POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE_OUI; } POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE_OUI;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 numElements; u16 numElements;
u8 entrySize; // sizeof(WMI_THIN_MIB_BEACON_FILTER_TABLE) on host cpu may be 2 may be 4 u8 entrySize; // sizeof(WMI_THIN_MIB_BEACON_FILTER_TABLE) on host cpu may be 2 may be 4
u8 reserved; u8 reserved;
} POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE_HEADER; } POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE_HEADER;
...@@ -290,7 +290,7 @@ typedef PREPACK struct { ...@@ -290,7 +290,7 @@ typedef PREPACK struct {
} POSTPACK WMI_THIN_MIB_PREAMBLE; } POSTPACK WMI_THIN_MIB_PREAMBLE;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 length; /* the length in bytes of the appended MIB data */ u16 length; /* the length in bytes of the appended MIB data */
u8 mibID; /* the ID of the MIB element being set */ u8 mibID; /* the ID of the MIB element being set */
u8 reserved; /* align padding */ u8 reserved; /* align padding */
} POSTPACK WMI_THIN_SET_MIB_CMD; } POSTPACK WMI_THIN_SET_MIB_CMD;
...@@ -303,8 +303,8 @@ typedef PREPACK struct { ...@@ -303,8 +303,8 @@ typedef PREPACK struct {
typedef PREPACK struct { typedef PREPACK struct {
A_UINT32 basicRateMask; /* bit mask of basic rates */ A_UINT32 basicRateMask; /* bit mask of basic rates */
A_UINT32 beaconIntval; /* TUs */ A_UINT32 beaconIntval; /* TUs */
A_UINT16 atimWindow; /* TUs */ u16 atimWindow; /* TUs */
A_UINT16 channel; /* frequency in Mhz */ u16 channel; /* frequency in Mhz */
u8 networkType; /* INFRA_NETWORK | ADHOC_NETWORK */ u8 networkType; /* INFRA_NETWORK | ADHOC_NETWORK */
u8 ssidLength; /* 0 - 32 */ u8 ssidLength; /* 0 - 32 */
u8 probe; /* != 0 : issue probe req at start */ u8 probe; /* != 0 : issue probe req at start */
...@@ -314,8 +314,8 @@ typedef PREPACK struct { ...@@ -314,8 +314,8 @@ typedef PREPACK struct {
} POSTPACK WMI_THIN_JOIN_CMD; } POSTPACK WMI_THIN_JOIN_CMD;
typedef PREPACK struct { typedef PREPACK struct {
A_UINT16 dtim; /* dtim interval in num beacons */ u16 dtim; /* dtim interval in num beacons */
A_UINT16 aid; /* 80211 AID from Assoc resp */ u16 aid; /* 80211 AID from Assoc resp */
} POSTPACK WMI_THIN_POST_ASSOC_CMD; } POSTPACK WMI_THIN_POST_ASSOC_CMD;
typedef enum { typedef enum {
......
...@@ -41,7 +41,7 @@ extern "C" { ...@@ -41,7 +41,7 @@ extern "C" {
typedef void *HTC_HANDLE; typedef void *HTC_HANDLE;
typedef A_UINT16 HTC_SERVICE_ID; typedef u16 HTC_SERVICE_ID;
typedef struct _HTC_INIT_INFO { typedef struct _HTC_INIT_INFO {
void *pContext; /* context for target failure notification */ void *pContext; /* context for target failure notification */
...@@ -141,7 +141,7 @@ typedef struct _HTC_EP_CALLBACKS { ...@@ -141,7 +141,7 @@ typedef struct _HTC_EP_CALLBACKS {
/* service connection information */ /* service connection information */
typedef struct _HTC_SERVICE_CONNECT_REQ { typedef struct _HTC_SERVICE_CONNECT_REQ {
HTC_SERVICE_ID ServiceID; /* service ID to connect to */ HTC_SERVICE_ID ServiceID; /* service ID to connect to */
A_UINT16 ConnectionFlags; /* connection flags, see htc protocol definition */ u16 ConnectionFlags; /* connection flags, see htc protocol definition */
u8 *pMetaData; /* ptr to optional service-specific meta-data */ u8 *pMetaData; /* ptr to optional service-specific meta-data */
u8 MetaDataLength; /* optional meta data length */ u8 MetaDataLength; /* optional meta data length */
HTC_EP_CALLBACKS EpCallbacks; /* endpoint callbacks */ HTC_EP_CALLBACKS EpCallbacks; /* endpoint callbacks */
......
...@@ -46,7 +46,7 @@ struct _HTC_PACKET; ...@@ -46,7 +46,7 @@ struct _HTC_PACKET;
typedef void (* HTC_PACKET_COMPLETION)(void *,struct _HTC_PACKET *); typedef void (* HTC_PACKET_COMPLETION)(void *,struct _HTC_PACKET *);
typedef A_UINT16 HTC_TX_TAG; typedef u16 HTC_TX_TAG;
typedef struct _HTC_TX_PACKET_INFO { typedef struct _HTC_TX_PACKET_INFO {
HTC_TX_TAG Tag; /* tag used to selective flush packets */ HTC_TX_TAG Tag; /* tag used to selective flush packets */
......
...@@ -35,7 +35,7 @@ struct ieee80211_node_table; ...@@ -35,7 +35,7 @@ struct ieee80211_node_table;
struct ieee80211_frame; struct ieee80211_frame;
struct ieee80211_common_ie { struct ieee80211_common_ie {
A_UINT16 ie_chan; u16 ie_chan;
u8 *ie_tstamp; u8 *ie_tstamp;
u8 *ie_ssid; u8 *ie_ssid;
u8 *ie_rates; u8 *ie_rates;
...@@ -45,8 +45,8 @@ struct ieee80211_common_ie { ...@@ -45,8 +45,8 @@ struct ieee80211_common_ie {
u8 *ie_rsn; u8 *ie_rsn;
u8 *ie_wmm; u8 *ie_wmm;
u8 *ie_ath; u8 *ie_ath;
A_UINT16 ie_capInfo; u16 ie_capInfo;
A_UINT16 ie_beaconInt; u16 ie_beaconInt;
u8 *ie_tim; u8 *ie_tim;
u8 *ie_chswitch; u8 *ie_chswitch;
u8 ie_erp; u8 ie_erp;
...@@ -68,7 +68,7 @@ typedef struct bss { ...@@ -68,7 +68,7 @@ typedef struct bss {
struct bss *ni_hash_prev; struct bss *ni_hash_prev;
struct ieee80211_common_ie ni_cie; struct ieee80211_common_ie ni_cie;
u8 *ni_buf; u8 *ni_buf;
A_UINT16 ni_framelen; u16 ni_framelen;
struct ieee80211_node_table *ni_table; struct ieee80211_node_table *ni_table;
A_UINT32 ni_refcnt; A_UINT32 ni_refcnt;
int ni_scangen; int ni_scangen;
...@@ -99,8 +99,8 @@ void wlan_node_table_cleanup(struct ieee80211_node_table *nt); ...@@ -99,8 +99,8 @@ void wlan_node_table_cleanup(struct ieee80211_node_table *nt);
int wlan_parse_beacon(u8 *buf, int framelen, int wlan_parse_beacon(u8 *buf, int framelen,
struct ieee80211_common_ie *cie); struct ieee80211_common_ie *cie);
A_UINT16 wlan_ieee2freq(int chan); u16 wlan_ieee2freq(int chan);
A_UINT32 wlan_freq2ieee(A_UINT16 freq); A_UINT32 wlan_freq2ieee(u16 freq);
void wlan_set_nodeage(struct ieee80211_node_table *nt, A_UINT32 nodeAge); void wlan_set_nodeage(struct ieee80211_node_table *nt, A_UINT32 nodeAge);
......
...@@ -69,7 +69,7 @@ void wmi_qos_state_init(struct wmi_t *wmip); ...@@ -69,7 +69,7 @@ void wmi_qos_state_init(struct wmi_t *wmip);
void wmi_shutdown(struct wmi_t *wmip); void wmi_shutdown(struct wmi_t *wmip);
HTC_ENDPOINT_ID wmi_get_control_ep(struct wmi_t * wmip); HTC_ENDPOINT_ID wmi_get_control_ep(struct wmi_t * wmip);
void wmi_set_control_ep(struct wmi_t * wmip, HTC_ENDPOINT_ID eid); void wmi_set_control_ep(struct wmi_t * wmip, HTC_ENDPOINT_ID eid);
A_UINT16 wmi_get_mapped_qos_queue(struct wmi_t *, u8 ); u16 wmi_get_mapped_qos_queue(struct wmi_t *, u8 );
int wmi_dix_2_dot3(struct wmi_t *wmip, void *osbuf); int wmi_dix_2_dot3(struct wmi_t *wmip, void *osbuf);
int 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); int 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);
int wmi_dot3_2_dix(void *osbuf); int wmi_dot3_2_dix(void *osbuf);
...@@ -113,46 +113,46 @@ int wmi_connect_cmd(struct wmi_t *wmip, ...@@ -113,46 +113,46 @@ int wmi_connect_cmd(struct wmi_t *wmip,
int ssidLength, int ssidLength,
A_UCHAR *ssid, A_UCHAR *ssid,
u8 *bssid, u8 *bssid,
A_UINT16 channel, u16 channel,
A_UINT32 ctrl_flags); A_UINT32 ctrl_flags);
int wmi_reconnect_cmd(struct wmi_t *wmip, int wmi_reconnect_cmd(struct wmi_t *wmip,
u8 *bssid, u8 *bssid,
A_UINT16 channel); u16 channel);
int wmi_disconnect_cmd(struct wmi_t *wmip); int wmi_disconnect_cmd(struct wmi_t *wmip);
int wmi_getrev_cmd(struct wmi_t *wmip); int wmi_getrev_cmd(struct wmi_t *wmip);
int wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType, int wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType,
u32 forceFgScan, u32 isLegacy, u32 forceFgScan, u32 isLegacy,
A_UINT32 homeDwellTime, A_UINT32 forceScanInterval, A_UINT32 homeDwellTime, A_UINT32 forceScanInterval,
A_INT8 numChan, A_UINT16 *channelList); A_INT8 numChan, u16 *channelList);
int wmi_scanparams_cmd(struct wmi_t *wmip, A_UINT16 fg_start_sec, int wmi_scanparams_cmd(struct wmi_t *wmip, u16 fg_start_sec,
A_UINT16 fg_end_sec, A_UINT16 bg_sec, u16 fg_end_sec, u16 bg_sec,
A_UINT16 minact_chdw_msec, u16 minact_chdw_msec,
A_UINT16 maxact_chdw_msec, A_UINT16 pas_chdw_msec, u16 maxact_chdw_msec, u16 pas_chdw_msec,
u8 shScanRatio, u8 scanCtrlFlags, u8 shScanRatio, u8 scanCtrlFlags,
A_UINT32 max_dfsch_act_time, A_UINT32 max_dfsch_act_time,
A_UINT16 maxact_scan_per_ssid); u16 maxact_scan_per_ssid);
int wmi_bssfilter_cmd(struct wmi_t *wmip, u8 filter, A_UINT32 ieMask); int wmi_bssfilter_cmd(struct wmi_t *wmip, u8 filter, A_UINT32 ieMask);
int wmi_probedSsid_cmd(struct wmi_t *wmip, u8 index, u8 flag, int wmi_probedSsid_cmd(struct wmi_t *wmip, u8 index, u8 flag,
u8 ssidLength, A_UCHAR *ssid); u8 ssidLength, A_UCHAR *ssid);
int wmi_listeninterval_cmd(struct wmi_t *wmip, A_UINT16 listenInterval, A_UINT16 listenBeacons); int wmi_listeninterval_cmd(struct wmi_t *wmip, u16 listenInterval, u16 listenBeacons);
int wmi_bmisstime_cmd(struct wmi_t *wmip, A_UINT16 bmisstime, A_UINT16 bmissbeacons); int wmi_bmisstime_cmd(struct wmi_t *wmip, u16 bmisstime, u16 bmissbeacons);
int wmi_associnfo_cmd(struct wmi_t *wmip, u8 ieType, int wmi_associnfo_cmd(struct wmi_t *wmip, u8 ieType,
u8 ieLen, u8 *ieInfo); u8 ieLen, u8 *ieInfo);
int wmi_powermode_cmd(struct wmi_t *wmip, u8 powerMode); int wmi_powermode_cmd(struct wmi_t *wmip, u8 powerMode);
int wmi_ibsspmcaps_cmd(struct wmi_t *wmip, u8 pmEnable, u8 ttl, int wmi_ibsspmcaps_cmd(struct wmi_t *wmip, u8 pmEnable, u8 ttl,
A_UINT16 atim_windows, A_UINT16 timeout_value); u16 atim_windows, u16 timeout_value);
int wmi_apps_cmd(struct wmi_t *wmip, u8 psType, A_UINT32 idle_time, int wmi_apps_cmd(struct wmi_t *wmip, u8 psType, A_UINT32 idle_time,
A_UINT32 ps_period, u8 sleep_period); A_UINT32 ps_period, u8 sleep_period);
int wmi_pmparams_cmd(struct wmi_t *wmip, A_UINT16 idlePeriod, int wmi_pmparams_cmd(struct wmi_t *wmip, u16 idlePeriod,
A_UINT16 psPollNum, A_UINT16 dtimPolicy, u16 psPollNum, u16 dtimPolicy,
A_UINT16 wakup_tx_policy, A_UINT16 num_tx_to_wakeup, u16 wakup_tx_policy, u16 num_tx_to_wakeup,
A_UINT16 ps_fail_event_policy); u16 ps_fail_event_policy);
int wmi_disctimeout_cmd(struct wmi_t *wmip, u8 timeout); int wmi_disctimeout_cmd(struct wmi_t *wmip, u8 timeout);
int wmi_sync_cmd(struct wmi_t *wmip, u8 syncNumber); int wmi_sync_cmd(struct wmi_t *wmip, u8 syncNumber);
int wmi_create_pstream_cmd(struct wmi_t *wmip, WMI_CREATE_PSTREAM_CMD *pstream); int wmi_create_pstream_cmd(struct wmi_t *wmip, WMI_CREATE_PSTREAM_CMD *pstream);
int wmi_delete_pstream_cmd(struct wmi_t *wmip, u8 trafficClass, u8 streamID); int wmi_delete_pstream_cmd(struct wmi_t *wmip, u8 trafficClass, u8 streamID);
int wmi_set_framerate_cmd(struct wmi_t *wmip, u8 bEnable, u8 type, u8 subType, A_UINT16 rateMask); int wmi_set_framerate_cmd(struct wmi_t *wmip, u8 bEnable, u8 type, u8 subType, u16 rateMask);
int wmi_set_bitrate_cmd(struct wmi_t *wmip, A_INT32 dataRate, A_INT32 mgmtRate, A_INT32 ctlRate); int wmi_set_bitrate_cmd(struct wmi_t *wmip, A_INT32 dataRate, A_INT32 mgmtRate, A_INT32 ctlRate);
int wmi_get_bitrate_cmd(struct wmi_t *wmip); int wmi_get_bitrate_cmd(struct wmi_t *wmip);
A_INT8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, A_INT8 *rate_idx); A_INT8 wmi_validate_bitrate(struct wmi_t *wmip, A_INT32 rate, A_INT8 *rate_idx);
...@@ -160,7 +160,7 @@ int wmi_get_regDomain_cmd(struct wmi_t *wmip); ...@@ -160,7 +160,7 @@ int wmi_get_regDomain_cmd(struct wmi_t *wmip);
int wmi_get_channelList_cmd(struct wmi_t *wmip); int wmi_get_channelList_cmd(struct wmi_t *wmip);
int wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam, int wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam,
WMI_PHY_MODE mode, A_INT8 numChan, WMI_PHY_MODE mode, A_INT8 numChan,
A_UINT16 *channelList); u16 *channelList);
int wmi_set_snr_threshold_params(struct wmi_t *wmip, int wmi_set_snr_threshold_params(struct wmi_t *wmip,
WMI_SNR_THRESHOLD_PARAMS_CMD *snrCmd); WMI_SNR_THRESHOLD_PARAMS_CMD *snrCmd);
...@@ -169,7 +169,7 @@ int wmi_set_rssi_threshold_params(struct wmi_t *wmip, ...@@ -169,7 +169,7 @@ int wmi_set_rssi_threshold_params(struct wmi_t *wmip,
int wmi_clr_rssi_snr(struct wmi_t *wmip); int wmi_clr_rssi_snr(struct wmi_t *wmip);
int wmi_set_lq_threshold_params(struct wmi_t *wmip, int wmi_set_lq_threshold_params(struct wmi_t *wmip,
WMI_LQ_THRESHOLD_PARAMS_CMD *lqCmd); WMI_LQ_THRESHOLD_PARAMS_CMD *lqCmd);
int wmi_set_rts_cmd(struct wmi_t *wmip, A_UINT16 threshold); int wmi_set_rts_cmd(struct wmi_t *wmip, u16 threshold);
int wmi_set_lpreamble_cmd(struct wmi_t *wmip, u8 status, u8 preamblePolicy); int wmi_set_lpreamble_cmd(struct wmi_t *wmip, u8 status, u8 preamblePolicy);
int wmi_set_error_report_bitmask(struct wmi_t *wmip, A_UINT32 bitmask); int wmi_set_error_report_bitmask(struct wmi_t *wmip, A_UINT32 bitmask);
...@@ -177,8 +177,8 @@ int wmi_set_error_report_bitmask(struct wmi_t *wmip, A_UINT32 bitmask); ...@@ -177,8 +177,8 @@ int wmi_set_error_report_bitmask(struct wmi_t *wmip, A_UINT32 bitmask);
int wmi_get_challenge_resp_cmd(struct wmi_t *wmip, A_UINT32 cookie, int wmi_get_challenge_resp_cmd(struct wmi_t *wmip, A_UINT32 cookie,
A_UINT32 source); A_UINT32 source);
int wmi_config_debug_module_cmd(struct wmi_t *wmip, A_UINT16 mmask, int wmi_config_debug_module_cmd(struct wmi_t *wmip, u16 mmask,
A_UINT16 tsr, bool rep, A_UINT16 size, u16 tsr, bool rep, u16 size,
A_UINT32 valid); A_UINT32 valid);
int wmi_get_stats_cmd(struct wmi_t *wmip); int wmi_get_stats_cmd(struct wmi_t *wmip);
...@@ -204,7 +204,7 @@ int wmi_deleteBadAp_cmd(struct wmi_t *wmip, u8 apIndex); ...@@ -204,7 +204,7 @@ int wmi_deleteBadAp_cmd(struct wmi_t *wmip, u8 apIndex);
int wmi_set_tkip_countermeasures_cmd(struct wmi_t *wmip, bool en); int wmi_set_tkip_countermeasures_cmd(struct wmi_t *wmip, bool en);
int wmi_setPmkid_cmd(struct wmi_t *wmip, u8 *bssid, u8 *pmkId, int wmi_setPmkid_cmd(struct wmi_t *wmip, u8 *bssid, u8 *pmkId,
bool set); bool set);
int wmi_set_access_params_cmd(struct wmi_t *wmip, u8 ac, A_UINT16 txop, int wmi_set_access_params_cmd(struct wmi_t *wmip, u8 ac, u16 txop,
u8 eCWmin, u8 eCWmax, u8 eCWmin, u8 eCWmax,
u8 aifsn); u8 aifsn);
int wmi_set_retry_limits_cmd(struct wmi_t *wmip, u8 frameType, int wmi_set_retry_limits_cmd(struct wmi_t *wmip, u8 frameType,
...@@ -226,11 +226,11 @@ int wmi_opt_tx_frame_cmd(struct wmi_t *wmip, ...@@ -226,11 +226,11 @@ int wmi_opt_tx_frame_cmd(struct wmi_t *wmip,
u8 frmType, u8 frmType,
u8 *dstMacAddr, u8 *dstMacAddr,
u8 *bssid, u8 *bssid,
A_UINT16 optIEDataLen, u16 optIEDataLen,
u8 *optIEData); u8 *optIEData);
int wmi_set_adhoc_bconIntvl_cmd(struct wmi_t *wmip, A_UINT16 intvl); int wmi_set_adhoc_bconIntvl_cmd(struct wmi_t *wmip, u16 intvl);
int wmi_set_voice_pkt_size_cmd(struct wmi_t *wmip, A_UINT16 voicePktSize); int wmi_set_voice_pkt_size_cmd(struct wmi_t *wmip, u16 voicePktSize);
int wmi_set_max_sp_len_cmd(struct wmi_t *wmip, u8 maxSpLen); int wmi_set_max_sp_len_cmd(struct wmi_t *wmip, u8 maxSpLen);
u8 convert_userPriority_to_trafficClass(u8 userPriority); u8 convert_userPriority_to_trafficClass(u8 userPriority);
u8 wmi_get_power_mode_cmd(struct wmi_t *wmip); u8 wmi_get_power_mode_cmd(struct wmi_t *wmip);
...@@ -293,7 +293,7 @@ int wmi_set_keepalive_cmd(struct wmi_t *wmip, u8 keepaliveInterval); ...@@ -293,7 +293,7 @@ int wmi_set_keepalive_cmd(struct wmi_t *wmip, u8 keepaliveInterval);
int wmi_set_appie_cmd(struct wmi_t *wmip, u8 mgmtFrmType, int wmi_set_appie_cmd(struct wmi_t *wmip, u8 mgmtFrmType,
u8 ieLen,u8 *ieInfo); u8 ieLen,u8 *ieInfo);
int wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, A_UINT16 dataLen); int wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, u16 dataLen);
A_INT32 wmi_get_rate(A_INT8 rateindex); A_INT32 wmi_get_rate(A_INT8 rateindex);
...@@ -371,10 +371,10 @@ wmi_ap_acl_mac_list(struct wmi_t *wmip, WMI_AP_ACL_MAC_CMD *a); ...@@ -371,10 +371,10 @@ wmi_ap_acl_mac_list(struct wmi_t *wmip, WMI_AP_ACL_MAC_CMD *a);
u8 acl_add_del_mac(WMI_AP_ACL *a, WMI_AP_ACL_MAC_CMD *acl); u8 acl_add_del_mac(WMI_AP_ACL *a, WMI_AP_ACL_MAC_CMD *acl);
int int
wmi_ap_set_mlme(struct wmi_t *wmip, u8 cmd, u8 *mac, A_UINT16 reason); wmi_ap_set_mlme(struct wmi_t *wmip, u8 cmd, u8 *mac, u16 reason);
int int
wmi_set_pvb_cmd(struct wmi_t *wmip, A_UINT16 aid, bool flag); wmi_set_pvb_cmd(struct wmi_t *wmip, u16 aid, bool flag);
int int
wmi_ap_conn_inact_time(struct wmi_t *wmip, A_UINT32 period); wmi_ap_conn_inact_time(struct wmi_t *wmip, A_UINT32 period);
...@@ -395,7 +395,7 @@ int ...@@ -395,7 +395,7 @@ int
wmi_set_ht_op_cmd(struct wmi_t *wmip, u8 sta_chan_width); wmi_set_ht_op_cmd(struct wmi_t *wmip, u8 sta_chan_width);
int int
wmi_send_hci_cmd(struct wmi_t *wmip, u8 *buf, A_UINT16 sz); wmi_send_hci_cmd(struct wmi_t *wmip, u8 *buf, u16 sz);
int int
wmi_set_tx_select_rates_cmd(struct wmi_t *wmip, A_UINT32 *pMaskArray); wmi_set_tx_select_rates_cmd(struct wmi_t *wmip, A_UINT32 *pMaskArray);
...@@ -407,7 +407,7 @@ int ...@@ -407,7 +407,7 @@ int
wmi_delete_aggr_cmd(struct wmi_t *wmip, u8 tid, bool uplink); wmi_delete_aggr_cmd(struct wmi_t *wmip, u8 tid, bool uplink);
int int
wmi_allow_aggr_cmd(struct wmi_t *wmip, A_UINT16 tx_tidmask, A_UINT16 rx_tidmask); wmi_allow_aggr_cmd(struct wmi_t *wmip, u16 tx_tidmask, u16 rx_tidmask);
int int
wmi_set_rx_frame_format_cmd(struct wmi_t *wmip, u8 rxMetaVersion, bool rxDot11Hdr, bool defragOnHost); wmi_set_rx_frame_format_cmd(struct wmi_t *wmip, u8 rxMetaVersion, bool rxDot11Hdr, bool defragOnHost);
...@@ -421,11 +421,10 @@ wmi_set_wlan_conn_precedence_cmd(struct wmi_t *wmip, BT_WLAN_CONN_PRECEDENCE pre ...@@ -421,11 +421,10 @@ wmi_set_wlan_conn_precedence_cmd(struct wmi_t *wmip, BT_WLAN_CONN_PRECEDENCE pre
int int
wmi_set_pmk_cmd(struct wmi_t *wmip, u8 *pmk); wmi_set_pmk_cmd(struct wmi_t *wmip, u8 *pmk);
A_UINT16 u16 wmi_ieee2freq (int chan);
wmi_ieee2freq (int chan);
A_UINT32 A_UINT32
wmi_freq2ieee (A_UINT16 freq); wmi_freq2ieee (u16 freq);
bss_t * bss_t *
wmi_find_matching_Ssidnode (struct wmi_t *wmip, A_UCHAR *pSsid, wmi_find_matching_Ssidnode (struct wmi_t *wmip, A_UCHAR *pSsid,
......
...@@ -213,14 +213,14 @@ static int AR3KConfigureHCIBaud(AR3K_CONFIG_INFO *pConfig) ...@@ -213,14 +213,14 @@ static int AR3KConfigureHCIBaud(AR3K_CONFIG_INFO *pConfig)
{ {
int status = A_OK; int status = A_OK;
u8 hciBaudChangeCommand[] = {0x0c,0xfc,0x2,0,0}; u8 hciBaudChangeCommand[] = {0x0c,0xfc,0x2,0,0};
A_UINT16 baudVal; u16 baudVal;
u8 *pEvent = NULL; u8 *pEvent = NULL;
u8 *pBufferToFree = NULL; u8 *pBufferToFree = NULL;
do { do {
if (pConfig->Flags & AR3K_CONFIG_FLAG_SET_AR3K_BAUD) { if (pConfig->Flags & AR3K_CONFIG_FLAG_SET_AR3K_BAUD) {
baudVal = (A_UINT16)(pConfig->AR3KBaudRate / 100); baudVal = (u16)(pConfig->AR3KBaudRate / 100);
hciBaudChangeCommand[3] = (u8)baudVal; hciBaudChangeCommand[3] = (u8)baudVal;
hciBaudChangeCommand[4] = (u8)(baudVal >> 8); hciBaudChangeCommand[4] = (u8)(baudVal >> 8);
......
...@@ -94,7 +94,7 @@ typedef struct tPsTagEntry ...@@ -94,7 +94,7 @@ typedef struct tPsTagEntry
typedef struct tRamPatch typedef struct tRamPatch
{ {
A_UINT16 Len; u16 Len;
u8 *Data; u8 *Data;
} tRamPatch, *ptRamPatch; } tRamPatch, *ptRamPatch;
...@@ -320,7 +320,7 @@ int AthParseFilesUnified(A_UCHAR *srcbuffer,A_UINT32 srclen, int FileFormat) ...@@ -320,7 +320,7 @@ int AthParseFilesUnified(A_UCHAR *srcbuffer,A_UINT32 srclen, int FileFormat)
char *Buffer; char *Buffer;
char *pCharLine; char *pCharLine;
u8 TagCount; u8 TagCount;
A_UINT16 ByteCount; u16 ByteCount;
u8 ParseSection=RAM_PS_SECTION; u8 ParseSection=RAM_PS_SECTION;
A_UINT32 pos; A_UINT32 pos;
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
#ifndef A_UINT32 #ifndef A_UINT32
#define A_UCHAR unsigned char #define A_UCHAR unsigned char
#define A_UINT32 unsigned long #define A_UINT32 unsigned long
#define A_UINT16 unsigned short #define u16 unsigned short
#define u8 unsigned char #define u8 unsigned char
#define bool unsigned char #define bool unsigned char
#endif /* A_UINT32 */ #endif /* A_UINT32 */
......
...@@ -796,12 +796,12 @@ ar6002_REV1_reset_force_host (HIF_DEVICE *hifDevice) ...@@ -796,12 +796,12 @@ ar6002_REV1_reset_force_host (HIF_DEVICE *hifDevice)
#endif /* CONFIG_AR6002_REV1_FORCE_HOST */ #endif /* CONFIG_AR6002_REV1_FORCE_HOST */
void DebugDumpBytes(A_UCHAR *buffer, A_UINT16 length, char *pDescription) void DebugDumpBytes(A_UCHAR *buffer, u16 length, char *pDescription)
{ {
char stream[60]; char stream[60];
char byteOffsetStr[10]; char byteOffsetStr[10];
A_UINT32 i; A_UINT32 i;
A_UINT16 offset, count, byteOffset; u16 offset, count, byteOffset;
A_PRINTF("<---------Dumping %d Bytes : %s ------>\n", length, pDescription); A_PRINTF("<---------Dumping %d Bytes : %s ------>\n", length, pDescription);
......
...@@ -345,8 +345,8 @@ void android_ar6k_check_wow_status(AR_SOFTC_T *ar, struct sk_buff *skb, bool isE ...@@ -345,8 +345,8 @@ void android_ar6k_check_wow_status(AR_SOFTC_T *ar, struct sk_buff *skb, bool isE
skb && ar->arConnected) { skb && ar->arConnected) {
bool needWake = false; bool needWake = false;
if (isEvent) { if (isEvent) {
if (A_NETBUF_LEN(skb) >= sizeof(A_UINT16)) { if (A_NETBUF_LEN(skb) >= sizeof(u16)) {
A_UINT16 cmd = *(const A_UINT16 *)A_NETBUF_DATA(skb); u16 cmd = *(const u16 *)A_NETBUF_DATA(skb);
switch (cmd) { switch (cmd) {
case WMI_CONNECT_EVENTID: case WMI_CONNECT_EVENTID:
case WMI_DISCONNECT_EVENTID: case WMI_DISCONNECT_EVENTID:
......
...@@ -254,11 +254,11 @@ module_param(blocktx, int, 0644); ...@@ -254,11 +254,11 @@ module_param(blocktx, int, 0644);
#endif /* BLOCK_TX_PATH_FLAG */ #endif /* BLOCK_TX_PATH_FLAG */
typedef struct user_rssi_compensation_t { typedef struct user_rssi_compensation_t {
A_UINT16 customerID; u16 customerID;
union { union {
A_UINT16 a_enable; u16 a_enable;
A_UINT16 bg_enable; u16 bg_enable;
A_UINT16 enable; u16 enable;
}; };
A_INT16 bg_param_a; A_INT16 bg_param_a;
A_INT16 bg_param_b; A_INT16 bg_param_b;
...@@ -322,7 +322,7 @@ static void ar6000_tx_complete(void *Context, HTC_PACKET_QUEUE *pPackets); ...@@ -322,7 +322,7 @@ static void ar6000_tx_complete(void *Context, HTC_PACKET_QUEUE *pPackets);
static HTC_SEND_FULL_ACTION ar6000_tx_queue_full(void *Context, HTC_PACKET *pPacket); static HTC_SEND_FULL_ACTION ar6000_tx_queue_full(void *Context, HTC_PACKET *pPacket);
#ifdef ATH_AR6K_11N_SUPPORT #ifdef ATH_AR6K_11N_SUPPORT
static void ar6000_alloc_netbufs(A_NETBUF_QUEUE_T *q, A_UINT16 num); static void ar6000_alloc_netbufs(A_NETBUF_QUEUE_T *q, u16 num);
#endif #endif
static void ar6000_deliver_frames_to_nw_stack(void * dev, void *osbuf); static void ar6000_deliver_frames_to_nw_stack(void * dev, void *osbuf);
//static void ar6000_deliver_frames_to_bt_stack(void * dev, void *osbuf); //static void ar6000_deliver_frames_to_bt_stack(void * dev, void *osbuf);
...@@ -773,7 +773,7 @@ aptcTimerHandler(unsigned long arg) ...@@ -773,7 +773,7 @@ aptcTimerHandler(unsigned long arg)
#ifdef ATH_AR6K_11N_SUPPORT #ifdef ATH_AR6K_11N_SUPPORT
static void static void
ar6000_alloc_netbufs(A_NETBUF_QUEUE_T *q, A_UINT16 num) ar6000_alloc_netbufs(A_NETBUF_QUEUE_T *q, u16 num)
{ {
void * osbuf; void * osbuf;
...@@ -904,26 +904,26 @@ ar6000_sysfs_bmi_deinit(AR_SOFTC_T *ar) ...@@ -904,26 +904,26 @@ ar6000_sysfs_bmi_deinit(AR_SOFTC_T *ar)
static static
void calculate_crc(A_UINT32 TargetType, A_UCHAR *eeprom_data) void calculate_crc(A_UINT32 TargetType, A_UCHAR *eeprom_data)
{ {
A_UINT16 *ptr_crc; u16 *ptr_crc;
A_UINT16 *ptr16_eeprom; u16 *ptr16_eeprom;
A_UINT16 checksum; u16 checksum;
A_UINT32 i; A_UINT32 i;
A_UINT32 eeprom_size; A_UINT32 eeprom_size;
if (TargetType == TARGET_TYPE_AR6001) if (TargetType == TARGET_TYPE_AR6001)
{ {
eeprom_size = 512; eeprom_size = 512;
ptr_crc = (A_UINT16 *)eeprom_data; ptr_crc = (u16 *)eeprom_data;
} }
else if (TargetType == TARGET_TYPE_AR6003) else if (TargetType == TARGET_TYPE_AR6003)
{ {
eeprom_size = 1024; eeprom_size = 1024;
ptr_crc = (A_UINT16 *)((A_UCHAR *)eeprom_data + 0x04); ptr_crc = (u16 *)((A_UCHAR *)eeprom_data + 0x04);
} }
else else
{ {
eeprom_size = 768; eeprom_size = 768;
ptr_crc = (A_UINT16 *)((A_UCHAR *)eeprom_data + 0x04); ptr_crc = (u16 *)((A_UCHAR *)eeprom_data + 0x04);
} }
...@@ -932,7 +932,7 @@ void calculate_crc(A_UINT32 TargetType, A_UCHAR *eeprom_data) ...@@ -932,7 +932,7 @@ void calculate_crc(A_UINT32 TargetType, A_UCHAR *eeprom_data)
// Recalculate new CRC // Recalculate new CRC
checksum = 0; checksum = 0;
ptr16_eeprom = (A_UINT16 *)eeprom_data; ptr16_eeprom = (u16 *)eeprom_data;
for (i = 0;i < eeprom_size; i += 2) for (i = 0;i < eeprom_size; i += 2)
{ {
checksum = checksum ^ (*ptr16_eeprom); checksum = checksum ^ (*ptr16_eeprom);
...@@ -2552,7 +2552,7 @@ int ar6000_init(struct net_device *dev) ...@@ -2552,7 +2552,7 @@ int ar6000_init(struct net_device *dev)
* of 0-3 */ * of 0-3 */
connect.ConnectionFlags &= ~HTC_CONNECT_FLAGS_THRESHOLD_LEVEL_MASK; connect.ConnectionFlags &= ~HTC_CONNECT_FLAGS_THRESHOLD_LEVEL_MASK;
connect.ConnectionFlags |= connect.ConnectionFlags |=
((A_UINT16)reduce_credit_dribble - 1) & HTC_CONNECT_FLAGS_THRESHOLD_LEVEL_MASK; ((u16)reduce_credit_dribble - 1) & HTC_CONNECT_FLAGS_THRESHOLD_LEVEL_MASK;
} }
/* connect to best-effort service */ /* connect to best-effort service */
connect.ServiceID = WMI_DATA_BE_SVC; connect.ServiceID = WMI_DATA_BE_SVC;
...@@ -2797,11 +2797,11 @@ ar6000_txPwr_rx(void *devt, u8 txPwr) ...@@ -2797,11 +2797,11 @@ ar6000_txPwr_rx(void *devt, u8 txPwr)
void void
ar6000_channelList_rx(void *devt, A_INT8 numChan, A_UINT16 *chanList) ar6000_channelList_rx(void *devt, A_INT8 numChan, u16 *chanList)
{ {
AR_SOFTC_T *ar = (AR_SOFTC_T *)devt; AR_SOFTC_T *ar = (AR_SOFTC_T *)devt;
A_MEMCPY(ar->arChannelList, chanList, numChan * sizeof (A_UINT16)); A_MEMCPY(ar->arChannelList, chanList, numChan * sizeof (u16));
ar->arNumChannels = numChan; ar->arNumChannels = numChan;
wake_up(&arEvent); wake_up(&arEvent);
...@@ -3665,7 +3665,7 @@ ar6000_rx(void *Context, HTC_PACKET *pPacket) ...@@ -3665,7 +3665,7 @@ ar6000_rx(void *Context, HTC_PACKET *pPacket)
AR6000_STAT_INC(ar, rx_length_errors); AR6000_STAT_INC(ar, rx_length_errors);
A_NETBUF_FREE(skb); A_NETBUF_FREE(skb);
} else { } else {
A_UINT16 seq_no; u16 seq_no;
u8 meta_type; u8 meta_type;
#if 0 #if 0
...@@ -3678,7 +3678,7 @@ ar6000_rx(void *Context, HTC_PACKET *pPacket) ...@@ -3678,7 +3678,7 @@ ar6000_rx(void *Context, HTC_PACKET *pPacket)
sta_t *conn = NULL; sta_t *conn = NULL;
u8 psState=0,prevPsState; u8 psState=0,prevPsState;
ATH_MAC_HDR *datap=NULL; ATH_MAC_HDR *datap=NULL;
A_UINT16 offset; u16 offset;
meta_type = WMI_DATA_HDR_GET_META(dhdr); meta_type = WMI_DATA_HDR_GET_META(dhdr);
...@@ -4206,7 +4206,7 @@ ar6000_ready_event(void *devt, u8 *datap, u8 phyCap, A_UINT32 sw_ver, A_UINT32 a ...@@ -4206,7 +4206,7 @@ ar6000_ready_event(void *devt, u8 *datap, u8 phyCap, A_UINT32 sw_ver, A_UINT32 a
} }
void void
add_new_sta(AR_SOFTC_T *ar, u8 *mac, A_UINT16 aid, u8 *wpaie, add_new_sta(AR_SOFTC_T *ar, u8 *mac, u16 aid, u8 *wpaie,
u8 ielen, u8 keymgmt, u8 ucipher, u8 auth) u8 ielen, u8 keymgmt, u8 ucipher, u8 auth)
{ {
u8 free_slot=aid-1; u8 free_slot=aid-1;
...@@ -4222,8 +4222,8 @@ add_new_sta(AR_SOFTC_T *ar, u8 *mac, A_UINT16 aid, u8 *wpaie, ...@@ -4222,8 +4222,8 @@ add_new_sta(AR_SOFTC_T *ar, u8 *mac, A_UINT16 aid, u8 *wpaie,
} }
void void
ar6000_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, u8 *bssid, ar6000_connect_event(AR_SOFTC_T *ar, u16 channel, u8 *bssid,
A_UINT16 listenInterval, A_UINT16 beaconInterval, u16 listenInterval, u16 beaconInterval,
NETWORK_TYPE networkType, u8 beaconIeLen, NETWORK_TYPE networkType, u8 beaconIeLen,
u8 assocReqLen, u8 assocRespLen, u8 assocReqLen, u8 assocRespLen,
u8 *assocInfo) u8 *assocInfo)
...@@ -4398,9 +4398,9 @@ ar6000_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, u8 *bssid, ...@@ -4398,9 +4398,9 @@ ar6000_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, u8 *bssid,
if (assocRespLen && (sizeof(buf) > (12 + (assocRespLen * 2)))) if (assocRespLen && (sizeof(buf) > (12 + (assocRespLen * 2))))
{ {
assoc_resp_ie_pos = beaconIeLen + assocReqLen + assoc_resp_ie_pos = beaconIeLen + assocReqLen +
sizeof(A_UINT16) + /* capinfo*/ sizeof(u16) + /* capinfo*/
sizeof(A_UINT16) + /* status Code */ sizeof(u16) + /* status Code */
sizeof(A_UINT16) ; /* associd */ sizeof(u16) ; /* associd */
A_MEMZERO(buf, sizeof(buf)); A_MEMZERO(buf, sizeof(buf));
sprintf(buf, "%s", tag2); sprintf(buf, "%s", tag2);
pos = buf + 12; pos = buf + 12;
...@@ -4427,8 +4427,8 @@ ar6000_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, u8 *bssid, ...@@ -4427,8 +4427,8 @@ ar6000_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, u8 *bssid,
* assoc Request includes capability and listen interval. Skip these. * assoc Request includes capability and listen interval. Skip these.
*/ */
assoc_req_ie_pos = beaconIeLen + assoc_req_ie_pos = beaconIeLen +
sizeof(A_UINT16) + /* capinfo*/ sizeof(u16) + /* capinfo*/
sizeof(A_UINT16); /* listen interval */ sizeof(u16); /* listen interval */
A_MEMZERO(buf, sizeof(buf)); A_MEMZERO(buf, sizeof(buf));
sprintf(buf, "%s", tag1); sprintf(buf, "%s", tag1);
...@@ -4538,7 +4538,7 @@ sta_cleanup(AR_SOFTC_T *ar, u8 i) ...@@ -4538,7 +4538,7 @@ sta_cleanup(AR_SOFTC_T *ar, u8 i)
} }
u8 remove_sta(AR_SOFTC_T *ar, u8 *mac, A_UINT16 reason) u8 remove_sta(AR_SOFTC_T *ar, u8 *mac, u16 reason)
{ {
u8 i, removed=0; u8 i, removed=0;
...@@ -4572,7 +4572,7 @@ u8 remove_sta(AR_SOFTC_T *ar, u8 *mac, A_UINT16 reason) ...@@ -4572,7 +4572,7 @@ u8 remove_sta(AR_SOFTC_T *ar, u8 *mac, A_UINT16 reason)
void void
ar6000_disconnect_event(AR_SOFTC_T *ar, u8 reason, u8 *bssid, ar6000_disconnect_event(AR_SOFTC_T *ar, u8 reason, u8 *bssid,
u8 assocRespLen, u8 *assocInfo, A_UINT16 protocolReasonStatus) u8 assocRespLen, u8 *assocInfo, u16 protocolReasonStatus)
{ {
u8 i; u8 i;
unsigned long flags; unsigned long flags;
...@@ -5127,8 +5127,8 @@ ar6000_cac_event(AR_SOFTC_T *ar, u8 ac, u8 cacIndication, ...@@ -5127,8 +5127,8 @@ ar6000_cac_event(AR_SOFTC_T *ar, u8 ac, u8 cacIndication,
} }
void void
ar6000_channel_change_event(AR_SOFTC_T *ar, A_UINT16 oldChannel, ar6000_channel_change_event(AR_SOFTC_T *ar, u16 oldChannel,
A_UINT16 newChannel) u16 newChannel)
{ {
A_PRINTF("Channel Change notification\nOld Channel: %d, New Channel: %d\n", A_PRINTF("Channel Change notification\nOld Channel: %d, New Channel: %d\n",
oldChannel, newChannel); oldChannel, newChannel);
...@@ -5519,7 +5519,7 @@ ar6000_alloc_cookie(AR_SOFTC_T *ar) ...@@ -5519,7 +5519,7 @@ ar6000_alloc_cookie(AR_SOFTC_T *ar)
* the event ID and event content. * the event ID and event content.
*/ */
#define EVENT_ID_LEN 2 #define EVENT_ID_LEN 2
void ar6000_send_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId, void ar6000_send_event_to_app(AR_SOFTC_T *ar, u16 eventId,
u8 *datap, int len) u8 *datap, int len)
{ {
...@@ -5528,7 +5528,7 @@ void ar6000_send_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId, ...@@ -5528,7 +5528,7 @@ void ar6000_send_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId,
/* note: IWEVCUSTOM only exists in wireless extensions after version 15 */ /* note: IWEVCUSTOM only exists in wireless extensions after version 15 */
char *buf; char *buf;
A_UINT16 size; u16 size;
union iwreq_data wrqu; union iwreq_data wrqu;
size = len + EVENT_ID_LEN; size = len + EVENT_ID_LEN;
...@@ -5549,7 +5549,7 @@ void ar6000_send_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId, ...@@ -5549,7 +5549,7 @@ void ar6000_send_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId,
A_MEMCPY(buf, &eventId, EVENT_ID_LEN); A_MEMCPY(buf, &eventId, EVENT_ID_LEN);
A_MEMCPY(buf+EVENT_ID_LEN, datap, len); A_MEMCPY(buf+EVENT_ID_LEN, datap, len);
//AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("event ID = %d,len = %d\n",*(A_UINT16*)buf, size)); //AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("event ID = %d,len = %d\n",*(u16 *)buf, size));
A_MEMZERO(&wrqu, sizeof(wrqu)); A_MEMZERO(&wrqu, sizeof(wrqu));
wrqu.data.length = size; wrqu.data.length = size;
wireless_send_event(ar->arNetDev, IWEVCUSTOM, &wrqu, buf); wireless_send_event(ar->arNetDev, IWEVCUSTOM, &wrqu, buf);
...@@ -5564,7 +5564,7 @@ void ar6000_send_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId, ...@@ -5564,7 +5564,7 @@ void ar6000_send_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId,
* to the application. The buf which is sent to application * to the application. The buf which is sent to application
* includes the event ID and event content. * includes the event ID and event content.
*/ */
void ar6000_send_generic_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId, void ar6000_send_generic_event_to_app(AR_SOFTC_T *ar, u16 eventId,
u8 *datap, int len) u8 *datap, int len)
{ {
...@@ -5573,7 +5573,7 @@ void ar6000_send_generic_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId, ...@@ -5573,7 +5573,7 @@ void ar6000_send_generic_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId,
/* IWEVGENIE exists in wireless extensions version 18 onwards */ /* IWEVGENIE exists in wireless extensions version 18 onwards */
char *buf; char *buf;
A_UINT16 size; u16 size;
union iwreq_data wrqu; union iwreq_data wrqu;
size = len + EVENT_ID_LEN; size = len + EVENT_ID_LEN;
...@@ -5648,7 +5648,7 @@ a_copy_from_user(void *to, const void *from, A_UINT32 n) ...@@ -5648,7 +5648,7 @@ a_copy_from_user(void *to, const void *from, A_UINT32 n)
int int
ar6000_get_driver_cfg(struct net_device *dev, ar6000_get_driver_cfg(struct net_device *dev,
A_UINT16 cfgParam, u16 cfgParam,
void *result) void *result)
{ {
...@@ -5805,12 +5805,12 @@ read_rssi_compensation_param(AR_SOFTC_T *ar) ...@@ -5805,12 +5805,12 @@ read_rssi_compensation_param(AR_SOFTC_T *ar)
cust_data_ptr = ar6000_get_cust_data_buffer(ar->arTargetType); cust_data_ptr = ar6000_get_cust_data_buffer(ar->arTargetType);
rssi_compensation_param.customerID = *(A_UINT16 *)cust_data_ptr & 0xffff; rssi_compensation_param.customerID = *(u16 *)cust_data_ptr & 0xffff;
rssi_compensation_param.enable = *(A_UINT16 *)(cust_data_ptr+2) & 0xffff; rssi_compensation_param.enable = *(u16 *)(cust_data_ptr+2) & 0xffff;
rssi_compensation_param.bg_param_a = *(A_UINT16 *)(cust_data_ptr+4) & 0xffff; rssi_compensation_param.bg_param_a = *(u16 *)(cust_data_ptr+4) & 0xffff;
rssi_compensation_param.bg_param_b = *(A_UINT16 *)(cust_data_ptr+6) & 0xffff; rssi_compensation_param.bg_param_b = *(u16 *)(cust_data_ptr+6) & 0xffff;
rssi_compensation_param.a_param_a = *(A_UINT16 *)(cust_data_ptr+8) & 0xffff; rssi_compensation_param.a_param_a = *(u16 *)(cust_data_ptr+8) & 0xffff;
rssi_compensation_param.a_param_b = *(A_UINT16 *)(cust_data_ptr+10) &0xffff; rssi_compensation_param.a_param_b = *(u16 *)(cust_data_ptr+10) &0xffff;
rssi_compensation_param.reserved = *(A_UINT32 *)(cust_data_ptr+12); rssi_compensation_param.reserved = *(A_UINT32 *)(cust_data_ptr+12);
#ifdef RSSICOMPENSATION_PRINT #ifdef RSSICOMPENSATION_PRINT
...@@ -6139,7 +6139,7 @@ ar6000_connect_to_ap(struct ar6_softc *ar) ...@@ -6139,7 +6139,7 @@ ar6000_connect_to_ap(struct ar6_softc *ar)
/* Set the listen interval into 1000TUs or more. This value will be indicated to Ap in the conn. /* Set the listen interval into 1000TUs or more. This value will be indicated to Ap in the conn.
later set it back locally at the STA to 100/1000 TUs depending on the power mode */ later set it back locally at the STA to 100/1000 TUs depending on the power mode */
if ((ar->arNetworkType == INFRA_NETWORK)) { if ((ar->arNetworkType == INFRA_NETWORK)) {
wmi_listeninterval_cmd(ar->arWmi, max(ar->arListenIntervalT, (A_UINT16)A_MAX_WOW_LISTEN_INTERVAL), 0); wmi_listeninterval_cmd(ar->arWmi, max(ar->arListenIntervalT, (u16)A_MAX_WOW_LISTEN_INTERVAL), 0);
} }
status = wmi_connect_cmd(ar->arWmi, ar->arNetworkType, status = wmi_connect_cmd(ar->arWmi, ar->arNetworkType,
ar->arDot11AuthMode, ar->arAuthMode, ar->arDot11AuthMode, ar->arAuthMode,
...@@ -6187,7 +6187,7 @@ ar6000_ap_mode_get_wpa_ie(struct ar6_softc *ar, struct ieee80211req_wpaie *wpaie ...@@ -6187,7 +6187,7 @@ ar6000_ap_mode_get_wpa_ie(struct ar6_softc *ar, struct ieee80211req_wpaie *wpaie
} }
int int
is_iwioctl_allowed(u8 mode, A_UINT16 cmd) is_iwioctl_allowed(u8 mode, u16 cmd)
{ {
if(cmd >= SIOCSIWCOMMIT && cmd <= SIOCGIWPOWER) { if(cmd >= SIOCSIWCOMMIT && cmd <= SIOCGIWPOWER) {
cmd -= SIOCSIWCOMMIT; cmd -= SIOCSIWCOMMIT;
......
...@@ -74,8 +74,8 @@ static void ar6k_send_asleep_event_to_app(AR_SOFTC_T *ar, bool asleep) ...@@ -74,8 +74,8 @@ static void ar6k_send_asleep_event_to_app(AR_SOFTC_T *ar, bool asleep)
static void ar6000_wow_resume(AR_SOFTC_T *ar) static void ar6000_wow_resume(AR_SOFTC_T *ar)
{ {
if (ar->arWowState!= WLAN_WOW_STATE_NONE) { if (ar->arWowState!= WLAN_WOW_STATE_NONE) {
A_UINT16 fg_start_period = (ar->scParams.fg_start_period==0) ? 1 : ar->scParams.fg_start_period; u16 fg_start_period = (ar->scParams.fg_start_period==0) ? 1 : ar->scParams.fg_start_period;
A_UINT16 bg_period = (ar->scParams.bg_period==0) ? 60 : ar->scParams.bg_period; u16 bg_period = (ar->scParams.bg_period==0) ? 60 : ar->scParams.bg_period;
WMI_SET_HOST_SLEEP_MODE_CMD hostSleepMode = {true, false}; WMI_SET_HOST_SLEEP_MODE_CMD hostSleepMode = {true, false};
ar->arWowState = WLAN_WOW_STATE_NONE; ar->arWowState = WLAN_WOW_STATE_NONE;
if (wmi_set_host_sleep_mode_cmd(ar->arWmi, &hostSleepMode)!=A_OK) { if (wmi_set_host_sleep_mode_cmd(ar->arWmi, &hostSleepMode)!=A_OK) {
...@@ -251,7 +251,7 @@ int ar6000_suspend_ev(void *context) ...@@ -251,7 +251,7 @@ int ar6000_suspend_ev(void *context)
int ar6000_resume_ev(void *context) int ar6000_resume_ev(void *context)
{ {
AR_SOFTC_T *ar = (AR_SOFTC_T *)context; AR_SOFTC_T *ar = (AR_SOFTC_T *)context;
A_UINT16 powerState = ar->arWlanPowerState; u16 powerState = ar->arWlanPowerState;
AR_DEBUG_PRINTF(ATH_DEBUG_PM, ("%s: enter previous state %d wowState %d\n", __func__, powerState, ar->arWowState)); AR_DEBUG_PRINTF(ATH_DEBUG_PM, ("%s: enter previous state %d wowState %d\n", __func__, powerState, ar->arWowState));
switch (powerState) { switch (powerState) {
...@@ -425,7 +425,7 @@ ar6000_setup_deep_sleep_state(struct ar6_softc *ar, AR6000_WLAN_STATE state) ...@@ -425,7 +425,7 @@ ar6000_setup_deep_sleep_state(struct ar6_softc *ar, AR6000_WLAN_STATE state)
WMI_SET_HOST_SLEEP_MODE_CMD hostSleepMode; WMI_SET_HOST_SLEEP_MODE_CMD hostSleepMode;
if (state == WLAN_ENABLED) { if (state == WLAN_ENABLED) {
A_UINT16 fg_start_period; u16 fg_start_period;
/* Not in deep sleep state.. exit */ /* Not in deep sleep state.. exit */
if (ar->arWlanPowerState != WLAN_POWER_STATE_DEEP_SLEEP) { if (ar->arWlanPowerState != WLAN_POWER_STATE_DEEP_SLEEP) {
...@@ -540,7 +540,7 @@ int ...@@ -540,7 +540,7 @@ int
ar6000_update_wlan_pwr_state(struct ar6_softc *ar, AR6000_WLAN_STATE state, bool pmEvent) ar6000_update_wlan_pwr_state(struct ar6_softc *ar, AR6000_WLAN_STATE state, bool pmEvent)
{ {
int status = A_OK; int status = A_OK;
A_UINT16 powerState, oldPowerState; u16 powerState, oldPowerState;
AR6000_WLAN_STATE oldstate = ar->arWlanState; AR6000_WLAN_STATE oldstate = ar->arWlanState;
bool wlanOff = ar->arWlanOff; bool wlanOff = ar->arWlanOff;
#ifdef CONFIG_PM #ifdef CONFIG_PM
......
...@@ -428,14 +428,14 @@ ar6k_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev, ...@@ -428,14 +428,14 @@ ar6k_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
} }
void void
ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, u16 channel,
u8 *bssid, A_UINT16 listenInterval, u8 *bssid, u16 listenInterval,
A_UINT16 beaconInterval,NETWORK_TYPE networkType, u16 beaconInterval,NETWORK_TYPE networkType,
u8 beaconIeLen, u8 assocReqLen, u8 beaconIeLen, u8 assocReqLen,
u8 assocRespLen, u8 *assocInfo) u8 assocRespLen, u8 *assocInfo)
{ {
A_UINT16 size = 0; u16 size = 0;
A_UINT16 capability = 0; u16 capability = 0;
struct cfg80211_bss *bss = NULL; struct cfg80211_bss *bss = NULL;
struct ieee80211_mgmt *mgmt = NULL; struct ieee80211_mgmt *mgmt = NULL;
struct ieee80211_channel *ibss_channel = NULL; struct ieee80211_channel *ibss_channel = NULL;
...@@ -446,11 +446,11 @@ ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, ...@@ -446,11 +446,11 @@ ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, A_UINT16 channel,
unsigned char *ieeemgmtbuf = NULL; unsigned char *ieeemgmtbuf = NULL;
u8 source_mac[ATH_MAC_LEN]; u8 source_mac[ATH_MAC_LEN];
u8 assocReqIeOffset = sizeof(A_UINT16) + /* capinfo*/ u8 assocReqIeOffset = sizeof(u16) + /* capinfo*/
sizeof(A_UINT16); /* listen interval */ sizeof(u16); /* listen interval */
u8 assocRespIeOffset = sizeof(A_UINT16) + /* capinfo*/ u8 assocRespIeOffset = sizeof(u16) + /* capinfo*/
sizeof(A_UINT16) + /* status Code */ sizeof(u16) + /* status Code */
sizeof(A_UINT16); /* associd */ sizeof(u16); /* associd */
u8 *assocReqIe = assocInfo + beaconIeLen + assocReqIeOffset; u8 *assocReqIe = assocInfo + beaconIeLen + assocReqIeOffset;
u8 *assocRespIe = assocInfo + beaconIeLen + assocReqLen + assocRespIeOffset; u8 *assocRespIe = assocInfo + beaconIeLen + assocReqLen + assocRespIeOffset;
...@@ -513,7 +513,7 @@ ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, ...@@ -513,7 +513,7 @@ ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, A_UINT16 channel,
A_MEMCPY(source_mac, ar->arNetDev->dev_addr, ATH_MAC_LEN); A_MEMCPY(source_mac, ar->arNetDev->dev_addr, ATH_MAC_LEN);
ptr_ie_buf = ie_buf; ptr_ie_buf = ie_buf;
} else { } else {
capability = *(A_UINT16 *)(&assocInfo[beaconIeLen]); capability = *(u16 *)(&assocInfo[beaconIeLen]);
A_MEMCPY(source_mac, bssid, ATH_MAC_LEN); A_MEMCPY(source_mac, bssid, ATH_MAC_LEN);
ptr_ie_buf = assocReqIe; ptr_ie_buf = assocReqIe;
ie_buf_len = assocReqLen; ie_buf_len = assocReqLen;
...@@ -577,7 +577,7 @@ ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, ...@@ -577,7 +577,7 @@ ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, A_UINT16 channel,
static int static int
ar6k_cfg80211_disconnect(struct wiphy *wiphy, struct net_device *dev, ar6k_cfg80211_disconnect(struct wiphy *wiphy, struct net_device *dev,
A_UINT16 reason_code) u16 reason_code)
{ {
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev); AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
...@@ -620,7 +620,7 @@ ar6k_cfg80211_disconnect(struct wiphy *wiphy, struct net_device *dev, ...@@ -620,7 +620,7 @@ ar6k_cfg80211_disconnect(struct wiphy *wiphy, struct net_device *dev,
void void
ar6k_cfg80211_disconnect_event(AR_SOFTC_T *ar, u8 reason, ar6k_cfg80211_disconnect_event(AR_SOFTC_T *ar, u8 reason,
u8 *bssid, u8 assocRespLen, u8 *bssid, u8 assocRespLen,
u8 *assocInfo, A_UINT16 protocolReasonStatus) u8 *assocInfo, u16 protocolReasonStatus)
{ {
AR_DEBUG_PRINTF(ATH_DEBUG_INFO, ("%s: reason=%u\n", __func__, reason)); AR_DEBUG_PRINTF(ATH_DEBUG_INFO, ("%s: reason=%u\n", __func__, reason));
...@@ -663,7 +663,7 @@ void ...@@ -663,7 +663,7 @@ void
ar6k_cfg80211_scan_node(void *arg, bss_t *ni) ar6k_cfg80211_scan_node(void *arg, bss_t *ni)
{ {
struct wiphy *wiphy = (struct wiphy *)arg; struct wiphy *wiphy = (struct wiphy *)arg;
A_UINT16 size; u16 size;
unsigned char *ieeemgmtbuf = NULL; unsigned char *ieeemgmtbuf = NULL;
struct ieee80211_mgmt *mgmt; struct ieee80211_mgmt *mgmt;
struct ieee80211_channel *channel; struct ieee80211_channel *channel;
......
...@@ -106,20 +106,20 @@ static void ...@@ -106,20 +106,20 @@ static void
update_mac(unsigned char *eeprom, int size, unsigned char *macaddr) update_mac(unsigned char *eeprom, int size, unsigned char *macaddr)
{ {
int i; int i;
A_UINT16* ptr = (A_UINT16*)(eeprom+4); u16 *ptr = (u16 *)(eeprom+4);
A_UINT16 checksum = 0; u16 checksum = 0;
memcpy(eeprom+10,macaddr,6); memcpy(eeprom+10,macaddr,6);
*ptr = 0; *ptr = 0;
ptr = (A_UINT16*)eeprom; ptr = (u16 *)eeprom;
for (i=0; i<size; i+=2) { for (i=0; i<size; i+=2) {
checksum ^= *ptr++; checksum ^= *ptr++;
} }
checksum = ~checksum; checksum = ~checksum;
ptr = (A_UINT16*)(eeprom+4); ptr = (u16 *)(eeprom+4);
*ptr = checksum; *ptr = checksum;
return; return;
} }
......
...@@ -97,7 +97,7 @@ typedef struct { ...@@ -97,7 +97,7 @@ typedef struct {
#define TX_PACKET_RSV_OFFSET 32 #define TX_PACKET_RSV_OFFSET 32
#define NUM_HTC_PACKET_STRUCTS ((MAX_ACL_RECV_BUFS + MAX_EVT_RECV_BUFS + MAX_HCI_WRITE_QUEUE_DEPTH) * 2) #define NUM_HTC_PACKET_STRUCTS ((MAX_ACL_RECV_BUFS + MAX_EVT_RECV_BUFS + MAX_HCI_WRITE_QUEUE_DEPTH) * 2)
#define HCI_GET_OP_CODE(p) (((A_UINT16)((p)[1])) << 8) | ((A_UINT16)((p)[0])) #define HCI_GET_OP_CODE(p) (((u16)((p)[1])) << 8) | ((u16)((p)[0]))
extern unsigned int setupbtdev; extern unsigned int setupbtdev;
AR3K_CONFIG_INFO ar3kconfig; AR3K_CONFIG_INFO ar3kconfig;
...@@ -285,8 +285,8 @@ static int ar6000_hci_transport_ready(HCI_TRANSPORT_HANDLE HCIHandle, ...@@ -285,8 +285,8 @@ static int ar6000_hci_transport_ready(HCI_TRANSPORT_HANDLE HCIHandle,
if ((hciuartscale != 0) || (hciuartstep != 0)) { if ((hciuartscale != 0) || (hciuartstep != 0)) {
/* user wants to tune HCI bridge UART scale/step values */ /* user wants to tune HCI bridge UART scale/step values */
ar3kconfig.AR6KScale = (A_UINT16)hciuartscale; ar3kconfig.AR6KScale = (u16)hciuartscale;
ar3kconfig.AR6KStep = (A_UINT16)hciuartstep; ar3kconfig.AR6KStep = (u16)hciuartstep;
ar3kconfig.Flags |= AR3K_CONFIG_FLAG_SET_AR6K_SCALE_STEP; ar3kconfig.Flags |= AR3K_CONFIG_FLAG_SET_AR6K_SCALE_STEP;
} }
...@@ -757,7 +757,7 @@ static int bt_send_frame(struct sk_buff *skb) ...@@ -757,7 +757,7 @@ static int bt_send_frame(struct sk_buff *skb)
(type == HCI_COMMAND_TYPE) ? "COMMAND" : "ACL", (type == HCI_COMMAND_TYPE) ? "COMMAND" : "ACL",
skb->len)); skb->len));
if (type == HCI_COMMAND_TYPE) { if (type == HCI_COMMAND_TYPE) {
A_UINT16 opcode = HCI_GET_OP_CODE(skb->data); u16 opcode = HCI_GET_OP_CODE(skb->data);
AR_DEBUG_PRINTF(ATH_DEBUG_ANY,(" HCI Command: OGF:0x%X OCF:0x%X \r\n", AR_DEBUG_PRINTF(ATH_DEBUG_ANY,(" HCI Command: OGF:0x%X OCF:0x%X \r\n",
opcode >> 10, opcode & 0x3FF)); opcode >> 10, opcode & 0x3FF));
} }
......
...@@ -436,7 +436,7 @@ struct ar_hb_chlng_resp { ...@@ -436,7 +436,7 @@ struct ar_hb_chlng_resp {
#define STA_IS_PS_POLLED(sta) (sta->flags & (STA_PS_POLLED_MASK << STA_PS_POLLED_SHIFT)) #define STA_IS_PS_POLLED(sta) (sta->flags & (STA_PS_POLLED_MASK << STA_PS_POLLED_SHIFT))
typedef struct { typedef struct {
A_UINT16 flags; u16 flags;
u8 mac[ATH_MAC_LEN]; u8 mac[ATH_MAC_LEN];
u8 aid; u8 aid;
u8 keymgmt; u8 keymgmt;
...@@ -487,10 +487,10 @@ typedef struct ar6_softc { ...@@ -487,10 +487,10 @@ typedef struct ar6_softc {
struct ar_wep_key arWepKeyList[WMI_MAX_KEY_INDEX + 1]; struct ar_wep_key arWepKeyList[WMI_MAX_KEY_INDEX + 1];
u8 arBssid[6]; u8 arBssid[6];
u8 arReqBssid[6]; u8 arReqBssid[6];
A_UINT16 arChannelHint; u16 arChannelHint;
A_UINT16 arBssChannel; u16 arBssChannel;
A_UINT16 arListenIntervalB; u16 arListenIntervalB;
A_UINT16 arListenIntervalT; u16 arListenIntervalT;
struct ar6000_version arVersion; struct ar6000_version arVersion;
A_UINT32 arTargetType; A_UINT32 arTargetType;
A_INT8 arRssi; A_INT8 arRssi;
...@@ -500,7 +500,7 @@ typedef struct ar6_softc { ...@@ -500,7 +500,7 @@ typedef struct ar6_softc {
struct net_device_stats arNetStats; struct net_device_stats arNetStats;
struct iw_statistics arIwStats; struct iw_statistics arIwStats;
A_INT8 arNumChannels; A_INT8 arNumChannels;
A_UINT16 arChannelList[32]; u16 arChannelList[32];
A_UINT32 arRegCode; A_UINT32 arRegCode;
bool statsUpdatePending; bool statsUpdatePending;
TARGET_STATS arTargetStats; TARGET_STATS arTargetStats;
...@@ -514,8 +514,8 @@ typedef struct ar6_softc { ...@@ -514,8 +514,8 @@ typedef struct ar6_softc {
A_UINT32 arTargetMode; A_UINT32 arTargetMode;
A_UINT32 tcmdRxcrcErrPkt; A_UINT32 tcmdRxcrcErrPkt;
A_UINT32 tcmdRxsecErrPkt; A_UINT32 tcmdRxsecErrPkt;
A_UINT16 tcmdRateCnt[TCMD_MAX_RATES]; u16 tcmdRateCnt[TCMD_MAX_RATES];
A_UINT16 tcmdRateCntShortGuard[TCMD_MAX_RATES]; u16 tcmdRateCntShortGuard[TCMD_MAX_RATES];
#endif #endif
AR6000_WLAN_STATE arWlanState; AR6000_WLAN_STATE arWlanState;
struct ar_node_mapping arNodeMap[MAX_NODE_NUM]; struct ar_node_mapping arNodeMap[MAX_NODE_NUM];
...@@ -526,7 +526,7 @@ typedef struct ar6_softc { ...@@ -526,7 +526,7 @@ typedef struct ar6_softc {
A_UINT32 arCookieCount; A_UINT32 arCookieCount;
A_UINT32 arRateMask; A_UINT32 arRateMask;
u8 arSkipScan; u8 arSkipScan;
A_UINT16 arBeaconInterval; u16 arBeaconInterval;
bool arConnectPending; bool arConnectPending;
bool arWmmEnabled; bool arWmmEnabled;
struct ar_hb_chlng_resp arHBChallengeResp; struct ar_hb_chlng_resp arHBChallengeResp;
...@@ -558,7 +558,7 @@ typedef struct ar6_softc { ...@@ -558,7 +558,7 @@ typedef struct ar6_softc {
#endif #endif
USER_RSSI_THOLD rssi_map[12]; USER_RSSI_THOLD rssi_map[12];
u8 arUserBssFilter; u8 arUserBssFilter;
A_UINT16 ap_profile_flag; /* AP mode */ u16 ap_profile_flag; /* AP mode */
WMI_AP_ACL g_acl; /* AP mode */ WMI_AP_ACL g_acl; /* AP mode */
sta_t sta_list[AP_MAX_NUM_STA]; /* AP mode */ sta_t sta_list[AP_MAX_NUM_STA]; /* AP mode */
u8 sta_list_index; /* AP mode */ u8 sta_list_index; /* AP mode */
...@@ -577,9 +577,9 @@ typedef struct ar6_softc { ...@@ -577,9 +577,9 @@ typedef struct ar6_softc {
u8 ap_country_code[3]; u8 ap_country_code[3];
u8 ap_wmode; u8 ap_wmode;
u8 ap_dtim_period; u8 ap_dtim_period;
A_UINT16 ap_beacon_interval; u16 ap_beacon_interval;
A_UINT16 arRTS; u16 arRTS;
A_UINT16 arACS; /* AP mode - Auto Channel Selection */ u16 arACS; /* AP mode - Auto Channel Selection */
HTC_PACKET_QUEUE amsdu_rx_buffer_queue; HTC_PACKET_QUEUE amsdu_rx_buffer_queue;
bool bIsDestroyProgress; /* flag to indicate ar6k destroy is in progress */ bool bIsDestroyProgress; /* flag to indicate ar6k destroy is in progress */
A_TIMER disconnect_timer; A_TIMER disconnect_timer;
...@@ -596,15 +596,15 @@ typedef struct ar6_softc { ...@@ -596,15 +596,15 @@ typedef struct ar6_softc {
struct cfg80211_scan_request *scan_request; struct cfg80211_scan_request *scan_request;
struct ar_key keys[WMI_MAX_KEY_INDEX + 1]; struct ar_key keys[WMI_MAX_KEY_INDEX + 1];
#endif /* ATH6K_CONFIG_CFG80211 */ #endif /* ATH6K_CONFIG_CFG80211 */
A_UINT16 arWlanPowerState; u16 arWlanPowerState;
bool arWlanOff; bool arWlanOff;
#ifdef CONFIG_PM #ifdef CONFIG_PM
A_UINT16 arWowState; u16 arWowState;
bool arBTOff; bool arBTOff;
bool arBTSharing; bool arBTSharing;
A_UINT16 arSuspendConfig; u16 arSuspendConfig;
A_UINT16 arWlanOffConfig; u16 arWlanOffConfig;
A_UINT16 arWow2Config; u16 arWow2Config;
#endif #endif
u8 scan_triggered; u8 scan_triggered;
WMI_SCAN_PARAMS_CMD scParams; WMI_SCAN_PARAMS_CMD scParams;
...@@ -731,7 +731,7 @@ ieee80211_find_conn(AR_SOFTC_T *ar, u8 *node_addr); ...@@ -731,7 +731,7 @@ ieee80211_find_conn(AR_SOFTC_T *ar, u8 *node_addr);
sta_t * sta_t *
ieee80211_find_conn_for_aid(AR_SOFTC_T *ar, u8 aid); ieee80211_find_conn_for_aid(AR_SOFTC_T *ar, u8 aid);
u8 remove_sta(AR_SOFTC_T *ar, u8 *mac, A_UINT16 reason); u8 remove_sta(AR_SOFTC_T *ar, u8 *mac, u16 reason);
/* HCI support */ /* HCI support */
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
//============================================================================== //==============================================================================
#ifndef _AR6K_PAL_H_ #ifndef _AR6K_PAL_H_
#define _AR6K_PAL_H_ #define _AR6K_PAL_H_
#define HCI_GET_OP_CODE(p) (((A_UINT16)((p)[1])) << 8) | ((A_UINT16)((p)[0])) #define HCI_GET_OP_CODE(p) (((u16)((p)[1])) << 8) | ((u16)((p)[0]))
/* transmit packet reserve offset */ /* transmit packet reserve offset */
#define TX_PACKET_RSV_OFFSET 32 #define TX_PACKET_RSV_OFFSET 32
......
...@@ -32,18 +32,18 @@ struct ar6_softc; ...@@ -32,18 +32,18 @@ struct ar6_softc;
void ar6000_ready_event(void *devt, u8 *datap, u8 phyCap, void ar6000_ready_event(void *devt, u8 *datap, u8 phyCap,
A_UINT32 sw_ver, A_UINT32 abi_ver); A_UINT32 sw_ver, A_UINT32 abi_ver);
int ar6000_control_tx(void *devt, void *osbuf, HTC_ENDPOINT_ID eid); int ar6000_control_tx(void *devt, void *osbuf, HTC_ENDPOINT_ID eid);
void ar6000_connect_event(struct ar6_softc *ar, A_UINT16 channel, void ar6000_connect_event(struct ar6_softc *ar, u16 channel,
u8 *bssid, A_UINT16 listenInterval, u8 *bssid, u16 listenInterval,
A_UINT16 beaconInterval, NETWORK_TYPE networkType, u16 beaconInterval, NETWORK_TYPE networkType,
u8 beaconIeLen, u8 assocReqLen, u8 beaconIeLen, u8 assocReqLen,
u8 assocRespLen,u8 *assocInfo); u8 assocRespLen,u8 *assocInfo);
void ar6000_disconnect_event(struct ar6_softc *ar, u8 reason, void ar6000_disconnect_event(struct ar6_softc *ar, u8 reason,
u8 *bssid, u8 assocRespLen, u8 *bssid, u8 assocRespLen,
u8 *assocInfo, A_UINT16 protocolReasonStatus); u8 *assocInfo, u16 protocolReasonStatus);
void ar6000_tkip_micerr_event(struct ar6_softc *ar, u8 keyid, void ar6000_tkip_micerr_event(struct ar6_softc *ar, u8 keyid,
bool ismcast); bool ismcast);
void ar6000_bitrate_rx(void *devt, A_INT32 rateKbps); void ar6000_bitrate_rx(void *devt, A_INT32 rateKbps);
void ar6000_channelList_rx(void *devt, A_INT8 numChan, A_UINT16 *chanList); void ar6000_channelList_rx(void *devt, A_INT8 numChan, u16 *chanList);
void ar6000_regDomain_event(struct ar6_softc *ar, A_UINT32 regCode); void ar6000_regDomain_event(struct ar6_softc *ar, A_UINT32 regCode);
void ar6000_txPwr_rx(void *devt, u8 txPwr); void ar6000_txPwr_rx(void *devt, u8 txPwr);
void ar6000_keepalive_rx(void *devt, u8 configured); void ar6000_keepalive_rx(void *devt, u8 configured);
...@@ -58,7 +58,7 @@ void ar6000_rssiThreshold_event(struct ar6_softc *ar, ...@@ -58,7 +58,7 @@ void ar6000_rssiThreshold_event(struct ar6_softc *ar,
void ar6000_reportError_event(struct ar6_softc *, WMI_TARGET_ERROR_VAL errorVal); void ar6000_reportError_event(struct ar6_softc *, WMI_TARGET_ERROR_VAL errorVal);
void ar6000_cac_event(struct ar6_softc *ar, u8 ac, u8 cac_indication, void ar6000_cac_event(struct ar6_softc *ar, u8 ac, u8 cac_indication,
u8 statusCode, u8 *tspecSuggestion); u8 statusCode, u8 *tspecSuggestion);
void ar6000_channel_change_event(struct ar6_softc *ar, A_UINT16 oldChannel, A_UINT16 newChannel); void ar6000_channel_change_event(struct ar6_softc *ar, u16 oldChannel, u16 newChannel);
void ar6000_hbChallengeResp_event(struct ar6_softc *, A_UINT32 cookie, A_UINT32 source); void ar6000_hbChallengeResp_event(struct ar6_softc *, A_UINT32 cookie, A_UINT32 source);
void void
ar6000_roam_tbl_event(struct ar6_softc *ar, WMI_TARGET_ROAM_TBL *pTbl); ar6000_roam_tbl_event(struct ar6_softc *ar, WMI_TARGET_ROAM_TBL *pTbl);
...@@ -84,8 +84,8 @@ A_INT16 rssi_compensation_reverse_calc(struct ar6_softc *ar, A_INT16 rssi, bool ...@@ -84,8 +84,8 @@ A_INT16 rssi_compensation_reverse_calc(struct ar6_softc *ar, A_INT16 rssi, bool
void ar6000_dbglog_init_done(struct ar6_softc *ar); void ar6000_dbglog_init_done(struct ar6_softc *ar);
#ifdef SEND_EVENT_TO_APP #ifdef SEND_EVENT_TO_APP
void ar6000_send_event_to_app(struct ar6_softc *ar, A_UINT16 eventId, u8 *datap, int len); void ar6000_send_event_to_app(struct ar6_softc *ar, u16 eventId, u8 *datap, int len);
void ar6000_send_generic_event_to_app(struct ar6_softc *ar, A_UINT16 eventId, u8 *datap, int len); void ar6000_send_generic_event_to_app(struct ar6_softc *ar, u16 eventId, u8 *datap, int len);
#endif #endif
#ifdef CONFIG_HOST_TCMD_SUPPORT #ifdef CONFIG_HOST_TCMD_SUPPORT
...@@ -104,7 +104,7 @@ void ar6000_lqThresholdEvent_rx(void *devt, WMI_LQ_THRESHOLD_VAL range, u8 lqVal ...@@ -104,7 +104,7 @@ void ar6000_lqThresholdEvent_rx(void *devt, WMI_LQ_THRESHOLD_VAL range, u8 lqVal
void ar6000_ratemask_rx(void *devt, A_UINT32 ratemask); void ar6000_ratemask_rx(void *devt, A_UINT32 ratemask);
int ar6000_get_driver_cfg(struct net_device *dev, int ar6000_get_driver_cfg(struct net_device *dev,
A_UINT16 cfgParam, u16 cfgParam,
void *result); void *result);
void ar6000_bssInfo_event_rx(struct ar6_softc *ar, u8 *data, int len); void ar6000_bssInfo_event_rx(struct ar6_softc *ar, u8 *data, int len);
...@@ -152,7 +152,7 @@ struct ieee80211req_wpaie; ...@@ -152,7 +152,7 @@ struct ieee80211req_wpaie;
int int
ar6000_ap_mode_get_wpa_ie(struct ar6_softc *ar, struct ieee80211req_wpaie *wpaie); ar6000_ap_mode_get_wpa_ie(struct ar6_softc *ar, struct ieee80211req_wpaie *wpaie);
int is_iwioctl_allowed(u8 mode, A_UINT16 cmd); int is_iwioctl_allowed(u8 mode, u16 cmd);
int is_xioctl_allowed(u8 mode, int cmd); int is_xioctl_allowed(u8 mode, int cmd);
......
...@@ -1009,7 +1009,7 @@ struct ar6000_version { ...@@ -1009,7 +1009,7 @@ struct ar6000_version {
/* used by AR6000_IOCTL_WMI_GET_QOS_QUEUE */ /* used by AR6000_IOCTL_WMI_GET_QOS_QUEUE */
struct ar6000_queuereq { struct ar6000_queuereq {
u8 trafficClass; u8 trafficClass;
A_UINT16 activeTsids; u16 activeTsids;
}; };
/* used by AR6000_IOCTL_WMI_GET_TARGET_STATS */ /* used by AR6000_IOCTL_WMI_GET_TARGET_STATS */
...@@ -1067,7 +1067,7 @@ typedef struct targetStats_t { ...@@ -1067,7 +1067,7 @@ typedef struct targetStats_t {
A_UINT32 lq_val; A_UINT32 lq_val;
A_UINT32 wow_num_pkts_dropped; A_UINT32 wow_num_pkts_dropped;
A_UINT16 wow_num_events_discarded; u16 wow_num_events_discarded;
A_INT16 noise_floor_calibation; A_INT16 noise_floor_calibation;
A_INT16 cs_rssi; A_INT16 cs_rssi;
...@@ -1132,10 +1132,10 @@ struct ar6000_gpio_intr_wait_cmd_s { ...@@ -1132,10 +1132,10 @@ struct ar6000_gpio_intr_wait_cmd_s {
/* used by the AR6000_XIOCTL_DBGLOG_CFG_MODULE */ /* used by the AR6000_XIOCTL_DBGLOG_CFG_MODULE */
typedef struct ar6000_dbglog_module_config_s { typedef struct ar6000_dbglog_module_config_s {
A_UINT32 valid; A_UINT32 valid;
A_UINT16 mmask; u16 mmask;
A_UINT16 tsr; u16 tsr;
u32 rep; u32 rep;
A_UINT16 size; u16 size;
} DBGLOG_MODULE_CONFIG; } DBGLOG_MODULE_CONFIG;
typedef struct user_rssi_thold_t { typedef struct user_rssi_thold_t {
......
...@@ -29,15 +29,15 @@ void ar6k_cfg80211_deinit(AR_SOFTC_T *ar); ...@@ -29,15 +29,15 @@ void ar6k_cfg80211_deinit(AR_SOFTC_T *ar);
void ar6k_cfg80211_scanComplete_event(AR_SOFTC_T *ar, int status); void ar6k_cfg80211_scanComplete_event(AR_SOFTC_T *ar, int status);
void ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, void ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, u16 channel,
u8 *bssid, A_UINT16 listenInterval, u8 *bssid, u16 listenInterval,
A_UINT16 beaconInterval,NETWORK_TYPE networkType, u16 beaconInterval,NETWORK_TYPE networkType,
u8 beaconIeLen, u8 assocReqLen, u8 beaconIeLen, u8 assocReqLen,
u8 assocRespLen, u8 *assocInfo); u8 assocRespLen, u8 *assocInfo);
void ar6k_cfg80211_disconnect_event(AR_SOFTC_T *ar, u8 reason, void ar6k_cfg80211_disconnect_event(AR_SOFTC_T *ar, u8 reason,
u8 *bssid, u8 assocRespLen, u8 *bssid, u8 assocRespLen,
u8 *assocInfo, A_UINT16 protocolReasonStatus); u8 *assocInfo, u16 protocolReasonStatus);
void ar6k_cfg80211_tkip_micerr_event(AR_SOFTC_T *ar, u8 keyid, bool ismcast); void ar6k_cfg80211_tkip_micerr_event(AR_SOFTC_T *ar, u8 keyid, bool ismcast);
......
...@@ -343,7 +343,7 @@ ar6000_ioctl_set_channelParams(struct net_device *dev, struct ifreq *rq) ...@@ -343,7 +343,7 @@ ar6000_ioctl_set_channelParams(struct net_device *dev, struct ifreq *rq)
cmdp = A_MALLOC(130); cmdp = A_MALLOC(130);
if (copy_from_user(cmdp, rq->ifr_data, if (copy_from_user(cmdp, rq->ifr_data,
sizeof (*cmdp) + sizeof (*cmdp) +
((cmd.numChannels - 1) * sizeof(A_UINT16)))) ((cmd.numChannels - 1) * sizeof(u16))))
{ {
kfree(cmdp); kfree(cmdp);
return -EFAULT; return -EFAULT;
...@@ -703,7 +703,7 @@ ar6000_ioctl_tcmd_get_rx_report(struct net_device *dev, ...@@ -703,7 +703,7 @@ ar6000_ioctl_tcmd_get_rx_report(struct net_device *dev,
buf[2] = ar->tcmdRxcrcErrPkt; buf[2] = ar->tcmdRxcrcErrPkt;
buf[3] = ar->tcmdRxsecErrPkt; buf[3] = ar->tcmdRxsecErrPkt;
A_MEMCPY(((A_UCHAR *)buf)+(4*sizeof(A_UINT32)), ar->tcmdRateCnt, sizeof(ar->tcmdRateCnt)); A_MEMCPY(((A_UCHAR *)buf)+(4*sizeof(A_UINT32)), ar->tcmdRateCnt, sizeof(ar->tcmdRateCnt));
A_MEMCPY(((A_UCHAR *)buf)+(4*sizeof(A_UINT32))+(TCMD_MAX_RATES *sizeof(A_UINT16)), ar->tcmdRateCntShortGuard, sizeof(ar->tcmdRateCntShortGuard)); A_MEMCPY(((A_UCHAR *)buf)+(4*sizeof(A_UINT32))+(TCMD_MAX_RATES *sizeof(u16)), ar->tcmdRateCntShortGuard, sizeof(ar->tcmdRateCntShortGuard));
if (!ret && copy_to_user(rq->ifr_data, buf, sizeof(buf))) { if (!ret && copy_to_user(rq->ifr_data, buf, sizeof(buf))) {
ret = -EFAULT; ret = -EFAULT;
...@@ -3338,7 +3338,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) ...@@ -3338,7 +3338,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
if (copy_from_user(cmdp, userdata, if (copy_from_user(cmdp, userdata,
sizeof (*cmdp) + sizeof (*cmdp) +
((setStartScanCmd.numChannels - 1) * ((setStartScanCmd.numChannels - 1) *
sizeof(A_UINT16)))) sizeof(u16))))
{ {
kfree(cmdp); kfree(cmdp);
ret = -EFAULT; ret = -EFAULT;
......
...@@ -1196,7 +1196,7 @@ ar6000_ioctl_siwgenie(struct net_device *dev, ...@@ -1196,7 +1196,7 @@ ar6000_ioctl_siwgenie(struct net_device *dev,
#ifdef WAPI_ENABLE #ifdef WAPI_ENABLE
u8 *ie = erq->pointer; u8 *ie = erq->pointer;
u8 ie_type = ie[0]; u8 ie_type = ie[0];
A_UINT16 ie_length = erq->length; u16 ie_length = erq->length;
u8 wapi_ie[128]; u8 wapi_ie[128];
#endif #endif
...@@ -1249,7 +1249,7 @@ ar6000_ioctl_siwauth(struct net_device *dev, ...@@ -1249,7 +1249,7 @@ ar6000_ioctl_siwauth(struct net_device *dev,
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev); AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
bool profChanged; bool profChanged;
A_UINT16 param; u16 param;
A_INT32 ret; A_INT32 ret;
A_INT32 value; A_INT32 value;
...@@ -1418,7 +1418,7 @@ ar6000_ioctl_giwauth(struct net_device *dev, ...@@ -1418,7 +1418,7 @@ ar6000_ioctl_giwauth(struct net_device *dev,
struct iw_param *data, char *extra) struct iw_param *data, char *extra)
{ {
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev); AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
A_UINT16 param; u16 param;
A_INT32 ret; A_INT32 ret;
if (ar->arWmiReady == false) { if (ar->arWmiReady == false) {
......
...@@ -62,14 +62,14 @@ typedef enum { ...@@ -62,14 +62,14 @@ typedef enum {
typedef struct { typedef struct {
void *osbuf; void *osbuf;
bool is_amsdu; bool is_amsdu;
A_UINT16 seq_no; u16 seq_no;
}OSBUF_HOLD_Q; }OSBUF_HOLD_Q;
#if 0 #if 0
typedef struct { typedef struct {
A_UINT16 seqno_st; u16 seqno_st;
A_UINT16 seqno_end; u16 seqno_end;
}WINDOW_SNAPSHOT; }WINDOW_SNAPSHOT;
#endif #endif
...@@ -77,8 +77,8 @@ typedef struct { ...@@ -77,8 +77,8 @@ typedef struct {
bool aggr; /* is it ON or OFF */ bool aggr; /* is it ON or OFF */
bool progress; /* true when frames have arrived after a timer start */ bool progress; /* true when frames have arrived after a timer start */
bool timerMon; /* true if the timer started for the sake of this TID */ bool timerMon; /* true if the timer started for the sake of this TID */
A_UINT16 win_sz; /* negotiated window size */ u16 win_sz; /* negotiated window size */
A_UINT16 seq_next; /* Next seq no, in current window */ u16 seq_next; /* Next seq no, in current window */
A_UINT32 hold_q_sz; /* Num of frames that can be held in hold q */ A_UINT32 hold_q_sz; /* Num of frames that can be held in hold q */
OSBUF_HOLD_Q *hold_q; /* Hold q for re-order */ OSBUF_HOLD_Q *hold_q; /* Hold q for re-order */
#if 0 #if 0
......
...@@ -43,7 +43,7 @@ static void ...@@ -43,7 +43,7 @@ static void
aggr_timeout(A_ATH_TIMER arg); aggr_timeout(A_ATH_TIMER arg);
static void static void
aggr_deque_frms(AGGR_INFO *p_aggr, u8 tid, A_UINT16 seq_no, u8 order); aggr_deque_frms(AGGR_INFO *p_aggr, u8 tid, u16 seq_no, u8 order);
static void static void
aggr_dispatch_frames(AGGR_INFO *p_aggr, A_NETBUF_QUEUE_T *q); aggr_dispatch_frames(AGGR_INFO *p_aggr, A_NETBUF_QUEUE_T *q);
...@@ -187,7 +187,7 @@ aggr_register_rx_dispatcher(void *cntxt, void * dev, RX_CALLBACK fn) ...@@ -187,7 +187,7 @@ aggr_register_rx_dispatcher(void *cntxt, void * dev, RX_CALLBACK fn)
void void
aggr_process_bar(void *cntxt, u8 tid, A_UINT16 seq_no) aggr_process_bar(void *cntxt, u8 tid, u16 seq_no)
{ {
AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt; AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt;
RXTID_STATS *stats; RXTID_STATS *stats;
...@@ -201,7 +201,7 @@ aggr_process_bar(void *cntxt, u8 tid, A_UINT16 seq_no) ...@@ -201,7 +201,7 @@ aggr_process_bar(void *cntxt, u8 tid, A_UINT16 seq_no)
void void
aggr_recv_addba_req_evt(void *cntxt, u8 tid, A_UINT16 seq_no, u8 win_sz) aggr_recv_addba_req_evt(void *cntxt, u8 tid, u16 seq_no, u8 win_sz)
{ {
AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt; AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt;
RXTID *rxtid; RXTID *rxtid;
...@@ -269,11 +269,11 @@ aggr_recv_delba_req_evt(void *cntxt, u8 tid) ...@@ -269,11 +269,11 @@ aggr_recv_delba_req_evt(void *cntxt, u8 tid)
} }
static void static void
aggr_deque_frms(AGGR_INFO *p_aggr, u8 tid, A_UINT16 seq_no, u8 order) aggr_deque_frms(AGGR_INFO *p_aggr, u8 tid, u16 seq_no, u8 order)
{ {
RXTID *rxtid; RXTID *rxtid;
OSBUF_HOLD_Q *node; OSBUF_HOLD_Q *node;
A_UINT16 idx, idx_end, seq_end; u16 idx, idx_end, seq_end;
RXTID_STATS *stats; RXTID_STATS *stats;
A_ASSERT(p_aggr); A_ASSERT(p_aggr);
...@@ -359,7 +359,7 @@ static void ...@@ -359,7 +359,7 @@ static void
aggr_slice_amsdu(AGGR_INFO *p_aggr, RXTID *rxtid, void **osbuf) aggr_slice_amsdu(AGGR_INFO *p_aggr, RXTID *rxtid, void **osbuf)
{ {
void *new_buf; void *new_buf;
A_UINT16 frame_8023_len, payload_8023_len, mac_hdr_len, amsdu_len; u16 frame_8023_len, payload_8023_len, mac_hdr_len, amsdu_len;
u8 *framep; u8 *framep;
/* Frame format at this point: /* Frame format at this point:
...@@ -426,13 +426,13 @@ aggr_slice_amsdu(AGGR_INFO *p_aggr, RXTID *rxtid, void **osbuf) ...@@ -426,13 +426,13 @@ aggr_slice_amsdu(AGGR_INFO *p_aggr, RXTID *rxtid, void **osbuf)
} }
void void
aggr_process_recv_frm(void *cntxt, u8 tid, A_UINT16 seq_no, bool is_amsdu, void **osbuf) aggr_process_recv_frm(void *cntxt, u8 tid, u16 seq_no, bool is_amsdu, void **osbuf)
{ {
AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt; AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt;
RXTID *rxtid; RXTID *rxtid;
RXTID_STATS *stats; RXTID_STATS *stats;
A_UINT16 idx, st, cur, end; u16 idx, st, cur, end;
A_UINT16 *log_idx; u16 *log_idx;
OSBUF_HOLD_Q *node; OSBUF_HOLD_Q *node;
PACKET_LOG *log; PACKET_LOG *log;
...@@ -472,7 +472,7 @@ aggr_process_recv_frm(void *cntxt, u8 tid, A_UINT16 seq_no, bool is_amsdu, void ...@@ -472,7 +472,7 @@ aggr_process_recv_frm(void *cntxt, u8 tid, A_UINT16 seq_no, bool is_amsdu, void
* be assumed that the window has moved for some valid reason. * be assumed that the window has moved for some valid reason.
* Therefore, we dequeue all frames and start fresh. * Therefore, we dequeue all frames and start fresh.
*/ */
A_UINT16 extended_end; u16 extended_end;
extended_end = (end + rxtid->hold_q_sz-1) & IEEE80211_MAX_SEQ_NO; extended_end = (end + rxtid->hold_q_sz-1) & IEEE80211_MAX_SEQ_NO;
......
...@@ -326,10 +326,10 @@ typedef PREPACK struct wmm_tspec_ie_t { ...@@ -326,10 +326,10 @@ typedef PREPACK struct wmm_tspec_ie_t {
u8 ouiType; u8 ouiType;
u8 ouiSubType; u8 ouiSubType;
u8 version; u8 version;
A_UINT16 tsInfo_info; u16 tsInfo_info;
u8 tsInfo_reserved; u8 tsInfo_reserved;
A_UINT16 nominalMSDU; u16 nominalMSDU;
A_UINT16 maxMSDU; u16 maxMSDU;
A_UINT32 minServiceInt; A_UINT32 minServiceInt;
A_UINT32 maxServiceInt; A_UINT32 maxServiceInt;
A_UINT32 inactivityInt; A_UINT32 inactivityInt;
...@@ -341,8 +341,8 @@ typedef PREPACK struct wmm_tspec_ie_t { ...@@ -341,8 +341,8 @@ typedef PREPACK struct wmm_tspec_ie_t {
A_UINT32 maxBurstSize; A_UINT32 maxBurstSize;
A_UINT32 delayBound; A_UINT32 delayBound;
A_UINT32 minPhyRate; A_UINT32 minPhyRate;
A_UINT16 sba; u16 sba;
A_UINT16 mediumTime; u16 mediumTime;
} POSTPACK WMM_TSPEC_IE; } POSTPACK WMM_TSPEC_IE;
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
/* unaligned little endian access */ /* unaligned little endian access */
#define LE_READ_2(p) \ #define LE_READ_2(p) \
((A_UINT16) \ ((u16) \
((((u8 *)(p))[0] ) | (((u8 *)(p))[1] << 8))) ((((u8 *)(p))[0] ) | (((u8 *)(p))[1] << 8)))
#define LE_READ_4(p) \ #define LE_READ_4(p) \
...@@ -125,8 +125,8 @@ wlan_parse_beacon(u8 *buf, int framelen, struct ieee80211_common_ie *cie) ...@@ -125,8 +125,8 @@ wlan_parse_beacon(u8 *buf, int framelen, struct ieee80211_common_ie *cie)
A_MEMZERO(cie, sizeof(*cie)); A_MEMZERO(cie, sizeof(*cie));
cie->ie_tstamp = frm; frm += 8; cie->ie_tstamp = frm; frm += 8;
cie->ie_beaconInt = A_LE2CPU16(*(A_UINT16 *)frm); frm += 2; cie->ie_beaconInt = A_LE2CPU16(*(u16 *)frm); frm += 2;
cie->ie_capInfo = A_LE2CPU16(*(A_UINT16 *)frm); frm += 2; cie->ie_capInfo = A_LE2CPU16(*(u16 *)frm); frm += 2;
cie->ie_chan = 0; cie->ie_chan = 0;
while (frm < efrm) { while (frm < efrm) {
......
...@@ -30,8 +30,7 @@ ...@@ -30,8 +30,7 @@
/* /*
* converts ieee channel number to frequency * converts ieee channel number to frequency
*/ */
A_UINT16 u16 wlan_ieee2freq(int chan)
wlan_ieee2freq(int chan)
{ {
if (chan == 14) { if (chan == 14) {
return 2484; return 2484;
...@@ -49,7 +48,7 @@ wlan_ieee2freq(int chan) ...@@ -49,7 +48,7 @@ wlan_ieee2freq(int chan)
* Converts MHz frequency to IEEE channel number. * Converts MHz frequency to IEEE channel number.
*/ */
A_UINT32 A_UINT32
wlan_freq2ieee(A_UINT16 freq) wlan_freq2ieee(u16 freq)
{ {
if (freq == 2484) if (freq == 2484)
return 14; return 14;
......
...@@ -279,15 +279,15 @@ const u8 up_to_ac[]= { ...@@ -279,15 +279,15 @@ const u8 up_to_ac[]= {
typedef PREPACK struct _iphdr { typedef PREPACK struct _iphdr {
u8 ip_ver_hdrlen; /* version and hdr length */ u8 ip_ver_hdrlen; /* version and hdr length */
u8 ip_tos; /* type of service */ u8 ip_tos; /* type of service */
A_UINT16 ip_len; /* total length */ u16 ip_len; /* total length */
A_UINT16 ip_id; /* identification */ u16 ip_id; /* identification */
A_INT16 ip_off; /* fragment offset field */ A_INT16 ip_off; /* fragment offset field */
#define IP_DF 0x4000 /* dont fragment flag */ #define IP_DF 0x4000 /* dont fragment flag */
#define IP_MF 0x2000 /* more fragments flag */ #define IP_MF 0x2000 /* more fragments flag */
#define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */
u8 ip_ttl; /* time to live */ u8 ip_ttl; /* time to live */
u8 ip_p; /* protocol */ u8 ip_p; /* protocol */
A_UINT16 ip_sum; /* checksum */ u16 ip_sum; /* checksum */
u8 ip_src[4]; /* source and dest address */ u8 ip_src[4]; /* source and dest address */
u8 ip_dst[4]; u8 ip_dst[4];
} POSTPACK iphdr; } POSTPACK iphdr;
...@@ -395,7 +395,7 @@ int ...@@ -395,7 +395,7 @@ int
wmi_dix_2_dot3(struct wmi_t *wmip, void *osbuf) wmi_dix_2_dot3(struct wmi_t *wmip, void *osbuf)
{ {
u8 *datap; u8 *datap;
A_UINT16 typeorlen; u16 typeorlen;
ATH_MAC_HDR macHdr; ATH_MAC_HDR macHdr;
ATH_LLC_SNAP_HDR *llcHdr; ATH_LLC_SNAP_HDR *llcHdr;
...@@ -409,7 +409,7 @@ wmi_dix_2_dot3(struct wmi_t *wmip, void *osbuf) ...@@ -409,7 +409,7 @@ wmi_dix_2_dot3(struct wmi_t *wmip, void *osbuf)
datap = A_NETBUF_DATA(osbuf); datap = A_NETBUF_DATA(osbuf);
typeorlen = *(A_UINT16 *)(datap + ATH_MAC_LEN + ATH_MAC_LEN); typeorlen = *(u16 *)(datap + ATH_MAC_LEN + ATH_MAC_LEN);
if (!IS_ETHERTYPE(A_BE2CPU16(typeorlen))) { if (!IS_ETHERTYPE(A_BE2CPU16(typeorlen))) {
/* /*
...@@ -535,7 +535,7 @@ u8 wmi_implicit_create_pstream(struct wmi_t *wmip, void *osbuf, A_UINT32 layer2P ...@@ -535,7 +535,7 @@ u8 wmi_implicit_create_pstream(struct wmi_t *wmip, void *osbuf, A_UINT32 layer2P
{ {
u8 *datap; u8 *datap;
u8 trafficClass = WMM_AC_BE; u8 trafficClass = WMM_AC_BE;
A_UINT16 ipType = IP_ETHERTYPE; u16 ipType = IP_ETHERTYPE;
WMI_DATA_HDR *dtHdr; WMI_DATA_HDR *dtHdr;
u8 streamExists = 0; u8 streamExists = 0;
u8 userPriority; u8 userPriority;
...@@ -625,7 +625,7 @@ int ...@@ -625,7 +625,7 @@ int
wmi_dot11_hdr_add (struct wmi_t *wmip, void *osbuf, NETWORK_TYPE mode) wmi_dot11_hdr_add (struct wmi_t *wmip, void *osbuf, NETWORK_TYPE mode)
{ {
u8 *datap; u8 *datap;
A_UINT16 typeorlen; u16 typeorlen;
ATH_MAC_HDR macHdr; ATH_MAC_HDR macHdr;
ATH_LLC_SNAP_HDR *llcHdr; ATH_LLC_SNAP_HDR *llcHdr;
struct ieee80211_frame *wh; struct ieee80211_frame *wh;
...@@ -641,7 +641,7 @@ wmi_dot11_hdr_add (struct wmi_t *wmip, void *osbuf, NETWORK_TYPE mode) ...@@ -641,7 +641,7 @@ wmi_dot11_hdr_add (struct wmi_t *wmip, void *osbuf, NETWORK_TYPE mode)
datap = A_NETBUF_DATA(osbuf); datap = A_NETBUF_DATA(osbuf);
typeorlen = *(A_UINT16 *)(datap + ATH_MAC_LEN + ATH_MAC_LEN); typeorlen = *(u16 *)(datap + ATH_MAC_LEN + ATH_MAC_LEN);
if (!IS_ETHERTYPE(A_BE2CPU16(typeorlen))) { if (!IS_ETHERTYPE(A_BE2CPU16(typeorlen))) {
/* /*
...@@ -830,7 +830,7 @@ int ...@@ -830,7 +830,7 @@ int
wmi_control_rx_xtnd(struct wmi_t *wmip, void *osbuf) wmi_control_rx_xtnd(struct wmi_t *wmip, void *osbuf)
{ {
WMIX_CMD_HDR *cmd; WMIX_CMD_HDR *cmd;
A_UINT16 id; u16 id;
u8 *datap; u8 *datap;
A_UINT32 len; A_UINT32 len;
int status = A_OK; int status = A_OK;
...@@ -907,7 +907,7 @@ int ...@@ -907,7 +907,7 @@ int
wmi_control_rx(struct wmi_t *wmip, void *osbuf) wmi_control_rx(struct wmi_t *wmip, void *osbuf)
{ {
WMI_CMD_HDR *cmd; WMI_CMD_HDR *cmd;
A_UINT16 id; u16 id;
u8 *datap; u8 *datap;
A_UINT32 len, i, loggingReq; A_UINT32 len, i, loggingReq;
int status = A_OK; int status = A_OK;
...@@ -1279,9 +1279,9 @@ wmi_connect_event_rx(struct wmi_t *wmip, u8 *datap, int len) ...@@ -1279,9 +1279,9 @@ wmi_connect_event_rx(struct wmi_t *wmip, u8 *datap, int len)
/* initialize pointer to start of assoc rsp IEs */ /* initialize pointer to start of assoc rsp IEs */
pie = ev->assocInfo + ev->beaconIeLen + ev->assocReqLen + pie = ev->assocInfo + ev->beaconIeLen + ev->assocReqLen +
sizeof(A_UINT16) + /* capinfo*/ sizeof(u16) + /* capinfo*/
sizeof(A_UINT16) + /* status Code */ sizeof(u16) + /* status Code */
sizeof(A_UINT16) ; /* associd */ sizeof(u16) ; /* associd */
/* initialize pointer to end of assoc rsp IEs */ /* initialize pointer to end of assoc rsp IEs */
peie = ev->assocInfo + ev->beaconIeLen + ev->assocReqLen + ev->assocRespLen; peie = ev->assocInfo + ev->beaconIeLen + ev->assocReqLen + ev->assocRespLen;
...@@ -1991,7 +1991,7 @@ wmi_cac_event_rx(struct wmi_t *wmip, u8 *datap, int len) ...@@ -1991,7 +1991,7 @@ wmi_cac_event_rx(struct wmi_t *wmip, u8 *datap, int len)
{ {
WMI_CAC_EVENT *reply; WMI_CAC_EVENT *reply;
WMM_TSPEC_IE *tspec_ie; WMM_TSPEC_IE *tspec_ie;
A_UINT16 activeTsids; u16 activeTsids;
if (len < sizeof(*reply)) { if (len < sizeof(*reply)) {
return A_EINVAL; return A_EINVAL;
...@@ -2248,7 +2248,7 @@ wmi_lqThresholdEvent_rx(struct wmi_t *wmip, u8 *datap, int len) ...@@ -2248,7 +2248,7 @@ wmi_lqThresholdEvent_rx(struct wmi_t *wmip, u8 *datap, int len)
static int static int
wmi_aplistEvent_rx(struct wmi_t *wmip, u8 *datap, int len) wmi_aplistEvent_rx(struct wmi_t *wmip, u8 *datap, int len)
{ {
A_UINT16 ap_info_entry_size; u16 ap_info_entry_size;
WMI_APLIST_EVENT *ev = (WMI_APLIST_EVENT *)datap; WMI_APLIST_EVENT *ev = (WMI_APLIST_EVENT *)datap;
WMI_AP_INFO_V1 *ap_info_v1; WMI_AP_INFO_V1 *ap_info_v1;
u8 i; u8 i;
...@@ -2372,7 +2372,7 @@ wmi_cmd_send(struct wmi_t *wmip, void *osbuf, WMI_COMMAND_ID cmdId, ...@@ -2372,7 +2372,7 @@ wmi_cmd_send(struct wmi_t *wmip, void *osbuf, WMI_COMMAND_ID cmdId,
} }
cHdr = (WMI_CMD_HDR *)A_NETBUF_DATA(osbuf); cHdr = (WMI_CMD_HDR *)A_NETBUF_DATA(osbuf);
cHdr->commandId = (A_UINT16) cmdId; cHdr->commandId = (u16) cmdId;
cHdr->info1 = 0; // added for virtual interface cHdr->info1 = 0; // added for virtual interface
/* /*
...@@ -2421,7 +2421,7 @@ wmi_connect_cmd(struct wmi_t *wmip, NETWORK_TYPE netType, ...@@ -2421,7 +2421,7 @@ wmi_connect_cmd(struct wmi_t *wmip, NETWORK_TYPE netType,
CRYPTO_TYPE pairwiseCrypto, u8 pairwiseCryptoLen, CRYPTO_TYPE pairwiseCrypto, u8 pairwiseCryptoLen,
CRYPTO_TYPE groupCrypto, u8 groupCryptoLen, CRYPTO_TYPE groupCrypto, u8 groupCryptoLen,
int ssidLength, A_UCHAR *ssid, int ssidLength, A_UCHAR *ssid,
u8 *bssid, A_UINT16 channel, A_UINT32 ctrl_flags) u8 *bssid, u16 channel, A_UINT32 ctrl_flags)
{ {
void *osbuf; void *osbuf;
WMI_CONNECT_CMD *cc; WMI_CONNECT_CMD *cc;
...@@ -2471,7 +2471,7 @@ wmi_connect_cmd(struct wmi_t *wmip, NETWORK_TYPE netType, ...@@ -2471,7 +2471,7 @@ wmi_connect_cmd(struct wmi_t *wmip, NETWORK_TYPE netType,
} }
int int
wmi_reconnect_cmd(struct wmi_t *wmip, u8 *bssid, A_UINT16 channel) wmi_reconnect_cmd(struct wmi_t *wmip, u8 *bssid, u16 channel)
{ {
void *osbuf; void *osbuf;
WMI_RECONNECT_CMD *cc; WMI_RECONNECT_CMD *cc;
...@@ -2513,7 +2513,7 @@ int ...@@ -2513,7 +2513,7 @@ int
wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType, wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType,
u32 forceFgScan, u32 isLegacy, u32 forceFgScan, u32 isLegacy,
A_UINT32 homeDwellTime, A_UINT32 forceScanInterval, A_UINT32 homeDwellTime, A_UINT32 forceScanInterval,
A_INT8 numChan, A_UINT16 *channelList) A_INT8 numChan, u16 *channelList)
{ {
void *osbuf; void *osbuf;
WMI_START_SCAN_CMD *sc; WMI_START_SCAN_CMD *sc;
...@@ -2529,7 +2529,7 @@ wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType, ...@@ -2529,7 +2529,7 @@ wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType,
if (numChan > WMI_MAX_CHANNELS) { if (numChan > WMI_MAX_CHANNELS) {
return A_EINVAL; return A_EINVAL;
} }
size += sizeof(A_UINT16) * (numChan - 1); size += sizeof(u16) * (numChan - 1);
} }
osbuf = A_NETBUF_ALLOC(size); osbuf = A_NETBUF_ALLOC(size);
...@@ -2547,19 +2547,19 @@ wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType, ...@@ -2547,19 +2547,19 @@ wmi_startscan_cmd(struct wmi_t *wmip, WMI_SCAN_TYPE scanType,
sc->forceScanInterval = forceScanInterval; sc->forceScanInterval = forceScanInterval;
sc->numChannels = numChan; sc->numChannels = numChan;
if (numChan) { if (numChan) {
A_MEMCPY(sc->channelList, channelList, numChan * sizeof(A_UINT16)); A_MEMCPY(sc->channelList, channelList, numChan * sizeof(u16));
} }
return (wmi_cmd_send(wmip, osbuf, WMI_START_SCAN_CMDID, NO_SYNC_WMIFLAG)); return (wmi_cmd_send(wmip, osbuf, WMI_START_SCAN_CMDID, NO_SYNC_WMIFLAG));
} }
int int
wmi_scanparams_cmd(struct wmi_t *wmip, A_UINT16 fg_start_sec, wmi_scanparams_cmd(struct wmi_t *wmip, u16 fg_start_sec,
A_UINT16 fg_end_sec, A_UINT16 bg_sec, u16 fg_end_sec, u16 bg_sec,
A_UINT16 minact_chdw_msec, A_UINT16 maxact_chdw_msec, u16 minact_chdw_msec, u16 maxact_chdw_msec,
A_UINT16 pas_chdw_msec, u16 pas_chdw_msec,
u8 shScanRatio, u8 scanCtrlFlags, u8 shScanRatio, u8 scanCtrlFlags,
A_UINT32 max_dfsch_act_time, A_UINT16 maxact_scan_per_ssid) A_UINT32 max_dfsch_act_time, u16 maxact_scan_per_ssid)
{ {
void *osbuf; void *osbuf;
WMI_SCAN_PARAMS_CMD *sc; WMI_SCAN_PARAMS_CMD *sc;
...@@ -2657,7 +2657,7 @@ wmi_probedSsid_cmd(struct wmi_t *wmip, u8 index, u8 flag, ...@@ -2657,7 +2657,7 @@ wmi_probedSsid_cmd(struct wmi_t *wmip, u8 index, u8 flag,
} }
int int
wmi_listeninterval_cmd(struct wmi_t *wmip, A_UINT16 listenInterval, A_UINT16 listenBeacons) wmi_listeninterval_cmd(struct wmi_t *wmip, u16 listenInterval, u16 listenBeacons)
{ {
void *osbuf; void *osbuf;
WMI_LISTEN_INT_CMD *cmd; WMI_LISTEN_INT_CMD *cmd;
...@@ -2679,7 +2679,7 @@ wmi_listeninterval_cmd(struct wmi_t *wmip, A_UINT16 listenInterval, A_UINT16 lis ...@@ -2679,7 +2679,7 @@ wmi_listeninterval_cmd(struct wmi_t *wmip, A_UINT16 listenInterval, A_UINT16 lis
} }
int int
wmi_bmisstime_cmd(struct wmi_t *wmip, A_UINT16 bmissTime, A_UINT16 bmissBeacons) wmi_bmisstime_cmd(struct wmi_t *wmip, u16 bmissTime, u16 bmissBeacons)
{ {
void *osbuf; void *osbuf;
WMI_BMISS_TIME_CMD *cmd; WMI_BMISS_TIME_CMD *cmd;
...@@ -2706,7 +2706,7 @@ wmi_associnfo_cmd(struct wmi_t *wmip, u8 ieType, ...@@ -2706,7 +2706,7 @@ wmi_associnfo_cmd(struct wmi_t *wmip, u8 ieType,
{ {
void *osbuf; void *osbuf;
WMI_SET_ASSOC_INFO_CMD *cmd; WMI_SET_ASSOC_INFO_CMD *cmd;
A_UINT16 cmdLen; u16 cmdLen;
cmdLen = sizeof(*cmd) + ieLen - 1; cmdLen = sizeof(*cmd) + ieLen - 1;
osbuf = A_NETBUF_ALLOC(cmdLen); osbuf = A_NETBUF_ALLOC(cmdLen);
...@@ -2750,7 +2750,7 @@ wmi_powermode_cmd(struct wmi_t *wmip, u8 powerMode) ...@@ -2750,7 +2750,7 @@ wmi_powermode_cmd(struct wmi_t *wmip, u8 powerMode)
int int
wmi_ibsspmcaps_cmd(struct wmi_t *wmip, u8 pmEnable, u8 ttl, wmi_ibsspmcaps_cmd(struct wmi_t *wmip, u8 pmEnable, u8 ttl,
A_UINT16 atim_windows, A_UINT16 timeout_value) u16 atim_windows, u16 timeout_value)
{ {
void *osbuf; void *osbuf;
WMI_IBSS_PM_CAPS_CMD *cmd; WMI_IBSS_PM_CAPS_CMD *cmd;
...@@ -2799,10 +2799,10 @@ wmi_apps_cmd(struct wmi_t *wmip, u8 psType, A_UINT32 idle_time, ...@@ -2799,10 +2799,10 @@ wmi_apps_cmd(struct wmi_t *wmip, u8 psType, A_UINT32 idle_time,
} }
int int
wmi_pmparams_cmd(struct wmi_t *wmip, A_UINT16 idlePeriod, wmi_pmparams_cmd(struct wmi_t *wmip, u16 idlePeriod,
A_UINT16 psPollNum, A_UINT16 dtimPolicy, u16 psPollNum, u16 dtimPolicy,
A_UINT16 tx_wakeup_policy, A_UINT16 num_tx_to_wakeup, u16 tx_wakeup_policy, u16 num_tx_to_wakeup,
A_UINT16 ps_fail_event_policy) u16 ps_fail_event_policy)
{ {
void *osbuf; void *osbuf;
WMI_POWER_PARAMS_CMD *pm; WMI_POWER_PARAMS_CMD *pm;
...@@ -3029,7 +3029,7 @@ wmi_set_pmkid_list_cmd(struct wmi_t *wmip, ...@@ -3029,7 +3029,7 @@ wmi_set_pmkid_list_cmd(struct wmi_t *wmip,
{ {
void *osbuf; void *osbuf;
WMI_SET_PMKID_LIST_CMD *cmd; WMI_SET_PMKID_LIST_CMD *cmd;
A_UINT16 cmdLen; u16 cmdLen;
u8 i; u8 i;
cmdLen = sizeof(pmkInfo->numPMKID) + cmdLen = sizeof(pmkInfo->numPMKID) +
...@@ -3297,7 +3297,7 @@ wmi_delete_pstream_cmd(struct wmi_t *wmip, u8 trafficClass, u8 tsid) ...@@ -3297,7 +3297,7 @@ wmi_delete_pstream_cmd(struct wmi_t *wmip, u8 trafficClass, u8 tsid)
void *osbuf; void *osbuf;
WMI_DELETE_PSTREAM_CMD *cmd; WMI_DELETE_PSTREAM_CMD *cmd;
int status; int status;
A_UINT16 activeTsids=0; u16 activeTsids=0;
/* validate the parameters */ /* validate the parameters */
if (trafficClass > 3) { if (trafficClass > 3) {
...@@ -3356,7 +3356,7 @@ wmi_delete_pstream_cmd(struct wmi_t *wmip, u8 trafficClass, u8 tsid) ...@@ -3356,7 +3356,7 @@ wmi_delete_pstream_cmd(struct wmi_t *wmip, u8 trafficClass, u8 tsid)
} }
int int
wmi_set_framerate_cmd(struct wmi_t *wmip, u8 bEnable, u8 type, u8 subType, A_UINT16 rateMask) wmi_set_framerate_cmd(struct wmi_t *wmip, u8 bEnable, u8 type, u8 subType, u16 rateMask)
{ {
void *osbuf; void *osbuf;
WMI_FRAME_RATES_CMD *cmd; WMI_FRAME_RATES_CMD *cmd;
...@@ -3597,7 +3597,7 @@ wmi_get_channelList_cmd(struct wmi_t *wmip) ...@@ -3597,7 +3597,7 @@ wmi_get_channelList_cmd(struct wmi_t *wmip)
int int
wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam, wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam,
WMI_PHY_MODE mode, A_INT8 numChan, WMI_PHY_MODE mode, A_INT8 numChan,
A_UINT16 *channelList) u16 *channelList)
{ {
void *osbuf; void *osbuf;
WMI_CHANNEL_PARAMS_CMD *cmd; WMI_CHANNEL_PARAMS_CMD *cmd;
...@@ -3609,7 +3609,7 @@ wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam, ...@@ -3609,7 +3609,7 @@ wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam,
if (numChan > WMI_MAX_CHANNELS) { if (numChan > WMI_MAX_CHANNELS) {
return A_EINVAL; return A_EINVAL;
} }
size += sizeof(A_UINT16) * (numChan - 1); size += sizeof(u16) * (numChan - 1);
} }
osbuf = A_NETBUF_ALLOC(size); osbuf = A_NETBUF_ALLOC(size);
...@@ -3626,7 +3626,7 @@ wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam, ...@@ -3626,7 +3626,7 @@ wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam,
cmd->scanParam = scanParam; cmd->scanParam = scanParam;
cmd->phyMode = mode; cmd->phyMode = mode;
cmd->numChannels = numChan; cmd->numChannels = numChan;
A_MEMCPY(cmd->channelList, channelList, numChan * sizeof(A_UINT16)); A_MEMCPY(cmd->channelList, channelList, numChan * sizeof(u16));
return (wmi_cmd_send(wmip, osbuf, WMI_SET_CHANNEL_PARAMS_CMDID, return (wmi_cmd_send(wmip, osbuf, WMI_SET_CHANNEL_PARAMS_CMDID,
NO_SYNC_WMIFLAG)); NO_SYNC_WMIFLAG));
...@@ -3738,7 +3738,7 @@ wmi_set_host_sleep_mode_cmd(struct wmi_t *wmip, ...@@ -3738,7 +3738,7 @@ wmi_set_host_sleep_mode_cmd(struct wmi_t *wmip,
void *osbuf; void *osbuf;
A_INT8 size; A_INT8 size;
WMI_SET_HOST_SLEEP_MODE_CMD *cmd; WMI_SET_HOST_SLEEP_MODE_CMD *cmd;
A_UINT16 activeTsids=0; u16 activeTsids=0;
u8 streamExists=0; u8 streamExists=0;
u8 i; u8 i;
...@@ -4080,8 +4080,8 @@ wmi_get_challenge_resp_cmd(struct wmi_t *wmip, A_UINT32 cookie, A_UINT32 source) ...@@ -4080,8 +4080,8 @@ wmi_get_challenge_resp_cmd(struct wmi_t *wmip, A_UINT32 cookie, A_UINT32 source)
} }
int int
wmi_config_debug_module_cmd(struct wmi_t *wmip, A_UINT16 mmask, wmi_config_debug_module_cmd(struct wmi_t *wmip, u16 mmask,
A_UINT16 tsr, bool rep, A_UINT16 size, u16 tsr, bool rep, u16 size,
A_UINT32 valid) A_UINT32 valid)
{ {
void *osbuf; void *osbuf;
...@@ -4190,10 +4190,9 @@ wmi_get_txPwr_cmd(struct wmi_t *wmip) ...@@ -4190,10 +4190,9 @@ wmi_get_txPwr_cmd(struct wmi_t *wmip)
return wmi_simple_cmd(wmip, WMI_GET_TX_PWR_CMDID); return wmi_simple_cmd(wmip, WMI_GET_TX_PWR_CMDID);
} }
A_UINT16 u16 wmi_get_mapped_qos_queue(struct wmi_t *wmip, u8 trafficClass)
wmi_get_mapped_qos_queue(struct wmi_t *wmip, u8 trafficClass)
{ {
A_UINT16 activeTsids=0; u16 activeTsids=0;
LOCK_WMI(wmip); LOCK_WMI(wmip);
activeTsids = wmip->wmi_streamExistsForAC[trafficClass]; activeTsids = wmip->wmi_streamExistsForAC[trafficClass];
...@@ -4411,7 +4410,7 @@ wmi_gpio_intr_ack(struct wmi_t *wmip, ...@@ -4411,7 +4410,7 @@ wmi_gpio_intr_ack(struct wmi_t *wmip,
#endif /* CONFIG_HOST_GPIO_SUPPORT */ #endif /* CONFIG_HOST_GPIO_SUPPORT */
int int
wmi_set_access_params_cmd(struct wmi_t *wmip, u8 ac, A_UINT16 txop, u8 eCWmin, wmi_set_access_params_cmd(struct wmi_t *wmip, u8 ac, u16 txop, u8 eCWmin,
u8 eCWmax, u8 aifsn) u8 eCWmax, u8 aifsn)
{ {
void *osbuf; void *osbuf;
...@@ -4514,7 +4513,7 @@ wmi_opt_tx_frame_cmd(struct wmi_t *wmip, ...@@ -4514,7 +4513,7 @@ wmi_opt_tx_frame_cmd(struct wmi_t *wmip,
u8 frmType, u8 frmType,
u8 *dstMacAddr, u8 *dstMacAddr,
u8 *bssid, u8 *bssid,
A_UINT16 optIEDataLen, u16 optIEDataLen,
u8 *optIEData) u8 *optIEData)
{ {
void *osbuf; void *osbuf;
...@@ -4541,7 +4540,7 @@ wmi_opt_tx_frame_cmd(struct wmi_t *wmip, ...@@ -4541,7 +4540,7 @@ wmi_opt_tx_frame_cmd(struct wmi_t *wmip,
} }
int int
wmi_set_adhoc_bconIntvl_cmd(struct wmi_t *wmip, A_UINT16 intvl) wmi_set_adhoc_bconIntvl_cmd(struct wmi_t *wmip, u16 intvl)
{ {
void *osbuf; void *osbuf;
WMI_BEACON_INT_CMD *cmd; WMI_BEACON_INT_CMD *cmd;
...@@ -4563,7 +4562,7 @@ wmi_set_adhoc_bconIntvl_cmd(struct wmi_t *wmip, A_UINT16 intvl) ...@@ -4563,7 +4562,7 @@ wmi_set_adhoc_bconIntvl_cmd(struct wmi_t *wmip, A_UINT16 intvl)
int int
wmi_set_voice_pkt_size_cmd(struct wmi_t *wmip, A_UINT16 voicePktSize) wmi_set_voice_pkt_size_cmd(struct wmi_t *wmip, u16 voicePktSize)
{ {
void *osbuf; void *osbuf;
WMI_SET_VOICE_PKT_SIZE_CMD *cmd; WMI_SET_VOICE_PKT_SIZE_CMD *cmd;
...@@ -4757,7 +4756,7 @@ wmi_set_lpreamble_cmd(struct wmi_t *wmip, u8 status, u8 preamblePolicy) ...@@ -4757,7 +4756,7 @@ wmi_set_lpreamble_cmd(struct wmi_t *wmip, u8 status, u8 preamblePolicy)
} }
int int
wmi_set_rts_cmd(struct wmi_t *wmip, A_UINT16 threshold) wmi_set_rts_cmd(struct wmi_t *wmip, u16 threshold)
{ {
void *osbuf; void *osbuf;
WMI_SET_RTS_CMD *cmd; WMI_SET_RTS_CMD *cmd;
...@@ -5311,7 +5310,7 @@ wmi_set_appie_cmd(struct wmi_t *wmip, u8 mgmtFrmType, u8 ieLen, ...@@ -5311,7 +5310,7 @@ wmi_set_appie_cmd(struct wmi_t *wmip, u8 mgmtFrmType, u8 ieLen,
{ {
void *osbuf; void *osbuf;
WMI_SET_APPIE_CMD *cmd; WMI_SET_APPIE_CMD *cmd;
A_UINT16 cmdLen; u16 cmdLen;
cmdLen = sizeof(*cmd) + ieLen - 1; cmdLen = sizeof(*cmd) + ieLen - 1;
osbuf = A_NETBUF_ALLOC(cmdLen); osbuf = A_NETBUF_ALLOC(cmdLen);
...@@ -5332,7 +5331,7 @@ wmi_set_appie_cmd(struct wmi_t *wmip, u8 mgmtFrmType, u8 ieLen, ...@@ -5332,7 +5331,7 @@ wmi_set_appie_cmd(struct wmi_t *wmip, u8 mgmtFrmType, u8 ieLen,
} }
int int
wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, A_UINT16 dataLen) wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, u16 dataLen)
{ {
void *osbuf; void *osbuf;
u8 *data; u8 *data;
...@@ -6187,7 +6186,7 @@ wmi_ap_acl_mac_list(struct wmi_t *wmip, WMI_AP_ACL_MAC_CMD *acl) ...@@ -6187,7 +6186,7 @@ wmi_ap_acl_mac_list(struct wmi_t *wmip, WMI_AP_ACL_MAC_CMD *acl)
* firware will allow all STAs till the count reaches AP_MAX_NUM_STA. * firware will allow all STAs till the count reaches AP_MAX_NUM_STA.
*/ */
int int
wmi_ap_set_mlme(struct wmi_t *wmip, u8 cmd, u8 *mac, A_UINT16 reason) wmi_ap_set_mlme(struct wmi_t *wmip, u8 cmd, u8 *mac, u16 reason)
{ {
void *osbuf; void *osbuf;
WMI_AP_SET_MLME_CMD *mlme; WMI_AP_SET_MLME_CMD *mlme;
...@@ -6246,7 +6245,7 @@ wmi_wapi_rekey_event_rx(struct wmi_t *wmip, u8 *datap,int len) ...@@ -6246,7 +6245,7 @@ wmi_wapi_rekey_event_rx(struct wmi_t *wmip, u8 *datap,int len)
#endif #endif
int int
wmi_set_pvb_cmd(struct wmi_t *wmip, A_UINT16 aid, bool flag) wmi_set_pvb_cmd(struct wmi_t *wmip, u16 aid, bool flag)
{ {
WMI_AP_SET_PVB_CMD *cmd; WMI_AP_SET_PVB_CMD *cmd;
void *osbuf = NULL; void *osbuf = NULL;
...@@ -6445,7 +6444,7 @@ wmi_set_tx_select_rates_cmd(struct wmi_t *wmip, A_UINT32 *pMaskArray) ...@@ -6445,7 +6444,7 @@ wmi_set_tx_select_rates_cmd(struct wmi_t *wmip, A_UINT32 *pMaskArray)
int int
wmi_send_hci_cmd(struct wmi_t *wmip, u8 *buf, A_UINT16 sz) wmi_send_hci_cmd(struct wmi_t *wmip, u8 *buf, u16 sz)
{ {
void *osbuf; void *osbuf;
WMI_HCI_CMD *cmd; WMI_HCI_CMD *cmd;
...@@ -6465,7 +6464,7 @@ wmi_send_hci_cmd(struct wmi_t *wmip, u8 *buf, A_UINT16 sz) ...@@ -6465,7 +6464,7 @@ wmi_send_hci_cmd(struct wmi_t *wmip, u8 *buf, A_UINT16 sz)
#ifdef ATH_AR6K_11N_SUPPORT #ifdef ATH_AR6K_11N_SUPPORT
int int
wmi_allow_aggr_cmd(struct wmi_t *wmip, A_UINT16 tx_tidmask, A_UINT16 rx_tidmask) wmi_allow_aggr_cmd(struct wmi_t *wmip, u16 tx_tidmask, u16 rx_tidmask)
{ {
void *osbuf; void *osbuf;
WMI_ALLOW_AGGR_CMD *cmd; WMI_ALLOW_AGGR_CMD *cmd;
...@@ -6646,19 +6645,18 @@ wmi_find_matching_Ssidnode (struct wmi_t *wmip, A_UCHAR *pSsid, ...@@ -6646,19 +6645,18 @@ wmi_find_matching_Ssidnode (struct wmi_t *wmip, A_UCHAR *pSsid,
return node; return node;
} }
A_UINT16 u16 wmi_ieee2freq (int chan)
wmi_ieee2freq (int chan)
{ {
A_UINT16 freq = 0; u16 freq = 0;
freq = wlan_ieee2freq (chan); freq = wlan_ieee2freq (chan);
return freq; return freq;
} }
A_UINT32 A_UINT32
wmi_freq2ieee (A_UINT16 freq) wmi_freq2ieee (u16 freq)
{ {
A_UINT16 chan = 0; u16 chan = 0;
chan = wlan_freq2ieee (freq); chan = wlan_freq2ieee (freq);
return chan; return chan;
} }
...@@ -62,7 +62,7 @@ typedef struct sq_threshold_params_s { ...@@ -62,7 +62,7 @@ typedef struct sq_threshold_params_s {
struct wmi_t { struct wmi_t {
bool wmi_ready; bool wmi_ready;
bool wmi_numQoSStream; bool wmi_numQoSStream;
A_UINT16 wmi_streamExistsForAC[WMM_NUM_AC]; u16 wmi_streamExistsForAC[WMM_NUM_AC];
u8 wmi_fatPipeExists; u8 wmi_fatPipeExists;
void *wmi_devt; void *wmi_devt;
struct wmi_stats wmi_stats; struct wmi_stats wmi_stats;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment