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
This diff is collapsed.
...@@ -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:
......
...@@ -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;
......
This diff is collapsed.
...@@ -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