staging: ath6kl: Convert A_UINT8 to u8
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
4c42080f3e
commit
ab3655dae4
62 changed files with 1484 additions and 1497 deletions
|
@ -755,7 +755,7 @@ bmiBufferSend(HIF_DEVICE *device,
|
|||
/* hit the credit counter with a 4-byte access, the first byte read will hit the counter and cause
|
||||
* a decrement, while the remaining 3 bytes has no effect. The rationale behind this is to
|
||||
* make all HIF accesses 4-byte aligned */
|
||||
status = HIFReadWrite(device, address, (A_UINT8 *)pBMICmdCredits, 4,
|
||||
status = HIFReadWrite(device, address, (u8 *)pBMICmdCredits, 4,
|
||||
HIF_RD_SYNC_BYTE_INC, NULL);
|
||||
if (status != A_OK) {
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Unable to decrement the command credit count register\n"));
|
||||
|
@ -879,7 +879,7 @@ bmiBufferReceive(HIF_DEVICE *device,
|
|||
continue;
|
||||
}
|
||||
|
||||
status = HIFReadWrite(device, RX_LOOKAHEAD_VALID_ADDRESS, (A_UINT8 *)&word_available,
|
||||
status = HIFReadWrite(device, RX_LOOKAHEAD_VALID_ADDRESS, (u8 *)&word_available,
|
||||
sizeof(word_available), HIF_RD_SYNC_BYTE_INC, NULL);
|
||||
if (status != A_OK) {
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Unable to read RX_LOOKAHEAD_VALID register\n"));
|
||||
|
@ -930,7 +930,7 @@ bmiBufferReceive(HIF_DEVICE *device,
|
|||
/* read the counter using a 4-byte read. Since the counter is NOT auto-decrementing,
|
||||
* we can read this counter multiple times using a non-incrementing address mode.
|
||||
* The rationale here is to make all HIF accesses a multiple of 4 bytes */
|
||||
status = HIFReadWrite(device, address, (A_UINT8 *)pBMICmdCredits, sizeof(*pBMICmdCredits),
|
||||
status = HIFReadWrite(device, address, (u8 *)pBMICmdCredits, sizeof(*pBMICmdCredits),
|
||||
HIF_RD_SYNC_BYTE_FIX, NULL);
|
||||
if (status != A_OK) {
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Unable to read the command credit count register\n"));
|
||||
|
@ -982,7 +982,7 @@ BMIFastDownload(HIF_DEVICE *device, A_UINT32 address, A_UCHAR *buffer, A_UINT32
|
|||
}
|
||||
|
||||
if (unalignedBytes) {
|
||||
status = BMILZData(device, (A_UINT8 *)&lastWord, 4);
|
||||
status = BMILZData(device, (u8 *)&lastWord, 4);
|
||||
}
|
||||
|
||||
if (!status) {
|
||||
|
|
|
@ -76,7 +76,7 @@ struct hif_device {
|
|||
BUS_REQUEST busRequest[BUS_REQUEST_MAX_NUM]; /* available bus requests */
|
||||
void *claimedContext;
|
||||
HTC_CALLBACKS htcCallbacks;
|
||||
A_UINT8 *dma_buffer;
|
||||
u8 *dma_buffer;
|
||||
DL_LIST ScatterReqHead; /* scatter request list head */
|
||||
bool scatter_enabled; /* scatter enabled flag */
|
||||
bool is_suspend;
|
||||
|
|
|
@ -160,10 +160,10 @@ __HIFReadWrite(HIF_DEVICE *device,
|
|||
A_UINT32 request,
|
||||
void *context)
|
||||
{
|
||||
A_UINT8 opcode;
|
||||
u8 opcode;
|
||||
int status = A_OK;
|
||||
int ret;
|
||||
A_UINT8 *tbuffer;
|
||||
u8 *tbuffer;
|
||||
bool bounced = false;
|
||||
|
||||
AR_DEBUG_ASSERT(device != NULL);
|
||||
|
@ -494,7 +494,7 @@ int ReinitSDIO(HIF_DEVICE *device)
|
|||
struct mmc_host *host;
|
||||
struct mmc_card *card;
|
||||
struct sdio_func *func;
|
||||
A_UINT8 cmd52_resp;
|
||||
u8 cmd52_resp;
|
||||
A_UINT32 clock;
|
||||
|
||||
func = device->func;
|
||||
|
@ -1154,7 +1154,7 @@ static void hifDeviceRemoved(struct sdio_func *func)
|
|||
int hifWaitForPendingRecv(HIF_DEVICE *device)
|
||||
{
|
||||
A_INT32 cnt = 10;
|
||||
A_UINT8 host_int_status;
|
||||
u8 host_int_status;
|
||||
int status = A_OK;
|
||||
|
||||
do {
|
||||
|
@ -1165,7 +1165,7 @@ int hifWaitForPendingRecv(HIF_DEVICE *device)
|
|||
/* check if there is any pending irq due to force done */
|
||||
host_int_status = 0;
|
||||
status = HIFReadWrite(device, HOST_INT_STATUS_ADDRESS,
|
||||
(A_UINT8 *)&host_int_status, sizeof(host_int_status),
|
||||
(u8 *)&host_int_status, sizeof(host_int_status),
|
||||
HIF_RD_SYNC_BYTE_INC, NULL);
|
||||
host_int_status = !status ? (host_int_status & (1 << 0)) : 0;
|
||||
if (host_int_status) {
|
||||
|
|
|
@ -82,8 +82,8 @@ static HIF_SCATTER_REQ *AllocScatterReq(HIF_DEVICE *device)
|
|||
int DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest)
|
||||
{
|
||||
int i;
|
||||
A_UINT8 rw;
|
||||
A_UINT8 opcode;
|
||||
u8 rw;
|
||||
u8 opcode;
|
||||
struct mmc_request mmcreq;
|
||||
struct mmc_command cmd;
|
||||
struct mmc_data data;
|
||||
|
|
|
@ -610,7 +610,7 @@ static void DevFreeScatterReq(HIF_DEVICE *Context, HIF_SCATTER_REQ *pReq)
|
|||
|
||||
int DevCopyScatterListToFromDMABuffer(HIF_SCATTER_REQ *pReq, bool FromDMA)
|
||||
{
|
||||
A_UINT8 *pDMABuffer = NULL;
|
||||
u8 *pDMABuffer = NULL;
|
||||
int i, remaining;
|
||||
A_UINT32 length;
|
||||
|
||||
|
@ -775,7 +775,7 @@ static int DevSetupVirtualScatterSupport(AR6K_DEVICE *pDev)
|
|||
A_MEMZERO(pReq, sgreqSize);
|
||||
|
||||
/* the virtual DMA starts after the scatter request struct */
|
||||
pVirtualInfo = (DEV_SCATTER_DMA_VIRTUAL_INFO *)((A_UINT8 *)pReq + sgreqSize);
|
||||
pVirtualInfo = (DEV_SCATTER_DMA_VIRTUAL_INFO *)((u8 *)pReq + sgreqSize);
|
||||
A_MEMZERO(pVirtualInfo, sizeof(DEV_SCATTER_DMA_VIRTUAL_INFO));
|
||||
|
||||
pVirtualInfo->pVirtDmaBuffer = &pVirtualInfo->DataArea[0];
|
||||
|
@ -1002,14 +1002,14 @@ int DevSubmitScatterRequest(AR6K_DEVICE *pDev, HIF_SCATTER_REQ *pScatterReq, boo
|
|||
|
||||
#define TEST_CREDITS_RECV_TIMEOUT 100
|
||||
|
||||
static A_UINT8 g_Buffer[TOTAL_BYTES];
|
||||
static u8 g_Buffer[TOTAL_BYTES];
|
||||
static A_UINT32 g_MailboxAddrs[AR6K_MAILBOXES];
|
||||
static A_UINT32 g_BlockSizes[AR6K_MAILBOXES];
|
||||
|
||||
#define BUFFER_PROC_LIST_DEPTH 4
|
||||
|
||||
typedef struct _BUFFER_PROC_LIST{
|
||||
A_UINT8 *pBuffer;
|
||||
u8 *pBuffer;
|
||||
A_UINT32 length;
|
||||
}BUFFER_PROC_LIST;
|
||||
|
||||
|
@ -1025,7 +1025,7 @@ typedef struct _BUFFER_PROC_LIST{
|
|||
/* a simple and crude way to send different "message" sizes */
|
||||
static void AssembleBufferList(BUFFER_PROC_LIST *pList)
|
||||
{
|
||||
A_UINT8 *pBuffer = g_Buffer;
|
||||
u8 *pBuffer = g_Buffer;
|
||||
|
||||
#if BUFFER_PROC_LIST_DEPTH < 4
|
||||
#error "Buffer processing list depth is not deep enough!!"
|
||||
|
@ -1107,7 +1107,7 @@ static bool CheckBuffers(void)
|
|||
/* find the end marker for the last buffer we will be sending */
|
||||
static A_UINT16 GetEndMarker(void)
|
||||
{
|
||||
A_UINT8 *pBuffer;
|
||||
u8 *pBuffer;
|
||||
BUFFER_PROC_LIST checkList[BUFFER_PROC_LIST_DEPTH];
|
||||
|
||||
/* fill up buffers with the normal counting pattern */
|
||||
|
@ -1173,7 +1173,7 @@ static int GetCredits(AR6K_DEVICE *pDev, int mbox, int *pCredits)
|
|||
{
|
||||
int status = A_OK;
|
||||
int timeout = TEST_CREDITS_RECV_TIMEOUT;
|
||||
A_UINT8 credits = 0;
|
||||
u8 credits = 0;
|
||||
A_UINT32 address;
|
||||
|
||||
while (true) {
|
||||
|
@ -1335,7 +1335,7 @@ int DoMboxHWTest(AR6K_DEVICE *pDev)
|
|||
int i;
|
||||
int status;
|
||||
int credits = 0;
|
||||
A_UINT8 params[4];
|
||||
u8 params[4];
|
||||
int numBufs;
|
||||
int bufferSize;
|
||||
A_UINT16 temp;
|
||||
|
@ -1418,7 +1418,7 @@ int DoMboxHWTest(AR6K_DEVICE *pDev)
|
|||
|
||||
status = HIFReadWrite(pDev->HIFDevice,
|
||||
SCRATCH_ADDRESS + 4,
|
||||
(A_UINT8 *)&temp,
|
||||
(u8 *)&temp,
|
||||
2,
|
||||
HIF_WR_SYNC_BYTE_INC,
|
||||
NULL);
|
||||
|
@ -1435,7 +1435,7 @@ int DoMboxHWTest(AR6K_DEVICE *pDev)
|
|||
temp = temp - 1;
|
||||
status = HIFReadWrite(pDev->HIFDevice,
|
||||
SCRATCH_ADDRESS + 6,
|
||||
(A_UINT8 *)&temp,
|
||||
(u8 *)&temp,
|
||||
2,
|
||||
HIF_WR_SYNC_BYTE_INC,
|
||||
NULL);
|
||||
|
|
|
@ -44,14 +44,14 @@
|
|||
|
||||
#include "athstartpack.h"
|
||||
typedef PREPACK struct _AR6K_IRQ_PROC_REGISTERS {
|
||||
A_UINT8 host_int_status;
|
||||
A_UINT8 cpu_int_status;
|
||||
A_UINT8 error_int_status;
|
||||
A_UINT8 counter_int_status;
|
||||
A_UINT8 mbox_frame;
|
||||
A_UINT8 rx_lookahead_valid;
|
||||
A_UINT8 host_int_status2;
|
||||
A_UINT8 gmbox_rx_avail;
|
||||
u8 host_int_status;
|
||||
u8 cpu_int_status;
|
||||
u8 error_int_status;
|
||||
u8 counter_int_status;
|
||||
u8 mbox_frame;
|
||||
u8 rx_lookahead_valid;
|
||||
u8 host_int_status2;
|
||||
u8 gmbox_rx_avail;
|
||||
A_UINT32 rx_lookahead[2];
|
||||
A_UINT32 rx_gmbox_lookahead_alias[2];
|
||||
} POSTPACK AR6K_IRQ_PROC_REGISTERS;
|
||||
|
@ -59,14 +59,14 @@ typedef PREPACK struct _AR6K_IRQ_PROC_REGISTERS {
|
|||
#define AR6K_IRQ_PROC_REGS_SIZE sizeof(AR6K_IRQ_PROC_REGISTERS)
|
||||
|
||||
typedef PREPACK struct _AR6K_IRQ_ENABLE_REGISTERS {
|
||||
A_UINT8 int_status_enable;
|
||||
A_UINT8 cpu_int_status_enable;
|
||||
A_UINT8 error_status_enable;
|
||||
A_UINT8 counter_int_status_enable;
|
||||
u8 int_status_enable;
|
||||
u8 cpu_int_status_enable;
|
||||
u8 error_status_enable;
|
||||
u8 counter_int_status_enable;
|
||||
} POSTPACK AR6K_IRQ_ENABLE_REGISTERS;
|
||||
|
||||
typedef PREPACK struct _AR6K_GMBOX_CTRL_REGISTERS {
|
||||
A_UINT8 int_status_enable;
|
||||
u8 int_status_enable;
|
||||
} POSTPACK AR6K_GMBOX_CTRL_REGISTERS;
|
||||
|
||||
#include "athendpack.h"
|
||||
|
@ -91,14 +91,14 @@ typedef PREPACK struct _AR6K_GMBOX_CTRL_REGISTERS {
|
|||
/* buffers for ASYNC I/O */
|
||||
typedef struct AR6K_ASYNC_REG_IO_BUFFER {
|
||||
HTC_PACKET HtcPacket; /* we use an HTC packet as a wrapper for our async register-based I/O */
|
||||
A_UINT8 _Pad1[A_CACHE_LINE_PAD];
|
||||
A_UINT8 Buffer[AR6K_REG_IO_BUFFER_SIZE]; /* cache-line safe with pads around */
|
||||
A_UINT8 _Pad2[A_CACHE_LINE_PAD];
|
||||
u8 _Pad1[A_CACHE_LINE_PAD];
|
||||
u8 Buffer[AR6K_REG_IO_BUFFER_SIZE]; /* cache-line safe with pads around */
|
||||
u8 _Pad2[A_CACHE_LINE_PAD];
|
||||
} AR6K_ASYNC_REG_IO_BUFFER;
|
||||
|
||||
typedef struct _AR6K_GMBOX_INFO {
|
||||
void *pProtocolContext;
|
||||
int (*pMessagePendingCallBack)(void *pContext, A_UINT8 LookAheadBytes[], int ValidBytes);
|
||||
int (*pMessagePendingCallBack)(void *pContext, u8 LookAheadBytes[], int ValidBytes);
|
||||
int (*pCreditsPendingCallback)(void *pContext, int NumCredits, bool CreditIRQEnabled);
|
||||
void (*pTargetFailureCallback)(void *pContext, int Status);
|
||||
void (*pStateDumpCallback)(void *pContext);
|
||||
|
@ -107,11 +107,11 @@ typedef struct _AR6K_GMBOX_INFO {
|
|||
|
||||
typedef struct _AR6K_DEVICE {
|
||||
A_MUTEX_T Lock;
|
||||
A_UINT8 _Pad1[A_CACHE_LINE_PAD];
|
||||
u8 _Pad1[A_CACHE_LINE_PAD];
|
||||
AR6K_IRQ_PROC_REGISTERS IrqProcRegisters; /* cache-line safe with pads around */
|
||||
A_UINT8 _Pad2[A_CACHE_LINE_PAD];
|
||||
u8 _Pad2[A_CACHE_LINE_PAD];
|
||||
AR6K_IRQ_ENABLE_REGISTERS IrqEnableRegisters; /* cache-line safe with pads around */
|
||||
A_UINT8 _Pad3[A_CACHE_LINE_PAD];
|
||||
u8 _Pad3[A_CACHE_LINE_PAD];
|
||||
void *HIFDevice;
|
||||
A_UINT32 BlockSize;
|
||||
A_UINT32 BlockMask;
|
||||
|
@ -321,8 +321,8 @@ int DoMboxHWTest(AR6K_DEVICE *pDev);
|
|||
|
||||
/* completely virtual */
|
||||
typedef struct _DEV_SCATTER_DMA_VIRTUAL_INFO {
|
||||
A_UINT8 *pVirtDmaBuffer; /* dma-able buffer - CPU accessible address */
|
||||
A_UINT8 DataArea[1]; /* start of data area */
|
||||
u8 *pVirtDmaBuffer; /* dma-able buffer - CPU accessible address */
|
||||
u8 DataArea[1]; /* start of data area */
|
||||
} DEV_SCATTER_DMA_VIRTUAL_INFO;
|
||||
|
||||
|
||||
|
@ -394,7 +394,7 @@ typedef enum GMBOX_IRQ_ACTION_TYPE {
|
|||
int DevGMboxIRQAction(AR6K_DEVICE *pDev, GMBOX_IRQ_ACTION_TYPE, bool AsyncMode);
|
||||
int DevGMboxReadCreditCounter(AR6K_DEVICE *pDev, bool AsyncMode, int *pCredits);
|
||||
int DevGMboxReadCreditSize(AR6K_DEVICE *pDev, int *pCreditSize);
|
||||
int DevGMboxRecvLookAheadPeek(AR6K_DEVICE *pDev, A_UINT8 *pLookAheadBuffer, int *pLookAheadBytes);
|
||||
int DevGMboxRecvLookAheadPeek(AR6K_DEVICE *pDev, u8 *pLookAheadBuffer, int *pLookAheadBytes);
|
||||
int DevGMboxSetTargetInterrupt(AR6K_DEVICE *pDev, int SignalNumber, int AckTimeoutMS);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -104,7 +104,7 @@ int DevPollMboxMsgRecv(AR6K_DEVICE *pDev,
|
|||
/* load the register table */
|
||||
status = HIFReadWrite(pDev->HIFDevice,
|
||||
HOST_INT_STATUS_ADDRESS,
|
||||
(A_UINT8 *)&pDev->IrqProcRegisters,
|
||||
(u8 *)&pDev->IrqProcRegisters,
|
||||
AR6K_IRQ_PROC_REGS_SIZE,
|
||||
HIF_RD_SYNC_BYTE_INC,
|
||||
NULL);
|
||||
|
@ -155,8 +155,8 @@ int DevPollMboxMsgRecv(AR6K_DEVICE *pDev,
|
|||
static int DevServiceCPUInterrupt(AR6K_DEVICE *pDev)
|
||||
{
|
||||
int status;
|
||||
A_UINT8 cpu_int_status;
|
||||
A_UINT8 regBuffer[4];
|
||||
u8 cpu_int_status;
|
||||
u8 regBuffer[4];
|
||||
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_IRQ, ("CPU Interrupt\n"));
|
||||
cpu_int_status = pDev->IrqProcRegisters.cpu_int_status &
|
||||
|
@ -195,8 +195,8 @@ static int DevServiceCPUInterrupt(AR6K_DEVICE *pDev)
|
|||
static int DevServiceErrorInterrupt(AR6K_DEVICE *pDev)
|
||||
{
|
||||
int status;
|
||||
A_UINT8 error_int_status;
|
||||
A_UINT8 regBuffer[4];
|
||||
u8 error_int_status;
|
||||
u8 regBuffer[4];
|
||||
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_IRQ, ("Error Interrupt\n"));
|
||||
error_int_status = pDev->IrqProcRegisters.error_int_status & 0x0F;
|
||||
|
@ -266,7 +266,7 @@ static int DevServiceDebugInterrupt(AR6K_DEVICE *pDev)
|
|||
/* read counter to clear interrupt */
|
||||
status = HIFReadWrite(pDev->HIFDevice,
|
||||
COUNT_DEC_ADDRESS,
|
||||
(A_UINT8 *)&dummy,
|
||||
(u8 *)&dummy,
|
||||
4,
|
||||
HIF_RD_SYNC_BYTE_INC,
|
||||
NULL);
|
||||
|
@ -277,7 +277,7 @@ static int DevServiceDebugInterrupt(AR6K_DEVICE *pDev)
|
|||
|
||||
static int DevServiceCounterInterrupt(AR6K_DEVICE *pDev)
|
||||
{
|
||||
A_UINT8 counter_int_status;
|
||||
u8 counter_int_status;
|
||||
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_IRQ, ("Counter Interrupt\n"));
|
||||
|
||||
|
@ -332,7 +332,7 @@ static void DevGetEventAsyncHandler(void *Context, HTC_PACKET *pPacket)
|
|||
} else {
|
||||
/* standard interrupt table handling.... */
|
||||
AR6K_IRQ_PROC_REGISTERS *pReg = (AR6K_IRQ_PROC_REGISTERS *)pPacket->pBuffer;
|
||||
A_UINT8 host_int_status;
|
||||
u8 host_int_status;
|
||||
|
||||
host_int_status = pReg->host_int_status & pDev->IrqEnableRegisters.int_status_enable;
|
||||
|
||||
|
@ -470,7 +470,7 @@ void DevAsyncIrqProcessComplete(AR6K_DEVICE *pDev)
|
|||
static int ProcessPendingIRQs(AR6K_DEVICE *pDev, bool *pDone, bool *pASyncProcessing)
|
||||
{
|
||||
int status = A_OK;
|
||||
A_UINT8 host_int_status = 0;
|
||||
u8 host_int_status = 0;
|
||||
A_UINT32 lookAhead = 0;
|
||||
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_IRQ,("+ProcessPendingIRQs: (dev: 0x%lX)\n", (unsigned long)pDev));
|
||||
|
@ -545,7 +545,7 @@ static int ProcessPendingIRQs(AR6K_DEVICE *pDev, bool *pDone, bool *pASyncProces
|
|||
#endif /* CONFIG_MMC_SDHCI_S3C */
|
||||
status = HIFReadWrite(pDev->HIFDevice,
|
||||
HOST_INT_STATUS_ADDRESS,
|
||||
(A_UINT8 *)&pDev->IrqProcRegisters,
|
||||
(u8 *)&pDev->IrqProcRegisters,
|
||||
AR6K_IRQ_PROC_REGS_SIZE,
|
||||
HIF_RD_SYNC_BYTE_INC,
|
||||
NULL);
|
||||
|
@ -758,7 +758,7 @@ void DumpAR6KDevState(AR6K_DEVICE *pDev)
|
|||
/* load the register table from the device */
|
||||
status = HIFReadWrite(pDev->HIFDevice,
|
||||
HOST_INT_STATUS_ADDRESS,
|
||||
(A_UINT8 *)&procRegs,
|
||||
(u8 *)&procRegs,
|
||||
AR6K_IRQ_PROC_REGS_SIZE,
|
||||
HIF_RD_SYNC_BYTE_INC,
|
||||
NULL);
|
||||
|
|
|
@ -159,7 +159,7 @@ int DevGMboxIRQAction(AR6K_DEVICE *pDev, GMBOX_IRQ_ACTION_TYPE IrqAction, bool A
|
|||
{
|
||||
int status = A_OK;
|
||||
HTC_PACKET *pIOPacket = NULL;
|
||||
A_UINT8 GMboxIntControl[4];
|
||||
u8 GMboxIntControl[4];
|
||||
|
||||
if (GMBOX_CREDIT_IRQ_ENABLE == IrqAction) {
|
||||
return DevGMboxCounterEnableDisable(pDev, GMBOX_CREDIT_IRQ_ENABLE, AsyncMode);
|
||||
|
@ -272,7 +272,7 @@ void DevCleanupGMbox(AR6K_DEVICE *pDev)
|
|||
int DevSetupGMbox(AR6K_DEVICE *pDev)
|
||||
{
|
||||
int status = A_OK;
|
||||
A_UINT8 muxControl[4];
|
||||
u8 muxControl[4];
|
||||
|
||||
do {
|
||||
|
||||
|
@ -325,9 +325,9 @@ int DevSetupGMbox(AR6K_DEVICE *pDev)
|
|||
int DevCheckGMboxInterrupts(AR6K_DEVICE *pDev)
|
||||
{
|
||||
int status = A_OK;
|
||||
A_UINT8 counter_int_status;
|
||||
u8 counter_int_status;
|
||||
int credits;
|
||||
A_UINT8 host_int_status2;
|
||||
u8 host_int_status2;
|
||||
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_IRQ, ("+DevCheckGMboxInterrupts \n"));
|
||||
|
||||
|
@ -360,7 +360,7 @@ int DevCheckGMboxInterrupts(AR6K_DEVICE *pDev)
|
|||
A_ASSERT(pDev->GMboxInfo.pMessagePendingCallBack != NULL);
|
||||
status = pDev->GMboxInfo.pMessagePendingCallBack(
|
||||
pDev->GMboxInfo.pProtocolContext,
|
||||
(A_UINT8 *)&pDev->IrqProcRegisters.rx_gmbox_lookahead_alias[0],
|
||||
(u8 *)&pDev->IrqProcRegisters.rx_gmbox_lookahead_alias[0],
|
||||
pDev->IrqProcRegisters.gmbox_rx_avail);
|
||||
}
|
||||
}
|
||||
|
@ -477,7 +477,7 @@ int DevGMboxRead(AR6K_DEVICE *pDev, HTC_PACKET *pPacket, A_UINT32 ReadLength)
|
|||
}
|
||||
|
||||
|
||||
static int ProcessCreditCounterReadBuffer(A_UINT8 *pBuffer, int Length)
|
||||
static int ProcessCreditCounterReadBuffer(u8 *pBuffer, int Length)
|
||||
{
|
||||
int credits = 0;
|
||||
|
||||
|
@ -605,7 +605,7 @@ int DevGMboxReadCreditCounter(AR6K_DEVICE *pDev, bool AsyncMode, int *pCredits)
|
|||
int DevGMboxReadCreditSize(AR6K_DEVICE *pDev, int *pCreditSize)
|
||||
{
|
||||
int status;
|
||||
A_UINT8 buffer[4];
|
||||
u8 buffer[4];
|
||||
|
||||
status = HIFReadWrite(pDev->HIFDevice,
|
||||
AR6K_GMBOX_CREDIT_SIZE_ADDRESS,
|
||||
|
@ -634,7 +634,7 @@ void DevNotifyGMboxTargetFailure(AR6K_DEVICE *pDev)
|
|||
}
|
||||
}
|
||||
|
||||
int DevGMboxRecvLookAheadPeek(AR6K_DEVICE *pDev, A_UINT8 *pLookAheadBuffer, int *pLookAheadBytes)
|
||||
int DevGMboxRecvLookAheadPeek(AR6K_DEVICE *pDev, u8 *pLookAheadBuffer, int *pLookAheadBytes)
|
||||
{
|
||||
|
||||
int status = A_OK;
|
||||
|
@ -654,7 +654,7 @@ int DevGMboxRecvLookAheadPeek(AR6K_DEVICE *pDev, A_UINT8 *pLookAheadBuffer, int
|
|||
/* load the register table from the device */
|
||||
status = HIFReadWrite(pDev->HIFDevice,
|
||||
HOST_INT_STATUS_ADDRESS,
|
||||
(A_UINT8 *)&procRegs,
|
||||
(u8 *)&procRegs,
|
||||
AR6K_IRQ_PROC_REGS_SIZE,
|
||||
HIF_RD_SYNC_BYTE_INC,
|
||||
NULL);
|
||||
|
@ -680,7 +680,7 @@ int DevGMboxSetTargetInterrupt(AR6K_DEVICE *pDev, int Signal, int AckTimeoutMS)
|
|||
{
|
||||
int status = A_OK;
|
||||
int i;
|
||||
A_UINT8 buffer[4];
|
||||
u8 buffer[4];
|
||||
|
||||
A_MEMZERO(buffer, sizeof(buffer));
|
||||
|
||||
|
|
|
@ -304,7 +304,7 @@ static void StateDumpCallback(void *pContext)
|
|||
AR_DEBUG_PRINTF(ATH_DEBUG_ANY,("==================================================\n"));
|
||||
}
|
||||
|
||||
static int HCIUartMessagePending(void *pContext, A_UINT8 LookAheadBytes[], int ValidBytes)
|
||||
static int HCIUartMessagePending(void *pContext, u8 LookAheadBytes[], int ValidBytes)
|
||||
{
|
||||
GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)pContext;
|
||||
int status = A_OK;
|
||||
|
@ -584,7 +584,7 @@ static int HCITrySend(GMBOX_PROTO_HCI_UART *pProt, HTC_PACKET *pPacket, bool Syn
|
|||
int status = A_OK;
|
||||
int transferLength;
|
||||
int creditsRequired, remainder;
|
||||
A_UINT8 hciUartType;
|
||||
u8 hciUartType;
|
||||
bool synchSendComplete = false;
|
||||
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("+HCITrySend (pPacket:0x%lX) %s \n",(unsigned long)pPacket,
|
||||
|
@ -1164,7 +1164,7 @@ int HCI_TransportRecvHCIEventSync(HCI_TRANSPORT_HANDLE HciTrans,
|
|||
{
|
||||
GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)HciTrans;
|
||||
int status = A_OK;
|
||||
A_UINT8 lookAhead[8];
|
||||
u8 lookAhead[8];
|
||||
int bytes;
|
||||
int totalRecvLength;
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ typedef struct _HTC_ENDPOINT {
|
|||
HTC_PACKET_QUEUE RecvIndicationQueue; /* recv packets ready to be indicated */
|
||||
int RxProcessCount; /* reference count to allow single processing context */
|
||||
struct _HTC_TARGET *target; /* back pointer to target */
|
||||
A_UINT8 SeqNo; /* TX seq no (helpful) for debugging */
|
||||
u8 SeqNo; /* TX seq no (helpful) for debugging */
|
||||
A_UINT32 LocalConnectionFlags; /* local connection flags */
|
||||
#ifdef HTC_EP_STAT_PROFILING
|
||||
HTC_ENDPOINT_STATS EndPointStats; /* endpoint statistics */
|
||||
|
@ -101,7 +101,7 @@ typedef struct _HTC_ENDPOINT {
|
|||
|
||||
typedef struct HTC_CONTROL_BUFFER {
|
||||
HTC_PACKET HtcPacket;
|
||||
A_UINT8 *Buffer;
|
||||
u8 *Buffer;
|
||||
} HTC_CONTROL_BUFFER;
|
||||
|
||||
#define HTC_RECV_WAIT_BUFFERS (1 << 0)
|
||||
|
@ -129,11 +129,11 @@ typedef struct _HTC_TARGET {
|
|||
bool TargetFailure;
|
||||
#ifdef HTC_CAPTURE_LAST_FRAME
|
||||
HTC_FRAME_HDR LastFrameHdr; /* useful for debugging */
|
||||
A_UINT8 LastTrailer[256];
|
||||
A_UINT8 LastTrailerLength;
|
||||
u8 LastTrailer[256];
|
||||
u8 LastTrailerLength;
|
||||
#endif
|
||||
HTC_INIT_INFO HTCInitInfo;
|
||||
A_UINT8 HTCTargetVersion;
|
||||
u8 HTCTargetVersion;
|
||||
int MaxMsgPerBundle; /* max messages per bundle for HTC */
|
||||
bool SendBundlingEnabled; /* run time enable for send bundling (dynamic) */
|
||||
int RecvBundlingEnabled; /* run time enable for recv bundling (dynamic) */
|
||||
|
@ -200,14 +200,14 @@ static INLINE HTC_PACKET *HTC_ALLOC_CONTROL_TX(HTC_TARGET *target) {
|
|||
|
||||
#define HTC_PREPARE_SEND_PKT(pP,sendflags,ctrl0,ctrl1) \
|
||||
{ \
|
||||
A_UINT8 *pHdrBuf; \
|
||||
u8 *pHdrBuf; \
|
||||
(pP)->pBuffer -= HTC_HDR_LENGTH; \
|
||||
pHdrBuf = (pP)->pBuffer; \
|
||||
A_SET_UINT16_FIELD(pHdrBuf,HTC_FRAME_HDR,PayloadLen,(A_UINT16)(pP)->ActualLength); \
|
||||
A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,Flags,(sendflags)); \
|
||||
A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,EndpointID, (A_UINT8)(pP)->Endpoint); \
|
||||
A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,ControlBytes[0], (A_UINT8)(ctrl0)); \
|
||||
A_SET_UINT8_FIELD(pHdrBuf,HTC_FRAME_HDR,ControlBytes[1], (A_UINT8)(ctrl1)); \
|
||||
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[1], (u8)(ctrl1)); \
|
||||
}
|
||||
|
||||
#define HTC_UNPREPARE_SEND_PKT(pP) \
|
||||
|
|
|
@ -84,16 +84,16 @@ static void DoRecvCompletion(HTC_ENDPOINT *pEndpoint,
|
|||
}
|
||||
|
||||
static INLINE int HTCProcessTrailer(HTC_TARGET *target,
|
||||
A_UINT8 *pBuffer,
|
||||
u8 *pBuffer,
|
||||
int Length,
|
||||
A_UINT32 *pNextLookAheads,
|
||||
int *pNumLookAheads,
|
||||
HTC_ENDPOINT_ID FromEndpoint)
|
||||
{
|
||||
HTC_RECORD_HDR *pRecord;
|
||||
A_UINT8 *pRecordBuf;
|
||||
u8 *pRecordBuf;
|
||||
HTC_LOOKAHEAD_REPORT *pLookAhead;
|
||||
A_UINT8 *pOrigBuffer;
|
||||
u8 *pOrigBuffer;
|
||||
int origLength;
|
||||
int status;
|
||||
|
||||
|
@ -149,14 +149,14 @@ static INLINE int HTCProcessTrailer(HTC_TARGET *target,
|
|||
pLookAhead->PostValid));
|
||||
|
||||
/* look ahead bytes are valid, copy them over */
|
||||
((A_UINT8 *)(&pNextLookAheads[0]))[0] = pLookAhead->LookAhead[0];
|
||||
((A_UINT8 *)(&pNextLookAheads[0]))[1] = pLookAhead->LookAhead[1];
|
||||
((A_UINT8 *)(&pNextLookAheads[0]))[2] = pLookAhead->LookAhead[2];
|
||||
((A_UINT8 *)(&pNextLookAheads[0]))[3] = pLookAhead->LookAhead[3];
|
||||
((u8 *)(&pNextLookAheads[0]))[0] = pLookAhead->LookAhead[0];
|
||||
((u8 *)(&pNextLookAheads[0]))[1] = pLookAhead->LookAhead[1];
|
||||
((u8 *)(&pNextLookAheads[0]))[2] = pLookAhead->LookAhead[2];
|
||||
((u8 *)(&pNextLookAheads[0]))[3] = pLookAhead->LookAhead[3];
|
||||
|
||||
#ifdef ATH_DEBUG_MODULE
|
||||
if (AR_DEBUG_LVL_CHECK(ATH_DEBUG_RECV)) {
|
||||
DebugDumpBytes((A_UINT8 *)pNextLookAheads,4,"Next Look Ahead");
|
||||
DebugDumpBytes((u8 *)pNextLookAheads,4,"Next Look Ahead");
|
||||
}
|
||||
#endif
|
||||
/* just one normal lookahead */
|
||||
|
@ -188,10 +188,10 @@ static INLINE int HTCProcessTrailer(HTC_TARGET *target,
|
|||
}
|
||||
|
||||
for (i = 0; i < (int)(pRecord->Length / (sizeof(HTC_BUNDLED_LOOKAHEAD_REPORT))); i++) {
|
||||
((A_UINT8 *)(&pNextLookAheads[i]))[0] = pBundledLookAheadRpt->LookAhead[0];
|
||||
((A_UINT8 *)(&pNextLookAheads[i]))[1] = pBundledLookAheadRpt->LookAhead[1];
|
||||
((A_UINT8 *)(&pNextLookAheads[i]))[2] = pBundledLookAheadRpt->LookAhead[2];
|
||||
((A_UINT8 *)(&pNextLookAheads[i]))[3] = pBundledLookAheadRpt->LookAhead[3];
|
||||
((u8 *)(&pNextLookAheads[i]))[0] = pBundledLookAheadRpt->LookAhead[0];
|
||||
((u8 *)(&pNextLookAheads[i]))[1] = pBundledLookAheadRpt->LookAhead[1];
|
||||
((u8 *)(&pNextLookAheads[i]))[2] = pBundledLookAheadRpt->LookAhead[2];
|
||||
((u8 *)(&pNextLookAheads[i]))[3] = pBundledLookAheadRpt->LookAhead[3];
|
||||
pBundledLookAheadRpt++;
|
||||
}
|
||||
|
||||
|
@ -231,8 +231,8 @@ static int HTCProcessRecvHeader(HTC_TARGET *target,
|
|||
A_UINT32 *pNextLookAheads,
|
||||
int *pNumLookAheads)
|
||||
{
|
||||
A_UINT8 temp;
|
||||
A_UINT8 *pBuf;
|
||||
u8 temp;
|
||||
u8 *pBuf;
|
||||
int status = A_OK;
|
||||
A_UINT16 payloadLen;
|
||||
A_UINT32 lookAhead;
|
||||
|
@ -254,10 +254,10 @@ static int HTCProcessRecvHeader(HTC_TARGET *target,
|
|||
* retrieve 16 bit fields */
|
||||
payloadLen = A_GET_UINT16_FIELD(pBuf, HTC_FRAME_HDR, PayloadLen);
|
||||
|
||||
((A_UINT8 *)&lookAhead)[0] = pBuf[0];
|
||||
((A_UINT8 *)&lookAhead)[1] = pBuf[1];
|
||||
((A_UINT8 *)&lookAhead)[2] = pBuf[2];
|
||||
((A_UINT8 *)&lookAhead)[3] = pBuf[3];
|
||||
((u8 *)&lookAhead)[0] = pBuf[0];
|
||||
((u8 *)&lookAhead)[1] = pBuf[1];
|
||||
((u8 *)&lookAhead)[2] = pBuf[2];
|
||||
((u8 *)&lookAhead)[3] = pBuf[3];
|
||||
|
||||
if (pPacket->PktInfo.AsRx.HTCRxFlags & HTC_RX_PKT_REFRESH_HDR) {
|
||||
/* refresh expected hdr, since this was unknown at the time we grabbed the packets
|
||||
|
@ -293,10 +293,10 @@ static int HTCProcessRecvHeader(HTC_TARGET *target,
|
|||
("HTCProcessRecvHeader, lookahead mismatch! (pPkt:0x%lX flags:0x%X) \n",
|
||||
(unsigned long)pPacket, pPacket->PktInfo.AsRx.HTCRxFlags));
|
||||
#ifdef ATH_DEBUG_MODULE
|
||||
DebugDumpBytes((A_UINT8 *)&pPacket->PktInfo.AsRx.ExpectedHdr,4,"Expected Message LookAhead");
|
||||
DebugDumpBytes((u8 *)&pPacket->PktInfo.AsRx.ExpectedHdr,4,"Expected Message LookAhead");
|
||||
DebugDumpBytes(pBuf,sizeof(HTC_FRAME_HDR),"Current Frame Header");
|
||||
#ifdef HTC_CAPTURE_LAST_FRAME
|
||||
DebugDumpBytes((A_UINT8 *)&target->LastFrameHdr,sizeof(HTC_FRAME_HDR),"Last Frame Header");
|
||||
DebugDumpBytes((u8 *)&target->LastFrameHdr,sizeof(HTC_FRAME_HDR),"Last Frame Header");
|
||||
if (target->LastTrailerLength != 0) {
|
||||
DebugDumpBytes(target->LastTrailer,
|
||||
target->LastTrailerLength,
|
||||
|
@ -405,7 +405,7 @@ static INLINE void HTCAsyncRecvCheckMorePackets(HTC_TARGET *target,
|
|||
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,
|
||||
("Next look ahead from recv header was INVALID\n"));
|
||||
#ifdef ATH_DEBUG_MODULE
|
||||
DebugDumpBytes((A_UINT8 *)NextLookAheads,
|
||||
DebugDumpBytes((u8 *)NextLookAheads,
|
||||
NumLookAheads * (sizeof(A_UINT32)),
|
||||
"BAD lookaheads from lookahead report");
|
||||
#endif
|
||||
|
|
|
@ -152,7 +152,7 @@ static INLINE void GetHTCSendPackets(HTC_TARGET *target,
|
|||
{
|
||||
int creditsRequired;
|
||||
int remainder;
|
||||
A_UINT8 sendFlags;
|
||||
u8 sendFlags;
|
||||
HTC_PACKET *pPacket;
|
||||
unsigned int transferLength;
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ int HTCSendSetupComplete(HTC_TARGET *target)
|
|||
A_MEMCPY(&pSetupCompleteEx->SetupFlags, &setupFlags, sizeof(pSetupCompleteEx->SetupFlags));
|
||||
SET_HTC_PACKET_INFO_TX(pSendPacket,
|
||||
NULL,
|
||||
(A_UINT8 *)pSetupCompleteEx,
|
||||
(u8 *)pSetupCompleteEx,
|
||||
sizeof(HTC_SETUP_COMPLETE_EX_MSG),
|
||||
ENDPOINT_0,
|
||||
HTC_SERVICE_TX_PACKET_TAG);
|
||||
|
@ -99,7 +99,7 @@ int HTCSendSetupComplete(HTC_TARGET *target)
|
|||
pSetupComplete->MessageID = HTC_MSG_SETUP_COMPLETE_ID;
|
||||
SET_HTC_PACKET_INFO_TX(pSendPacket,
|
||||
NULL,
|
||||
(A_UINT8 *)pSetupComplete,
|
||||
(u8 *)pSetupComplete,
|
||||
sizeof(HTC_SETUP_COMPLETE_MSG),
|
||||
ENDPOINT_0,
|
||||
HTC_SERVICE_TX_PACKET_TAG);
|
||||
|
@ -166,7 +166,7 @@ int HTCConnectService(HTC_HANDLE HTCHandle,
|
|||
if ((pConnectReq->pMetaData != NULL) &&
|
||||
(pConnectReq->MetaDataLength <= HTC_SERVICE_META_DATA_MAX_LENGTH)) {
|
||||
/* copy meta data into message buffer (after header ) */
|
||||
A_MEMCPY((A_UINT8 *)pConnectMsg + sizeof(HTC_CONNECT_SERVICE_MSG),
|
||||
A_MEMCPY((u8 *)pConnectMsg + sizeof(HTC_CONNECT_SERVICE_MSG),
|
||||
pConnectReq->pMetaData,
|
||||
pConnectReq->MetaDataLength);
|
||||
pConnectMsg->ServiceMetaLength = pConnectReq->MetaDataLength;
|
||||
|
@ -174,7 +174,7 @@ int HTCConnectService(HTC_HANDLE HTCHandle,
|
|||
|
||||
SET_HTC_PACKET_INFO_TX(pSendPacket,
|
||||
NULL,
|
||||
(A_UINT8 *)pConnectMsg,
|
||||
(u8 *)pConnectMsg,
|
||||
sizeof(HTC_CONNECT_SERVICE_MSG) + pConnectMsg->ServiceMetaLength,
|
||||
ENDPOINT_0,
|
||||
HTC_SERVICE_TX_PACKET_TAG);
|
||||
|
@ -225,7 +225,7 @@ int HTCConnectService(HTC_HANDLE HTCHandle,
|
|||
int copyLength = min((int)pConnectResp->BufferLength, (int)pResponseMsg->ServiceMetaLength);
|
||||
/* copy the meta data */
|
||||
A_MEMCPY(pConnectResp->pMetaData,
|
||||
((A_UINT8 *)pResponseMsg) + sizeof(HTC_CONNECT_SERVICE_RESPONSE_MSG),
|
||||
((u8 *)pResponseMsg) + sizeof(HTC_CONNECT_SERVICE_RESPONSE_MSG),
|
||||
copyLength);
|
||||
pConnectResp->ActualLength = copyLength;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ aggr_register_rx_dispatcher(void *cntxt, void * dev, RX_CALLBACK fn);
|
|||
* up to the indicated sequence number.
|
||||
*/
|
||||
void
|
||||
aggr_process_bar(void *cntxt, A_UINT8 tid, A_UINT16 seq_no);
|
||||
aggr_process_bar(void *cntxt, u8 tid, A_UINT16 seq_no);
|
||||
|
||||
|
||||
/*
|
||||
|
@ -82,7 +82,7 @@ aggr_process_bar(void *cntxt, A_UINT8 tid, A_UINT16 seq_no);
|
|||
* in hold_q to OS.
|
||||
*/
|
||||
void
|
||||
aggr_recv_addba_req_evt(void * cntxt, A_UINT8 tid, A_UINT16 seq_no, A_UINT8 win_sz);
|
||||
aggr_recv_addba_req_evt(void * cntxt, u8 tid, A_UINT16 seq_no, u8 win_sz);
|
||||
|
||||
|
||||
/*
|
||||
|
@ -93,7 +93,7 @@ aggr_recv_addba_req_evt(void * cntxt, A_UINT8 tid, A_UINT16 seq_no, A_UINT8 win_
|
|||
* aggr is not enabled on any tid.
|
||||
*/
|
||||
void
|
||||
aggr_recv_delba_req_evt(void * cntxt, A_UINT8 tid);
|
||||
aggr_recv_delba_req_evt(void * cntxt, u8 tid);
|
||||
|
||||
|
||||
|
||||
|
@ -108,7 +108,7 @@ aggr_recv_delba_req_evt(void * cntxt, A_UINT8 tid);
|
|||
* callback may be called to deliver frames in order.
|
||||
*/
|
||||
void
|
||||
aggr_process_recv_frm(void *cntxt, A_UINT8 tid, A_UINT16 seq_no, bool is_amsdu, void **osbuf);
|
||||
aggr_process_recv_frm(void *cntxt, u8 tid, A_UINT16 seq_no, bool is_amsdu, void **osbuf);
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -51,7 +51,7 @@ typedef struct {
|
|||
A_UINT32 PwrMgmtEnabled; /* TLPM enabled? */
|
||||
A_UINT16 IdleTimeout; /* TLPM idle timeout */
|
||||
A_UINT16 WakeupTimeout; /* TLPM wakeup timeout */
|
||||
A_UINT8 bdaddr[6]; /* Bluetooth device address */
|
||||
u8 bdaddr[6]; /* Bluetooth device address */
|
||||
} AR3K_CONFIG_INFO;
|
||||
|
||||
int AR3KConfigure(AR3K_CONFIG_INFO *pConfigInfo);
|
||||
|
|
|
@ -32,11 +32,11 @@
|
|||
* Used with AR6000_XIOCTL_AP_GET_STA_LIST
|
||||
*/
|
||||
typedef struct {
|
||||
A_UINT8 mac[ATH_MAC_LEN];
|
||||
A_UINT8 aid;
|
||||
A_UINT8 keymgmt;
|
||||
A_UINT8 ucipher;
|
||||
A_UINT8 auth;
|
||||
u8 mac[ATH_MAC_LEN];
|
||||
u8 aid;
|
||||
u8 keymgmt;
|
||||
u8 ucipher;
|
||||
u8 auth;
|
||||
} station_t;
|
||||
typedef struct {
|
||||
station_t sta[AP_MAX_NUM_STA];
|
||||
|
|
|
@ -243,8 +243,8 @@ typedef enum {
|
|||
/* Command pkt */
|
||||
typedef struct hci_cmd_pkt_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
A_UINT8 params[255];
|
||||
u8 param_length;
|
||||
u8 params[255];
|
||||
} POSTPACK HCI_CMD_PKT;
|
||||
|
||||
#define ACL_DATA_HDR_SIZE 4 /* hdl_and flags + data_len */
|
||||
|
@ -252,40 +252,40 @@ typedef struct hci_cmd_pkt_t {
|
|||
typedef struct hci_acl_data_pkt_t {
|
||||
A_UINT16 hdl_and_flags;
|
||||
A_UINT16 data_len;
|
||||
A_UINT8 data[Max80211_PAL_PDU_Size];
|
||||
u8 data[Max80211_PAL_PDU_Size];
|
||||
} POSTPACK HCI_ACL_DATA_PKT;
|
||||
|
||||
/* Event pkt */
|
||||
typedef struct hci_event_pkt_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 params[256];
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 params[256];
|
||||
} POSTPACK HCI_EVENT_PKT;
|
||||
|
||||
|
||||
/*============== HCI Command definitions ======================= */
|
||||
typedef struct hci_cmd_phy_link_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
A_UINT8 phy_link_hdl;
|
||||
A_UINT8 link_key_len;
|
||||
A_UINT8 link_key_type;
|
||||
A_UINT8 link_key[LINK_KEY_LEN];
|
||||
u8 param_length;
|
||||
u8 phy_link_hdl;
|
||||
u8 link_key_len;
|
||||
u8 link_key_type;
|
||||
u8 link_key[LINK_KEY_LEN];
|
||||
} POSTPACK HCI_CMD_PHY_LINK;
|
||||
|
||||
typedef struct hci_cmd_write_rem_amp_assoc_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
A_UINT8 phy_link_hdl;
|
||||
u8 param_length;
|
||||
u8 phy_link_hdl;
|
||||
A_UINT16 len_so_far;
|
||||
A_UINT16 amp_assoc_remaining_len;
|
||||
A_UINT8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ];
|
||||
u8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ];
|
||||
} POSTPACK HCI_CMD_WRITE_REM_AMP_ASSOC;
|
||||
|
||||
|
||||
typedef struct hci_cmd_opcode_hdl_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
u8 param_length;
|
||||
A_UINT16 hdl;
|
||||
} POSTPACK HCI_CMD_READ_LINK_QUAL,
|
||||
HCI_CMD_FLUSH,
|
||||
|
@ -293,8 +293,8 @@ typedef struct hci_cmd_opcode_hdl_t {
|
|||
|
||||
typedef struct hci_cmd_read_local_amp_assoc_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
A_UINT8 phy_link_hdl;
|
||||
u8 param_length;
|
||||
u8 phy_link_hdl;
|
||||
A_UINT16 len_so_far;
|
||||
A_UINT16 max_rem_amp_assoc_len;
|
||||
} POSTPACK HCI_CMD_READ_LOCAL_AMP_ASSOC;
|
||||
|
@ -302,54 +302,54 @@ typedef struct hci_cmd_read_local_amp_assoc_t {
|
|||
|
||||
typedef struct hci_cmd_set_event_mask_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
u8 param_length;
|
||||
A_UINT64 mask;
|
||||
}POSTPACK HCI_CMD_SET_EVT_MASK, HCI_CMD_SET_EVT_MASK_PG_2;
|
||||
|
||||
|
||||
typedef struct hci_cmd_enhanced_flush_t{
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
u8 param_length;
|
||||
A_UINT16 hdl;
|
||||
A_UINT8 type;
|
||||
u8 type;
|
||||
} POSTPACK HCI_CMD_ENHANCED_FLUSH;
|
||||
|
||||
|
||||
typedef struct hci_cmd_write_timeout_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
u8 param_length;
|
||||
A_UINT16 timeout;
|
||||
} POSTPACK HCI_CMD_WRITE_TIMEOUT;
|
||||
|
||||
typedef struct hci_cmd_write_link_supervision_timeout_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
u8 param_length;
|
||||
A_UINT16 hdl;
|
||||
A_UINT16 timeout;
|
||||
} POSTPACK HCI_CMD_WRITE_LINK_SUPERVISION_TIMEOUT;
|
||||
|
||||
typedef struct hci_cmd_write_flow_control_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
A_UINT8 mode;
|
||||
u8 param_length;
|
||||
u8 mode;
|
||||
} POSTPACK HCI_CMD_WRITE_FLOW_CONTROL;
|
||||
|
||||
typedef struct location_data_cfg_t {
|
||||
A_UINT8 reg_domain_aware;
|
||||
A_UINT8 reg_domain[3];
|
||||
A_UINT8 reg_options;
|
||||
u8 reg_domain_aware;
|
||||
u8 reg_domain[3];
|
||||
u8 reg_options;
|
||||
} POSTPACK LOCATION_DATA_CFG;
|
||||
|
||||
typedef struct hci_cmd_write_location_data_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
u8 param_length;
|
||||
LOCATION_DATA_CFG cfg;
|
||||
} POSTPACK HCI_CMD_WRITE_LOCATION_DATA;
|
||||
|
||||
|
||||
typedef struct flow_spec_t {
|
||||
A_UINT8 id;
|
||||
A_UINT8 service_type;
|
||||
u8 id;
|
||||
u8 service_type;
|
||||
A_UINT16 max_sdu;
|
||||
A_UINT32 sdu_inter_arrival_time;
|
||||
A_UINT32 access_latency;
|
||||
|
@ -359,15 +359,15 @@ typedef struct flow_spec_t {
|
|||
|
||||
typedef struct hci_cmd_create_logical_link_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
A_UINT8 phy_link_hdl;
|
||||
u8 param_length;
|
||||
u8 phy_link_hdl;
|
||||
FLOW_SPEC tx_flow_spec;
|
||||
FLOW_SPEC rx_flow_spec;
|
||||
} POSTPACK HCI_CMD_CREATE_LOGICAL_LINK;
|
||||
|
||||
typedef struct hci_cmd_flow_spec_modify_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
u8 param_length;
|
||||
A_UINT16 hdl;
|
||||
FLOW_SPEC tx_flow_spec;
|
||||
FLOW_SPEC rx_flow_spec;
|
||||
|
@ -375,28 +375,28 @@ typedef struct hci_cmd_flow_spec_modify_t {
|
|||
|
||||
typedef struct hci_cmd_logical_link_cancel_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
A_UINT8 phy_link_hdl;
|
||||
A_UINT8 tx_flow_spec_id;
|
||||
u8 param_length;
|
||||
u8 phy_link_hdl;
|
||||
u8 tx_flow_spec_id;
|
||||
} POSTPACK HCI_CMD_LOGICAL_LINK_CANCEL;
|
||||
|
||||
typedef struct hci_cmd_disconnect_logical_link_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
u8 param_length;
|
||||
A_UINT16 logical_link_hdl;
|
||||
} POSTPACK HCI_CMD_DISCONNECT_LOGICAL_LINK;
|
||||
|
||||
typedef struct hci_cmd_disconnect_phy_link_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
A_UINT8 phy_link_hdl;
|
||||
u8 param_length;
|
||||
u8 phy_link_hdl;
|
||||
} POSTPACK HCI_CMD_DISCONNECT_PHY_LINK;
|
||||
|
||||
typedef struct hci_cmd_srm_t {
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 param_length;
|
||||
A_UINT8 phy_link_hdl;
|
||||
A_UINT8 mode;
|
||||
u8 param_length;
|
||||
u8 phy_link_hdl;
|
||||
u8 mode;
|
||||
} POSTPACK HCI_CMD_SHORT_RANGE_MODE;
|
||||
/*============== HCI Command definitions end ======================= */
|
||||
|
||||
|
@ -406,123 +406,123 @@ typedef struct hci_cmd_srm_t {
|
|||
|
||||
/* Command complete event */
|
||||
typedef struct hci_event_cmd_complete_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 num_hci_cmd_pkts;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 num_hci_cmd_pkts;
|
||||
A_UINT16 opcode;
|
||||
A_UINT8 params[255];
|
||||
u8 params[255];
|
||||
} POSTPACK HCI_EVENT_CMD_COMPLETE;
|
||||
|
||||
|
||||
/* Command status event */
|
||||
typedef struct hci_event_cmd_status_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 status;
|
||||
A_UINT8 num_hci_cmd_pkts;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 status;
|
||||
u8 num_hci_cmd_pkts;
|
||||
A_UINT16 opcode;
|
||||
} POSTPACK HCI_EVENT_CMD_STATUS;
|
||||
|
||||
/* Hardware Error event */
|
||||
typedef struct hci_event_hw_err_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 hw_err_code;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 hw_err_code;
|
||||
} POSTPACK HCI_EVENT_HW_ERR;
|
||||
|
||||
/* Flush occured event */
|
||||
/* Qos Violation event */
|
||||
typedef struct hci_event_handle_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
A_UINT16 handle;
|
||||
} POSTPACK HCI_EVENT_FLUSH_OCCRD,
|
||||
HCI_EVENT_QOS_VIOLATION;
|
||||
|
||||
/* Loopback command event */
|
||||
typedef struct hci_loopback_cmd_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 params[252];
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 params[252];
|
||||
} POSTPACK HCI_EVENT_LOOPBACK_CMD;
|
||||
|
||||
/* Data buffer overflow event */
|
||||
typedef struct hci_data_buf_overflow_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 link_type;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 link_type;
|
||||
} POSTPACK HCI_EVENT_DATA_BUF_OVERFLOW;
|
||||
|
||||
/* Enhanced Flush complete event */
|
||||
typedef struct hci_enhanced_flush_complt_t{
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
A_UINT16 hdl;
|
||||
} POSTPACK HCI_EVENT_ENHANCED_FLUSH_COMPLT;
|
||||
|
||||
/* Channel select event */
|
||||
typedef struct hci_event_chan_select_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 phy_link_hdl;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 phy_link_hdl;
|
||||
} POSTPACK HCI_EVENT_CHAN_SELECT;
|
||||
|
||||
/* Physical Link Complete event */
|
||||
typedef struct hci_event_phy_link_complete_event_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 status;
|
||||
A_UINT8 phy_link_hdl;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 status;
|
||||
u8 phy_link_hdl;
|
||||
} POSTPACK HCI_EVENT_PHY_LINK_COMPLETE;
|
||||
|
||||
/* Logical Link complete event */
|
||||
typedef struct hci_event_logical_link_complete_event_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 status;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 status;
|
||||
A_UINT16 logical_link_hdl;
|
||||
A_UINT8 phy_hdl;
|
||||
A_UINT8 tx_flow_id;
|
||||
u8 phy_hdl;
|
||||
u8 tx_flow_id;
|
||||
} POSTPACK HCI_EVENT_LOGICAL_LINK_COMPLETE_EVENT;
|
||||
|
||||
/* Disconnect Logical Link complete event */
|
||||
typedef struct hci_event_disconnect_logical_link_event_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 status;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 status;
|
||||
A_UINT16 logical_link_hdl;
|
||||
A_UINT8 reason;
|
||||
u8 reason;
|
||||
} POSTPACK HCI_EVENT_DISCONNECT_LOGICAL_LINK_EVENT;
|
||||
|
||||
/* Disconnect Physical Link complete event */
|
||||
typedef struct hci_event_disconnect_phy_link_complete_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 status;
|
||||
A_UINT8 phy_link_hdl;
|
||||
A_UINT8 reason;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 status;
|
||||
u8 phy_link_hdl;
|
||||
u8 reason;
|
||||
} POSTPACK HCI_EVENT_DISCONNECT_PHY_LINK_COMPLETE;
|
||||
|
||||
typedef struct hci_event_physical_link_loss_early_warning_t{
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 phy_hdl;
|
||||
A_UINT8 reason;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 phy_hdl;
|
||||
u8 reason;
|
||||
} POSTPACK HCI_EVENT_PHY_LINK_LOSS_EARLY_WARNING;
|
||||
|
||||
typedef struct hci_event_physical_link_recovery_t{
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 phy_hdl;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 phy_hdl;
|
||||
} POSTPACK HCI_EVENT_PHY_LINK_RECOVERY;
|
||||
|
||||
|
||||
/* Flow spec modify complete event */
|
||||
/* Flush event */
|
||||
typedef struct hci_event_status_handle_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 status;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 status;
|
||||
A_UINT16 handle;
|
||||
} POSTPACK HCI_EVENT_FLOW_SPEC_MODIFY,
|
||||
HCI_EVENT_FLUSH;
|
||||
|
@ -530,40 +530,40 @@ typedef struct hci_event_status_handle_t {
|
|||
|
||||
/* Num of completed data blocks event */
|
||||
typedef struct hci_event_num_of_compl_data_blks_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
A_UINT16 num_data_blks;
|
||||
A_UINT8 num_handles;
|
||||
A_UINT8 params[255];
|
||||
u8 num_handles;
|
||||
u8 params[255];
|
||||
} POSTPACK HCI_EVENT_NUM_COMPL_DATA_BLKS;
|
||||
|
||||
/* Short range mode change complete event */
|
||||
typedef struct hci_srm_cmpl_t {
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 status;
|
||||
A_UINT8 phy_link;
|
||||
A_UINT8 state;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 status;
|
||||
u8 phy_link;
|
||||
u8 state;
|
||||
} POSTPACK HCI_EVENT_SRM_COMPL;
|
||||
|
||||
typedef struct hci_event_amp_status_change_t{
|
||||
A_UINT8 event_code;
|
||||
A_UINT8 param_len;
|
||||
A_UINT8 status;
|
||||
A_UINT8 amp_status;
|
||||
u8 event_code;
|
||||
u8 param_len;
|
||||
u8 status;
|
||||
u8 amp_status;
|
||||
} POSTPACK HCI_EVENT_AMP_STATUS_CHANGE;
|
||||
|
||||
/*============== Event definitions end =========================== */
|
||||
|
||||
|
||||
typedef struct local_amp_info_resp_t {
|
||||
A_UINT8 status;
|
||||
A_UINT8 amp_status;
|
||||
u8 status;
|
||||
u8 amp_status;
|
||||
A_UINT32 total_bw; /* kbps */
|
||||
A_UINT32 max_guranteed_bw; /* kbps */
|
||||
A_UINT32 min_latency;
|
||||
A_UINT32 max_pdu_size;
|
||||
A_UINT8 amp_type;
|
||||
u8 amp_type;
|
||||
A_UINT16 pal_capabilities;
|
||||
A_UINT16 amp_assoc_len;
|
||||
A_UINT32 max_flush_timeout; /* in ms */
|
||||
|
@ -571,10 +571,10 @@ typedef struct local_amp_info_resp_t {
|
|||
} POSTPACK LOCAL_AMP_INFO;
|
||||
|
||||
typedef struct amp_assoc_cmd_resp_t{
|
||||
A_UINT8 status;
|
||||
A_UINT8 phy_hdl;
|
||||
u8 status;
|
||||
u8 phy_hdl;
|
||||
A_UINT16 amp_assoc_len;
|
||||
A_UINT8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ];
|
||||
u8 amp_assoc_frag[AMP_ASSOC_MAX_FRAG_SZ];
|
||||
}POSTPACK AMP_ASSOC_CMD_RESP;
|
||||
|
||||
|
||||
|
@ -618,38 +618,38 @@ enum PAL_HCI_CMD_STATUS {
|
|||
/* Following are event return parameters.. part of HCI events
|
||||
*/
|
||||
typedef struct timeout_read_t {
|
||||
A_UINT8 status;
|
||||
u8 status;
|
||||
A_UINT16 timeout;
|
||||
}POSTPACK TIMEOUT_INFO;
|
||||
|
||||
typedef struct link_supervision_timeout_read_t {
|
||||
A_UINT8 status;
|
||||
u8 status;
|
||||
A_UINT16 hdl;
|
||||
A_UINT16 timeout;
|
||||
}POSTPACK LINK_SUPERVISION_TIMEOUT_INFO;
|
||||
|
||||
typedef struct status_hdl_t {
|
||||
A_UINT8 status;
|
||||
u8 status;
|
||||
A_UINT16 hdl;
|
||||
}POSTPACK INFO_STATUS_HDL;
|
||||
|
||||
typedef struct write_remote_amp_assoc_t{
|
||||
A_UINT8 status;
|
||||
A_UINT8 hdl;
|
||||
u8 status;
|
||||
u8 hdl;
|
||||
}POSTPACK WRITE_REMOTE_AMP_ASSOC_INFO;
|
||||
|
||||
typedef struct read_loc_info_t {
|
||||
A_UINT8 status;
|
||||
u8 status;
|
||||
LOCATION_DATA_CFG loc;
|
||||
}POSTPACK READ_LOC_INFO;
|
||||
|
||||
typedef struct read_flow_ctrl_mode_t {
|
||||
A_UINT8 status;
|
||||
A_UINT8 mode;
|
||||
u8 status;
|
||||
u8 mode;
|
||||
}POSTPACK READ_FLWCTRL_INFO;
|
||||
|
||||
typedef struct read_data_blk_size_t {
|
||||
A_UINT8 status;
|
||||
u8 status;
|
||||
A_UINT16 max_acl_data_pkt_len;
|
||||
A_UINT16 data_block_len;
|
||||
A_UINT16 total_num_data_blks;
|
||||
|
@ -657,23 +657,23 @@ typedef struct read_data_blk_size_t {
|
|||
|
||||
/* Read Link quality info */
|
||||
typedef struct link_qual_t {
|
||||
A_UINT8 status;
|
||||
u8 status;
|
||||
A_UINT16 hdl;
|
||||
A_UINT8 link_qual;
|
||||
u8 link_qual;
|
||||
} POSTPACK READ_LINK_QUAL_INFO,
|
||||
READ_RSSI_INFO;
|
||||
|
||||
typedef struct ll_cancel_resp_t {
|
||||
A_UINT8 status;
|
||||
A_UINT8 phy_link_hdl;
|
||||
A_UINT8 tx_flow_spec_id;
|
||||
u8 status;
|
||||
u8 phy_link_hdl;
|
||||
u8 tx_flow_spec_id;
|
||||
} POSTPACK LL_CANCEL_RESP;
|
||||
|
||||
typedef struct read_local_ver_info_t {
|
||||
A_UINT8 status;
|
||||
A_UINT8 hci_version;
|
||||
u8 status;
|
||||
u8 hci_version;
|
||||
A_UINT16 hci_revision;
|
||||
A_UINT8 pal_version;
|
||||
u8 pal_version;
|
||||
A_UINT16 manf_name;
|
||||
A_UINT16 pal_sub_ver;
|
||||
} POSTPACK READ_LOCAL_VER_INFO;
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
* A_UINT32 address
|
||||
* A_UINT32 length, at most BMI_DATASZ_MAX
|
||||
* Response format:
|
||||
* A_UINT8 data[length]
|
||||
* u8 data[length]
|
||||
*/
|
||||
|
||||
#define BMI_WRITE_MEMORY 3
|
||||
|
@ -87,7 +87,7 @@
|
|||
* A_UINT32 command (BMI_WRITE_MEMORY)
|
||||
* A_UINT32 address
|
||||
* A_UINT32 length, at most BMI_DATASZ_MAX
|
||||
* A_UINT8 data[length]
|
||||
* u8 data[length]
|
||||
* Response format: none
|
||||
*/
|
||||
|
||||
|
@ -229,7 +229,7 @@ PREPACK struct bmi_target_info {
|
|||
* A_UINT32 command (BMI_LZ_DATA)
|
||||
* A_UINT32 length (of compressed data),
|
||||
* at most BMI_DATASZ_MAX
|
||||
* A_UINT8 CompressedData[length]
|
||||
* u8 CompressedData[length]
|
||||
* Response format: none
|
||||
* Note: Not supported on all versions of ROM firmware.
|
||||
*/
|
||||
|
|
|
@ -89,7 +89,7 @@ extern "C" {
|
|||
|
||||
PREPACK struct dbglog_buf_s {
|
||||
struct dbglog_buf_s *next;
|
||||
A_UINT8 *buffer;
|
||||
u8 *buffer;
|
||||
A_UINT32 bufsize;
|
||||
A_UINT32 length;
|
||||
A_UINT32 count;
|
||||
|
|
|
@ -41,25 +41,25 @@
|
|||
#define HCI_RSVD_EXPECTED_PKT_TYPE_RECV_OFFSET 7
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 _HCIRsvd[8]; /* reserved for HCI packet header (GMBOX) testing */
|
||||
A_UINT8 StreamEcho_h; /* stream no. to echo this packet on (filled by host) */
|
||||
A_UINT8 StreamEchoSent_t; /* stream no. packet was echoed to (filled by target)
|
||||
u8 _HCIRsvd[8]; /* reserved for HCI packet header (GMBOX) testing */
|
||||
u8 StreamEcho_h; /* stream no. to echo this packet on (filled by host) */
|
||||
u8 StreamEchoSent_t; /* stream no. packet was echoed to (filled by target)
|
||||
When echoed: StreamEchoSent_t == StreamEcho_h */
|
||||
A_UINT8 StreamRecv_t; /* stream no. that target received this packet on (filled by target) */
|
||||
A_UINT8 StreamNo_h; /* stream number to send on (filled by host) */
|
||||
A_UINT8 Magic_h[4]; /* magic number to filter for this packet on the host*/
|
||||
A_UINT8 _rsvd[6]; /* reserved fields that must be set to a "reserved" value
|
||||
u8 StreamRecv_t; /* stream no. that target received this packet on (filled by target) */
|
||||
u8 StreamNo_h; /* stream number to send on (filled by host) */
|
||||
u8 Magic_h[4]; /* magic number to filter for this packet on the host*/
|
||||
u8 _rsvd[6]; /* reserved fields that must be set to a "reserved" value
|
||||
since this packet maps to a 14-byte ethernet frame we want
|
||||
to make sure ethertype field is set to something unknown */
|
||||
|
||||
A_UINT8 _pad[2]; /* padding for alignment */
|
||||
A_UINT8 TimeStamp[8]; /* timestamp of packet (host or target) */
|
||||
u8 _pad[2]; /* padding for alignment */
|
||||
u8 TimeStamp[8]; /* timestamp of packet (host or target) */
|
||||
A_UINT32 HostContext_h; /* 4 byte host context, target echos this back */
|
||||
A_UINT32 SeqNo; /* sequence number (set by host or target) */
|
||||
A_UINT16 Cmd_h; /* ping command (filled by host) */
|
||||
A_UINT16 CmdFlags_h; /* optional flags */
|
||||
A_UINT8 CmdBuffer_h[8]; /* buffer for command (host -> target) */
|
||||
A_UINT8 CmdBuffer_t[8]; /* buffer for command (target -> host) */
|
||||
u8 CmdBuffer_h[8]; /* buffer for command (host -> target) */
|
||||
u8 CmdBuffer_t[8]; /* buffer for command (target -> host) */
|
||||
A_UINT16 DataLength; /* length of data */
|
||||
A_UINT16 DataCRC; /* 16 bit CRC of data */
|
||||
A_UINT16 HeaderCRC; /* header CRC (fields : StreamNo_h to end, minus HeaderCRC) */
|
||||
|
|
|
@ -47,17 +47,17 @@ typedef PREPACK struct {
|
|||
|
||||
typedef PREPACK struct {
|
||||
A_UINT16 Flags_ConnHandle;
|
||||
A_UINT8 Length;
|
||||
u8 Length;
|
||||
} POSTPACK BT_HCI_SCO_HEADER;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT16 OpCode;
|
||||
A_UINT8 ParamLength;
|
||||
u8 ParamLength;
|
||||
} POSTPACK BT_HCI_COMMAND_HEADER;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 EventCode;
|
||||
A_UINT8 ParamLength;
|
||||
u8 EventCode;
|
||||
u8 ParamLength;
|
||||
} POSTPACK BT_HCI_EVENT_HEADER;
|
||||
|
||||
/* MBOX host interrupt signal assignments */
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#define A_OFFSETOF(type,field) (unsigned long)(&(((type *)NULL)->field))
|
||||
|
||||
#define ASSEMBLE_UNALIGNED_UINT16(p,highbyte,lowbyte) \
|
||||
(((A_UINT16)(((A_UINT8 *)(p))[(highbyte)])) << 8 | (A_UINT16)(((A_UINT8 *)(p))[(lowbyte)]))
|
||||
(((A_UINT16)(((u8 *)(p))[(highbyte)])) << 8 | (A_UINT16)(((u8 *)(p))[(lowbyte)]))
|
||||
|
||||
/* alignment independent macros (little-endian) to fetch UINT16s or UINT8s from a
|
||||
* structure using only the type and field name.
|
||||
|
@ -43,15 +43,15 @@
|
|||
|
||||
#define A_SET_UINT16_FIELD(p,type,field,value) \
|
||||
{ \
|
||||
((A_UINT8 *)(p))[A_OFFSETOF(type,field)] = (A_UINT8)(value); \
|
||||
((A_UINT8 *)(p))[A_OFFSETOF(type,field) + 1] = (A_UINT8)((value) >> 8); \
|
||||
((u8 *)(p))[A_OFFSETOF(type,field)] = (u8)(value); \
|
||||
((u8 *)(p))[A_OFFSETOF(type,field) + 1] = (u8)((value) >> 8); \
|
||||
}
|
||||
|
||||
#define A_GET_UINT8_FIELD(p,type,field) \
|
||||
((A_UINT8 *)(p))[A_OFFSETOF(type,field)]
|
||||
((u8 *)(p))[A_OFFSETOF(type,field)]
|
||||
|
||||
#define A_SET_UINT8_FIELD(p,type,field,value) \
|
||||
((A_UINT8 *)(p))[A_OFFSETOF(type,field)] = (value)
|
||||
((u8 *)(p))[A_OFFSETOF(type,field)] = (value)
|
||||
|
||||
/****** DANGER DANGER ***************
|
||||
*
|
||||
|
@ -69,13 +69,13 @@
|
|||
typedef PREPACK struct _HTC_FRAME_HDR{
|
||||
/* do not remove or re-arrange these fields, these are minimally required
|
||||
* to take advantage of 4-byte lookaheads in some hardware implementations */
|
||||
A_UINT8 EndpointID;
|
||||
A_UINT8 Flags;
|
||||
u8 EndpointID;
|
||||
u8 Flags;
|
||||
A_UINT16 PayloadLen; /* length of data (including trailer) that follows the header */
|
||||
|
||||
/***** end of 4-byte lookahead ****/
|
||||
|
||||
A_UINT8 ControlBytes[2];
|
||||
u8 ControlBytes[2];
|
||||
|
||||
/* message payload starts after the header */
|
||||
|
||||
|
@ -119,16 +119,16 @@ typedef PREPACK struct {
|
|||
A_UINT16 MessageID; /* ID */
|
||||
A_UINT16 CreditCount; /* number of credits the target can offer */
|
||||
A_UINT16 CreditSize; /* size of each credit */
|
||||
A_UINT8 MaxEndpoints; /* maximum number of endpoints the target has resources for */
|
||||
A_UINT8 _Pad1;
|
||||
u8 MaxEndpoints; /* maximum number of endpoints the target has resources for */
|
||||
u8 _Pad1;
|
||||
} POSTPACK HTC_READY_MSG;
|
||||
|
||||
/* extended HTC ready message */
|
||||
typedef PREPACK struct {
|
||||
HTC_READY_MSG Version2_0_Info; /* legacy version 2.0 information at the front... */
|
||||
/* extended information */
|
||||
A_UINT8 HTCVersion;
|
||||
A_UINT8 MaxMsgsPerHTCBundle;
|
||||
u8 HTCVersion;
|
||||
u8 MaxMsgsPerHTCBundle;
|
||||
} POSTPACK HTC_READY_EX_MSG;
|
||||
|
||||
#define HTC_VERSION_2P0 0x00
|
||||
|
@ -151,8 +151,8 @@ typedef PREPACK struct {
|
|||
#define HTC_CONNECT_FLAGS_THRESHOLD_LEVEL_THREE_FOURTHS 0x2
|
||||
#define HTC_CONNECT_FLAGS_THRESHOLD_LEVEL_UNITY 0x3
|
||||
|
||||
A_UINT8 ServiceMetaLength; /* length of meta data that follows */
|
||||
A_UINT8 _Pad1;
|
||||
u8 ServiceMetaLength; /* length of meta data that follows */
|
||||
u8 _Pad1;
|
||||
|
||||
/* service-specific meta data starts after the header */
|
||||
|
||||
|
@ -163,11 +163,11 @@ typedef PREPACK struct {
|
|||
typedef PREPACK struct {
|
||||
A_UINT16 MessageID;
|
||||
A_UINT16 ServiceID; /* service ID that the connection request was made */
|
||||
A_UINT8 Status; /* service connection status */
|
||||
A_UINT8 EndpointID; /* assigned endpoint ID */
|
||||
u8 Status; /* service connection status */
|
||||
u8 EndpointID; /* assigned endpoint ID */
|
||||
A_UINT16 MaxMsgSize; /* maximum expected message size on this endpoint */
|
||||
A_UINT8 ServiceMetaLength; /* length of meta data that follows */
|
||||
A_UINT8 _Pad1;
|
||||
u8 ServiceMetaLength; /* length of meta data that follows */
|
||||
u8 _Pad1;
|
||||
|
||||
/* service-specific meta data starts after the header */
|
||||
|
||||
|
@ -182,8 +182,8 @@ typedef PREPACK struct {
|
|||
typedef PREPACK struct {
|
||||
A_UINT16 MessageID;
|
||||
A_UINT32 SetupFlags;
|
||||
A_UINT8 MaxMsgsPerBundledRecv;
|
||||
A_UINT8 Rsvd[3];
|
||||
u8 MaxMsgsPerBundledRecv;
|
||||
u8 Rsvd[3];
|
||||
} POSTPACK HTC_SETUP_COMPLETE_EX_MSG;
|
||||
|
||||
#define HTC_SETUP_COMPLETE_FLAGS_ENABLE_BUNDLE_RECV (1 << 0)
|
||||
|
@ -204,19 +204,19 @@ typedef PREPACK struct {
|
|||
#define HTC_RECORD_LOOKAHEAD_BUNDLE 3
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 RecordID; /* Record ID */
|
||||
A_UINT8 Length; /* Length of record */
|
||||
u8 RecordID; /* Record ID */
|
||||
u8 Length; /* Length of record */
|
||||
} POSTPACK HTC_RECORD_HDR;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 EndpointID; /* Endpoint that owns these credits */
|
||||
A_UINT8 Credits; /* credits to report since last report */
|
||||
u8 EndpointID; /* Endpoint that owns these credits */
|
||||
u8 Credits; /* credits to report since last report */
|
||||
} POSTPACK HTC_CREDIT_REPORT;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 PreValid; /* pre valid guard */
|
||||
A_UINT8 LookAhead[4]; /* 4 byte lookahead */
|
||||
A_UINT8 PostValid; /* post valid guard */
|
||||
u8 PreValid; /* pre valid guard */
|
||||
u8 LookAhead[4]; /* 4 byte lookahead */
|
||||
u8 PostValid; /* post valid guard */
|
||||
|
||||
/* NOTE: the LookAhead array is guarded by a PreValid and Post Valid guard bytes.
|
||||
* The PreValid bytes must equal the inverse of the PostValid byte */
|
||||
|
@ -224,7 +224,7 @@ typedef PREPACK struct {
|
|||
} POSTPACK HTC_LOOKAHEAD_REPORT;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 LookAhead[4]; /* 4 byte lookahead */
|
||||
u8 LookAhead[4]; /* 4 byte lookahead */
|
||||
} POSTPACK HTC_BUNDLED_LOOKAHEAD_REPORT;
|
||||
|
||||
#ifndef ATH_TARGET
|
||||
|
|
|
@ -172,8 +172,8 @@ typedef PREPACK struct reg_dmn_pair_mapping {
|
|||
A_UINT16 regDmnEnum; /* 16 bit reg domain pair */
|
||||
A_UINT16 regDmn5GHz; /* 5GHz reg domain */
|
||||
A_UINT16 regDmn2GHz; /* 2GHz reg domain */
|
||||
A_UINT8 flags5GHz; /* Requirements flags (AdHoc disallow etc) */
|
||||
A_UINT8 flags2GHz; /* Requirements flags (AdHoc disallow etc) */
|
||||
u8 flags5GHz; /* 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
|
||||
flags. This value is used as a mask on the unitary flags*/
|
||||
} POSTPACK REG_DMN_PAIR_MAPPING;
|
||||
|
@ -211,10 +211,10 @@ typedef PREPACK struct {
|
|||
typedef PREPACK struct RegDmnFreqBand {
|
||||
A_UINT16 lowChannel; /* Low channel center in MHz */
|
||||
A_UINT16 highChannel; /* High Channel center in MHz */
|
||||
A_UINT8 power; /* Max power (dBm) for channel range */
|
||||
A_UINT8 channelSep; /* Channel separation within the band */
|
||||
A_UINT8 useDfs; /* Use DFS in the RegDomain if corresponding bit is set */
|
||||
A_UINT8 mode; /* Mode of operation */
|
||||
u8 power; /* Max power (dBm) for channel range */
|
||||
u8 channelSep; /* Channel separation within the band */
|
||||
u8 useDfs; /* Use DFS in the RegDomain if corresponding bit is set */
|
||||
u8 mode; /* Mode of operation */
|
||||
A_UINT32 usePassScan; /* Use Passive Scan in the RegDomain if corresponding bit is set */
|
||||
A_UINT32 ht40ChanMask; /* lower 16 bits: indicate which frequencies in the block is HT40 capable
|
||||
upper 16 bits: what rate (half/quarter) the channel is */
|
||||
|
@ -224,10 +224,10 @@ typedef PREPACK struct RegDmnFreqBand {
|
|||
|
||||
typedef PREPACK struct regDomain {
|
||||
A_UINT16 regDmnEnum; /* value from EnumRd table */
|
||||
A_UINT8 rdCTL;
|
||||
A_UINT8 maxAntGain;
|
||||
A_UINT8 dfsMask; /* DFS bitmask for 5Ghz tables */
|
||||
A_UINT8 flags; /* Requirement flags (AdHoc disallow etc) */
|
||||
u8 rdCTL;
|
||||
u8 maxAntGain;
|
||||
u8 dfsMask; /* DFS bitmask for 5Ghz tables */
|
||||
u8 flags; /* Requirement flags (AdHoc disallow etc) */
|
||||
A_UINT16 reserved; /* for alignment */
|
||||
A_UINT32 pscan; /* Bitmask for passive scan */
|
||||
A_UINT32 chan11a[BMLEN]; /* 64 bit bitmask for channel/band selection */
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
|
||||
typedef PREPACK struct wow_config_dset {
|
||||
|
||||
A_UINT8 valid_dset;
|
||||
A_UINT8 gpio_enable;
|
||||
u8 valid_dset;
|
||||
u8 gpio_enable;
|
||||
A_UINT16 gpio_pin;
|
||||
} POSTPACK WOW_CONFIG_DSET;
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -101,8 +101,8 @@ typedef enum{
|
|||
* disabled by default but can be enabled using this structure and the
|
||||
* WMI_THIN_CONFIG_CMDID. */
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 version; /* the versioned type of messages to use or 0 to disable */
|
||||
A_UINT8 countThreshold; /* msg count threshold triggering a tx complete message */
|
||||
u8 version; /* the versioned type of messages to use or 0 to disable */
|
||||
u8 countThreshold; /* msg count threshold triggering a tx complete message */
|
||||
A_UINT16 timeThreshold; /* timeout interval in MSEC triggering a tx complete message */
|
||||
} POSTPACK WMI_THIN_CONFIG_TXCOMPLETE;
|
||||
|
||||
|
@ -111,8 +111,8 @@ typedef PREPACK struct {
|
|||
* without notification. Alternately, the MAC Header is forwarded to the host
|
||||
* with the failed status. */
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 enable; /* 1 == send decrypt errors to the host, 0 == don't */
|
||||
A_UINT8 reserved[3]; /* align padding */
|
||||
u8 enable; /* 1 == send decrypt errors to the host, 0 == don't */
|
||||
u8 reserved[3]; /* align padding */
|
||||
} POSTPACK WMI_THIN_CONFIG_DECRYPT_ERR;
|
||||
|
||||
/* WMI_THIN_CONFIG_TX_MAC_RULES -- Used to configure behavior for transmitted
|
||||
|
@ -140,7 +140,7 @@ typedef PREPACK struct {
|
|||
#define WMI_THIN_CFG_FILTER_RULES 0x00000008
|
||||
A_UINT32 cfgField; /* combination of WMI_THIN_CFG_... describes contents of config command */
|
||||
A_UINT16 length; /* length in bytes of appended sub-commands */
|
||||
A_UINT8 reserved[2]; /* align padding */
|
||||
u8 reserved[2]; /* align padding */
|
||||
} POSTPACK WMI_THIN_CONFIG_CMD;
|
||||
|
||||
/* MIB Access Identifiers tailored for Symbian. */
|
||||
|
@ -176,7 +176,7 @@ enum {
|
|||
};
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 addr[ATH_MAC_LEN];
|
||||
u8 addr[ATH_MAC_LEN];
|
||||
} POSTPACK WMI_THIN_MIB_STA_MAC;
|
||||
|
||||
typedef PREPACK struct {
|
||||
|
@ -184,7 +184,7 @@ typedef PREPACK struct {
|
|||
} POSTPACK WMI_THIN_MIB_RX_LIFE_TIME;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 enable; //1 = on, 0 = off
|
||||
u8 enable; //1 = on, 0 = off
|
||||
} POSTPACK WMI_THIN_MIB_CTS_TO_SELF;
|
||||
|
||||
typedef PREPACK struct {
|
||||
|
@ -196,8 +196,8 @@ typedef PREPACK struct {
|
|||
} POSTPACK WMI_THIN_MIB_RTS_THRESHOLD;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 type; // type of frame
|
||||
A_UINT8 rate; // tx rate to be used (one of WMI_BIT_RATE)
|
||||
u8 type; // type of frame
|
||||
u8 rate; // tx rate to be used (one of WMI_BIT_RATE)
|
||||
A_UINT16 length; // num bytes following this structure as the template data
|
||||
} POSTPACK WMI_THIN_MIB_TEMPLATE_FRAME;
|
||||
|
||||
|
@ -212,28 +212,28 @@ typedef PREPACK struct {
|
|||
#define IE_FILTER_TREATMENT_APPEAR 2
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 ie;
|
||||
A_UINT8 treatment;
|
||||
u8 ie;
|
||||
u8 treatment;
|
||||
} POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 ie;
|
||||
A_UINT8 treatment;
|
||||
A_UINT8 oui[3];
|
||||
A_UINT8 type;
|
||||
u8 ie;
|
||||
u8 treatment;
|
||||
u8 oui[3];
|
||||
u8 type;
|
||||
A_UINT16 version;
|
||||
} POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE_OUI;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT16 numElements;
|
||||
A_UINT8 entrySize; // sizeof(WMI_THIN_MIB_BEACON_FILTER_TABLE) on host cpu may be 2 may be 4
|
||||
A_UINT8 reserved;
|
||||
u8 entrySize; // sizeof(WMI_THIN_MIB_BEACON_FILTER_TABLE) on host cpu may be 2 may be 4
|
||||
u8 reserved;
|
||||
} POSTPACK WMI_THIN_MIB_BEACON_FILTER_TABLE_HEADER;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT32 count; /* num beacons between deliveries */
|
||||
A_UINT8 enable;
|
||||
A_UINT8 reserved[3];
|
||||
u8 enable;
|
||||
u8 reserved[3];
|
||||
} POSTPACK WMI_THIN_MIB_BEACON_FILTER;
|
||||
|
||||
typedef PREPACK struct {
|
||||
|
@ -241,10 +241,10 @@ typedef PREPACK struct {
|
|||
} POSTPACK WMI_THIN_MIB_BEACON_LOST_COUNT;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 rssi; /* the low threshold which can trigger an event warning */
|
||||
A_UINT8 tolerance; /* the range above and below the threshold to prevent event flooding to the host. */
|
||||
A_UINT8 count; /* the sample count of consecutive frames necessary to trigger an event. */
|
||||
A_UINT8 reserved[1]; /* padding */
|
||||
u8 rssi; /* the low threshold which can trigger an event warning */
|
||||
u8 tolerance; /* the range above and below the threshold to prevent event flooding to the host. */
|
||||
u8 count; /* the sample count of consecutive frames necessary to trigger an event. */
|
||||
u8 reserved[1]; /* padding */
|
||||
} POSTPACK WMI_THIN_MIB_RSSI_THRESHOLD;
|
||||
|
||||
|
||||
|
@ -252,52 +252,52 @@ typedef PREPACK struct {
|
|||
A_UINT32 cap;
|
||||
A_UINT32 rxRateField;
|
||||
A_UINT32 beamForming;
|
||||
A_UINT8 addr[ATH_MAC_LEN];
|
||||
A_UINT8 enable;
|
||||
A_UINT8 stbc;
|
||||
A_UINT8 maxAMPDU;
|
||||
A_UINT8 msduSpacing;
|
||||
A_UINT8 mcsFeedback;
|
||||
A_UINT8 antennaSelCap;
|
||||
u8 addr[ATH_MAC_LEN];
|
||||
u8 enable;
|
||||
u8 stbc;
|
||||
u8 maxAMPDU;
|
||||
u8 msduSpacing;
|
||||
u8 mcsFeedback;
|
||||
u8 antennaSelCap;
|
||||
} POSTPACK WMI_THIN_MIB_HT_CAP;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT32 infoField;
|
||||
A_UINT32 basicRateField;
|
||||
A_UINT8 protection;
|
||||
A_UINT8 secondChanneloffset;
|
||||
A_UINT8 channelWidth;
|
||||
A_UINT8 reserved;
|
||||
u8 protection;
|
||||
u8 secondChanneloffset;
|
||||
u8 channelWidth;
|
||||
u8 reserved;
|
||||
} POSTPACK WMI_THIN_MIB_HT_OP;
|
||||
|
||||
typedef PREPACK struct {
|
||||
#define SECOND_BEACON_PRIMARY 1
|
||||
#define SECOND_BEACON_EITHER 2
|
||||
#define SECOND_BEACON_SECONDARY 3
|
||||
A_UINT8 cfg;
|
||||
A_UINT8 reserved[3]; /* padding */
|
||||
u8 cfg;
|
||||
u8 reserved[3]; /* padding */
|
||||
} POSTPACK WMI_THIN_MIB_HT_2ND_BEACON;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 txTIDField;
|
||||
A_UINT8 rxTIDField;
|
||||
A_UINT8 reserved[2]; /* padding */
|
||||
u8 txTIDField;
|
||||
u8 rxTIDField;
|
||||
u8 reserved[2]; /* padding */
|
||||
} POSTPACK WMI_THIN_MIB_HT_BLOCK_ACK;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 enableLong; // 1 == long preamble, 0 == short preamble
|
||||
A_UINT8 reserved[3];
|
||||
u8 enableLong; // 1 == long preamble, 0 == short preamble
|
||||
u8 reserved[3];
|
||||
} POSTPACK WMI_THIN_MIB_PREAMBLE;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT16 length; /* the length in bytes of the appended MIB data */
|
||||
A_UINT8 mibID; /* the ID of the MIB element being set */
|
||||
A_UINT8 reserved; /* align padding */
|
||||
u8 mibID; /* the ID of the MIB element being set */
|
||||
u8 reserved; /* align padding */
|
||||
} POSTPACK WMI_THIN_SET_MIB_CMD;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 mibID; /* the ID of the MIB element being set */
|
||||
A_UINT8 reserved[3]; /* align padding */
|
||||
u8 mibID; /* the ID of the MIB element being set */
|
||||
u8 reserved[3]; /* align padding */
|
||||
} POSTPACK WMI_THIN_GET_MIB_CMD;
|
||||
|
||||
typedef PREPACK struct {
|
||||
|
@ -305,12 +305,12 @@ typedef PREPACK struct {
|
|||
A_UINT32 beaconIntval; /* TUs */
|
||||
A_UINT16 atimWindow; /* TUs */
|
||||
A_UINT16 channel; /* frequency in Mhz */
|
||||
A_UINT8 networkType; /* INFRA_NETWORK | ADHOC_NETWORK */
|
||||
A_UINT8 ssidLength; /* 0 - 32 */
|
||||
A_UINT8 probe; /* != 0 : issue probe req at start */
|
||||
A_UINT8 reserved; /* alignment */
|
||||
u8 networkType; /* INFRA_NETWORK | ADHOC_NETWORK */
|
||||
u8 ssidLength; /* 0 - 32 */
|
||||
u8 probe; /* != 0 : issue probe req at start */
|
||||
u8 reserved; /* alignment */
|
||||
A_UCHAR ssid[WMI_MAX_SSID_LEN];
|
||||
A_UINT8 bssid[ATH_MAC_LEN];
|
||||
u8 bssid[ATH_MAC_LEN];
|
||||
} POSTPACK WMI_THIN_JOIN_CMD;
|
||||
|
||||
typedef PREPACK struct {
|
||||
|
@ -336,8 +336,8 @@ typedef enum {
|
|||
}WMI_THIN_JOIN_RESULT;
|
||||
|
||||
typedef PREPACK struct {
|
||||
A_UINT8 result; /* the result of the join cmd. one of WMI_THIN_JOIN_RESULT */
|
||||
A_UINT8 reserved[3]; /* alignment */
|
||||
u8 result; /* the result of the join cmd. one of WMI_THIN_JOIN_RESULT */
|
||||
u8 reserved[3]; /* alignment */
|
||||
} POSTPACK WMI_THIN_JOIN_EVENT;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -139,7 +139,7 @@ typedef PREPACK struct {
|
|||
A_UINT32 targ_reply_fn;
|
||||
A_UINT32 targ_reply_arg;
|
||||
A_UINT32 length;
|
||||
A_UINT8 buf[1];
|
||||
u8 buf[1];
|
||||
} POSTPACK WMIX_DSETDATA_REPLY_CMD;
|
||||
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ void ar6000_dump_target_assert_info(HIF_DEVICE *hifDevice, A_UINT32 TargetType);
|
|||
int ar6000_set_htc_params(HIF_DEVICE *hifDevice,
|
||||
A_UINT32 TargetType,
|
||||
A_UINT32 MboxIsrYieldValue,
|
||||
A_UINT8 HtcControlBuffers);
|
||||
u8 HtcControlBuffers);
|
||||
|
||||
int ar6000_prepare_target(HIF_DEVICE *hifDevice,
|
||||
A_UINT32 TargetType,
|
||||
|
@ -91,15 +91,15 @@ int ar6000_set_hci_bridge_flags(HIF_DEVICE *hifDevice,
|
|||
|
||||
void ar6000_copy_cust_data_from_target(HIF_DEVICE *hifDevice, A_UINT32 TargetType);
|
||||
|
||||
A_UINT8 *ar6000_get_cust_data_buffer(A_UINT32 TargetType);
|
||||
u8 *ar6000_get_cust_data_buffer(A_UINT32 TargetType);
|
||||
|
||||
int ar6000_setBTState(void *context, A_UINT8 *pInBuf, A_UINT32 InBufSize);
|
||||
int ar6000_setBTState(void *context, u8 *pInBuf, A_UINT32 InBufSize);
|
||||
|
||||
int ar6000_setDevicePowerState(void *context, A_UINT8 *pInBuf, A_UINT32 InBufSize);
|
||||
int ar6000_setDevicePowerState(void *context, u8 *pInBuf, A_UINT32 InBufSize);
|
||||
|
||||
int ar6000_setWowMode(void *context, A_UINT8 *pInBuf, A_UINT32 InBufSize);
|
||||
int ar6000_setWowMode(void *context, u8 *pInBuf, A_UINT32 InBufSize);
|
||||
|
||||
int ar6000_setHostMode(void *context, A_UINT8 *pInBuf, A_UINT32 InBufSize);
|
||||
int ar6000_setHostMode(void *context, u8 *pInBuf, A_UINT32 InBufSize);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ int wmi_dset_open_reply(struct wmi_t *wmip,
|
|||
/* Called to send a DataSet Data Reply back to the Target. */
|
||||
int wmi_dset_data_reply(struct wmi_t *wmip,
|
||||
A_UINT32 status,
|
||||
A_UINT8 *host_buf,
|
||||
u8 *host_buf,
|
||||
A_UINT32 length,
|
||||
A_UINT32 targ_buf,
|
||||
A_UINT32 targ_reply_fn,
|
||||
|
|
|
@ -271,7 +271,7 @@ typedef struct {
|
|||
|
||||
|
||||
typedef struct _HIF_SCATTER_ITEM {
|
||||
A_UINT8 *pBuffer; /* CPU accessible address of buffer */
|
||||
u8 *pBuffer; /* CPU accessible address of buffer */
|
||||
int Length; /* length of transfer to/from this buffer */
|
||||
void *pCallerContexts[2]; /* space for caller to insert a context associated with this item */
|
||||
} HIF_SCATTER_ITEM;
|
||||
|
@ -298,7 +298,7 @@ typedef struct _HIF_SCATTER_REQ {
|
|||
int ValidScatterEntries; /* number of valid entries set by caller */
|
||||
HIF_SCATTER_METHOD ScatterMethod; /* scatter method handled by HIF */
|
||||
void *HIFPrivate[4]; /* HIF private area */
|
||||
A_UINT8 *pScatterBounceBuffer; /* bounce buffer for upper layers to copy to/from */
|
||||
u8 *pScatterBounceBuffer; /* bounce buffer for upper layers to copy to/from */
|
||||
HIF_SCATTER_ITEM ScatterList[1]; /* start of scatter list */
|
||||
} HIF_SCATTER_REQ;
|
||||
|
||||
|
|
|
@ -142,8 +142,8 @@ typedef struct _HTC_EP_CALLBACKS {
|
|||
typedef struct _HTC_SERVICE_CONNECT_REQ {
|
||||
HTC_SERVICE_ID ServiceID; /* service ID to connect to */
|
||||
A_UINT16 ConnectionFlags; /* connection flags, see htc protocol definition */
|
||||
A_UINT8 *pMetaData; /* ptr to optional service-specific meta-data */
|
||||
A_UINT8 MetaDataLength; /* optional meta data length */
|
||||
u8 *pMetaData; /* ptr to optional service-specific meta-data */
|
||||
u8 MetaDataLength; /* optional meta data length */
|
||||
HTC_EP_CALLBACKS EpCallbacks; /* endpoint callbacks */
|
||||
int MaxSendQueueDepth; /* maximum depth of any send queue */
|
||||
A_UINT32 LocalConnectionFlags; /* HTC flags for the host-side (local) connection */
|
||||
|
@ -154,12 +154,12 @@ typedef struct _HTC_SERVICE_CONNECT_REQ {
|
|||
|
||||
/* service connection response information */
|
||||
typedef struct _HTC_SERVICE_CONNECT_RESP {
|
||||
A_UINT8 *pMetaData; /* caller supplied buffer to optional meta-data */
|
||||
A_UINT8 BufferLength; /* length of caller supplied buffer */
|
||||
A_UINT8 ActualLength; /* actual length of meta data */
|
||||
u8 *pMetaData; /* caller supplied buffer to optional meta-data */
|
||||
u8 BufferLength; /* length of caller supplied buffer */
|
||||
u8 ActualLength; /* actual length of meta data */
|
||||
HTC_ENDPOINT_ID Endpoint; /* endpoint to communicate over */
|
||||
unsigned int MaxMsgLength; /* max length of all messages over this endpoint */
|
||||
A_UINT8 ConnectRespCode; /* connect response code from target */
|
||||
u8 ConnectRespCode; /* connect response code from target */
|
||||
} HTC_SERVICE_CONNECT_RESP;
|
||||
|
||||
/* endpoint distribution structure */
|
||||
|
|
|
@ -51,7 +51,7 @@ typedef A_UINT16 HTC_TX_TAG;
|
|||
typedef struct _HTC_TX_PACKET_INFO {
|
||||
HTC_TX_TAG Tag; /* tag used to selective flush packets */
|
||||
int CreditsUsed; /* number of credits used for this TX packet (HTC internal) */
|
||||
A_UINT8 SendFlags; /* send flags (HTC internal) */
|
||||
u8 SendFlags; /* send flags (HTC internal) */
|
||||
int SeqNo; /* internal seq no for debugging (HTC internal) */
|
||||
} HTC_TX_PACKET_INFO;
|
||||
|
||||
|
@ -72,7 +72,7 @@ typedef struct _HTC_PACKET {
|
|||
DL_LIST ListLink; /* double link */
|
||||
void *pPktContext; /* caller's per packet specific context */
|
||||
|
||||
A_UINT8 *pBufferStart; /* the true buffer start , the caller can
|
||||
u8 *pBufferStart; /* the true buffer start , the caller can
|
||||
store the real buffer start here. In
|
||||
receive callbacks, the HTC layer sets pBuffer
|
||||
to the start of the payload past the header. This
|
||||
|
@ -85,7 +85,7 @@ typedef struct _HTC_PACKET {
|
|||
* points to the start of the HTC header but when returned
|
||||
* to the caller points to the start of the payload
|
||||
*/
|
||||
A_UINT8 *pBuffer; /* payload start (RX/TX) */
|
||||
u8 *pBuffer; /* payload start (RX/TX) */
|
||||
A_UINT32 BufferLength; /* length of buffer */
|
||||
A_UINT32 ActualLength; /* actual length of payload */
|
||||
HTC_ENDPOINT_ID Endpoint; /* endpoint that this packet was sent/recv'd from */
|
||||
|
|
|
@ -36,38 +36,38 @@ struct ieee80211_frame;
|
|||
|
||||
struct ieee80211_common_ie {
|
||||
A_UINT16 ie_chan;
|
||||
A_UINT8 *ie_tstamp;
|
||||
A_UINT8 *ie_ssid;
|
||||
A_UINT8 *ie_rates;
|
||||
A_UINT8 *ie_xrates;
|
||||
A_UINT8 *ie_country;
|
||||
A_UINT8 *ie_wpa;
|
||||
A_UINT8 *ie_rsn;
|
||||
A_UINT8 *ie_wmm;
|
||||
A_UINT8 *ie_ath;
|
||||
u8 *ie_tstamp;
|
||||
u8 *ie_ssid;
|
||||
u8 *ie_rates;
|
||||
u8 *ie_xrates;
|
||||
u8 *ie_country;
|
||||
u8 *ie_wpa;
|
||||
u8 *ie_rsn;
|
||||
u8 *ie_wmm;
|
||||
u8 *ie_ath;
|
||||
A_UINT16 ie_capInfo;
|
||||
A_UINT16 ie_beaconInt;
|
||||
A_UINT8 *ie_tim;
|
||||
A_UINT8 *ie_chswitch;
|
||||
A_UINT8 ie_erp;
|
||||
A_UINT8 *ie_wsc;
|
||||
A_UINT8 *ie_htcap;
|
||||
A_UINT8 *ie_htop;
|
||||
u8 *ie_tim;
|
||||
u8 *ie_chswitch;
|
||||
u8 ie_erp;
|
||||
u8 *ie_wsc;
|
||||
u8 *ie_htcap;
|
||||
u8 *ie_htop;
|
||||
#ifdef WAPI_ENABLE
|
||||
A_UINT8 *ie_wapi;
|
||||
u8 *ie_wapi;
|
||||
#endif
|
||||
};
|
||||
|
||||
typedef struct bss {
|
||||
A_UINT8 ni_macaddr[6];
|
||||
A_UINT8 ni_snr;
|
||||
u8 ni_macaddr[6];
|
||||
u8 ni_snr;
|
||||
A_INT16 ni_rssi;
|
||||
struct bss *ni_list_next;
|
||||
struct bss *ni_list_prev;
|
||||
struct bss *ni_hash_next;
|
||||
struct bss *ni_hash_prev;
|
||||
struct ieee80211_common_ie ni_cie;
|
||||
A_UINT8 *ni_buf;
|
||||
u8 *ni_buf;
|
||||
A_UINT16 ni_framelen;
|
||||
struct ieee80211_node_table *ni_table;
|
||||
A_UINT32 ni_refcnt;
|
||||
|
@ -85,8 +85,8 @@ typedef void wlan_node_iter_func(void *arg, bss_t *);
|
|||
bss_t *wlan_node_alloc(struct ieee80211_node_table *nt, int wh_size);
|
||||
void wlan_node_free(bss_t *ni);
|
||||
void wlan_setup_node(struct ieee80211_node_table *nt, bss_t *ni,
|
||||
const A_UINT8 *macaddr);
|
||||
bss_t *wlan_find_node(struct ieee80211_node_table *nt, const A_UINT8 *macaddr);
|
||||
const u8 *macaddr);
|
||||
bss_t *wlan_find_node(struct ieee80211_node_table *nt, const u8 *macaddr);
|
||||
void wlan_node_reclaim(struct ieee80211_node_table *nt, bss_t *ni);
|
||||
void wlan_free_allnodes(struct ieee80211_node_table *nt);
|
||||
void wlan_iterate_nodes(struct ieee80211_node_table *nt, wlan_node_iter_func *f,
|
||||
|
@ -96,7 +96,7 @@ void wlan_node_table_init(void *wmip, struct ieee80211_node_table *nt);
|
|||
void wlan_node_table_reset(struct ieee80211_node_table *nt);
|
||||
void wlan_node_table_cleanup(struct ieee80211_node_table *nt);
|
||||
|
||||
int wlan_parse_beacon(A_UINT8 *buf, int framelen,
|
||||
int wlan_parse_beacon(u8 *buf, int framelen,
|
||||
struct ieee80211_common_ie *cie);
|
||||
|
||||
A_UINT16 wlan_ieee2freq(int chan);
|
||||
|
@ -114,7 +114,7 @@ wlan_find_Ssidnode (struct ieee80211_node_table *nt, A_UCHAR *pSsid,
|
|||
void
|
||||
wlan_node_return (struct ieee80211_node_table *nt, bss_t *ni);
|
||||
|
||||
bss_t *wlan_node_remove(struct ieee80211_node_table *nt, A_UINT8 *bssid);
|
||||
bss_t *wlan_node_remove(struct ieee80211_node_table *nt, u8 *bssid);
|
||||
|
||||
bss_t *
|
||||
wlan_find_matching_Ssidnode (struct ieee80211_node_table *nt, A_UCHAR *pSsid,
|
||||
|
|
|
@ -69,9 +69,9 @@ void wmi_qos_state_init(struct wmi_t *wmip);
|
|||
void wmi_shutdown(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);
|
||||
A_UINT16 wmi_get_mapped_qos_queue(struct wmi_t *, A_UINT8);
|
||||
A_UINT16 wmi_get_mapped_qos_queue(struct wmi_t *, u8 );
|
||||
int wmi_dix_2_dot3(struct wmi_t *wmip, void *osbuf);
|
||||
int wmi_data_hdr_add(struct wmi_t *wmip, void *osbuf, A_UINT8 msgType, bool bMoreData, WMI_DATA_HDR_DATA_TYPE data_type,A_UINT8 metaVersion, void *pTxMetaS);
|
||||
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_dot11_hdr_remove (struct wmi_t *wmip, void *osbuf);
|
||||
|
@ -80,15 +80,15 @@ int wmi_dot11_hdr_add(struct wmi_t *wmip, void *osbuf, NETWORK_TYPE mode);
|
|||
int wmi_data_hdr_remove(struct wmi_t *wmip, void *osbuf);
|
||||
int wmi_syncpoint(struct wmi_t *wmip);
|
||||
int wmi_syncpoint_reset(struct wmi_t *wmip);
|
||||
A_UINT8 wmi_implicit_create_pstream(struct wmi_t *wmip, void *osbuf, A_UINT32 layer2Priority, bool wmmEnabled);
|
||||
u8 wmi_implicit_create_pstream(struct wmi_t *wmip, void *osbuf, A_UINT32 layer2Priority, bool wmmEnabled);
|
||||
|
||||
A_UINT8 wmi_determine_userPriority (A_UINT8 *pkt, A_UINT32 layer2Pri);
|
||||
u8 wmi_determine_userPriority (u8 *pkt, A_UINT32 layer2Pri);
|
||||
|
||||
int wmi_control_rx(struct wmi_t *wmip, void *osbuf);
|
||||
void wmi_iterate_nodes(struct wmi_t *wmip, wlan_node_iter_func *f, void *arg);
|
||||
void wmi_free_allnodes(struct wmi_t *wmip);
|
||||
bss_t *wmi_find_node(struct wmi_t *wmip, const A_UINT8 *macaddr);
|
||||
void wmi_free_node(struct wmi_t *wmip, const A_UINT8 *macaddr);
|
||||
bss_t *wmi_find_node(struct wmi_t *wmip, const u8 *macaddr);
|
||||
void wmi_free_node(struct wmi_t *wmip, const u8 *macaddr);
|
||||
|
||||
|
||||
typedef enum {
|
||||
|
@ -107,17 +107,17 @@ int wmi_connect_cmd(struct wmi_t *wmip,
|
|||
DOT11_AUTH_MODE dot11AuthMode,
|
||||
AUTH_MODE authMode,
|
||||
CRYPTO_TYPE pairwiseCrypto,
|
||||
A_UINT8 pairwiseCryptoLen,
|
||||
u8 pairwiseCryptoLen,
|
||||
CRYPTO_TYPE groupCrypto,
|
||||
A_UINT8 groupCryptoLen,
|
||||
u8 groupCryptoLen,
|
||||
int ssidLength,
|
||||
A_UCHAR *ssid,
|
||||
A_UINT8 *bssid,
|
||||
u8 *bssid,
|
||||
A_UINT16 channel,
|
||||
A_UINT32 ctrl_flags);
|
||||
|
||||
int wmi_reconnect_cmd(struct wmi_t *wmip,
|
||||
A_UINT8 *bssid,
|
||||
u8 *bssid,
|
||||
A_UINT16 channel);
|
||||
int wmi_disconnect_cmd(struct wmi_t *wmip);
|
||||
int wmi_getrev_cmd(struct wmi_t *wmip);
|
||||
|
@ -129,36 +129,36 @@ int wmi_scanparams_cmd(struct wmi_t *wmip, A_UINT16 fg_start_sec,
|
|||
A_UINT16 fg_end_sec, A_UINT16 bg_sec,
|
||||
A_UINT16 minact_chdw_msec,
|
||||
A_UINT16 maxact_chdw_msec, A_UINT16 pas_chdw_msec,
|
||||
A_UINT8 shScanRatio, A_UINT8 scanCtrlFlags,
|
||||
u8 shScanRatio, u8 scanCtrlFlags,
|
||||
A_UINT32 max_dfsch_act_time,
|
||||
A_UINT16 maxact_scan_per_ssid);
|
||||
int wmi_bssfilter_cmd(struct wmi_t *wmip, A_UINT8 filter, A_UINT32 ieMask);
|
||||
int wmi_probedSsid_cmd(struct wmi_t *wmip, A_UINT8 index, A_UINT8 flag,
|
||||
A_UINT8 ssidLength, A_UCHAR *ssid);
|
||||
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,
|
||||
u8 ssidLength, A_UCHAR *ssid);
|
||||
int wmi_listeninterval_cmd(struct wmi_t *wmip, A_UINT16 listenInterval, A_UINT16 listenBeacons);
|
||||
int wmi_bmisstime_cmd(struct wmi_t *wmip, A_UINT16 bmisstime, A_UINT16 bmissbeacons);
|
||||
int wmi_associnfo_cmd(struct wmi_t *wmip, A_UINT8 ieType,
|
||||
A_UINT8 ieLen, A_UINT8 *ieInfo);
|
||||
int wmi_powermode_cmd(struct wmi_t *wmip, A_UINT8 powerMode);
|
||||
int wmi_ibsspmcaps_cmd(struct wmi_t *wmip, A_UINT8 pmEnable, A_UINT8 ttl,
|
||||
int wmi_associnfo_cmd(struct wmi_t *wmip, u8 ieType,
|
||||
u8 ieLen, u8 *ieInfo);
|
||||
int wmi_powermode_cmd(struct wmi_t *wmip, u8 powerMode);
|
||||
int wmi_ibsspmcaps_cmd(struct wmi_t *wmip, u8 pmEnable, u8 ttl,
|
||||
A_UINT16 atim_windows, A_UINT16 timeout_value);
|
||||
int wmi_apps_cmd(struct wmi_t *wmip, A_UINT8 psType, A_UINT32 idle_time,
|
||||
A_UINT32 ps_period, A_UINT8 sleep_period);
|
||||
int wmi_apps_cmd(struct wmi_t *wmip, u8 psType, A_UINT32 idle_time,
|
||||
A_UINT32 ps_period, u8 sleep_period);
|
||||
int wmi_pmparams_cmd(struct wmi_t *wmip, A_UINT16 idlePeriod,
|
||||
A_UINT16 psPollNum, A_UINT16 dtimPolicy,
|
||||
A_UINT16 wakup_tx_policy, A_UINT16 num_tx_to_wakeup,
|
||||
A_UINT16 ps_fail_event_policy);
|
||||
int wmi_disctimeout_cmd(struct wmi_t *wmip, A_UINT8 timeout);
|
||||
int wmi_sync_cmd(struct wmi_t *wmip, A_UINT8 syncNumber);
|
||||
int wmi_disctimeout_cmd(struct wmi_t *wmip, u8 timeout);
|
||||
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_delete_pstream_cmd(struct wmi_t *wmip, A_UINT8 trafficClass, A_UINT8 streamID);
|
||||
int wmi_set_framerate_cmd(struct wmi_t *wmip, A_UINT8 bEnable, A_UINT8 type, A_UINT8 subType, A_UINT16 rateMask);
|
||||
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_bitrate_cmd(struct wmi_t *wmip, A_INT32 dataRate, A_INT32 mgmtRate, A_INT32 ctlRate);
|
||||
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);
|
||||
int wmi_get_regDomain_cmd(struct wmi_t *wmip);
|
||||
int wmi_get_channelList_cmd(struct wmi_t *wmip);
|
||||
int wmi_set_channelParams_cmd(struct wmi_t *wmip, A_UINT8 scanParam,
|
||||
int wmi_set_channelParams_cmd(struct wmi_t *wmip, u8 scanParam,
|
||||
WMI_PHY_MODE mode, A_INT8 numChan,
|
||||
A_UINT16 *channelList);
|
||||
|
||||
|
@ -170,7 +170,7 @@ int wmi_clr_rssi_snr(struct wmi_t *wmip);
|
|||
int wmi_set_lq_threshold_params(struct wmi_t *wmip,
|
||||
WMI_LQ_THRESHOLD_PARAMS_CMD *lqCmd);
|
||||
int wmi_set_rts_cmd(struct wmi_t *wmip, A_UINT16 threshold);
|
||||
int wmi_set_lpreamble_cmd(struct wmi_t *wmip, A_UINT8 status, A_UINT8 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);
|
||||
|
||||
|
@ -183,64 +183,64 @@ int wmi_config_debug_module_cmd(struct wmi_t *wmip, A_UINT16 mmask,
|
|||
|
||||
int wmi_get_stats_cmd(struct wmi_t *wmip);
|
||||
|
||||
int wmi_addKey_cmd(struct wmi_t *wmip, A_UINT8 keyIndex,
|
||||
CRYPTO_TYPE keyType, A_UINT8 keyUsage,
|
||||
A_UINT8 keyLength,A_UINT8 *keyRSC,
|
||||
A_UINT8 *keyMaterial, A_UINT8 key_op_ctrl, A_UINT8 *mac,
|
||||
int wmi_addKey_cmd(struct wmi_t *wmip, u8 keyIndex,
|
||||
CRYPTO_TYPE keyType, u8 keyUsage,
|
||||
u8 keyLength,u8 *keyRSC,
|
||||
u8 *keyMaterial, u8 key_op_ctrl, u8 *mac,
|
||||
WMI_SYNC_FLAG sync_flag);
|
||||
int wmi_add_krk_cmd(struct wmi_t *wmip, A_UINT8 *krk);
|
||||
int wmi_add_krk_cmd(struct wmi_t *wmip, u8 *krk);
|
||||
int wmi_delete_krk_cmd(struct wmi_t *wmip);
|
||||
int wmi_deleteKey_cmd(struct wmi_t *wmip, A_UINT8 keyIndex);
|
||||
int wmi_deleteKey_cmd(struct wmi_t *wmip, u8 keyIndex);
|
||||
int wmi_set_akmp_params_cmd(struct wmi_t *wmip,
|
||||
WMI_SET_AKMP_PARAMS_CMD *akmpParams);
|
||||
int wmi_get_pmkid_list_cmd(struct wmi_t *wmip);
|
||||
int wmi_set_pmkid_list_cmd(struct wmi_t *wmip,
|
||||
WMI_SET_PMKID_LIST_CMD *pmkInfo);
|
||||
int wmi_abort_scan_cmd(struct wmi_t *wmip);
|
||||
int wmi_set_txPwr_cmd(struct wmi_t *wmip, A_UINT8 dbM);
|
||||
int wmi_set_txPwr_cmd(struct wmi_t *wmip, u8 dbM);
|
||||
int wmi_get_txPwr_cmd(struct wmi_t *wmip);
|
||||
int wmi_addBadAp_cmd(struct wmi_t *wmip, A_UINT8 apIndex, A_UINT8 *bssid);
|
||||
int wmi_deleteBadAp_cmd(struct wmi_t *wmip, A_UINT8 apIndex);
|
||||
int wmi_addBadAp_cmd(struct wmi_t *wmip, u8 apIndex, u8 *bssid);
|
||||
int wmi_deleteBadAp_cmd(struct wmi_t *wmip, u8 apIndex);
|
||||
int wmi_set_tkip_countermeasures_cmd(struct wmi_t *wmip, bool en);
|
||||
int wmi_setPmkid_cmd(struct wmi_t *wmip, A_UINT8 *bssid, A_UINT8 *pmkId,
|
||||
int wmi_setPmkid_cmd(struct wmi_t *wmip, u8 *bssid, u8 *pmkId,
|
||||
bool set);
|
||||
int wmi_set_access_params_cmd(struct wmi_t *wmip, A_UINT8 ac, A_UINT16 txop,
|
||||
A_UINT8 eCWmin, A_UINT8 eCWmax,
|
||||
A_UINT8 aifsn);
|
||||
int wmi_set_retry_limits_cmd(struct wmi_t *wmip, A_UINT8 frameType,
|
||||
A_UINT8 trafficClass, A_UINT8 maxRetries,
|
||||
A_UINT8 enableNotify);
|
||||
int wmi_set_access_params_cmd(struct wmi_t *wmip, u8 ac, A_UINT16 txop,
|
||||
u8 eCWmin, u8 eCWmax,
|
||||
u8 aifsn);
|
||||
int wmi_set_retry_limits_cmd(struct wmi_t *wmip, u8 frameType,
|
||||
u8 trafficClass, u8 maxRetries,
|
||||
u8 enableNotify);
|
||||
|
||||
void wmi_get_current_bssid(struct wmi_t *wmip, A_UINT8 *bssid);
|
||||
void wmi_get_current_bssid(struct wmi_t *wmip, u8 *bssid);
|
||||
|
||||
int wmi_get_roam_tbl_cmd(struct wmi_t *wmip);
|
||||
int wmi_get_roam_data_cmd(struct wmi_t *wmip, A_UINT8 roamDataType);
|
||||
int wmi_get_roam_data_cmd(struct wmi_t *wmip, u8 roamDataType);
|
||||
int wmi_set_roam_ctrl_cmd(struct wmi_t *wmip, WMI_SET_ROAM_CTRL_CMD *p,
|
||||
A_UINT8 size);
|
||||
u8 size);
|
||||
int wmi_set_powersave_timers_cmd(struct wmi_t *wmip,
|
||||
WMI_POWERSAVE_TIMERS_POLICY_CMD *pCmd,
|
||||
A_UINT8 size);
|
||||
u8 size);
|
||||
|
||||
int wmi_set_opt_mode_cmd(struct wmi_t *wmip, A_UINT8 optMode);
|
||||
int wmi_set_opt_mode_cmd(struct wmi_t *wmip, u8 optMode);
|
||||
int wmi_opt_tx_frame_cmd(struct wmi_t *wmip,
|
||||
A_UINT8 frmType,
|
||||
A_UINT8 *dstMacAddr,
|
||||
A_UINT8 *bssid,
|
||||
u8 frmType,
|
||||
u8 *dstMacAddr,
|
||||
u8 *bssid,
|
||||
A_UINT16 optIEDataLen,
|
||||
A_UINT8 *optIEData);
|
||||
u8 *optIEData);
|
||||
|
||||
int wmi_set_adhoc_bconIntvl_cmd(struct wmi_t *wmip, A_UINT16 intvl);
|
||||
int wmi_set_voice_pkt_size_cmd(struct wmi_t *wmip, A_UINT16 voicePktSize);
|
||||
int wmi_set_max_sp_len_cmd(struct wmi_t *wmip, A_UINT8 maxSpLen);
|
||||
A_UINT8 convert_userPriority_to_trafficClass(A_UINT8 userPriority);
|
||||
A_UINT8 wmi_get_power_mode_cmd(struct wmi_t *wmip);
|
||||
int wmi_set_max_sp_len_cmd(struct wmi_t *wmip, u8 maxSpLen);
|
||||
u8 convert_userPriority_to_trafficClass(u8 userPriority);
|
||||
u8 wmi_get_power_mode_cmd(struct wmi_t *wmip);
|
||||
int wmi_verify_tspec_params(WMI_CREATE_PSTREAM_CMD *pCmd, int tspecCompliance);
|
||||
|
||||
#ifdef CONFIG_HOST_TCMD_SUPPORT
|
||||
int wmi_test_cmd(struct wmi_t *wmip, A_UINT8 *buf, A_UINT32 len);
|
||||
int wmi_test_cmd(struct wmi_t *wmip, u8 *buf, A_UINT32 len);
|
||||
#endif
|
||||
|
||||
int wmi_set_bt_status_cmd(struct wmi_t *wmip, A_UINT8 streamType, A_UINT8 status);
|
||||
int wmi_set_bt_status_cmd(struct wmi_t *wmip, u8 streamType, u8 status);
|
||||
int wmi_set_bt_params_cmd(struct wmi_t *wmip, WMI_SET_BT_PARAMS_CMD* cmd);
|
||||
|
||||
int wmi_set_btcoex_fe_ant_cmd(struct wmi_t *wmip, WMI_SET_BTCOEX_FE_ANT_CMD * cmd);
|
||||
|
@ -269,7 +269,7 @@ int wmi_get_btcoex_config_cmd(struct wmi_t * wmip, WMI_GET_BTCOEX_CONFIG_CMD * c
|
|||
|
||||
int wmi_get_btcoex_stats_cmd(struct wmi_t * wmip);
|
||||
|
||||
int wmi_SGI_cmd(struct wmi_t *wmip, A_UINT32 sgiMask, A_UINT8 sgiPERThreshold);
|
||||
int wmi_SGI_cmd(struct wmi_t *wmip, A_UINT32 sgiMask, u8 sgiPERThreshold);
|
||||
|
||||
/*
|
||||
* This function is used to configure the fix rates mask to the target.
|
||||
|
@ -277,23 +277,23 @@ int wmi_SGI_cmd(struct wmi_t *wmip, A_UINT32 sgiMask, A_UINT8 sgiPERThreshold);
|
|||
int wmi_set_fixrates_cmd(struct wmi_t *wmip, A_UINT32 fixRatesMask);
|
||||
int wmi_get_ratemask_cmd(struct wmi_t *wmip);
|
||||
|
||||
int wmi_set_authmode_cmd(struct wmi_t *wmip, A_UINT8 mode);
|
||||
int wmi_set_authmode_cmd(struct wmi_t *wmip, u8 mode);
|
||||
|
||||
int wmi_set_reassocmode_cmd(struct wmi_t *wmip, A_UINT8 mode);
|
||||
int wmi_set_reassocmode_cmd(struct wmi_t *wmip, u8 mode);
|
||||
|
||||
int wmi_set_qos_supp_cmd(struct wmi_t *wmip,A_UINT8 status);
|
||||
int wmi_set_qos_supp_cmd(struct wmi_t *wmip,u8 status);
|
||||
int wmi_set_wmm_cmd(struct wmi_t *wmip, WMI_WMM_STATUS status);
|
||||
int wmi_set_wmm_txop(struct wmi_t *wmip, WMI_TXOP_CFG txEnable);
|
||||
int wmi_set_country(struct wmi_t *wmip, A_UCHAR *countryCode);
|
||||
|
||||
int wmi_get_keepalive_configured(struct wmi_t *wmip);
|
||||
A_UINT8 wmi_get_keepalive_cmd(struct wmi_t *wmip);
|
||||
int wmi_set_keepalive_cmd(struct wmi_t *wmip, A_UINT8 keepaliveInterval);
|
||||
u8 wmi_get_keepalive_cmd(struct wmi_t *wmip);
|
||||
int wmi_set_keepalive_cmd(struct wmi_t *wmip, u8 keepaliveInterval);
|
||||
|
||||
int wmi_set_appie_cmd(struct wmi_t *wmip, A_UINT8 mgmtFrmType,
|
||||
A_UINT8 ieLen,A_UINT8 *ieInfo);
|
||||
int wmi_set_appie_cmd(struct wmi_t *wmip, u8 mgmtFrmType,
|
||||
u8 ieLen,u8 *ieInfo);
|
||||
|
||||
int wmi_set_halparam_cmd(struct wmi_t *wmip, A_UINT8 *cmd, A_UINT16 dataLen);
|
||||
int wmi_set_halparam_cmd(struct wmi_t *wmip, u8 *cmd, A_UINT16 dataLen);
|
||||
|
||||
A_INT32 wmi_get_rate(A_INT8 rateindex);
|
||||
|
||||
|
@ -304,7 +304,7 @@ int wmi_set_host_sleep_mode_cmd(struct wmi_t *wmip, WMI_SET_HOST_SLEEP_MODE_CMD
|
|||
int wmi_set_wow_mode_cmd(struct wmi_t *wmip, WMI_SET_WOW_MODE_CMD *cmd);
|
||||
int wmi_get_wow_list_cmd(struct wmi_t *wmip, WMI_GET_WOW_LIST_CMD *cmd);
|
||||
int wmi_add_wow_pattern_cmd(struct wmi_t *wmip,
|
||||
WMI_ADD_WOW_PATTERN_CMD *cmd, A_UINT8* pattern, A_UINT8* mask, A_UINT8 pattern_size);
|
||||
WMI_ADD_WOW_PATTERN_CMD *cmd, u8 *pattern, u8 *mask, u8 pattern_size);
|
||||
int wmi_del_wow_pattern_cmd(struct wmi_t *wmip,
|
||||
WMI_DEL_WOW_PATTERN_CMD *cmd);
|
||||
int wmi_set_wsc_status_cmd(struct wmi_t *wmip, A_UINT32 status);
|
||||
|
@ -313,13 +313,13 @@ int
|
|||
wmi_set_params_cmd(struct wmi_t *wmip, A_UINT32 opcode, A_UINT32 length, char *buffer);
|
||||
|
||||
int
|
||||
wmi_set_mcast_filter_cmd(struct wmi_t *wmip, A_UINT8 dot1, A_UINT8 dot2, A_UINT8 dot3, A_UINT8 dot4);
|
||||
wmi_set_mcast_filter_cmd(struct wmi_t *wmip, u8 dot1, u8 dot2, u8 dot3, u8 dot4);
|
||||
|
||||
int
|
||||
wmi_del_mcast_filter_cmd(struct wmi_t *wmip, A_UINT8 dot1, A_UINT8 dot2, A_UINT8 dot3, A_UINT8 dot4);
|
||||
wmi_del_mcast_filter_cmd(struct wmi_t *wmip, u8 dot1, u8 dot2, u8 dot3, u8 dot4);
|
||||
|
||||
int
|
||||
wmi_mcast_filter_cmd(struct wmi_t *wmip, A_UINT8 enable);
|
||||
wmi_mcast_filter_cmd(struct wmi_t *wmip, u8 enable);
|
||||
|
||||
bss_t *
|
||||
wmi_find_Ssidnode (struct wmi_t *wmip, A_UCHAR *pSsid,
|
||||
|
@ -346,8 +346,8 @@ void wmi_scan_indication (struct wmi_t *wmip);
|
|||
int
|
||||
wmi_set_target_event_report_cmd(struct wmi_t *wmip, WMI_SET_TARGET_EVENT_REPORT_CMD* cmd);
|
||||
|
||||
bss_t *wmi_rm_current_bss (struct wmi_t *wmip, A_UINT8 *id);
|
||||
int wmi_add_current_bss (struct wmi_t *wmip, A_UINT8 *id, bss_t *bss);
|
||||
bss_t *wmi_rm_current_bss (struct wmi_t *wmip, u8 *id);
|
||||
int wmi_add_current_bss (struct wmi_t *wmip, u8 *id, bss_t *bss);
|
||||
|
||||
|
||||
/*
|
||||
|
@ -357,22 +357,21 @@ int
|
|||
wmi_ap_profile_commit(struct wmi_t *wmip, WMI_CONNECT_CMD *p);
|
||||
|
||||
int
|
||||
wmi_ap_set_hidden_ssid(struct wmi_t *wmip, A_UINT8 hidden_ssid);
|
||||
wmi_ap_set_hidden_ssid(struct wmi_t *wmip, u8 hidden_ssid);
|
||||
|
||||
int
|
||||
wmi_ap_set_num_sta(struct wmi_t *wmip, A_UINT8 num_sta);
|
||||
wmi_ap_set_num_sta(struct wmi_t *wmip, u8 num_sta);
|
||||
|
||||
int
|
||||
wmi_ap_set_acl_policy(struct wmi_t *wmip, A_UINT8 policy);
|
||||
wmi_ap_set_acl_policy(struct wmi_t *wmip, u8 policy);
|
||||
|
||||
int
|
||||
wmi_ap_acl_mac_list(struct wmi_t *wmip, WMI_AP_ACL_MAC_CMD *a);
|
||||
|
||||
A_UINT8
|
||||
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
|
||||
wmi_ap_set_mlme(struct wmi_t *wmip, A_UINT8 cmd, A_UINT8 *mac, A_UINT16 reason);
|
||||
wmi_ap_set_mlme(struct wmi_t *wmip, u8 cmd, u8 *mac, A_UINT16 reason);
|
||||
|
||||
int
|
||||
wmi_set_pvb_cmd(struct wmi_t *wmip, A_UINT16 aid, bool flag);
|
||||
|
@ -384,34 +383,34 @@ int
|
|||
wmi_ap_bgscan_time(struct wmi_t *wmip, A_UINT32 period, A_UINT32 dwell);
|
||||
|
||||
int
|
||||
wmi_ap_set_dtim(struct wmi_t *wmip, A_UINT8 dtim);
|
||||
wmi_ap_set_dtim(struct wmi_t *wmip, u8 dtim);
|
||||
|
||||
int
|
||||
wmi_ap_set_rateset(struct wmi_t *wmip, A_UINT8 rateset);
|
||||
wmi_ap_set_rateset(struct wmi_t *wmip, u8 rateset);
|
||||
|
||||
int
|
||||
wmi_set_ht_cap_cmd(struct wmi_t *wmip, WMI_SET_HT_CAP_CMD *cmd);
|
||||
|
||||
int
|
||||
wmi_set_ht_op_cmd(struct wmi_t *wmip, A_UINT8 sta_chan_width);
|
||||
wmi_set_ht_op_cmd(struct wmi_t *wmip, u8 sta_chan_width);
|
||||
|
||||
int
|
||||
wmi_send_hci_cmd(struct wmi_t *wmip, A_UINT8 *buf, A_UINT16 sz);
|
||||
wmi_send_hci_cmd(struct wmi_t *wmip, u8 *buf, A_UINT16 sz);
|
||||
|
||||
int
|
||||
wmi_set_tx_select_rates_cmd(struct wmi_t *wmip, A_UINT32 *pMaskArray);
|
||||
|
||||
int
|
||||
wmi_setup_aggr_cmd(struct wmi_t *wmip, A_UINT8 tid);
|
||||
wmi_setup_aggr_cmd(struct wmi_t *wmip, u8 tid);
|
||||
|
||||
int
|
||||
wmi_delete_aggr_cmd(struct wmi_t *wmip, A_UINT8 tid, bool uplink);
|
||||
wmi_delete_aggr_cmd(struct wmi_t *wmip, u8 tid, bool uplink);
|
||||
|
||||
int
|
||||
wmi_allow_aggr_cmd(struct wmi_t *wmip, A_UINT16 tx_tidmask, A_UINT16 rx_tidmask);
|
||||
|
||||
int
|
||||
wmi_set_rx_frame_format_cmd(struct wmi_t *wmip, A_UINT8 rxMetaVersion, bool rxDot11Hdr, bool defragOnHost);
|
||||
wmi_set_rx_frame_format_cmd(struct wmi_t *wmip, u8 rxMetaVersion, bool rxDot11Hdr, bool defragOnHost);
|
||||
|
||||
int
|
||||
wmi_set_thin_mode_cmd(struct wmi_t *wmip, bool bThinMode);
|
||||
|
@ -420,7 +419,7 @@ int
|
|||
wmi_set_wlan_conn_precedence_cmd(struct wmi_t *wmip, BT_WLAN_CONN_PRECEDENCE precedence);
|
||||
|
||||
int
|
||||
wmi_set_pmk_cmd(struct wmi_t *wmip, A_UINT8 *pmk);
|
||||
wmi_set_pmk_cmd(struct wmi_t *wmip, u8 *pmk);
|
||||
|
||||
A_UINT16
|
||||
wmi_ieee2freq (int chan);
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
int AthPSInitialize(AR3K_CONFIG_INFO *hdev);
|
||||
|
||||
static int SendHCICommand(AR3K_CONFIG_INFO *pConfig,
|
||||
A_UINT8 *pBuffer,
|
||||
u8 *pBuffer,
|
||||
int Length)
|
||||
{
|
||||
HTC_PACKET *pPacket = NULL;
|
||||
|
@ -85,7 +85,7 @@ static int SendHCICommand(AR3K_CONFIG_INFO *pConfig,
|
|||
}
|
||||
|
||||
static int RecvHCIEvent(AR3K_CONFIG_INFO *pConfig,
|
||||
A_UINT8 *pBuffer,
|
||||
u8 *pBuffer,
|
||||
int *pLength)
|
||||
{
|
||||
int status = A_OK;
|
||||
|
@ -123,17 +123,17 @@ static int RecvHCIEvent(AR3K_CONFIG_INFO *pConfig,
|
|||
}
|
||||
|
||||
int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig,
|
||||
A_UINT8 *pHCICommand,
|
||||
u8 *pHCICommand,
|
||||
int CmdLength,
|
||||
A_UINT8 **ppEventBuffer,
|
||||
A_UINT8 **ppBufferToFree)
|
||||
u8 **ppEventBuffer,
|
||||
u8 **ppBufferToFree)
|
||||
{
|
||||
int status = A_OK;
|
||||
A_UINT8 *pBuffer = NULL;
|
||||
A_UINT8 *pTemp;
|
||||
u8 *pBuffer = NULL;
|
||||
u8 *pTemp;
|
||||
int length;
|
||||
bool commandComplete = false;
|
||||
A_UINT8 opCodeBytes[2];
|
||||
u8 opCodeBytes[2];
|
||||
|
||||
do {
|
||||
|
||||
|
@ -141,7 +141,7 @@ int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig,
|
|||
length += pConfig->pHCIProps->HeadRoom + pConfig->pHCIProps->TailRoom;
|
||||
length += pConfig->pHCIProps->IOBlockPad;
|
||||
|
||||
pBuffer = (A_UINT8 *)A_MALLOC(length);
|
||||
pBuffer = (u8 *)A_MALLOC(length);
|
||||
if (NULL == pBuffer) {
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("AR3K Config: Failed to allocate bt buffer \n"));
|
||||
status = A_NO_MEMORY;
|
||||
|
@ -212,17 +212,17 @@ int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig,
|
|||
static int AR3KConfigureHCIBaud(AR3K_CONFIG_INFO *pConfig)
|
||||
{
|
||||
int status = A_OK;
|
||||
A_UINT8 hciBaudChangeCommand[] = {0x0c,0xfc,0x2,0,0};
|
||||
u8 hciBaudChangeCommand[] = {0x0c,0xfc,0x2,0,0};
|
||||
A_UINT16 baudVal;
|
||||
A_UINT8 *pEvent = NULL;
|
||||
A_UINT8 *pBufferToFree = NULL;
|
||||
u8 *pEvent = NULL;
|
||||
u8 *pBufferToFree = NULL;
|
||||
|
||||
do {
|
||||
|
||||
if (pConfig->Flags & AR3K_CONFIG_FLAG_SET_AR3K_BAUD) {
|
||||
baudVal = (A_UINT16)(pConfig->AR3KBaudRate / 100);
|
||||
hciBaudChangeCommand[3] = (A_UINT8)baudVal;
|
||||
hciBaudChangeCommand[4] = (A_UINT8)(baudVal >> 8);
|
||||
hciBaudChangeCommand[3] = (u8)baudVal;
|
||||
hciBaudChangeCommand[4] = (u8)(baudVal >> 8);
|
||||
|
||||
status = SendHCICommandWaitCommandComplete(pConfig,
|
||||
hciBaudChangeCommand,
|
||||
|
@ -279,8 +279,8 @@ static int AR3KExitMinBoot(AR3K_CONFIG_INFO *pConfig)
|
|||
int status;
|
||||
char exitMinBootCmd[] = {0x25,0xFC,0x0c,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00};
|
||||
A_UINT8 *pEvent = NULL;
|
||||
A_UINT8 *pBufferToFree = NULL;
|
||||
u8 *pEvent = NULL;
|
||||
u8 *pBufferToFree = NULL;
|
||||
|
||||
status = SendHCICommandWaitCommandComplete(pConfig,
|
||||
exitMinBootCmd,
|
||||
|
@ -313,9 +313,9 @@ static int AR3KExitMinBoot(AR3K_CONFIG_INFO *pConfig)
|
|||
static int AR3KConfigureSendHCIReset(AR3K_CONFIG_INFO *pConfig)
|
||||
{
|
||||
int status = A_OK;
|
||||
A_UINT8 hciResetCommand[] = {0x03,0x0c,0x0};
|
||||
A_UINT8 *pEvent = NULL;
|
||||
A_UINT8 *pBufferToFree = NULL;
|
||||
u8 hciResetCommand[] = {0x03,0x0c,0x0};
|
||||
u8 *pEvent = NULL;
|
||||
u8 *pBufferToFree = NULL;
|
||||
|
||||
status = SendHCICommandWaitCommandComplete( pConfig,
|
||||
hciResetCommand,
|
||||
|
@ -362,12 +362,12 @@ static int AR3KEnableTLPM(AR3K_CONFIG_INFO *pConfig)
|
|||
/* AR3K vendor specific command for Sleep Enable */
|
||||
char sleepEnable[] = {0x4,0xFC,0x1,
|
||||
0x1};
|
||||
A_UINT8 *pEvent = NULL;
|
||||
A_UINT8 *pBufferToFree = NULL;
|
||||
u8 *pEvent = NULL;
|
||||
u8 *pBufferToFree = NULL;
|
||||
|
||||
if (0 != pConfig->IdleTimeout) {
|
||||
A_UINT8 idle_lsb = pConfig->IdleTimeout & 0xFF;
|
||||
A_UINT8 idle_msb = (pConfig->IdleTimeout & 0xFF00) >> 8;
|
||||
u8 idle_lsb = pConfig->IdleTimeout & 0xFF;
|
||||
u8 idle_msb = (pConfig->IdleTimeout & 0xFF00) >> 8;
|
||||
hostWakeupConfig[11] = targetWakeupConfig[11] = idle_lsb;
|
||||
hostWakeupConfig[12] = targetWakeupConfig[12] = idle_msb;
|
||||
}
|
||||
|
|
|
@ -47,10 +47,10 @@ typedef struct {
|
|||
}HciCommandListParam;
|
||||
|
||||
int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig,
|
||||
A_UINT8 *pHCICommand,
|
||||
u8 *pHCICommand,
|
||||
int CmdLength,
|
||||
A_UINT8 **ppEventBuffer,
|
||||
A_UINT8 **ppBufferToFree);
|
||||
u8 **ppEventBuffer,
|
||||
u8 **ppBufferToFree);
|
||||
|
||||
A_UINT32 Rom_Version;
|
||||
A_UINT32 Build_Version;
|
||||
|
@ -136,8 +136,8 @@ int PSSendOps(void *arg)
|
|||
PSCmdPacket *HciCmdList; /* List storing the commands */
|
||||
const struct firmware* firmware;
|
||||
A_UINT32 numCmds;
|
||||
A_UINT8 *event;
|
||||
A_UINT8 *bufferToFree;
|
||||
u8 *event;
|
||||
u8 *bufferToFree;
|
||||
struct hci_dev *device;
|
||||
A_UCHAR *buffer;
|
||||
A_UINT32 len;
|
||||
|
@ -390,10 +390,10 @@ int PSSendOps(void *arg)
|
|||
* For HCI SDIO transport, this will be internally defined.
|
||||
*/
|
||||
int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig,
|
||||
A_UINT8 *pHCICommand,
|
||||
u8 *pHCICommand,
|
||||
int CmdLength,
|
||||
A_UINT8 **ppEventBuffer,
|
||||
A_UINT8 **ppBufferToFree)
|
||||
u8 **ppEventBuffer,
|
||||
u8 **ppBufferToFree)
|
||||
{
|
||||
if(CmdLength == 0) {
|
||||
return A_ERROR;
|
||||
|
@ -486,8 +486,8 @@ int write_bdaddr(AR3K_CONFIG_INFO *pConfig,A_UCHAR *bdaddr,int type)
|
|||
A_UCHAR bdaddr_cmd[] = { 0x0B, 0xFC, 0x0A, 0x01, 0x01,
|
||||
0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
|
||||
|
||||
A_UINT8 *event;
|
||||
A_UINT8 *bufferToFree = NULL;
|
||||
u8 *event;
|
||||
u8 *bufferToFree = NULL;
|
||||
int result = A_ERROR;
|
||||
int inc,outc;
|
||||
|
||||
|
@ -518,9 +518,9 @@ int write_bdaddr(AR3K_CONFIG_INFO *pConfig,A_UCHAR *bdaddr,int type)
|
|||
}
|
||||
int ReadVersionInfo(AR3K_CONFIG_INFO *pConfig)
|
||||
{
|
||||
A_UINT8 hciCommand[] = {0x1E,0xfc,0x00};
|
||||
A_UINT8 *event;
|
||||
A_UINT8 *bufferToFree = NULL;
|
||||
u8 hciCommand[] = {0x1E,0xfc,0x00};
|
||||
u8 *event;
|
||||
u8 *bufferToFree = NULL;
|
||||
int result = A_ERROR;
|
||||
if(A_OK == SendHCICommandWaitCommandComplete(pConfig,hciCommand,sizeof(hciCommand),&event,&bufferToFree)) {
|
||||
result = ReadPSEvent(event);
|
||||
|
@ -533,16 +533,16 @@ int ReadVersionInfo(AR3K_CONFIG_INFO *pConfig)
|
|||
}
|
||||
int getDeviceType(AR3K_CONFIG_INFO *pConfig, A_UINT32 * code)
|
||||
{
|
||||
A_UINT8 hciCommand[] = {0x05,0xfc,0x05,0x00,0x00,0x00,0x00,0x04};
|
||||
A_UINT8 *event;
|
||||
A_UINT8 *bufferToFree = NULL;
|
||||
u8 hciCommand[] = {0x05,0xfc,0x05,0x00,0x00,0x00,0x00,0x04};
|
||||
u8 *event;
|
||||
u8 *bufferToFree = NULL;
|
||||
A_UINT32 reg;
|
||||
int result = A_ERROR;
|
||||
*code = 0;
|
||||
hciCommand[3] = (A_UINT8)(FPGA_REGISTER & 0xFF);
|
||||
hciCommand[4] = (A_UINT8)((FPGA_REGISTER >> 8) & 0xFF);
|
||||
hciCommand[5] = (A_UINT8)((FPGA_REGISTER >> 16) & 0xFF);
|
||||
hciCommand[6] = (A_UINT8)((FPGA_REGISTER >> 24) & 0xFF);
|
||||
hciCommand[3] = (u8)(FPGA_REGISTER & 0xFF);
|
||||
hciCommand[4] = (u8)((FPGA_REGISTER >> 8) & 0xFF);
|
||||
hciCommand[5] = (u8)((FPGA_REGISTER >> 16) & 0xFF);
|
||||
hciCommand[6] = (u8)((FPGA_REGISTER >> 24) & 0xFF);
|
||||
if(A_OK == SendHCICommandWaitCommandComplete(pConfig,hciCommand,sizeof(hciCommand),&event,&bufferToFree)) {
|
||||
|
||||
if(event[4] == 0xFC && event[5] == 0x00){
|
||||
|
|
|
@ -89,13 +89,13 @@ typedef struct tPsTagEntry
|
|||
{
|
||||
A_UINT32 TagId;
|
||||
A_UINT32 TagLen;
|
||||
A_UINT8 *TagData;
|
||||
u8 *TagData;
|
||||
} tPsTagEntry, *tpPsTagEntry;
|
||||
|
||||
typedef struct tRamPatch
|
||||
{
|
||||
A_UINT16 Len;
|
||||
A_UINT8 * Data;
|
||||
u8 *Data;
|
||||
} tRamPatch, *ptRamPatch;
|
||||
|
||||
|
||||
|
@ -319,9 +319,9 @@ int AthParseFilesUnified(A_UCHAR *srcbuffer,A_UINT32 srclen, int FileFormat)
|
|||
{
|
||||
char *Buffer;
|
||||
char *pCharLine;
|
||||
A_UINT8 TagCount;
|
||||
u8 TagCount;
|
||||
A_UINT16 ByteCount;
|
||||
A_UINT8 ParseSection=RAM_PS_SECTION;
|
||||
u8 ParseSection=RAM_PS_SECTION;
|
||||
A_UINT32 pos;
|
||||
|
||||
|
||||
|
@ -438,7 +438,7 @@ int AthParseFilesUnified(A_UCHAR *srcbuffer,A_UINT32 srclen, int FileFormat)
|
|||
return A_ERROR;
|
||||
}
|
||||
PsTagEntry[TagCount].TagLen = ByteCount;
|
||||
PsTagEntry[TagCount].TagData = (A_UINT8*)A_MALLOC(ByteCount);
|
||||
PsTagEntry[TagCount].TagData = (u8 *)A_MALLOC(ByteCount);
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,(" TAG Length %d Tag Index %d \n",PsTagEntry[TagCount].TagLen,TagCount));
|
||||
stReadStatus.uSection = 3;
|
||||
stReadStatus.uLineCount = 0;
|
||||
|
@ -472,12 +472,12 @@ int AthParseFilesUnified(A_UCHAR *srcbuffer,A_UINT32 srclen, int FileFormat)
|
|||
if((stPS_DataFormat.eDataType == eHex) && stPS_DataFormat.bIsArray == true) {
|
||||
while(uReadCount > 0) {
|
||||
PsTagEntry[TagCount].TagData[stReadStatus.uByteCount] =
|
||||
(A_UINT8)(hex_to_bin(pCharLine[stReadStatus.uCharCount]) << 4)
|
||||
| (A_UINT8)(hex_to_bin(pCharLine[stReadStatus.uCharCount + 1]));
|
||||
(u8)(hex_to_bin(pCharLine[stReadStatus.uCharCount]) << 4)
|
||||
| (u8)(hex_to_bin(pCharLine[stReadStatus.uCharCount + 1]));
|
||||
|
||||
PsTagEntry[TagCount].TagData[stReadStatus.uByteCount+1] =
|
||||
(A_UINT8)(hex_to_bin(pCharLine[stReadStatus.uCharCount + 3]) << 4)
|
||||
| (A_UINT8)(hex_to_bin(pCharLine[stReadStatus.uCharCount + 4]));
|
||||
(u8)(hex_to_bin(pCharLine[stReadStatus.uCharCount + 3]) << 4)
|
||||
| (u8)(hex_to_bin(pCharLine[stReadStatus.uCharCount + 4]));
|
||||
|
||||
stReadStatus.uCharCount += 6; // read two bytes, plus a space;
|
||||
stReadStatus.uByteCount += 2;
|
||||
|
@ -614,7 +614,7 @@ int AthDoParsePatch(A_UCHAR *patchbuffer, A_UINT32 patchlen)
|
|||
return A_ERROR;
|
||||
}
|
||||
RamPatch[Patch_Count].Len= MAX_BYTE_LENGTH;
|
||||
RamPatch[Patch_Count].Data = (A_UINT8*)A_MALLOC(MAX_BYTE_LENGTH);
|
||||
RamPatch[Patch_Count].Data = (u8 *)A_MALLOC(MAX_BYTE_LENGTH);
|
||||
Patch_Count ++;
|
||||
|
||||
|
||||
|
@ -623,7 +623,7 @@ int AthDoParsePatch(A_UCHAR *patchbuffer, A_UINT32 patchlen)
|
|||
|
||||
RamPatch[Patch_Count].Len= (ByteCount & 0xFF);
|
||||
if(ByteCount != 0) {
|
||||
RamPatch[Patch_Count].Data = (A_UINT8*)A_MALLOC(ByteCount);
|
||||
RamPatch[Patch_Count].Data = (u8 *)A_MALLOC(ByteCount);
|
||||
Patch_Count ++;
|
||||
}
|
||||
count = 0;
|
||||
|
@ -767,7 +767,7 @@ static void LoadHeader(A_UCHAR *HCI_PS_Command,A_UCHAR opcode,int length,int ind
|
|||
int AthCreateCommandList(PSCmdPacket **HciPacketList, A_UINT32 *numPackets)
|
||||
{
|
||||
|
||||
A_UINT8 count;
|
||||
u8 count;
|
||||
A_UINT32 NumcmdEntry = 0;
|
||||
|
||||
A_UINT32 Crc = 0;
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
#define A_UCHAR unsigned char
|
||||
#define A_UINT32 unsigned long
|
||||
#define A_UINT16 unsigned short
|
||||
#define A_UINT8 unsigned char
|
||||
#define u8 unsigned char
|
||||
#define bool unsigned char
|
||||
#endif /* A_UINT32 */
|
||||
|
||||
|
|
|
@ -71,8 +71,8 @@ ATH_DEBUG_INSTANTIATE_MODULE_VAR(misc,
|
|||
#define CPU_DBG_SEL_ADDRESS 0x00000483
|
||||
#define CPU_DBG_ADDRESS 0x00000484
|
||||
|
||||
static A_UINT8 custDataAR6002[AR6002_CUST_DATA_SIZE];
|
||||
static A_UINT8 custDataAR6003[AR6003_CUST_DATA_SIZE];
|
||||
static u8 custDataAR6002[AR6002_CUST_DATA_SIZE];
|
||||
static u8 custDataAR6003[AR6003_CUST_DATA_SIZE];
|
||||
|
||||
/* Compile the 4BYTE version of the window register setup routine,
|
||||
* This mitigates host interconnect issues with non-4byte aligned bus requests, some
|
||||
|
@ -86,7 +86,7 @@ static A_UINT8 custDataAR6003[AR6003_CUST_DATA_SIZE];
|
|||
int ar6000_SetAddressWindowRegister(HIF_DEVICE *hifDevice, A_UINT32 RegisterAddr, A_UINT32 Address)
|
||||
{
|
||||
int status;
|
||||
A_UINT8 addrValue[4];
|
||||
u8 addrValue[4];
|
||||
A_INT32 i;
|
||||
|
||||
/* write bytes 1,2,3 of the register to set the upper address bytes, the LSB is written
|
||||
|
@ -94,7 +94,7 @@ int ar6000_SetAddressWindowRegister(HIF_DEVICE *hifDevice, A_UINT32 RegisterAddr
|
|||
|
||||
for (i = 1; i <= 3; i++) {
|
||||
/* fill the buffer with the address byte value we want to hit 4 times*/
|
||||
addrValue[0] = ((A_UINT8 *)&Address)[i];
|
||||
addrValue[0] = ((u8 *)&Address)[i];
|
||||
addrValue[1] = addrValue[0];
|
||||
addrValue[2] = addrValue[0];
|
||||
addrValue[3] = addrValue[0];
|
||||
|
@ -167,7 +167,7 @@ int ar6000_SetAddressWindowRegister(HIF_DEVICE *hifDevice, A_UINT32 RegisterAddr
|
|||
status = HIFReadWrite(hifDevice,
|
||||
RegisterAddr,
|
||||
(A_UCHAR *)(&Address),
|
||||
sizeof(A_UINT8),
|
||||
sizeof(u8),
|
||||
HIF_WR_SYNC_BYTE_INC,
|
||||
NULL);
|
||||
|
||||
|
@ -484,7 +484,7 @@ void
|
|||
ar6000_copy_cust_data_from_target(HIF_DEVICE *hifDevice, A_UINT32 TargetType)
|
||||
{
|
||||
A_UINT32 eepHeaderAddr;
|
||||
A_UINT8 AR6003CustDataShadow[AR6003_CUST_DATA_SIZE+4];
|
||||
u8 AR6003CustDataShadow[AR6003_CUST_DATA_SIZE+4];
|
||||
A_INT32 i;
|
||||
|
||||
if (BMIReadMemory(hifDevice,
|
||||
|
@ -526,8 +526,7 @@ ar6000_copy_cust_data_from_target(HIF_DEVICE *hifDevice, A_UINT32 TargetType)
|
|||
}
|
||||
|
||||
/* This is the function to call when need to use the cust data */
|
||||
A_UINT8 *
|
||||
ar6000_get_cust_data_buffer(A_UINT32 TargetType)
|
||||
u8 *ar6000_get_cust_data_buffer(A_UINT32 TargetType)
|
||||
{
|
||||
if (TargetType == TARGET_TYPE_AR6003)
|
||||
return custDataAR6003;
|
||||
|
@ -628,7 +627,7 @@ void ar6000_dump_target_assert_info(HIF_DEVICE *hifDevice, A_UINT32 TargetType)
|
|||
int ar6000_set_htc_params(HIF_DEVICE *hifDevice,
|
||||
A_UINT32 TargetType,
|
||||
A_UINT32 MboxIsrYieldValue,
|
||||
A_UINT8 HtcControlBuffers)
|
||||
u8 HtcControlBuffers)
|
||||
{
|
||||
int status;
|
||||
A_UINT32 blocksizes[HTC_MAILBOX_NUM_MAX];
|
||||
|
|
|
@ -47,8 +47,8 @@
|
|||
#define LINUX_HACK_FUDGE_FACTOR 16
|
||||
#define BDATA_BDADDR_OFFSET 28
|
||||
|
||||
A_UINT8 bcast_mac[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
A_UINT8 null_mac[] = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
|
||||
u8 bcast_mac[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
u8 null_mac[] = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
|
@ -370,7 +370,7 @@ static void ar6000_free_cookie(AR_SOFTC_T *ar, struct ar_cookie * cookie);
|
|||
static struct ar_cookie *ar6000_alloc_cookie(AR_SOFTC_T *ar);
|
||||
|
||||
#ifdef USER_KEYS
|
||||
static int ar6000_reinstall_keys(AR_SOFTC_T *ar,A_UINT8 key_op_ctrl);
|
||||
static int ar6000_reinstall_keys(AR_SOFTC_T *ar,u8 key_op_ctrl);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_AP_VIRTUAL_ADAPTER_SUPPORT
|
||||
|
@ -614,7 +614,7 @@ ar6000_dbglog_event(AR_SOFTC_T *ar, A_UINT32 dropped,
|
|||
send = dbglog_get_debug_fragment(&buffer[sent], length - sent,
|
||||
MAX_WIRELESS_EVENT_SIZE);
|
||||
while (send) {
|
||||
ar6000_send_event_to_app(ar, WMIX_DBGLOG_EVENTID, (A_UINT8*)&buffer[sent], send);
|
||||
ar6000_send_event_to_app(ar, WMIX_DBGLOG_EVENTID, (u8 *)&buffer[sent], send);
|
||||
sent += send;
|
||||
send = dbglog_get_debug_fragment(&buffer[sent], length - sent,
|
||||
MAX_WIRELESS_EVENT_SIZE);
|
||||
|
@ -950,10 +950,10 @@ ar6000_softmac_update(AR_SOFTC_T *ar, A_UCHAR *eeprom_data, size_t size)
|
|||
A_UCHAR *ptr_mac;
|
||||
switch (ar->arTargetType) {
|
||||
case TARGET_TYPE_AR6002:
|
||||
ptr_mac = (A_UINT8 *)((A_UCHAR *)eeprom_data + AR6002_MAC_ADDRESS_OFFSET);
|
||||
ptr_mac = (u8 *)((A_UCHAR *)eeprom_data + AR6002_MAC_ADDRESS_OFFSET);
|
||||
break;
|
||||
case TARGET_TYPE_AR6003:
|
||||
ptr_mac = (A_UINT8 *)((A_UCHAR *)eeprom_data + AR6003_MAC_ADDRESS_OFFSET);
|
||||
ptr_mac = (u8 *)((A_UCHAR *)eeprom_data + AR6003_MAC_ADDRESS_OFFSET);
|
||||
break;
|
||||
default:
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Invalid Target Type\n"));
|
||||
|
@ -1877,7 +1877,7 @@ static void ar6000_target_failure(void *Instance, int Status)
|
|||
errEvent.errorVal = WMI_TARGET_COM_ERR |
|
||||
WMI_TARGET_FATAL_ERR;
|
||||
ar6000_send_event_to_app(ar, WMI_ERROR_REPORT_EVENTID,
|
||||
(A_UINT8 *)&errEvent,
|
||||
(u8 *)&errEvent,
|
||||
sizeof(WMI_TARGET_ERROR_REPORT_EVENT));
|
||||
}
|
||||
}
|
||||
|
@ -2186,7 +2186,7 @@ static void ar6000_detect_error(unsigned long ptr)
|
|||
errEvent.errorVal = WMI_TARGET_COM_ERR | WMI_TARGET_FATAL_ERR;
|
||||
AR6000_SPIN_UNLOCK(&ar->arLock, 0);
|
||||
ar6000_send_event_to_app(ar, WMI_ERROR_REPORT_EVENTID,
|
||||
(A_UINT8 *)&errEvent,
|
||||
(u8 *)&errEvent,
|
||||
sizeof(WMI_TARGET_ERROR_REPORT_EVENT));
|
||||
return;
|
||||
}
|
||||
|
@ -2264,8 +2264,8 @@ ar6000_init_control_info(AR_SOFTC_T *ar)
|
|||
|
||||
/* Initialize the AP mode state info */
|
||||
{
|
||||
A_UINT8 ctr;
|
||||
A_MEMZERO((A_UINT8 *)ar->sta_list, AP_MAX_NUM_STA * sizeof(sta_t));
|
||||
u8 ctr;
|
||||
A_MEMZERO((u8 *)ar->sta_list, AP_MAX_NUM_STA * sizeof(sta_t));
|
||||
|
||||
/* init the Mutexes */
|
||||
A_MUTEX_INIT(&ar->mcastpsqLock);
|
||||
|
@ -2414,14 +2414,13 @@ void ar6000_TxDataCleanup(AR_SOFTC_T *ar)
|
|||
}
|
||||
|
||||
HTC_ENDPOINT_ID
|
||||
ar6000_ac2_endpoint_id ( void * devt, A_UINT8 ac)
|
||||
ar6000_ac2_endpoint_id ( void * devt, u8 ac)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *) devt;
|
||||
return(arAc2EndpointID(ar, ac));
|
||||
}
|
||||
|
||||
A_UINT8
|
||||
ar6000_endpoint_id2_ac(void * devt, HTC_ENDPOINT_ID ep )
|
||||
u8 ar6000_endpoint_id2_ac(void * devt, HTC_ENDPOINT_ID ep )
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *) devt;
|
||||
return(arEndpoint2Ac(ar, ep ));
|
||||
|
@ -2788,7 +2787,7 @@ ar6000_ratemask_rx(void *devt, A_UINT32 ratemask)
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_txPwr_rx(void *devt, A_UINT8 txPwr)
|
||||
ar6000_txPwr_rx(void *devt, u8 txPwr)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)devt;
|
||||
|
||||
|
@ -2808,11 +2807,10 @@ ar6000_channelList_rx(void *devt, A_INT8 numChan, A_UINT16 *chanList)
|
|||
wake_up(&arEvent);
|
||||
}
|
||||
|
||||
A_UINT8
|
||||
ar6000_ibss_map_epid(struct sk_buff *skb, struct net_device *dev, A_UINT32 * mapNo)
|
||||
u8 ar6000_ibss_map_epid(struct sk_buff *skb, struct net_device *dev, A_UINT32 * mapNo)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
|
||||
A_UINT8 *datap;
|
||||
u8 *datap;
|
||||
ATH_MAC_HDR *macHdr;
|
||||
A_UINT32 i, eptMap;
|
||||
|
||||
|
@ -2888,14 +2886,14 @@ ar6000_data_tx(struct sk_buff *skb, struct net_device *dev)
|
|||
{
|
||||
#define AC_NOT_MAPPED 99
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
|
||||
A_UINT8 ac = AC_NOT_MAPPED;
|
||||
u8 ac = AC_NOT_MAPPED;
|
||||
HTC_ENDPOINT_ID eid = ENDPOINT_UNUSED;
|
||||
A_UINT32 mapNo = 0;
|
||||
int len;
|
||||
struct ar_cookie *cookie;
|
||||
bool checkAdHocPsMapping = false,bMoreData = false;
|
||||
HTC_TX_TAG htc_tag = AR6K_DATA_PKT_TAG;
|
||||
A_UINT8 dot11Hdr = processDot11Hdr;
|
||||
u8 dot11Hdr = processDot11Hdr;
|
||||
#ifdef CONFIG_PM
|
||||
if (ar->arWowState != WLAN_WOW_STATE_NONE) {
|
||||
A_NETBUF_FREE(skb);
|
||||
|
@ -2942,7 +2940,7 @@ ar6000_data_tx(struct sk_buff *skb, struct net_device *dev)
|
|||
* mcastq
|
||||
*/
|
||||
if (IEEE80211_IS_MULTICAST(datap->dstMac)) {
|
||||
A_UINT8 ctr=0;
|
||||
u8 ctr=0;
|
||||
bool qMcast=false;
|
||||
|
||||
|
||||
|
@ -3024,9 +3022,9 @@ ar6000_data_tx(struct sk_buff *skb, struct net_device *dev)
|
|||
|
||||
if (ar->arWmiEnabled) {
|
||||
#ifdef CONFIG_CHECKSUM_OFFLOAD
|
||||
A_UINT8 csumStart=0;
|
||||
A_UINT8 csumDest=0;
|
||||
A_UINT8 csum=skb->ip_summed;
|
||||
u8 csumStart=0;
|
||||
u8 csumDest=0;
|
||||
u8 csum=skb->ip_summed;
|
||||
if(csumOffload && (csum==CHECKSUM_PARTIAL)){
|
||||
csumStart = (skb->head + skb->csum_start - skb_network_header(skb) +
|
||||
sizeof(ATH_LLC_SNAP_HDR));
|
||||
|
@ -3527,10 +3525,10 @@ ar6000_tx_complete(void *Context, HTC_PACKET_QUEUE *pPacketQueue)
|
|||
}
|
||||
|
||||
sta_t *
|
||||
ieee80211_find_conn(AR_SOFTC_T *ar, A_UINT8 *node_addr)
|
||||
ieee80211_find_conn(AR_SOFTC_T *ar, u8 *node_addr)
|
||||
{
|
||||
sta_t *conn = NULL;
|
||||
A_UINT8 i, max_conn;
|
||||
u8 i, max_conn;
|
||||
|
||||
switch(ar->arNetworkType) {
|
||||
case AP_NETWORK:
|
||||
|
@ -3551,10 +3549,10 @@ ieee80211_find_conn(AR_SOFTC_T *ar, A_UINT8 *node_addr)
|
|||
return conn;
|
||||
}
|
||||
|
||||
sta_t *ieee80211_find_conn_for_aid(AR_SOFTC_T *ar, A_UINT8 aid)
|
||||
sta_t *ieee80211_find_conn_for_aid(AR_SOFTC_T *ar, u8 aid)
|
||||
{
|
||||
sta_t *conn = NULL;
|
||||
A_UINT8 ctr;
|
||||
u8 ctr;
|
||||
|
||||
for (ctr = 0; ctr < AP_MAX_NUM_STA; ctr++) {
|
||||
if (ar->sta_list[ctr].aid == aid) {
|
||||
|
@ -3575,7 +3573,7 @@ ar6000_rx(void *Context, HTC_PACKET *pPacket)
|
|||
AR_SOFTC_T *ar = (AR_SOFTC_T *)Context;
|
||||
struct sk_buff *skb = (struct sk_buff *)pPacket->pPktContext;
|
||||
int minHdrLen;
|
||||
A_UINT8 containsDot11Hdr = 0;
|
||||
u8 containsDot11Hdr = 0;
|
||||
int status = pPacket->Status;
|
||||
HTC_ENDPOINT_ID ept = pPacket->Endpoint;
|
||||
|
||||
|
@ -3631,7 +3629,7 @@ ar6000_rx(void *Context, HTC_PACKET *pPacket)
|
|||
} else {
|
||||
WMI_DATA_HDR *dhdr = (WMI_DATA_HDR *)A_NETBUF_DATA(skb);
|
||||
bool is_amsdu;
|
||||
A_UINT8 tid;
|
||||
u8 tid;
|
||||
bool is_acl_data_frame;
|
||||
is_acl_data_frame = WMI_DATA_HDR_GET_DATA_TYPE(dhdr) == WMI_DATA_HDR_DATA_TYPE_ACL;
|
||||
#ifdef CONFIG_PM
|
||||
|
@ -3668,7 +3666,7 @@ ar6000_rx(void *Context, HTC_PACKET *pPacket)
|
|||
A_NETBUF_FREE(skb);
|
||||
} else {
|
||||
A_UINT16 seq_no;
|
||||
A_UINT8 meta_type;
|
||||
u8 meta_type;
|
||||
|
||||
#if 0
|
||||
/* Access RSSI values here */
|
||||
|
@ -3678,7 +3676,7 @@ ar6000_rx(void *Context, HTC_PACKET *pPacket)
|
|||
/* Get the Power save state of the STA */
|
||||
if (ar->arNetworkType == AP_NETWORK) {
|
||||
sta_t *conn = NULL;
|
||||
A_UINT8 psState=0,prevPsState;
|
||||
u8 psState=0,prevPsState;
|
||||
ATH_MAC_HDR *datap=NULL;
|
||||
A_UINT16 offset;
|
||||
|
||||
|
@ -4162,7 +4160,7 @@ ar6000_get_iwstats(struct net_device * dev)
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_ready_event(void *devt, A_UINT8 *datap, A_UINT8 phyCap, A_UINT32 sw_ver, A_UINT32 abi_ver)
|
||||
ar6000_ready_event(void *devt, u8 *datap, u8 phyCap, A_UINT32 sw_ver, A_UINT32 abi_ver)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)devt;
|
||||
struct net_device *dev = ar->arNetDev;
|
||||
|
@ -4208,10 +4206,10 @@ ar6000_ready_event(void *devt, A_UINT8 *datap, A_UINT8 phyCap, A_UINT32 sw_ver,
|
|||
}
|
||||
|
||||
void
|
||||
add_new_sta(AR_SOFTC_T *ar, A_UINT8 *mac, A_UINT16 aid, A_UINT8 *wpaie,
|
||||
A_UINT8 ielen, A_UINT8 keymgmt, A_UINT8 ucipher, A_UINT8 auth)
|
||||
add_new_sta(AR_SOFTC_T *ar, u8 *mac, A_UINT16 aid, u8 *wpaie,
|
||||
u8 ielen, u8 keymgmt, u8 ucipher, u8 auth)
|
||||
{
|
||||
A_UINT8 free_slot=aid-1;
|
||||
u8 free_slot=aid-1;
|
||||
|
||||
A_MEMCPY(ar->sta_list[free_slot].mac, mac, ATH_MAC_LEN);
|
||||
A_MEMCPY(ar->sta_list[free_slot].wpa_ie, wpaie, ielen);
|
||||
|
@ -4224,11 +4222,11 @@ add_new_sta(AR_SOFTC_T *ar, A_UINT8 *mac, A_UINT16 aid, A_UINT8 *wpaie,
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, A_UINT8 *bssid,
|
||||
ar6000_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, u8 *bssid,
|
||||
A_UINT16 listenInterval, A_UINT16 beaconInterval,
|
||||
NETWORK_TYPE networkType, A_UINT8 beaconIeLen,
|
||||
A_UINT8 assocReqLen, A_UINT8 assocRespLen,
|
||||
A_UINT8 *assocInfo)
|
||||
NETWORK_TYPE networkType, u8 beaconIeLen,
|
||||
u8 assocReqLen, u8 assocRespLen,
|
||||
u8 *assocInfo)
|
||||
{
|
||||
union iwreq_data wrqu;
|
||||
int i, beacon_ie_pos, assoc_resp_ie_pos, assoc_req_ie_pos;
|
||||
|
@ -4237,7 +4235,7 @@ ar6000_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, A_UINT8 *bssid,
|
|||
static const char *beaconIetag = "BEACONIE=";
|
||||
char buf[WMI_CONTROL_MSG_MAX_LEN * 2 + strlen(tag1) + 1];
|
||||
char *pos;
|
||||
A_UINT8 key_op_ctrl;
|
||||
u8 key_op_ctrl;
|
||||
unsigned long flags;
|
||||
struct ieee80211req_key *ik;
|
||||
CRYPTO_TYPE keyType = NONE_CRYPT;
|
||||
|
@ -4273,7 +4271,7 @@ ar6000_connect_event(AR_SOFTC_T *ar, A_UINT16 channel, A_UINT8 *bssid,
|
|||
goto skip_key;
|
||||
}
|
||||
wmi_addKey_cmd(ar->arWmi, ik->ik_keyix, keyType, GROUP_USAGE,
|
||||
ik->ik_keylen, (A_UINT8 *)&ik->ik_keyrsc,
|
||||
ik->ik_keylen, (u8 *)&ik->ik_keyrsc,
|
||||
ik->ik_keydata, KEY_OP_INIT_VAL, ik->ik_macaddr,
|
||||
SYNC_BOTH_WMIFLAG);
|
||||
|
||||
|
@ -4517,7 +4515,7 @@ void ar6000_set_numdataendpts(AR_SOFTC_T *ar, A_UINT32 num)
|
|||
}
|
||||
|
||||
void
|
||||
sta_cleanup(AR_SOFTC_T *ar, A_UINT8 i)
|
||||
sta_cleanup(AR_SOFTC_T *ar, u8 i)
|
||||
{
|
||||
struct sk_buff *skb;
|
||||
|
||||
|
@ -4540,10 +4538,9 @@ sta_cleanup(AR_SOFTC_T *ar, A_UINT8 i)
|
|||
|
||||
}
|
||||
|
||||
A_UINT8
|
||||
remove_sta(AR_SOFTC_T *ar, A_UINT8 *mac, A_UINT16 reason)
|
||||
u8 remove_sta(AR_SOFTC_T *ar, u8 *mac, A_UINT16 reason)
|
||||
{
|
||||
A_UINT8 i, removed=0;
|
||||
u8 i, removed=0;
|
||||
|
||||
if(IS_MAC_NULL(mac)) {
|
||||
return removed;
|
||||
|
@ -4574,10 +4571,10 @@ remove_sta(AR_SOFTC_T *ar, A_UINT8 *mac, A_UINT16 reason)
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_disconnect_event(AR_SOFTC_T *ar, A_UINT8 reason, A_UINT8 *bssid,
|
||||
A_UINT8 assocRespLen, A_UINT8 *assocInfo, A_UINT16 protocolReasonStatus)
|
||||
ar6000_disconnect_event(AR_SOFTC_T *ar, u8 reason, u8 *bssid,
|
||||
u8 assocRespLen, u8 *assocInfo, A_UINT16 protocolReasonStatus)
|
||||
{
|
||||
A_UINT8 i;
|
||||
u8 i;
|
||||
unsigned long flags;
|
||||
union iwreq_data wrqu;
|
||||
|
||||
|
@ -4761,7 +4758,7 @@ ar6000_hci_event_rcv_evt(struct ar6_softc *ar, WMI_HCI_EVENT *cmd)
|
|||
{
|
||||
void *osbuf = NULL;
|
||||
A_INT8 i;
|
||||
A_UINT8 size, *buf;
|
||||
u8 size, *buf;
|
||||
int ret = A_OK;
|
||||
|
||||
size = cmd->evt_buf_sz + 4;
|
||||
|
@ -4773,7 +4770,7 @@ ar6000_hci_event_rcv_evt(struct ar6_softc *ar, WMI_HCI_EVENT *cmd)
|
|||
}
|
||||
|
||||
A_NETBUF_PUT(osbuf, size);
|
||||
buf = (A_UINT8 *)A_NETBUF_DATA(osbuf);
|
||||
buf = (u8 *)A_NETBUF_DATA(osbuf);
|
||||
/* First 2-bytes carry HCI event/ACL data type
|
||||
* the next 2 are free
|
||||
*/
|
||||
|
@ -4850,7 +4847,7 @@ ar6000_neighborReport_event(AR_SOFTC_T *ar, int numAps, WMI_NEIGHBOR_INFO *info)
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_tkip_micerr_event(AR_SOFTC_T *ar, A_UINT8 keyid, bool ismcast)
|
||||
ar6000_tkip_micerr_event(AR_SOFTC_T *ar, u8 keyid, bool ismcast)
|
||||
{
|
||||
static const char *tag = "MLME-MICHAELMICFAILURE.indication";
|
||||
char buf[128];
|
||||
|
@ -4910,9 +4907,9 @@ ar6000_scanComplete_event(AR_SOFTC_T *ar, int status)
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_targetStats_event(AR_SOFTC_T *ar, A_UINT8 *ptr, A_UINT32 len)
|
||||
ar6000_targetStats_event(AR_SOFTC_T *ar, u8 *ptr, A_UINT32 len)
|
||||
{
|
||||
A_UINT8 ac;
|
||||
u8 ac;
|
||||
|
||||
if(ar->arNetworkType == AP_NETWORK) {
|
||||
WMI_AP_MODE_STAT *p = (WMI_AP_MODE_STAT *)ptr;
|
||||
|
@ -5051,7 +5048,7 @@ ar6000_rssiThreshold_event(AR_SOFTC_T *ar, WMI_RSSI_THRESHOLD_VAL newThreshold,
|
|||
A_PRINTF("rssi Threshold range = %d tag = %d rssi = %d\n", newThreshold,
|
||||
userRssiThold.tag, userRssiThold.rssi);
|
||||
|
||||
ar6000_send_event_to_app(ar, WMI_RSSI_THRESHOLD_EVENTID,(A_UINT8 *)&userRssiThold, sizeof(USER_RSSI_THOLD));
|
||||
ar6000_send_event_to_app(ar, WMI_RSSI_THRESHOLD_EVENTID,(u8 *)&userRssiThold, sizeof(USER_RSSI_THOLD));
|
||||
}
|
||||
|
||||
|
||||
|
@ -5061,7 +5058,7 @@ ar6000_hbChallengeResp_event(AR_SOFTC_T *ar, A_UINT32 cookie, A_UINT32 source)
|
|||
if (source == APP_HB_CHALLENGE) {
|
||||
/* Report it to the app in case it wants a positive acknowledgement */
|
||||
ar6000_send_event_to_app(ar, WMIX_HB_CHALLENGE_RESP_EVENTID,
|
||||
(A_UINT8 *)&cookie, sizeof(cookie));
|
||||
(u8 *)&cookie, sizeof(cookie));
|
||||
} else {
|
||||
/* This would ignore the replys that come in after their due time */
|
||||
if (cookie == ar->arHBChallengeResp.seqNum) {
|
||||
|
@ -5107,8 +5104,8 @@ ar6000_reportError_event(AR_SOFTC_T *ar, WMI_TARGET_ERROR_VAL errorVal)
|
|||
|
||||
|
||||
void
|
||||
ar6000_cac_event(AR_SOFTC_T *ar, A_UINT8 ac, A_UINT8 cacIndication,
|
||||
A_UINT8 statusCode, A_UINT8 *tspecSuggestion)
|
||||
ar6000_cac_event(AR_SOFTC_T *ar, u8 ac, u8 cacIndication,
|
||||
u8 statusCode, u8 *tspecSuggestion)
|
||||
{
|
||||
WMM_TSPEC_IE *tspecIe;
|
||||
|
||||
|
@ -5146,7 +5143,7 @@ ar6000_channel_change_event(AR_SOFTC_T *ar, A_UINT16 oldChannel,
|
|||
void
|
||||
ar6000_roam_tbl_event(AR_SOFTC_T *ar, WMI_TARGET_ROAM_TBL *pTbl)
|
||||
{
|
||||
A_UINT8 i;
|
||||
u8 i;
|
||||
|
||||
A_PRINTF("ROAM TABLE NO OF ENTRIES is %d ROAM MODE is %d\n",
|
||||
pTbl->numEntries, pTbl->roamMode);
|
||||
|
@ -5169,9 +5166,9 @@ ar6000_roam_tbl_event(AR_SOFTC_T *ar, WMI_TARGET_ROAM_TBL *pTbl)
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_wow_list_event(struct ar6_softc *ar, A_UINT8 num_filters, WMI_GET_WOW_LIST_REPLY *wow_reply)
|
||||
ar6000_wow_list_event(struct ar6_softc *ar, u8 num_filters, WMI_GET_WOW_LIST_REPLY *wow_reply)
|
||||
{
|
||||
A_UINT8 i,j;
|
||||
u8 i,j;
|
||||
|
||||
/*Each event now contains exactly one filter, see bug 26613*/
|
||||
A_PRINTF("WOW pattern %d of %d patterns\n", wow_reply->this_filter_num, wow_reply->num_filters);
|
||||
|
@ -5235,7 +5232,7 @@ ar6000_roam_data_event(AR_SOFTC_T *ar, WMI_TARGET_ROAM_DATA *p)
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_bssInfo_event_rx(AR_SOFTC_T *ar, A_UINT8 *datap, int len)
|
||||
ar6000_bssInfo_event_rx(AR_SOFTC_T *ar, u8 *datap, int len)
|
||||
{
|
||||
struct sk_buff *skb;
|
||||
WMI_BSS_INFO_HDR *bih = (WMI_BSS_INFO_HDR *)datap;
|
||||
|
@ -5306,7 +5303,7 @@ ar6000_control_tx(void *devt, void *osbuf, HTC_ENDPOINT_ID eid)
|
|||
if(logWmiRawMsgs) {
|
||||
A_PRINTF("WMI cmd send, msgNo %d :", wmiSendCmdNum);
|
||||
for(i = 0; i < a_netbuf_to_len(osbuf); i++)
|
||||
A_PRINTF("%x ", ((A_UINT8 *)a_netbuf_to_data(osbuf))[i]);
|
||||
A_PRINTF("%x ", ((u8 *)a_netbuf_to_data(osbuf))[i]);
|
||||
A_PRINTF("\n");
|
||||
}
|
||||
|
||||
|
@ -5347,7 +5344,7 @@ ar6000_control_tx(void *devt, void *osbuf, HTC_ENDPOINT_ID eid)
|
|||
}
|
||||
|
||||
/* indicate tx activity or inactivity on a WMI stream */
|
||||
void ar6000_indicate_tx_activity(void *devt, A_UINT8 TrafficClass, bool Active)
|
||||
void ar6000_indicate_tx_activity(void *devt, u8 TrafficClass, bool Active)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)devt;
|
||||
HTC_ENDPOINT_ID eid ;
|
||||
|
@ -5407,7 +5404,7 @@ void ar6000_indicate_tx_activity(void *devt, A_UINT8 TrafficClass, bool Active)
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_btcoex_config_event(struct ar6_softc *ar, A_UINT8 *ptr, A_UINT32 len)
|
||||
ar6000_btcoex_config_event(struct ar6_softc *ar, u8 *ptr, A_UINT32 len)
|
||||
{
|
||||
|
||||
WMI_BTCOEX_CONFIG_EVENT *pBtcoexConfig = (WMI_BTCOEX_CONFIG_EVENT *)ptr;
|
||||
|
@ -5444,7 +5441,7 @@ ar6000_btcoex_config_event(struct ar6_softc *ar, A_UINT8 *ptr, A_UINT32 len)
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_btcoex_stats_event(struct ar6_softc *ar, A_UINT8 *ptr, A_UINT32 len)
|
||||
ar6000_btcoex_stats_event(struct ar6_softc *ar, u8 *ptr, A_UINT32 len)
|
||||
{
|
||||
WMI_BTCOEX_STATS_EVENT *pBtcoexStats = (WMI_BTCOEX_STATS_EVENT *)ptr;
|
||||
|
||||
|
@ -5523,7 +5520,7 @@ ar6000_alloc_cookie(AR_SOFTC_T *ar)
|
|||
*/
|
||||
#define EVENT_ID_LEN 2
|
||||
void ar6000_send_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId,
|
||||
A_UINT8 *datap, int len)
|
||||
u8 *datap, int len)
|
||||
{
|
||||
|
||||
#if (WIRELESS_EXT >= 15)
|
||||
|
@ -5568,7 +5565,7 @@ void ar6000_send_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId,
|
|||
* includes the event ID and event content.
|
||||
*/
|
||||
void ar6000_send_generic_event_to_app(AR_SOFTC_T *ar, A_UINT16 eventId,
|
||||
A_UINT8 *datap, int len)
|
||||
u8 *datap, int len)
|
||||
{
|
||||
|
||||
#if (WIRELESS_EXT >= 18)
|
||||
|
@ -5616,7 +5613,7 @@ ar6000_tx_retry_err_event(void *devt)
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_snrThresholdEvent_rx(void *devt, WMI_SNR_THRESHOLD_VAL newThreshold, A_UINT8 snr)
|
||||
ar6000_snrThresholdEvent_rx(void *devt, WMI_SNR_THRESHOLD_VAL newThreshold, u8 snr)
|
||||
{
|
||||
WMI_SNR_THRESHOLD_EVENT event;
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)devt;
|
||||
|
@ -5624,12 +5621,12 @@ ar6000_snrThresholdEvent_rx(void *devt, WMI_SNR_THRESHOLD_VAL newThreshold, A_UI
|
|||
event.range = newThreshold;
|
||||
event.snr = snr;
|
||||
|
||||
ar6000_send_event_to_app(ar, WMI_SNR_THRESHOLD_EVENTID, (A_UINT8 *)&event,
|
||||
ar6000_send_event_to_app(ar, WMI_SNR_THRESHOLD_EVENTID, (u8 *)&event,
|
||||
sizeof(WMI_SNR_THRESHOLD_EVENT));
|
||||
}
|
||||
|
||||
void
|
||||
ar6000_lqThresholdEvent_rx(void *devt, WMI_LQ_THRESHOLD_VAL newThreshold, A_UINT8 lq)
|
||||
ar6000_lqThresholdEvent_rx(void *devt, WMI_LQ_THRESHOLD_VAL newThreshold, u8 lq)
|
||||
{
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("lq threshold range %d, lq %d\n", newThreshold, lq));
|
||||
}
|
||||
|
@ -5674,7 +5671,7 @@ ar6000_get_driver_cfg(struct net_device *dev,
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_keepalive_rx(void *devt, A_UINT8 configured)
|
||||
ar6000_keepalive_rx(void *devt, u8 configured)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)devt;
|
||||
|
||||
|
@ -5683,10 +5680,10 @@ ar6000_keepalive_rx(void *devt, A_UINT8 configured)
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_pmkid_list_event(void *devt, A_UINT8 numPMKID, WMI_PMKID *pmkidList,
|
||||
A_UINT8 *bssidList)
|
||||
ar6000_pmkid_list_event(void *devt, u8 numPMKID, WMI_PMKID *pmkidList,
|
||||
u8 *bssidList)
|
||||
{
|
||||
A_UINT8 i, j;
|
||||
u8 i, j;
|
||||
|
||||
A_PRINTF("Number of Cached PMKIDs is %d\n", numPMKID);
|
||||
|
||||
|
@ -5700,12 +5697,12 @@ ar6000_pmkid_list_event(void *devt, A_UINT8 numPMKID, WMI_PMKID *pmkidList,
|
|||
for (j = 0; j < WMI_PMKID_LEN; j++) {
|
||||
A_PRINTF("%2.2x", pmkidList->pmkid[j]);
|
||||
}
|
||||
pmkidList = (WMI_PMKID *)((A_UINT8 *)pmkidList + ATH_MAC_LEN +
|
||||
pmkidList = (WMI_PMKID *)((u8 *)pmkidList + ATH_MAC_LEN +
|
||||
WMI_PMKID_LEN);
|
||||
}
|
||||
}
|
||||
|
||||
void ar6000_pspoll_event(AR_SOFTC_T *ar,A_UINT8 aid)
|
||||
void ar6000_pspoll_event(AR_SOFTC_T *ar,u8 aid)
|
||||
{
|
||||
sta_t *conn=NULL;
|
||||
bool isPsqEmpty = false;
|
||||
|
@ -5793,7 +5790,7 @@ void ar6000_dtimexpiry_event(AR_SOFTC_T *ar)
|
|||
void
|
||||
read_rssi_compensation_param(AR_SOFTC_T *ar)
|
||||
{
|
||||
A_UINT8 *cust_data_ptr;
|
||||
u8 *cust_data_ptr;
|
||||
|
||||
//#define RSSICOMPENSATION_PRINT
|
||||
|
||||
|
@ -5801,7 +5798,7 @@ read_rssi_compensation_param(AR_SOFTC_T *ar)
|
|||
A_INT16 i;
|
||||
cust_data_ptr = ar6000_get_cust_data_buffer(ar->arTargetType);
|
||||
for (i=0; i<16; i++) {
|
||||
A_PRINTF("cust_data_%d = %x \n", i, *(A_UINT8 *)cust_data_ptr);
|
||||
A_PRINTF("cust_data_%d = %x \n", i, *(u8 *)cust_data_ptr);
|
||||
cust_data_ptr += 1;
|
||||
}
|
||||
#endif
|
||||
|
@ -5938,7 +5935,7 @@ rssi_compensation_reverse_calc(AR_SOFTC_T *ar, A_INT16 rssi, bool Above)
|
|||
}
|
||||
|
||||
#ifdef WAPI_ENABLE
|
||||
void ap_wapi_rekey_event(AR_SOFTC_T *ar, A_UINT8 type, A_UINT8 *mac)
|
||||
void ap_wapi_rekey_event(AR_SOFTC_T *ar, u8 type, u8 *mac)
|
||||
{
|
||||
union iwreq_data wrqu;
|
||||
char buf[20];
|
||||
|
@ -5960,7 +5957,7 @@ void ap_wapi_rekey_event(AR_SOFTC_T *ar, A_UINT8 type, A_UINT8 *mac)
|
|||
#ifdef USER_KEYS
|
||||
static int
|
||||
|
||||
ar6000_reinstall_keys(AR_SOFTC_T *ar, A_UINT8 key_op_ctrl)
|
||||
ar6000_reinstall_keys(AR_SOFTC_T *ar, u8 key_op_ctrl)
|
||||
{
|
||||
int status = A_OK;
|
||||
struct ieee80211req_key *uik = &ar->user_saved_keys.ucast_ik;
|
||||
|
@ -5975,7 +5972,7 @@ ar6000_reinstall_keys(AR_SOFTC_T *ar, A_UINT8 key_op_ctrl)
|
|||
if (uik->ik_keylen) {
|
||||
status = wmi_addKey_cmd(ar->arWmi, uik->ik_keyix,
|
||||
ar->user_saved_keys.keyType, PAIRWISE_USAGE,
|
||||
uik->ik_keylen, (A_UINT8 *)&uik->ik_keyrsc,
|
||||
uik->ik_keylen, (u8 *)&uik->ik_keyrsc,
|
||||
uik->ik_keydata, key_op_ctrl, uik->ik_macaddr, SYNC_BEFORE_WMIFLAG);
|
||||
}
|
||||
|
||||
|
@ -5991,7 +5988,7 @@ ar6000_reinstall_keys(AR_SOFTC_T *ar, A_UINT8 key_op_ctrl)
|
|||
if (bik->ik_keylen) {
|
||||
status = wmi_addKey_cmd(ar->arWmi, bik->ik_keyix,
|
||||
ar->user_saved_keys.keyType, GROUP_USAGE,
|
||||
bik->ik_keylen, (A_UINT8 *)&bik->ik_keyrsc,
|
||||
bik->ik_keylen, (u8 *)&bik->ik_keyrsc,
|
||||
bik->ik_keydata, key_op_ctrl, bik->ik_macaddr, NO_SYNC_WMIFLAG);
|
||||
}
|
||||
} else {
|
||||
|
@ -6190,7 +6187,7 @@ ar6000_ap_mode_get_wpa_ie(struct ar6_softc *ar, struct ieee80211req_wpaie *wpaie
|
|||
}
|
||||
|
||||
int
|
||||
is_iwioctl_allowed(A_UINT8 mode, A_UINT16 cmd)
|
||||
is_iwioctl_allowed(u8 mode, A_UINT16 cmd)
|
||||
{
|
||||
if(cmd >= SIOCSIWCOMMIT && cmd <= SIOCGIWPOWER) {
|
||||
cmd -= SIOCSIWCOMMIT;
|
||||
|
@ -6207,7 +6204,7 @@ is_iwioctl_allowed(A_UINT8 mode, A_UINT16 cmd)
|
|||
}
|
||||
|
||||
int
|
||||
is_xioctl_allowed(A_UINT8 mode, int cmd)
|
||||
is_xioctl_allowed(u8 mode, int cmd)
|
||||
{
|
||||
if(sizeof(xioctl_filter)-1 < cmd) {
|
||||
A_PRINTF("Filter for this cmd=%d not defined\n",cmd);
|
||||
|
@ -6236,7 +6233,7 @@ ap_set_wapi_key(struct ar6_softc *ar, void *ikey)
|
|||
ik->ik_keylen);
|
||||
|
||||
status = wmi_addKey_cmd(ar->arWmi, ik->ik_keyix, WAPI_CRYPT, keyUsage,
|
||||
ik->ik_keylen, (A_UINT8 *)&ik->ik_keyrsc,
|
||||
ik->ik_keylen, (u8 *)&ik->ik_keyrsc,
|
||||
ik->ik_keydata, KEY_OP_INIT_VAL, ik->ik_macaddr,
|
||||
SYNC_BOTH_WMIFLAG);
|
||||
|
||||
|
@ -6249,10 +6246,10 @@ ap_set_wapi_key(struct ar6_softc *ar, void *ikey)
|
|||
|
||||
void ar6000_peer_event(
|
||||
void *context,
|
||||
A_UINT8 eventCode,
|
||||
A_UINT8 *macAddr)
|
||||
u8 eventCode,
|
||||
u8 *macAddr)
|
||||
{
|
||||
A_UINT8 pos;
|
||||
u8 pos;
|
||||
|
||||
for (pos=0;pos<6;pos++)
|
||||
printk("%02x: ",*(macAddr+pos));
|
||||
|
|
|
@ -121,7 +121,7 @@ static void ar6000_wow_suspend(AR_SOFTC_T *ar)
|
|||
struct in_ifaddr **ifap = NULL;
|
||||
struct in_ifaddr *ifa = NULL;
|
||||
struct in_device *in_dev;
|
||||
A_UINT8 macMask[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
|
||||
u8 macMask[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
|
||||
int status;
|
||||
WMI_ADD_WOW_PATTERN_CMD addWowCmd = { .filter = { 0 } };
|
||||
WMI_DEL_WOW_PATTERN_CMD delWowCmd;
|
||||
|
@ -642,7 +642,7 @@ ar6000_update_wlan_pwr_state(struct ar6_softc *ar, AR6000_WLAN_STATE state, bool
|
|||
}
|
||||
if (pSleepEvent) {
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_PM, ("SENT WLAN Sleep Event %d\n", wmiSleepEvent.sleepState));
|
||||
ar6000_send_event_to_app(ar, WMI_REPORT_SLEEP_STATE_EVENTID, (A_UINT8*)pSleepEvent,
|
||||
ar6000_send_event_to_app(ar, WMI_REPORT_SLEEP_STATE_EVENTID, (u8 *)pSleepEvent,
|
||||
sizeof(WMI_REPORT_SLEEP_STATE_EVENTID));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -116,16 +116,16 @@ static int ar6000_connect_raw_service(AR_SOFTC_T *ar,
|
|||
{
|
||||
int status;
|
||||
HTC_SERVICE_CONNECT_RESP response;
|
||||
A_UINT8 streamNo;
|
||||
u8 streamNo;
|
||||
HTC_SERVICE_CONNECT_REQ connect;
|
||||
|
||||
do {
|
||||
|
||||
A_MEMZERO(&connect,sizeof(connect));
|
||||
/* pass the stream ID as meta data to the RAW streams service */
|
||||
streamNo = (A_UINT8)StreamID;
|
||||
streamNo = (u8)StreamID;
|
||||
connect.pMetaData = &streamNo;
|
||||
connect.MetaDataLength = sizeof(A_UINT8);
|
||||
connect.MetaDataLength = sizeof(u8);
|
||||
/* these fields are the same for all endpoints */
|
||||
connect.EpCallbacks.pContext = ar;
|
||||
connect.EpCallbacks.EpTxComplete = ar6000_htc_raw_write_cb;
|
||||
|
|
|
@ -356,7 +356,7 @@ bool ar6k_pal_recv_pkt(void *pHciPal, void *osbuf)
|
|||
struct sk_buff *skb = (struct sk_buff *)osbuf;
|
||||
ar6k_hci_pal_info_t *pHciPalInfo;
|
||||
bool success = false;
|
||||
A_UINT8 btType = 0;
|
||||
u8 btType = 0;
|
||||
pHciPalInfo = (ar6k_hci_pal_info_t *)pHciPal;
|
||||
|
||||
do {
|
||||
|
|
|
@ -185,9 +185,9 @@ ar6k_set_auth_type(AR_SOFTC_T *ar, enum nl80211_auth_type auth_type)
|
|||
static int
|
||||
ar6k_set_cipher(AR_SOFTC_T *ar, A_UINT32 cipher, bool ucast)
|
||||
{
|
||||
A_UINT8 *ar_cipher = ucast ? &ar->arPairwiseCrypto :
|
||||
u8 *ar_cipher = ucast ? &ar->arPairwiseCrypto :
|
||||
&ar->arGroupCrypto;
|
||||
A_UINT8 *ar_cipher_len = ucast ? &ar->arPairwiseCryptoLen :
|
||||
u8 *ar_cipher_len = ucast ? &ar->arPairwiseCryptoLen :
|
||||
&ar->arGroupCryptoLen;
|
||||
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_INFO,
|
||||
|
@ -429,10 +429,10 @@ ar6k_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
|
|||
|
||||
void
|
||||
ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, A_UINT16 channel,
|
||||
A_UINT8 *bssid, A_UINT16 listenInterval,
|
||||
u8 *bssid, A_UINT16 listenInterval,
|
||||
A_UINT16 beaconInterval,NETWORK_TYPE networkType,
|
||||
A_UINT8 beaconIeLen, A_UINT8 assocReqLen,
|
||||
A_UINT8 assocRespLen, A_UINT8 *assocInfo)
|
||||
u8 beaconIeLen, u8 assocReqLen,
|
||||
u8 assocRespLen, u8 *assocInfo)
|
||||
{
|
||||
A_UINT16 size = 0;
|
||||
A_UINT16 capability = 0;
|
||||
|
@ -440,19 +440,19 @@ ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, A_UINT16 channel,
|
|||
struct ieee80211_mgmt *mgmt = NULL;
|
||||
struct ieee80211_channel *ibss_channel = NULL;
|
||||
s32 signal = 50 * 100;
|
||||
A_UINT8 ie_buf_len = 0;
|
||||
u8 ie_buf_len = 0;
|
||||
unsigned char ie_buf[256];
|
||||
unsigned char *ptr_ie_buf = ie_buf;
|
||||
unsigned char *ieeemgmtbuf = NULL;
|
||||
A_UINT8 source_mac[ATH_MAC_LEN];
|
||||
u8 source_mac[ATH_MAC_LEN];
|
||||
|
||||
A_UINT8 assocReqIeOffset = sizeof(A_UINT16) + /* capinfo*/
|
||||
u8 assocReqIeOffset = sizeof(A_UINT16) + /* capinfo*/
|
||||
sizeof(A_UINT16); /* listen interval */
|
||||
A_UINT8 assocRespIeOffset = sizeof(A_UINT16) + /* capinfo*/
|
||||
u8 assocRespIeOffset = sizeof(A_UINT16) + /* capinfo*/
|
||||
sizeof(A_UINT16) + /* status Code */
|
||||
sizeof(A_UINT16); /* associd */
|
||||
A_UINT8 *assocReqIe = assocInfo + beaconIeLen + assocReqIeOffset;
|
||||
A_UINT8 *assocRespIe = assocInfo + beaconIeLen + assocReqLen + assocRespIeOffset;
|
||||
u8 *assocReqIe = assocInfo + beaconIeLen + assocReqIeOffset;
|
||||
u8 *assocRespIe = assocInfo + beaconIeLen + assocReqLen + assocRespIeOffset;
|
||||
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_INFO, ("%s: \n", __func__));
|
||||
|
||||
|
@ -618,9 +618,9 @@ ar6k_cfg80211_disconnect(struct wiphy *wiphy, struct net_device *dev,
|
|||
}
|
||||
|
||||
void
|
||||
ar6k_cfg80211_disconnect_event(AR_SOFTC_T *ar, A_UINT8 reason,
|
||||
A_UINT8 *bssid, A_UINT8 assocRespLen,
|
||||
A_UINT8 *assocInfo, A_UINT16 protocolReasonStatus)
|
||||
ar6k_cfg80211_disconnect_event(AR_SOFTC_T *ar, u8 reason,
|
||||
u8 *bssid, u8 assocRespLen,
|
||||
u8 *assocInfo, A_UINT16 protocolReasonStatus)
|
||||
{
|
||||
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_INFO, ("%s: reason=%u\n", __func__, reason));
|
||||
|
@ -751,7 +751,7 @@ ar6k_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
if(request->n_ssids &&
|
||||
request->ssids[0].ssid_len) {
|
||||
A_UINT8 i;
|
||||
u8 i;
|
||||
|
||||
if(request->n_ssids > MAX_PROBED_SSID_INDEX) {
|
||||
request->n_ssids = MAX_PROBED_SSID_INDEX;
|
||||
|
@ -795,7 +795,7 @@ ar6k_cfg80211_scanComplete_event(AR_SOFTC_T *ar, int status)
|
|||
|
||||
if(ar->scan_request->n_ssids &&
|
||||
ar->scan_request->ssids[0].ssid_len) {
|
||||
A_UINT8 i;
|
||||
u8 i;
|
||||
|
||||
for (i = 0; i < ar->scan_request->n_ssids; i++) {
|
||||
wmi_probedSsid_cmd(ar->arWmi, i, DISABLE_SSID_FLAG,
|
||||
|
@ -808,13 +808,13 @@ ar6k_cfg80211_scanComplete_event(AR_SOFTC_T *ar, int status)
|
|||
|
||||
static int
|
||||
ar6k_cfg80211_add_key(struct wiphy *wiphy, struct net_device *ndev,
|
||||
A_UINT8 key_index, bool pairwise, const A_UINT8 *mac_addr,
|
||||
u8 key_index, bool pairwise, const u8 *mac_addr,
|
||||
struct key_params *params)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(ndev);
|
||||
struct ar_key *key = NULL;
|
||||
A_UINT8 key_usage;
|
||||
A_UINT8 key_type;
|
||||
u8 key_usage;
|
||||
u8 key_type;
|
||||
int status = 0;
|
||||
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_INFO, ("%s:\n", __func__));
|
||||
|
@ -889,7 +889,7 @@ ar6k_cfg80211_add_key(struct wiphy *wiphy, struct net_device *ndev,
|
|||
ar->arDefTxKeyIndex = key_index;
|
||||
status = wmi_addKey_cmd(ar->arWmi, ar->arDefTxKeyIndex, key_type, key_usage,
|
||||
key->key_len, key->seq, key->key, KEY_OP_INIT_VAL,
|
||||
(A_UINT8*)mac_addr, SYNC_BOTH_WMIFLAG);
|
||||
(u8 *)mac_addr, SYNC_BOTH_WMIFLAG);
|
||||
|
||||
|
||||
if(status != A_OK) {
|
||||
|
@ -901,7 +901,7 @@ ar6k_cfg80211_add_key(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
static int
|
||||
ar6k_cfg80211_del_key(struct wiphy *wiphy, struct net_device *ndev,
|
||||
A_UINT8 key_index, bool pairwise, const A_UINT8 *mac_addr)
|
||||
u8 key_index, bool pairwise, const u8 *mac_addr)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(ndev);
|
||||
|
||||
|
@ -936,7 +936,7 @@ ar6k_cfg80211_del_key(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
static int
|
||||
ar6k_cfg80211_get_key(struct wiphy *wiphy, struct net_device *ndev,
|
||||
A_UINT8 key_index, bool pairwise, const A_UINT8 *mac_addr,
|
||||
u8 key_index, bool pairwise, const u8 *mac_addr,
|
||||
void *cookie,
|
||||
void (*callback)(void *cookie, struct key_params*))
|
||||
{
|
||||
|
@ -978,7 +978,7 @@ ar6k_cfg80211_get_key(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
static int
|
||||
ar6k_cfg80211_set_default_key(struct wiphy *wiphy, struct net_device *ndev,
|
||||
A_UINT8 key_index, bool unicast, bool multicast)
|
||||
u8 key_index, bool unicast, bool multicast)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(ndev);
|
||||
struct ar_key *key = NULL;
|
||||
|
@ -1024,7 +1024,7 @@ ar6k_cfg80211_set_default_key(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
static int
|
||||
ar6k_cfg80211_set_default_mgmt_key(struct wiphy *wiphy, struct net_device *ndev,
|
||||
A_UINT8 key_index)
|
||||
u8 key_index)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(ndev);
|
||||
|
||||
|
@ -1045,7 +1045,7 @@ ar6k_cfg80211_set_default_mgmt_key(struct wiphy *wiphy, struct net_device *ndev,
|
|||
}
|
||||
|
||||
void
|
||||
ar6k_cfg80211_tkip_micerr_event(AR_SOFTC_T *ar, A_UINT8 keyid, bool ismcast)
|
||||
ar6k_cfg80211_tkip_micerr_event(AR_SOFTC_T *ar, u8 keyid, bool ismcast)
|
||||
{
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_INFO,
|
||||
("%s: keyid %d, ismcast %d\n", __func__, keyid, ismcast));
|
||||
|
@ -1084,7 +1084,7 @@ ar6k_cfg80211_set_wiphy_params(struct wiphy *wiphy, A_UINT32 changed)
|
|||
|
||||
static int
|
||||
ar6k_cfg80211_set_bitrate_mask(struct wiphy *wiphy, struct net_device *dev,
|
||||
const A_UINT8 *peer,
|
||||
const u8 *peer,
|
||||
const struct cfg80211_bitrate_mask *mask)
|
||||
{
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("Setting rates: Not supported\n"));
|
||||
|
@ -1096,7 +1096,7 @@ static int
|
|||
ar6k_cfg80211_set_txpower(struct wiphy *wiphy, enum nl80211_tx_power_setting type, int dbm)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)wiphy_priv(wiphy);
|
||||
A_UINT8 ar_dbm;
|
||||
u8 ar_dbm;
|
||||
|
||||
AR_DEBUG_PRINTF(ATH_DEBUG_INFO, ("%s: type 0x%x, dbm %d\n", __func__, type, dbm));
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ static HIF_DEVICE *p_bmi_device;
|
|||
|
||||
/* soft mac */
|
||||
static int
|
||||
wmic_ether_aton(const char *orig, A_UINT8 *eth)
|
||||
wmic_ether_aton(const char *orig, u8 *eth)
|
||||
{
|
||||
const char *bufp;
|
||||
int i;
|
||||
|
@ -148,7 +148,7 @@ BMI_read_mem(A_UINT32 address, A_UINT32 *pvalue)
|
|||
|
||||
/* Write a word to a Target memory. */
|
||||
inline void
|
||||
BMI_write_mem(A_UINT32 address, A_UINT8 *p_data, A_UINT32 sz)
|
||||
BMI_write_mem(A_UINT32 address, u8 *p_data, A_UINT32 sz)
|
||||
{
|
||||
BMIWriteMemory(p_bmi_device, address, (A_UCHAR*)(p_data), sz);
|
||||
}
|
||||
|
@ -289,7 +289,7 @@ request_in_progress(void)
|
|||
static void eeprom_type_detect(void)
|
||||
{
|
||||
A_UINT32 regval;
|
||||
A_UINT8 i = 0;
|
||||
u8 i = 0;
|
||||
|
||||
request_8byte_read(0x100);
|
||||
/* Wait for DONE_INT in SI_CS */
|
||||
|
@ -558,13 +558,13 @@ void eeprom_ar6000_transfer(HIF_DEVICE *device, char *fake_file, char *p_mac)
|
|||
/* soft mac */
|
||||
|
||||
/* Write EEPROM data to Target RAM */
|
||||
BMI_write_mem(board_data_addr, ((A_UINT8 *)eeprom_data), EEPROM_SZ);
|
||||
BMI_write_mem(board_data_addr, ((u8 *)eeprom_data), EEPROM_SZ);
|
||||
|
||||
/* Record the fact that Board Data IS initialized */
|
||||
{
|
||||
A_UINT32 one = 1;
|
||||
BMI_write_mem(HOST_INTEREST_ITEM_ADDRESS(hi_board_data_initialized),
|
||||
(A_UINT8 *)&one, sizeof(A_UINT32));
|
||||
(u8 *)&one, sizeof(A_UINT32));
|
||||
}
|
||||
|
||||
disable_SI();
|
||||
|
|
|
@ -80,7 +80,7 @@ typedef struct {
|
|||
bool HciNormalMode; /* Actual HCI mode enabled (non-TEST)*/
|
||||
bool HciRegistered; /* HCI device registered with stack */
|
||||
HTC_PACKET_QUEUE HTCPacketStructHead;
|
||||
A_UINT8 *pHTCStructAlloc;
|
||||
u8 *pHTCStructAlloc;
|
||||
spinlock_t BridgeLock;
|
||||
#ifdef EXPORT_HCI_BRIDGE_INTERFACE
|
||||
HCI_TRANSPORT_MISC_HANDLES HCITransHdl;
|
||||
|
@ -509,7 +509,7 @@ int ar6000_setup_hci(AR_SOFTC_T *ar)
|
|||
AR_DEBUG_PRINTF(ATH_DEBUG_HCI_BRIDGE, ("HCI Bridge: running in test mode... \n"));
|
||||
}
|
||||
|
||||
pHcidevInfo->pHTCStructAlloc = (A_UINT8 *)A_MALLOC((sizeof(HTC_PACKET)) * NUM_HTC_PACKET_STRUCTS);
|
||||
pHcidevInfo->pHTCStructAlloc = (u8 *)A_MALLOC((sizeof(HTC_PACKET)) * NUM_HTC_PACKET_STRUCTS);
|
||||
|
||||
if (NULL == pHcidevInfo->pHTCStructAlloc) {
|
||||
status = A_NO_MEMORY;
|
||||
|
@ -963,7 +963,7 @@ static bool bt_indicate_recv(AR6K_HCI_BRIDGE_INFO *pHcidevInfo,
|
|||
HCI_TRANSPORT_PACKET_TYPE Type,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
A_UINT8 btType;
|
||||
u8 btType;
|
||||
int len;
|
||||
bool success = false;
|
||||
BT_HCI_EVENT_HEADER *pEvent;
|
||||
|
|
|
@ -380,26 +380,26 @@ enum {
|
|||
#endif /* CONFIG_HOST_TCMD_SUPPORT */
|
||||
|
||||
struct ar_wep_key {
|
||||
A_UINT8 arKeyIndex;
|
||||
A_UINT8 arKeyLen;
|
||||
A_UINT8 arKey[64];
|
||||
u8 arKeyIndex;
|
||||
u8 arKeyLen;
|
||||
u8 arKey[64];
|
||||
} ;
|
||||
|
||||
#ifdef ATH6K_CONFIG_CFG80211
|
||||
struct ar_key {
|
||||
A_UINT8 key[WLAN_MAX_KEY_LEN];
|
||||
A_UINT8 key_len;
|
||||
A_UINT8 seq[IW_ENCODE_SEQ_MAX_SIZE];
|
||||
A_UINT8 seq_len;
|
||||
u8 key[WLAN_MAX_KEY_LEN];
|
||||
u8 key_len;
|
||||
u8 seq[IW_ENCODE_SEQ_MAX_SIZE];
|
||||
u8 seq_len;
|
||||
A_UINT32 cipher;
|
||||
};
|
||||
#endif /* ATH6K_CONFIG_CFG80211 */
|
||||
|
||||
|
||||
struct ar_node_mapping {
|
||||
A_UINT8 macAddress[6];
|
||||
A_UINT8 epId;
|
||||
A_UINT8 txPending;
|
||||
u8 macAddress[6];
|
||||
u8 epId;
|
||||
u8 txPending;
|
||||
};
|
||||
|
||||
struct ar_cookie {
|
||||
|
@ -413,8 +413,8 @@ struct ar_hb_chlng_resp {
|
|||
A_UINT32 frequency;
|
||||
A_UINT32 seqNum;
|
||||
bool outstanding;
|
||||
A_UINT8 missCnt;
|
||||
A_UINT8 missThres;
|
||||
u8 missCnt;
|
||||
u8 missThres;
|
||||
};
|
||||
|
||||
/* Per STA data, used in AP mode */
|
||||
|
@ -437,12 +437,12 @@ struct ar_hb_chlng_resp {
|
|||
|
||||
typedef struct {
|
||||
A_UINT16 flags;
|
||||
A_UINT8 mac[ATH_MAC_LEN];
|
||||
A_UINT8 aid;
|
||||
A_UINT8 keymgmt;
|
||||
A_UINT8 ucipher;
|
||||
A_UINT8 auth;
|
||||
A_UINT8 wpa_ie[IEEE80211_MAX_IE];
|
||||
u8 mac[ATH_MAC_LEN];
|
||||
u8 aid;
|
||||
u8 keymgmt;
|
||||
u8 ucipher;
|
||||
u8 auth;
|
||||
u8 wpa_ie[IEEE80211_MAX_IE];
|
||||
A_NETBUF_QUEUE_T psq; /* power save q */
|
||||
A_MUTEX_T psqLock;
|
||||
} sta_t;
|
||||
|
@ -465,7 +465,7 @@ typedef struct ar6_softc {
|
|||
void *arWmi;
|
||||
int arTxPending[ENDPOINT_MAX];
|
||||
int arTotalTxDataPending;
|
||||
A_UINT8 arNumDataEndPts;
|
||||
u8 arNumDataEndPts;
|
||||
bool arWmiEnabled;
|
||||
bool arWmiReady;
|
||||
bool arConnected;
|
||||
|
@ -475,18 +475,18 @@ typedef struct ar6_softc {
|
|||
struct semaphore arSem;
|
||||
int arSsidLen;
|
||||
u_char arSsid[32];
|
||||
A_UINT8 arNextMode;
|
||||
A_UINT8 arNetworkType;
|
||||
A_UINT8 arDot11AuthMode;
|
||||
A_UINT8 arAuthMode;
|
||||
A_UINT8 arPairwiseCrypto;
|
||||
A_UINT8 arPairwiseCryptoLen;
|
||||
A_UINT8 arGroupCrypto;
|
||||
A_UINT8 arGroupCryptoLen;
|
||||
A_UINT8 arDefTxKeyIndex;
|
||||
u8 arNextMode;
|
||||
u8 arNetworkType;
|
||||
u8 arDot11AuthMode;
|
||||
u8 arAuthMode;
|
||||
u8 arPairwiseCrypto;
|
||||
u8 arPairwiseCryptoLen;
|
||||
u8 arGroupCrypto;
|
||||
u8 arGroupCryptoLen;
|
||||
u8 arDefTxKeyIndex;
|
||||
struct ar_wep_key arWepKeyList[WMI_MAX_KEY_INDEX + 1];
|
||||
A_UINT8 arBssid[6];
|
||||
A_UINT8 arReqBssid[6];
|
||||
u8 arBssid[6];
|
||||
u8 arReqBssid[6];
|
||||
A_UINT16 arChannelHint;
|
||||
A_UINT16 arBssChannel;
|
||||
A_UINT16 arListenIntervalB;
|
||||
|
@ -494,7 +494,7 @@ typedef struct ar6_softc {
|
|||
struct ar6000_version arVersion;
|
||||
A_UINT32 arTargetType;
|
||||
A_INT8 arRssi;
|
||||
A_UINT8 arTxPwr;
|
||||
u8 arTxPwr;
|
||||
bool arTxPwrSet;
|
||||
A_INT32 arBitRate;
|
||||
struct net_device_stats arNetStats;
|
||||
|
@ -505,9 +505,9 @@ typedef struct ar6_softc {
|
|||
bool statsUpdatePending;
|
||||
TARGET_STATS arTargetStats;
|
||||
A_INT8 arMaxRetries;
|
||||
A_UINT8 arPhyCapability;
|
||||
u8 arPhyCapability;
|
||||
#ifdef CONFIG_HOST_TCMD_SUPPORT
|
||||
A_UINT8 tcmdRxReport;
|
||||
u8 tcmdRxReport;
|
||||
A_UINT32 tcmdRxTotalPkt;
|
||||
A_INT32 tcmdRxRssi;
|
||||
A_UINT32 tcmdPm;
|
||||
|
@ -519,24 +519,24 @@ typedef struct ar6_softc {
|
|||
#endif
|
||||
AR6000_WLAN_STATE arWlanState;
|
||||
struct ar_node_mapping arNodeMap[MAX_NODE_NUM];
|
||||
A_UINT8 arIbssPsEnable;
|
||||
A_UINT8 arNodeNum;
|
||||
A_UINT8 arNexEpId;
|
||||
u8 arIbssPsEnable;
|
||||
u8 arNodeNum;
|
||||
u8 arNexEpId;
|
||||
struct ar_cookie *arCookieList;
|
||||
A_UINT32 arCookieCount;
|
||||
A_UINT32 arRateMask;
|
||||
A_UINT8 arSkipScan;
|
||||
u8 arSkipScan;
|
||||
A_UINT16 arBeaconInterval;
|
||||
bool arConnectPending;
|
||||
bool arWmmEnabled;
|
||||
struct ar_hb_chlng_resp arHBChallengeResp;
|
||||
A_UINT8 arKeepaliveConfigured;
|
||||
u8 arKeepaliveConfigured;
|
||||
A_UINT32 arMgmtFilter;
|
||||
HTC_ENDPOINT_ID arAc2EpMapping[WMM_NUM_AC];
|
||||
bool arAcStreamActive[WMM_NUM_AC];
|
||||
A_UINT8 arAcStreamPriMap[WMM_NUM_AC];
|
||||
A_UINT8 arHiAcStreamActivePri;
|
||||
A_UINT8 arEp2AcMapping[ENDPOINT_MAX];
|
||||
u8 arAcStreamPriMap[WMM_NUM_AC];
|
||||
u8 arHiAcStreamActivePri;
|
||||
u8 arEp2AcMapping[ENDPOINT_MAX];
|
||||
HTC_ENDPOINT_ID arControlEp;
|
||||
#ifdef HTC_RAW_INTERFACE
|
||||
AR_RAW_HTC_T *arRawHtc;
|
||||
|
@ -557,35 +557,35 @@ typedef struct ar6_softc {
|
|||
struct USER_SAVEDKEYS user_saved_keys;
|
||||
#endif
|
||||
USER_RSSI_THOLD rssi_map[12];
|
||||
A_UINT8 arUserBssFilter;
|
||||
u8 arUserBssFilter;
|
||||
A_UINT16 ap_profile_flag; /* AP mode */
|
||||
WMI_AP_ACL g_acl; /* AP mode */
|
||||
sta_t sta_list[AP_MAX_NUM_STA]; /* AP mode */
|
||||
A_UINT8 sta_list_index; /* AP mode */
|
||||
u8 sta_list_index; /* AP mode */
|
||||
struct ieee80211req_key ap_mode_bkey; /* AP mode */
|
||||
A_NETBUF_QUEUE_T mcastpsq; /* power save q for Mcast frames */
|
||||
A_MUTEX_T mcastpsqLock;
|
||||
bool DTIMExpired; /* flag to indicate DTIM expired */
|
||||
A_UINT8 intra_bss; /* enable/disable intra bss data forward */
|
||||
u8 intra_bss; /* enable/disable intra bss data forward */
|
||||
void *aggr_cntxt;
|
||||
#ifndef EXPORT_HCI_BRIDGE_INTERFACE
|
||||
void *hcidev_info;
|
||||
#endif
|
||||
void *hcipal_info;
|
||||
WMI_AP_MODE_STAT arAPStats;
|
||||
A_UINT8 ap_hidden_ssid;
|
||||
A_UINT8 ap_country_code[3];
|
||||
A_UINT8 ap_wmode;
|
||||
A_UINT8 ap_dtim_period;
|
||||
u8 ap_hidden_ssid;
|
||||
u8 ap_country_code[3];
|
||||
u8 ap_wmode;
|
||||
u8 ap_dtim_period;
|
||||
A_UINT16 ap_beacon_interval;
|
||||
A_UINT16 arRTS;
|
||||
A_UINT16 arACS; /* AP mode - Auto Channel Selection */
|
||||
HTC_PACKET_QUEUE amsdu_rx_buffer_queue;
|
||||
bool bIsDestroyProgress; /* flag to indicate ar6k destroy is in progress */
|
||||
A_TIMER disconnect_timer;
|
||||
A_UINT8 rxMetaVersion;
|
||||
u8 rxMetaVersion;
|
||||
#ifdef WAPI_ENABLE
|
||||
A_UINT8 arWapiEnable;
|
||||
u8 arWapiEnable;
|
||||
#endif
|
||||
WMI_BTCOEX_CONFIG_EVENT arBtcoexConfig;
|
||||
WMI_BTCOEX_STATS_EVENT arBtcoexStats;
|
||||
|
@ -606,11 +606,11 @@ typedef struct ar6_softc {
|
|||
A_UINT16 arWlanOffConfig;
|
||||
A_UINT16 arWow2Config;
|
||||
#endif
|
||||
A_UINT8 scan_triggered;
|
||||
u8 scan_triggered;
|
||||
WMI_SCAN_PARAMS_CMD scParams;
|
||||
#define AR_MCAST_FILTER_MAC_ADDR_SIZE 4
|
||||
A_UINT8 mcast_filters[MAC_MAX_FILTERS_PER_LIST][AR_MCAST_FILTER_MAC_ADDR_SIZE];
|
||||
A_UINT8 bdaddr[6];
|
||||
u8 mcast_filters[MAC_MAX_FILTERS_PER_LIST][AR_MCAST_FILTER_MAC_ADDR_SIZE];
|
||||
u8 bdaddr[6];
|
||||
bool scanSpecificSsid;
|
||||
#ifdef CONFIG_AP_VIRTUAL_ADAPTER_SUPPORT
|
||||
void *arApDev;
|
||||
|
@ -726,13 +726,12 @@ ssize_t ar6000_htc_raw_write(AR_SOFTC_T *ar,
|
|||
/* AP mode */
|
||||
/*TODO: These routines should be moved to a file that is common across OS */
|
||||
sta_t *
|
||||
ieee80211_find_conn(AR_SOFTC_T *ar, A_UINT8 *node_addr);
|
||||
ieee80211_find_conn(AR_SOFTC_T *ar, u8 *node_addr);
|
||||
|
||||
sta_t *
|
||||
ieee80211_find_conn_for_aid(AR_SOFTC_T *ar, A_UINT8 aid);
|
||||
ieee80211_find_conn_for_aid(AR_SOFTC_T *ar, u8 aid);
|
||||
|
||||
A_UINT8
|
||||
remove_sta(AR_SOFTC_T *ar, A_UINT8 *mac, A_UINT16 reason);
|
||||
u8 remove_sta(AR_SOFTC_T *ar, u8 *mac, A_UINT16 reason);
|
||||
|
||||
/* HCI support */
|
||||
|
||||
|
@ -752,8 +751,8 @@ ATH_DEBUG_DECLARE_EXTERN(hif);
|
|||
ATH_DEBUG_DECLARE_EXTERN(wlan);
|
||||
ATH_DEBUG_DECLARE_EXTERN(misc);
|
||||
|
||||
extern A_UINT8 bcast_mac[];
|
||||
extern A_UINT8 null_mac[];
|
||||
extern u8 bcast_mac[];
|
||||
extern u8 null_mac[];
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -29,35 +29,35 @@ extern "C" {
|
|||
|
||||
struct ar6_softc;
|
||||
|
||||
void ar6000_ready_event(void *devt, A_UINT8 *datap, A_UINT8 phyCap,
|
||||
void ar6000_ready_event(void *devt, u8 *datap, u8 phyCap,
|
||||
A_UINT32 sw_ver, A_UINT32 abi_ver);
|
||||
int ar6000_control_tx(void *devt, void *osbuf, HTC_ENDPOINT_ID eid);
|
||||
void ar6000_connect_event(struct ar6_softc *ar, A_UINT16 channel,
|
||||
A_UINT8 *bssid, A_UINT16 listenInterval,
|
||||
u8 *bssid, A_UINT16 listenInterval,
|
||||
A_UINT16 beaconInterval, NETWORK_TYPE networkType,
|
||||
A_UINT8 beaconIeLen, A_UINT8 assocReqLen,
|
||||
A_UINT8 assocRespLen,A_UINT8 *assocInfo);
|
||||
void ar6000_disconnect_event(struct ar6_softc *ar, A_UINT8 reason,
|
||||
A_UINT8 *bssid, A_UINT8 assocRespLen,
|
||||
A_UINT8 *assocInfo, A_UINT16 protocolReasonStatus);
|
||||
void ar6000_tkip_micerr_event(struct ar6_softc *ar, A_UINT8 keyid,
|
||||
u8 beaconIeLen, u8 assocReqLen,
|
||||
u8 assocRespLen,u8 *assocInfo);
|
||||
void ar6000_disconnect_event(struct ar6_softc *ar, u8 reason,
|
||||
u8 *bssid, u8 assocRespLen,
|
||||
u8 *assocInfo, A_UINT16 protocolReasonStatus);
|
||||
void ar6000_tkip_micerr_event(struct ar6_softc *ar, u8 keyid,
|
||||
bool ismcast);
|
||||
void ar6000_bitrate_rx(void *devt, A_INT32 rateKbps);
|
||||
void ar6000_channelList_rx(void *devt, A_INT8 numChan, A_UINT16 *chanList);
|
||||
void ar6000_regDomain_event(struct ar6_softc *ar, A_UINT32 regCode);
|
||||
void ar6000_txPwr_rx(void *devt, A_UINT8 txPwr);
|
||||
void ar6000_keepalive_rx(void *devt, A_UINT8 configured);
|
||||
void ar6000_txPwr_rx(void *devt, u8 txPwr);
|
||||
void ar6000_keepalive_rx(void *devt, u8 configured);
|
||||
void ar6000_neighborReport_event(struct ar6_softc *ar, int numAps,
|
||||
WMI_NEIGHBOR_INFO *info);
|
||||
void ar6000_set_numdataendpts(struct ar6_softc *ar, A_UINT32 num);
|
||||
void ar6000_scanComplete_event(struct ar6_softc *ar, int status);
|
||||
void ar6000_targetStats_event(struct ar6_softc *ar, A_UINT8 *ptr, A_UINT32 len);
|
||||
void ar6000_targetStats_event(struct ar6_softc *ar, u8 *ptr, A_UINT32 len);
|
||||
void ar6000_rssiThreshold_event(struct ar6_softc *ar,
|
||||
WMI_RSSI_THRESHOLD_VAL newThreshold,
|
||||
A_INT16 rssi);
|
||||
void ar6000_reportError_event(struct ar6_softc *, WMI_TARGET_ERROR_VAL errorVal);
|
||||
void ar6000_cac_event(struct ar6_softc *ar, A_UINT8 ac, A_UINT8 cac_indication,
|
||||
A_UINT8 statusCode, A_UINT8 *tspecSuggestion);
|
||||
void ar6000_cac_event(struct ar6_softc *ar, u8 ac, u8 cac_indication,
|
||||
u8 statusCode, u8 *tspecSuggestion);
|
||||
void ar6000_channel_change_event(struct ar6_softc *ar, A_UINT16 oldChannel, A_UINT16 newChannel);
|
||||
void ar6000_hbChallengeResp_event(struct ar6_softc *, A_UINT32 cookie, A_UINT32 source);
|
||||
void
|
||||
|
@ -67,11 +67,11 @@ void
|
|||
ar6000_roam_data_event(struct ar6_softc *ar, WMI_TARGET_ROAM_DATA *p);
|
||||
|
||||
void
|
||||
ar6000_wow_list_event(struct ar6_softc *ar, A_UINT8 num_filters,
|
||||
ar6000_wow_list_event(struct ar6_softc *ar, u8 num_filters,
|
||||
WMI_GET_WOW_LIST_REPLY *wow_reply);
|
||||
|
||||
void ar6000_pmkid_list_event(void *devt, A_UINT8 numPMKID,
|
||||
WMI_PMKID *pmkidList, A_UINT8 *bssidList);
|
||||
void ar6000_pmkid_list_event(void *devt, u8 numPMKID,
|
||||
WMI_PMKID *pmkidList, u8 *bssidList);
|
||||
|
||||
void ar6000_gpio_intr_rx(A_UINT32 intr_mask, A_UINT32 input_values);
|
||||
void ar6000_gpio_data_rx(A_UINT32 reg_id, A_UINT32 value);
|
||||
|
@ -84,21 +84,21 @@ A_INT16 rssi_compensation_reverse_calc(struct ar6_softc *ar, A_INT16 rssi, bool
|
|||
void ar6000_dbglog_init_done(struct ar6_softc *ar);
|
||||
|
||||
#ifdef SEND_EVENT_TO_APP
|
||||
void ar6000_send_event_to_app(struct ar6_softc *ar, A_UINT16 eventId, A_UINT8 *datap, int len);
|
||||
void ar6000_send_generic_event_to_app(struct ar6_softc *ar, A_UINT16 eventId, A_UINT8 *datap, int len);
|
||||
void ar6000_send_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, A_UINT16 eventId, u8 *datap, int len);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HOST_TCMD_SUPPORT
|
||||
void ar6000_tcmd_rx_report_event(void *devt, A_UINT8 * results, int len);
|
||||
void ar6000_tcmd_rx_report_event(void *devt, u8 *results, int len);
|
||||
#endif
|
||||
|
||||
void ar6000_tx_retry_err_event(void *devt);
|
||||
|
||||
void ar6000_snrThresholdEvent_rx(void *devt,
|
||||
WMI_SNR_THRESHOLD_VAL newThreshold,
|
||||
A_UINT8 snr);
|
||||
u8 snr);
|
||||
|
||||
void ar6000_lqThresholdEvent_rx(void *devt, WMI_LQ_THRESHOLD_VAL range, A_UINT8 lqVal);
|
||||
void ar6000_lqThresholdEvent_rx(void *devt, WMI_LQ_THRESHOLD_VAL range, u8 lqVal);
|
||||
|
||||
|
||||
void ar6000_ratemask_rx(void *devt, A_UINT32 ratemask);
|
||||
|
@ -106,22 +106,22 @@ void ar6000_ratemask_rx(void *devt, A_UINT32 ratemask);
|
|||
int ar6000_get_driver_cfg(struct net_device *dev,
|
||||
A_UINT16 cfgParam,
|
||||
void *result);
|
||||
void ar6000_bssInfo_event_rx(struct ar6_softc *ar, A_UINT8 *data, int len);
|
||||
void ar6000_bssInfo_event_rx(struct ar6_softc *ar, u8 *data, int len);
|
||||
|
||||
void ar6000_dbglog_event(struct ar6_softc *ar, A_UINT32 dropped,
|
||||
A_INT8 *buffer, A_UINT32 length);
|
||||
|
||||
int ar6000_dbglog_get_debug_logs(struct ar6_softc *ar);
|
||||
|
||||
void ar6000_peer_event(void *devt, A_UINT8 eventCode, A_UINT8 *bssid);
|
||||
void ar6000_peer_event(void *devt, u8 eventCode, u8 *bssid);
|
||||
|
||||
void ar6000_indicate_tx_activity(void *devt, A_UINT8 trafficClass, bool Active);
|
||||
HTC_ENDPOINT_ID ar6000_ac2_endpoint_id ( void * devt, A_UINT8 ac);
|
||||
A_UINT8 ar6000_endpoint_id2_ac (void * devt, HTC_ENDPOINT_ID ep );
|
||||
void ar6000_indicate_tx_activity(void *devt, u8 trafficClass, bool Active);
|
||||
HTC_ENDPOINT_ID ar6000_ac2_endpoint_id ( void * devt, u8 ac);
|
||||
u8 ar6000_endpoint_id2_ac (void * devt, HTC_ENDPOINT_ID ep );
|
||||
|
||||
void ar6000_btcoex_config_event(struct ar6_softc *ar, A_UINT8 *ptr, A_UINT32 len);
|
||||
void ar6000_btcoex_config_event(struct ar6_softc *ar, u8 *ptr, A_UINT32 len);
|
||||
|
||||
void ar6000_btcoex_stats_event(struct ar6_softc *ar, A_UINT8 *ptr, A_UINT32 len) ;
|
||||
void ar6000_btcoex_stats_event(struct ar6_softc *ar, u8 *ptr, A_UINT32 len) ;
|
||||
|
||||
void ar6000_dset_open_req(void *devt,
|
||||
A_UINT32 id,
|
||||
|
@ -152,11 +152,11 @@ struct ieee80211req_wpaie;
|
|||
int
|
||||
ar6000_ap_mode_get_wpa_ie(struct ar6_softc *ar, struct ieee80211req_wpaie *wpaie);
|
||||
|
||||
int is_iwioctl_allowed(A_UINT8 mode, A_UINT16 cmd);
|
||||
int is_iwioctl_allowed(u8 mode, A_UINT16 cmd);
|
||||
|
||||
int is_xioctl_allowed(A_UINT8 mode, int cmd);
|
||||
int is_xioctl_allowed(u8 mode, int cmd);
|
||||
|
||||
void ar6000_pspoll_event(struct ar6_softc *ar,A_UINT8 aid);
|
||||
void ar6000_pspoll_event(struct ar6_softc *ar,u8 aid);
|
||||
|
||||
void ar6000_dtimexpiry_event(struct ar6_softc *ar);
|
||||
|
||||
|
@ -167,7 +167,7 @@ void ar6000_hci_event_rcv_evt(struct ar6_softc *ar, WMI_HCI_EVENT *cmd);
|
|||
|
||||
#ifdef WAPI_ENABLE
|
||||
int ap_set_wapi_key(struct ar6_softc *ar, void *ik);
|
||||
void ap_wapi_rekey_event(struct ar6_softc *ar, A_UINT8 type, A_UINT8 *mac);
|
||||
void ap_wapi_rekey_event(struct ar6_softc *ar, u8 type, u8 *mac);
|
||||
#endif
|
||||
|
||||
int ar6000_connect_to_ap(struct ar6_softc *ar);
|
||||
|
|
|
@ -727,8 +727,8 @@ typedef enum {
|
|||
/*
|
||||
* arguments:
|
||||
* struct {
|
||||
* A_UINT8 streamType;
|
||||
* A_UINT8 status;
|
||||
* u8 streamType;
|
||||
* u8 status;
|
||||
* }
|
||||
* uses: WMI_SET_BT_STATUS_CMDID
|
||||
*/
|
||||
|
@ -737,9 +737,9 @@ typedef enum {
|
|||
/*
|
||||
* arguments:
|
||||
* struct {
|
||||
* A_UINT8 paramType;
|
||||
* u8 paramType;
|
||||
* union {
|
||||
* A_UINT8 noSCOPkts;
|
||||
* u8 noSCOPkts;
|
||||
* BT_PARAMS_A2DP a2dpParams;
|
||||
* BT_COEX_REGS regs;
|
||||
* };
|
||||
|
@ -1008,7 +1008,7 @@ struct ar6000_version {
|
|||
|
||||
/* used by AR6000_IOCTL_WMI_GET_QOS_QUEUE */
|
||||
struct ar6000_queuereq {
|
||||
A_UINT8 trafficClass;
|
||||
u8 trafficClass;
|
||||
A_UINT16 activeTsids;
|
||||
};
|
||||
|
||||
|
@ -1072,12 +1072,12 @@ typedef struct targetStats_t {
|
|||
A_INT16 noise_floor_calibation;
|
||||
A_INT16 cs_rssi;
|
||||
A_INT16 cs_aveBeacon_rssi;
|
||||
A_UINT8 cs_aveBeacon_snr;
|
||||
A_UINT8 cs_lastRoam_msec;
|
||||
A_UINT8 cs_snr;
|
||||
u8 cs_aveBeacon_snr;
|
||||
u8 cs_lastRoam_msec;
|
||||
u8 cs_snr;
|
||||
|
||||
A_UINT8 wow_num_host_pkt_wakeups;
|
||||
A_UINT8 wow_num_host_event_wakeups;
|
||||
u8 wow_num_host_pkt_wakeups;
|
||||
u8 wow_num_host_event_wakeups;
|
||||
|
||||
A_UINT32 arp_received;
|
||||
A_UINT32 arp_matched;
|
||||
|
@ -1144,7 +1144,7 @@ typedef struct user_rssi_thold_t {
|
|||
} USER_RSSI_THOLD;
|
||||
|
||||
typedef struct user_rssi_params_t {
|
||||
A_UINT8 weight;
|
||||
u8 weight;
|
||||
A_UINT32 pollTime;
|
||||
USER_RSSI_THOLD tholds[12];
|
||||
} USER_RSSI_PARAMS;
|
||||
|
|
|
@ -30,16 +30,16 @@ void ar6k_cfg80211_deinit(AR_SOFTC_T *ar);
|
|||
void ar6k_cfg80211_scanComplete_event(AR_SOFTC_T *ar, int status);
|
||||
|
||||
void ar6k_cfg80211_connect_event(AR_SOFTC_T *ar, A_UINT16 channel,
|
||||
A_UINT8 *bssid, A_UINT16 listenInterval,
|
||||
u8 *bssid, A_UINT16 listenInterval,
|
||||
A_UINT16 beaconInterval,NETWORK_TYPE networkType,
|
||||
A_UINT8 beaconIeLen, A_UINT8 assocReqLen,
|
||||
A_UINT8 assocRespLen, A_UINT8 *assocInfo);
|
||||
u8 beaconIeLen, u8 assocReqLen,
|
||||
u8 assocRespLen, u8 *assocInfo);
|
||||
|
||||
void ar6k_cfg80211_disconnect_event(AR_SOFTC_T *ar, A_UINT8 reason,
|
||||
A_UINT8 *bssid, A_UINT8 assocRespLen,
|
||||
A_UINT8 *assocInfo, A_UINT16 protocolReasonStatus);
|
||||
void ar6k_cfg80211_disconnect_event(AR_SOFTC_T *ar, u8 reason,
|
||||
u8 *bssid, u8 assocRespLen,
|
||||
u8 *assocInfo, A_UINT16 protocolReasonStatus);
|
||||
|
||||
void ar6k_cfg80211_tkip_micerr_event(AR_SOFTC_T *ar, A_UINT8 keyid, bool ismcast);
|
||||
void ar6k_cfg80211_tkip_micerr_event(AR_SOFTC_T *ar, u8 keyid, bool ismcast);
|
||||
|
||||
#endif /* _AR6K_CFG80211_H_ */
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
#define A_CPU2BE16(x) htons(x)
|
||||
#define A_CPU2BE32(x) htonl(x)
|
||||
|
||||
#define A_MEMCPY(dst, src, len) memcpy((A_UINT8 *)(dst), (src), (len))
|
||||
#define A_MEMCPY(dst, src, len) memcpy((u8 *)(dst), (src), (len))
|
||||
#define A_MEMZERO(addr, len) memset(addr, 0, len)
|
||||
#define A_MEMCMP(addr1, addr2, len) memcmp((addr1), (addr2), (len))
|
||||
#define A_MALLOC(size) kmalloc((size), GFP_KERNEL)
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
* (0xFF) - Allow this cmd always irrespective of mode
|
||||
*/
|
||||
|
||||
A_UINT8 sioctl_filter[] = {
|
||||
u8 sioctl_filter[] = {
|
||||
(AP_NETWORK), /* SIOCSIWCOMMIT 0x8B00 */
|
||||
(0xFF), /* SIOCGIWNAME 0x8B01 */
|
||||
(0), /* SIOCSIWNWID 0x8B02 */
|
||||
|
@ -96,7 +96,7 @@ A_UINT8 sioctl_filter[] = {
|
|||
|
||||
|
||||
|
||||
A_UINT8 pioctl_filter[] = {
|
||||
u8 pioctl_filter[] = {
|
||||
(INFRA_NETWORK | ADHOC_NETWORK | AP_NETWORK), /* IEEE80211_IOCTL_SETPARAM (SIOCIWFIRSTPRIV+0) */
|
||||
(INFRA_NETWORK | ADHOC_NETWORK | AP_NETWORK), /* IEEE80211_IOCTL_SETKEY (SIOCIWFIRSTPRIV+1) */
|
||||
(INFRA_NETWORK | ADHOC_NETWORK | AP_NETWORK), /* IEEE80211_IOCTL_DELKEY (SIOCIWFIRSTPRIV+2) */
|
||||
|
@ -132,7 +132,7 @@ A_UINT8 pioctl_filter[] = {
|
|||
|
||||
|
||||
|
||||
A_UINT8 xioctl_filter[] = {
|
||||
u8 xioctl_filter[] = {
|
||||
(0xFF), /* Dummy 0 */
|
||||
(0xFF), /* AR6000_XIOCTL_BMI_DONE 1 */
|
||||
(0xFF), /* AR6000_XIOCTL_BMI_READ_MEMORY 2 */
|
||||
|
|
|
@ -76,7 +76,7 @@ ar6000_ioctl_set_roam_ctrl(struct net_device *dev, char *userdata)
|
|||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
|
||||
WMI_SET_ROAM_CTRL_CMD cmd;
|
||||
A_UINT8 size = sizeof(cmd);
|
||||
u8 size = sizeof(cmd);
|
||||
|
||||
if (ar->arWmiReady == false) {
|
||||
return -EIO;
|
||||
|
@ -109,7 +109,7 @@ ar6000_ioctl_set_powersave_timers(struct net_device *dev, char *userdata)
|
|||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
|
||||
WMI_POWERSAVE_TIMERS_POLICY_CMD cmd;
|
||||
A_UINT8 size = sizeof(cmd);
|
||||
u8 size = sizeof(cmd);
|
||||
|
||||
if (ar->arWmiReady == false) {
|
||||
return -EIO;
|
||||
|
@ -663,7 +663,7 @@ ar6000_ioctl_get_qos_queue(struct net_device *dev, struct ifreq *rq)
|
|||
#ifdef CONFIG_HOST_TCMD_SUPPORT
|
||||
static int
|
||||
ar6000_ioctl_tcmd_get_rx_report(struct net_device *dev,
|
||||
struct ifreq *rq, A_UINT8 *data, A_UINT32 len)
|
||||
struct ifreq *rq, u8 *data, A_UINT32 len)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
|
||||
A_UINT32 buf[4+TCMD_MAX_RATES];
|
||||
|
@ -715,7 +715,7 @@ ar6000_ioctl_tcmd_get_rx_report(struct net_device *dev,
|
|||
}
|
||||
|
||||
void
|
||||
ar6000_tcmd_rx_report_event(void *devt, A_UINT8 * results, int len)
|
||||
ar6000_tcmd_rx_report_event(void *devt, u8 *results, int len)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)devt;
|
||||
TCMD_CONT_RX * rx_rep = (TCMD_CONT_RX *)results;
|
||||
|
@ -843,7 +843,7 @@ ar6000_ioctl_get_ap_stats(struct net_device *dev, struct ifreq *rq)
|
|||
return -EFAULT;
|
||||
}
|
||||
if (action == AP_CLEAR_STATS) {
|
||||
A_UINT8 i;
|
||||
u8 i;
|
||||
AR6000_SPIN_LOCK(&ar->arLock, 0);
|
||||
for(i = 0; i < AP_MAX_NUM_STA; i++) {
|
||||
pStats->sta[i].tx_bytes = 0;
|
||||
|
@ -1469,12 +1469,12 @@ prof_count_rx(A_UINT32 addr, A_UINT32 count)
|
|||
|
||||
|
||||
static int
|
||||
ar6000_create_acl_data_osbuf(struct net_device *dev, A_UINT8 *userdata, void **p_osbuf)
|
||||
ar6000_create_acl_data_osbuf(struct net_device *dev, u8 *userdata, void **p_osbuf)
|
||||
{
|
||||
void *osbuf = NULL;
|
||||
A_UINT8 tmp_space[8];
|
||||
u8 tmp_space[8];
|
||||
HCI_ACL_DATA_PKT *acl;
|
||||
A_UINT8 hdr_size, *datap=NULL;
|
||||
u8 hdr_size, *datap=NULL;
|
||||
int ret = A_OK;
|
||||
|
||||
/* ACL is in data path. There is a need to create pool
|
||||
|
@ -1497,7 +1497,7 @@ ar6000_create_acl_data_osbuf(struct net_device *dev, A_UINT8 *userdata, void **p
|
|||
break;
|
||||
}
|
||||
A_NETBUF_PUT(osbuf, hdr_size + acl->data_len);
|
||||
datap = (A_UINT8 *)A_NETBUF_DATA(osbuf);
|
||||
datap = (u8 *)A_NETBUF_DATA(osbuf);
|
||||
|
||||
/* Real copy to osbuf */
|
||||
acl = (HCI_ACL_DATA_PKT *)(datap);
|
||||
|
@ -1822,7 +1822,7 @@ ar6000_ioctl_setkey(AR_SOFTC_T *ar, struct ieee80211req_key *ik)
|
|||
}
|
||||
|
||||
status = wmi_addKey_cmd(ar->arWmi, ik->ik_keyix, keyType, keyUsage,
|
||||
ik->ik_keylen, (A_UINT8 *)&ik->ik_keyrsc,
|
||||
ik->ik_keylen, (u8 *)&ik->ik_keyrsc,
|
||||
ik->ik_keydata, KEY_OP_INIT_VAL, ik->ik_macaddr,
|
||||
SYNC_BOTH_WMIFLAG);
|
||||
|
||||
|
@ -2027,7 +2027,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
ret = -EFAULT;
|
||||
goto ioctl_done;
|
||||
} else {
|
||||
wmi_test_cmd(ar->arWmi,(A_UINT8 *)&txCmd, sizeof(TCMD_CONT_TX));
|
||||
wmi_test_cmd(ar->arWmi,(u8 *)&txCmd, sizeof(TCMD_CONT_TX));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -2053,13 +2053,13 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
case TCMD_CONT_RX_FILTER:
|
||||
case TCMD_CONT_RX_SETMAC:
|
||||
case TCMD_CONT_RX_SET_ANT_SWITCH_TABLE:
|
||||
wmi_test_cmd(ar->arWmi,(A_UINT8 *)&rxCmd,
|
||||
wmi_test_cmd(ar->arWmi,(u8 *)&rxCmd,
|
||||
sizeof(TCMD_CONT_RX));
|
||||
tcmdRxFreq = rxCmd.u.para.freq;
|
||||
break;
|
||||
case TCMD_CONT_RX_REPORT:
|
||||
ar6000_ioctl_tcmd_get_rx_report(dev, rq,
|
||||
(A_UINT8 *)&rxCmd, sizeof(TCMD_CONT_RX));
|
||||
(u8 *)&rxCmd, sizeof(TCMD_CONT_RX));
|
||||
break;
|
||||
default:
|
||||
A_PRINTF("Unknown Cont Rx mode: %d\n",rxCmd.act);
|
||||
|
@ -2077,7 +2077,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
goto ioctl_done;
|
||||
}
|
||||
ar->tcmdPm = pmCmd.mode;
|
||||
wmi_test_cmd(ar->arWmi, (A_UINT8*)&pmCmd, sizeof(TCMD_PM));
|
||||
wmi_test_cmd(ar->arWmi, (u8 *)&pmCmd, sizeof(TCMD_PM));
|
||||
}
|
||||
break;
|
||||
#endif /* CONFIG_HOST_TCMD_SUPPORT */
|
||||
|
@ -2705,7 +2705,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
case AR6000_IOCTL_WMI_SET_ASSOC_INFO:
|
||||
{
|
||||
WMI_SET_ASSOC_INFO_CMD cmd;
|
||||
A_UINT8 assocInfo[WMI_MAX_ASSOC_INFO_LEN];
|
||||
u8 assocInfo[WMI_MAX_ASSOC_INFO_LEN];
|
||||
|
||||
if (ar->arWmiReady == false) {
|
||||
ret = -EIO;
|
||||
|
@ -3141,7 +3141,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
case AR6000_XIOCTL_OPT_SEND_FRAME:
|
||||
{
|
||||
WMI_OPT_TX_FRAME_CMD optTxFrmCmd;
|
||||
A_UINT8 data[MAX_OPT_DATA_LEN];
|
||||
u8 data[MAX_OPT_DATA_LEN];
|
||||
|
||||
if (ar->arWmiReady == false) {
|
||||
ret = -EIO;
|
||||
|
@ -3646,7 +3646,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
case AR6000_XIOCTL_WMI_SET_APPIE:
|
||||
{
|
||||
WMI_SET_APPIE_CMD appIEcmd;
|
||||
A_UINT8 appIeInfo[IEEE80211_APPIE_FRAME_MAX_LEN];
|
||||
u8 appIeInfo[IEEE80211_APPIE_FRAME_MAX_LEN];
|
||||
A_UINT32 fType,ieLen;
|
||||
|
||||
if (ar->arWmiReady == false) {
|
||||
|
@ -3883,8 +3883,8 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
#define WOW_MASK_SIZE 64
|
||||
|
||||
WMI_ADD_WOW_PATTERN_CMD cmd;
|
||||
A_UINT8 mask_data[WOW_PATTERN_SIZE]={0};
|
||||
A_UINT8 pattern_data[WOW_PATTERN_SIZE]={0};
|
||||
u8 mask_data[WOW_PATTERN_SIZE]={0};
|
||||
u8 pattern_data[WOW_PATTERN_SIZE]={0};
|
||||
|
||||
do {
|
||||
if (ar->arWmiReady == false) {
|
||||
|
@ -3997,7 +3997,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
/* note, this is used for testing (mbox ping testing), indicate activity
|
||||
* change using the stream ID as the traffic class */
|
||||
ar6000_indicate_tx_activity(ar,
|
||||
(A_UINT8)data.StreamID,
|
||||
(u8)data.StreamID,
|
||||
data.Active ? true : false);
|
||||
}
|
||||
break;
|
||||
|
@ -4064,7 +4064,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
break;
|
||||
case AR6000_XIOCTL_AP_HIDDEN_SSID:
|
||||
{
|
||||
A_UINT8 hidden_ssid;
|
||||
u8 hidden_ssid;
|
||||
if (ar->arWmiReady == false) {
|
||||
ret = -EIO;
|
||||
} else if (copy_from_user(&hidden_ssid, userdata, sizeof(hidden_ssid))) {
|
||||
|
@ -4081,7 +4081,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
if (ar->arWmiReady == false) {
|
||||
ret = -EIO;
|
||||
} else {
|
||||
A_UINT8 i;
|
||||
u8 i;
|
||||
ap_get_sta_t temp;
|
||||
A_MEMZERO(&temp, sizeof(temp));
|
||||
for(i=0;i<AP_MAX_NUM_STA;i++) {
|
||||
|
@ -4100,7 +4100,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
}
|
||||
case AR6000_XIOCTL_AP_SET_NUM_STA:
|
||||
{
|
||||
A_UINT8 num_sta;
|
||||
u8 num_sta;
|
||||
if (ar->arWmiReady == false) {
|
||||
ret = -EIO;
|
||||
} else if (copy_from_user(&num_sta, userdata, sizeof(num_sta))) {
|
||||
|
@ -4115,7 +4115,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
}
|
||||
case AR6000_XIOCTL_AP_SET_ACL_POLICY:
|
||||
{
|
||||
A_UINT8 policy;
|
||||
u8 policy;
|
||||
if (ar->arWmiReady == false) {
|
||||
ret = -EIO;
|
||||
} else if (copy_from_user(&policy, userdata, sizeof(policy))) {
|
||||
|
@ -4243,7 +4243,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
}
|
||||
case AR6000_XIOCTL_AP_INTRA_BSS_COMM:
|
||||
{
|
||||
A_UINT8 intra=0;
|
||||
u8 intra=0;
|
||||
if (ar->arWmiReady == false) {
|
||||
ret = -EIO;
|
||||
} else if (copy_from_user(&intra, userdata, sizeof(intra))) {
|
||||
|
@ -4395,7 +4395,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
void *osbuf = NULL;
|
||||
if (ar->arWmiReady == false) {
|
||||
ret = -EIO;
|
||||
} else if (ar6000_create_acl_data_osbuf(dev, (A_UINT8*)userdata, &osbuf) != A_OK) {
|
||||
} else if (ar6000_create_acl_data_osbuf(dev, (u8 *)userdata, &osbuf) != A_OK) {
|
||||
ret = -EIO;
|
||||
} else {
|
||||
if (wmi_data_hdr_add(ar->arWmi, osbuf, DATA_MSGTYPE, 0, WMI_DATA_HDR_DATA_TYPE_ACL,0,NULL) != A_OK) {
|
||||
|
@ -4412,7 +4412,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
char tmp_buf[512];
|
||||
A_INT8 i;
|
||||
WMI_HCI_CMD *cmd = (WMI_HCI_CMD *)tmp_buf;
|
||||
A_UINT8 size;
|
||||
u8 size;
|
||||
|
||||
size = sizeof(cmd->cmd_buf_sz);
|
||||
if (ar->arWmiReady == false) {
|
||||
|
@ -4511,8 +4511,8 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
{
|
||||
if (ar->arWmiReady == false) {
|
||||
ret = -EIO;
|
||||
} else if(copy_to_user((A_UINT8 *)rq->ifr_data,
|
||||
&ar->ap_wmode, sizeof(A_UINT8))) {
|
||||
} else if(copy_to_user((u8 *)rq->ifr_data,
|
||||
&ar->ap_wmode, sizeof(u8))) {
|
||||
ret = -EFAULT;
|
||||
}
|
||||
break;
|
||||
|
@ -4594,7 +4594,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
}
|
||||
rq->ifr_ifru.ifru_ivalue = ar->arWlanState; /* return value */
|
||||
|
||||
ar6000_send_event_to_app(ar, WMI_REPORT_SLEEP_STATE_EVENTID, (A_UINT8*)&wmiSleepEvent,
|
||||
ar6000_send_event_to_app(ar, WMI_REPORT_SLEEP_STATE_EVENTID, (u8 *)&wmiSleepEvent,
|
||||
sizeof(WMI_REPORT_SLEEP_STATE_EVENTID));
|
||||
break;
|
||||
}
|
||||
|
@ -4671,9 +4671,9 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
return ret;
|
||||
}
|
||||
|
||||
A_UINT8 mac_cmp_wild(A_UINT8 *mac, A_UINT8 *new_mac, A_UINT8 wild, A_UINT8 new_wild)
|
||||
u8 mac_cmp_wild(u8 *mac, u8 *new_mac, u8 wild, u8 new_wild)
|
||||
{
|
||||
A_UINT8 i;
|
||||
u8 i;
|
||||
|
||||
for(i=0;i<ATH_MAC_LEN;i++) {
|
||||
if((wild & 1<<i) && (new_wild & 1<<i)) continue;
|
||||
|
@ -4687,7 +4687,7 @@ A_UINT8 mac_cmp_wild(A_UINT8 *mac, A_UINT8 *new_mac, A_UINT8 wild, A_UINT8 new_w
|
|||
return 0;
|
||||
}
|
||||
|
||||
A_UINT8 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)
|
||||
{
|
||||
A_INT8 already_avail=-1, free_slot=-1, i;
|
||||
|
||||
|
|
|
@ -64,10 +64,9 @@ encode_ie(void *buf, size_t bufsize,
|
|||
}
|
||||
#endif /* WIRELESS_EXT > 14 */
|
||||
|
||||
static A_UINT8
|
||||
get_bss_phy_capability(bss_t *bss)
|
||||
static u8 get_bss_phy_capability(bss_t *bss)
|
||||
{
|
||||
A_UINT8 capability = 0;
|
||||
u8 capability = 0;
|
||||
struct ieee80211_common_ie *cie = &bss->ni_cie;
|
||||
#define CHAN_IS_11A(x) (!((x >= 2412) && (x <= 2484)))
|
||||
if (CHAN_IS_11A(cie->ie_chan)) {
|
||||
|
@ -464,8 +463,8 @@ ar6000_ioctl_siwessid(struct net_device *dev,
|
|||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
|
||||
int status;
|
||||
A_UINT8 arNetworkType;
|
||||
A_UINT8 prevMode = ar->arNetworkType;
|
||||
u8 arNetworkType;
|
||||
u8 prevMode = ar->arNetworkType;
|
||||
|
||||
if (is_iwioctl_allowed(ar->arNextMode, info->cmd) != A_OK) {
|
||||
A_PRINTF("wext_ioctl: cmd=0x%x not allowed in this mode\n", info->cmd);
|
||||
|
@ -512,7 +511,7 @@ ar6000_ioctl_siwessid(struct net_device *dev,
|
|||
}
|
||||
return 0;
|
||||
} else if(ar->arNetworkType == AP_NETWORK) {
|
||||
A_UINT8 ctr;
|
||||
u8 ctr;
|
||||
struct sk_buff *skb;
|
||||
|
||||
/* We are switching from AP to STA | IBSS mode, cleanup the AP state */
|
||||
|
@ -683,8 +682,8 @@ ar6000_ioctl_giwessid(struct net_device *dev,
|
|||
|
||||
void ar6000_install_static_wep_keys(AR_SOFTC_T *ar)
|
||||
{
|
||||
A_UINT8 index;
|
||||
A_UINT8 keyUsage;
|
||||
u8 index;
|
||||
u8 keyUsage;
|
||||
|
||||
for (index = WMI_MIN_KEY_INDEX; index <= WMI_MAX_KEY_INDEX; index++) {
|
||||
if (ar->arWepKeyList[index].arKeyLen) {
|
||||
|
@ -813,7 +812,7 @@ ar6000_ioctl_siwtxpow(struct net_device *dev,
|
|||
struct iw_param *rrq, char *extra)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
|
||||
A_UINT8 dbM;
|
||||
u8 dbM;
|
||||
|
||||
if (is_iwioctl_allowed(ar->arNextMode, info->cmd) != A_OK) {
|
||||
A_PRINTF("wext_ioctl: cmd=0x%x not allowed in this mode\n", info->cmd);
|
||||
|
@ -1123,7 +1122,7 @@ ar6000_ioctl_giwencode(struct net_device *dev,
|
|||
struct iw_point *erq, char *key)
|
||||
{
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
|
||||
A_UINT8 keyIndex;
|
||||
u8 keyIndex;
|
||||
struct ar_wep_key *wk;
|
||||
|
||||
if (is_iwioctl_allowed(ar->arNextMode, info->cmd) != A_OK) {
|
||||
|
@ -1195,10 +1194,10 @@ ar6000_ioctl_siwgenie(struct net_device *dev,
|
|||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
|
||||
|
||||
#ifdef WAPI_ENABLE
|
||||
A_UINT8 *ie = erq->pointer;
|
||||
A_UINT8 ie_type = ie[0];
|
||||
u8 *ie = erq->pointer;
|
||||
u8 ie_type = ie[0];
|
||||
A_UINT16 ie_length = erq->length;
|
||||
A_UINT8 wapi_ie[128];
|
||||
u8 wapi_ie[128];
|
||||
#endif
|
||||
|
||||
if (ar->arWmiReady == false) {
|
||||
|
@ -1562,10 +1561,10 @@ ar6000_ioctl_siwpmksa(struct net_device *dev,
|
|||
|
||||
switch (pmksa->cmd) {
|
||||
case IW_PMKSA_ADD:
|
||||
status = wmi_setPmkid_cmd(ar->arWmi, (A_UINT8*)pmksa->bssid.sa_data, pmksa->pmkid, true);
|
||||
status = wmi_setPmkid_cmd(ar->arWmi, (u8 *)pmksa->bssid.sa_data, pmksa->pmkid, true);
|
||||
break;
|
||||
case IW_PMKSA_REMOVE:
|
||||
status = wmi_setPmkid_cmd(ar->arWmi, (A_UINT8*)pmksa->bssid.sa_data, pmksa->pmkid, false);
|
||||
status = wmi_setPmkid_cmd(ar->arWmi, (u8 *)pmksa->bssid.sa_data, pmksa->pmkid, false);
|
||||
break;
|
||||
case IW_PMKSA_FLUSH:
|
||||
if (ar->arConnected == true) {
|
||||
|
@ -1595,14 +1594,14 @@ static int ar6000_set_wapi_key(struct net_device *dev,
|
|||
struct iw_encode_ext *ext = (struct iw_encode_ext *)extra;
|
||||
KEY_USAGE keyUsage = 0;
|
||||
A_INT32 keyLen;
|
||||
A_UINT8 *keyData;
|
||||
u8 *keyData;
|
||||
A_INT32 index;
|
||||
A_UINT32 *PN;
|
||||
A_INT32 i;
|
||||
int status;
|
||||
A_UINT8 wapiKeyRsc[16];
|
||||
u8 wapiKeyRsc[16];
|
||||
CRYPTO_TYPE keyType = WAPI_CRYPT;
|
||||
const A_UINT8 broadcastMac[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
const u8 broadcastMac[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||
|
||||
index = erq->flags & IW_ENCODE_INDEX;
|
||||
if (index && (((index - 1) < WMI_MIN_KEY_INDEX) ||
|
||||
|
@ -1614,7 +1613,7 @@ static int ar6000_set_wapi_key(struct net_device *dev,
|
|||
if (index < 0 || index > 4) {
|
||||
return -EIO;
|
||||
}
|
||||
keyData = (A_UINT8 *)(ext + 1);
|
||||
keyData = (u8 *)(ext + 1);
|
||||
keyLen = erq->length - sizeof(struct iw_encode_ext);
|
||||
A_MEMCPY(wapiKeyRsc, ext->tx_seq, sizeof(wapiKeyRsc));
|
||||
|
||||
|
@ -1658,8 +1657,8 @@ ar6000_ioctl_siwencodeext(struct net_device *dev,
|
|||
struct iw_encode_ext *ext;
|
||||
KEY_USAGE keyUsage;
|
||||
A_INT32 keyLen;
|
||||
A_UINT8 *keyData;
|
||||
A_UINT8 keyRsc[8];
|
||||
u8 *keyData;
|
||||
u8 keyRsc[8];
|
||||
int status;
|
||||
CRYPTO_TYPE keyType;
|
||||
#ifdef USER_KEYS
|
||||
|
@ -1721,7 +1720,7 @@ ar6000_ioctl_siwencodeext(struct net_device *dev,
|
|||
}
|
||||
|
||||
/* key follows iw_encode_ext */
|
||||
keyData = (A_UINT8 *)(ext + 1);
|
||||
keyData = (u8 *)(ext + 1);
|
||||
|
||||
switch (ext->alg) {
|
||||
case IW_ENCODE_ALG_WEP:
|
||||
|
@ -1792,7 +1791,7 @@ ar6000_ioctl_siwencodeext(struct net_device *dev,
|
|||
status = wmi_addKey_cmd(ar->arWmi, index, keyType, keyUsage,
|
||||
keyLen, keyRsc,
|
||||
keyData, KEY_OP_INIT_VAL,
|
||||
(A_UINT8*)ext->addr.sa_data,
|
||||
(u8 *)ext->addr.sa_data,
|
||||
SYNC_BOTH_WMIFLAG);
|
||||
if (status != A_OK) {
|
||||
return -EIO;
|
||||
|
@ -1906,7 +1905,7 @@ ar6000_ioctl_giwname(struct net_device *dev,
|
|||
struct iw_request_info *info,
|
||||
char *name, char *extra)
|
||||
{
|
||||
A_UINT8 capability;
|
||||
u8 capability;
|
||||
AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv(dev);
|
||||
|
||||
if (is_iwioctl_allowed(ar->arNextMode, info->cmd) != A_OK) {
|
||||
|
@ -2393,7 +2392,7 @@ ar6000_ioctl_siwmlme(struct net_device *dev,
|
|||
|
||||
if (data->pointer && data->length == sizeof(struct iw_mlme)) {
|
||||
|
||||
A_UINT8 arNetworkType;
|
||||
u8 arNetworkType;
|
||||
struct iw_mlme mlme;
|
||||
|
||||
if (copy_from_user(&mlme, data->pointer, sizeof(struct iw_mlme)))
|
||||
|
|
|
@ -101,8 +101,8 @@ typedef struct {
|
|||
}RXTID_STATS;
|
||||
|
||||
typedef struct {
|
||||
A_UINT8 aggr_sz; /* config value of aggregation size */
|
||||
A_UINT8 timerScheduled;
|
||||
u8 aggr_sz; /* config value of aggregation size */
|
||||
u8 timerScheduled;
|
||||
A_TIMER timer; /* timer for returning held up pkts in re-order que */
|
||||
void *dev; /* dev handle */
|
||||
RX_CALLBACK rx_fn; /* callback function to return frames; to upper layer */
|
||||
|
|
|
@ -43,7 +43,7 @@ static void
|
|||
aggr_timeout(A_ATH_TIMER arg);
|
||||
|
||||
static void
|
||||
aggr_deque_frms(AGGR_INFO *p_aggr, A_UINT8 tid, A_UINT16 seq_no, A_UINT8 order);
|
||||
aggr_deque_frms(AGGR_INFO *p_aggr, u8 tid, A_UINT16 seq_no, u8 order);
|
||||
|
||||
static void
|
||||
aggr_dispatch_frames(AGGR_INFO *p_aggr, A_NETBUF_QUEUE_T *q);
|
||||
|
@ -56,7 +56,7 @@ aggr_init(ALLOC_NETBUFS netbuf_allocator)
|
|||
{
|
||||
AGGR_INFO *p_aggr = NULL;
|
||||
RXTID *rxtid;
|
||||
A_UINT8 i;
|
||||
u8 i;
|
||||
int status = A_OK;
|
||||
|
||||
A_PRINTF("In aggr_init..\n");
|
||||
|
@ -101,7 +101,7 @@ aggr_init(ALLOC_NETBUFS netbuf_allocator)
|
|||
|
||||
/* utility function to clear rx hold_q for a tid */
|
||||
static void
|
||||
aggr_delete_tid_state(AGGR_INFO *p_aggr, A_UINT8 tid)
|
||||
aggr_delete_tid_state(AGGR_INFO *p_aggr, u8 tid)
|
||||
{
|
||||
RXTID *rxtid;
|
||||
RXTID_STATS *stats;
|
||||
|
@ -135,7 +135,7 @@ aggr_module_destroy(void *cntxt)
|
|||
{
|
||||
AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt;
|
||||
RXTID *rxtid;
|
||||
A_UINT8 i, k;
|
||||
u8 i, k;
|
||||
A_PRINTF("%s(): aggr = %p\n",_A_FUNCNAME_, p_aggr);
|
||||
A_ASSERT(p_aggr);
|
||||
|
||||
|
@ -187,7 +187,7 @@ aggr_register_rx_dispatcher(void *cntxt, void * dev, RX_CALLBACK fn)
|
|||
|
||||
|
||||
void
|
||||
aggr_process_bar(void *cntxt, A_UINT8 tid, A_UINT16 seq_no)
|
||||
aggr_process_bar(void *cntxt, u8 tid, A_UINT16 seq_no)
|
||||
{
|
||||
AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt;
|
||||
RXTID_STATS *stats;
|
||||
|
@ -201,7 +201,7 @@ aggr_process_bar(void *cntxt, A_UINT8 tid, A_UINT16 seq_no)
|
|||
|
||||
|
||||
void
|
||||
aggr_recv_addba_req_evt(void *cntxt, A_UINT8 tid, A_UINT16 seq_no, A_UINT8 win_sz)
|
||||
aggr_recv_addba_req_evt(void *cntxt, u8 tid, A_UINT16 seq_no, u8 win_sz)
|
||||
{
|
||||
AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt;
|
||||
RXTID *rxtid;
|
||||
|
@ -253,7 +253,7 @@ aggr_recv_addba_req_evt(void *cntxt, A_UINT8 tid, A_UINT16 seq_no, A_UINT8 win_s
|
|||
}
|
||||
|
||||
void
|
||||
aggr_recv_delba_req_evt(void *cntxt, A_UINT8 tid)
|
||||
aggr_recv_delba_req_evt(void *cntxt, u8 tid)
|
||||
{
|
||||
AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt;
|
||||
RXTID *rxtid;
|
||||
|
@ -269,7 +269,7 @@ aggr_recv_delba_req_evt(void *cntxt, A_UINT8 tid)
|
|||
}
|
||||
|
||||
static void
|
||||
aggr_deque_frms(AGGR_INFO *p_aggr, A_UINT8 tid, A_UINT16 seq_no, A_UINT8 order)
|
||||
aggr_deque_frms(AGGR_INFO *p_aggr, u8 tid, A_UINT16 seq_no, u8 order)
|
||||
{
|
||||
RXTID *rxtid;
|
||||
OSBUF_HOLD_Q *node;
|
||||
|
@ -360,7 +360,7 @@ aggr_slice_amsdu(AGGR_INFO *p_aggr, RXTID *rxtid, void **osbuf)
|
|||
{
|
||||
void *new_buf;
|
||||
A_UINT16 frame_8023_len, payload_8023_len, mac_hdr_len, amsdu_len;
|
||||
A_UINT8 *framep;
|
||||
u8 *framep;
|
||||
|
||||
/* Frame format at this point:
|
||||
* [DIX hdr | 802.3 | 802.3 | ... | 802.3]
|
||||
|
@ -426,7 +426,7 @@ aggr_slice_amsdu(AGGR_INFO *p_aggr, RXTID *rxtid, void **osbuf)
|
|||
}
|
||||
|
||||
void
|
||||
aggr_process_recv_frm(void *cntxt, A_UINT8 tid, A_UINT16 seq_no, bool is_amsdu, void **osbuf)
|
||||
aggr_process_recv_frm(void *cntxt, u8 tid, A_UINT16 seq_no, bool is_amsdu, void **osbuf)
|
||||
{
|
||||
AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt;
|
||||
RXTID *rxtid;
|
||||
|
@ -561,7 +561,7 @@ aggr_process_recv_frm(void *cntxt, A_UINT8 tid, A_UINT16 seq_no, bool is_amsdu,
|
|||
void
|
||||
aggr_reset_state(void *cntxt)
|
||||
{
|
||||
A_UINT8 tid;
|
||||
u8 tid;
|
||||
AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt;
|
||||
|
||||
A_ASSERT(p_aggr);
|
||||
|
@ -575,7 +575,7 @@ aggr_reset_state(void *cntxt)
|
|||
static void
|
||||
aggr_timeout(A_ATH_TIMER arg)
|
||||
{
|
||||
A_UINT8 i,j;
|
||||
u8 i,j;
|
||||
AGGR_INFO *p_aggr = (AGGR_INFO *)arg;
|
||||
RXTID *rxtid;
|
||||
RXTID_STATS *stats;
|
||||
|
@ -645,7 +645,7 @@ aggr_dump_stats(void *cntxt, PACKET_LOG **log_buf)
|
|||
AGGR_INFO *p_aggr = (AGGR_INFO *)cntxt;
|
||||
RXTID *rxtid;
|
||||
RXTID_STATS *stats;
|
||||
A_UINT8 i;
|
||||
u8 i;
|
||||
|
||||
*log_buf = &p_aggr->pkt_log;
|
||||
A_PRINTF("\n\n================================================\n");
|
||||
|
|
|
@ -99,24 +99,24 @@
|
|||
* generic definitions for IEEE 802.11 frames
|
||||
*/
|
||||
PREPACK struct ieee80211_frame {
|
||||
A_UINT8 i_fc[2];
|
||||
A_UINT8 i_dur[2];
|
||||
A_UINT8 i_addr1[IEEE80211_ADDR_LEN];
|
||||
A_UINT8 i_addr2[IEEE80211_ADDR_LEN];
|
||||
A_UINT8 i_addr3[IEEE80211_ADDR_LEN];
|
||||
A_UINT8 i_seq[2];
|
||||
u8 i_fc[2];
|
||||
u8 i_dur[2];
|
||||
u8 i_addr1[IEEE80211_ADDR_LEN];
|
||||
u8 i_addr2[IEEE80211_ADDR_LEN];
|
||||
u8 i_addr3[IEEE80211_ADDR_LEN];
|
||||
u8 i_seq[2];
|
||||
/* possibly followed by addr4[IEEE80211_ADDR_LEN]; */
|
||||
/* see below */
|
||||
} POSTPACK;
|
||||
|
||||
PREPACK struct ieee80211_qosframe {
|
||||
A_UINT8 i_fc[2];
|
||||
A_UINT8 i_dur[2];
|
||||
A_UINT8 i_addr1[IEEE80211_ADDR_LEN];
|
||||
A_UINT8 i_addr2[IEEE80211_ADDR_LEN];
|
||||
A_UINT8 i_addr3[IEEE80211_ADDR_LEN];
|
||||
A_UINT8 i_seq[2];
|
||||
A_UINT8 i_qos[2];
|
||||
u8 i_fc[2];
|
||||
u8 i_dur[2];
|
||||
u8 i_addr1[IEEE80211_ADDR_LEN];
|
||||
u8 i_addr2[IEEE80211_ADDR_LEN];
|
||||
u8 i_addr3[IEEE80211_ADDR_LEN];
|
||||
u8 i_seq[2];
|
||||
u8 i_qos[2];
|
||||
} POSTPACK;
|
||||
|
||||
#define IEEE80211_FC0_VERSION_MASK 0x03
|
||||
|
@ -320,14 +320,14 @@ typedef enum {
|
|||
* WMM/802.11e Tspec Element
|
||||
*/
|
||||
typedef PREPACK struct wmm_tspec_ie_t {
|
||||
A_UINT8 elementId;
|
||||
A_UINT8 len;
|
||||
A_UINT8 oui[3];
|
||||
A_UINT8 ouiType;
|
||||
A_UINT8 ouiSubType;
|
||||
A_UINT8 version;
|
||||
u8 elementId;
|
||||
u8 len;
|
||||
u8 oui[3];
|
||||
u8 ouiType;
|
||||
u8 ouiSubType;
|
||||
u8 version;
|
||||
A_UINT16 tsInfo_info;
|
||||
A_UINT8 tsInfo_reserved;
|
||||
u8 tsInfo_reserved;
|
||||
A_UINT16 nominalMSDU;
|
||||
A_UINT16 maxMSDU;
|
||||
A_UINT32 minServiceInt;
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
#define IEEE80211_NODE_HASHSIZE 32
|
||||
/* simple hash is enough for variation of macaddr */
|
||||
#define IEEE80211_NODE_HASH(addr) \
|
||||
(((const A_UINT8 *)(addr))[IEEE80211_ADDR_LEN - 1] % \
|
||||
(((const u8 *)(addr))[IEEE80211_ADDR_LEN - 1] % \
|
||||
IEEE80211_NODE_HASHSIZE)
|
||||
|
||||
/*
|
||||
|
@ -74,7 +74,7 @@ struct ieee80211_node_table {
|
|||
A_UINT32 nt_scangen; /* gen# for timeout scan */
|
||||
#ifdef THREAD_X
|
||||
A_TIMER nt_inact_timer;
|
||||
A_UINT8 isTimerArmed; /* is the node timer armed */
|
||||
u8 isTimerArmed; /* is the node timer armed */
|
||||
#endif
|
||||
A_UINT32 nt_nodeAge; /* node aging time */
|
||||
#ifdef OS_ROAM_MANAGEMENT
|
||||
|
|
|
@ -58,7 +58,7 @@ static void wlan_node_timeout(A_ATH_TIMER arg);
|
|||
#endif
|
||||
|
||||
static bss_t * _ieee80211_find_node (struct ieee80211_node_table *nt,
|
||||
const A_UINT8 *macaddr);
|
||||
const u8 *macaddr);
|
||||
|
||||
bss_t *
|
||||
wlan_node_alloc(struct ieee80211_node_table *nt, int wh_size)
|
||||
|
@ -111,7 +111,7 @@ wlan_node_free(bss_t *ni)
|
|||
|
||||
void
|
||||
wlan_setup_node(struct ieee80211_node_table *nt, bss_t *ni,
|
||||
const A_UINT8 *macaddr)
|
||||
const u8 *macaddr)
|
||||
{
|
||||
int hash;
|
||||
A_UINT32 timeoutValue = 0;
|
||||
|
@ -160,7 +160,7 @@ wlan_setup_node(struct ieee80211_node_table *nt, bss_t *ni,
|
|||
|
||||
static bss_t *
|
||||
_ieee80211_find_node(struct ieee80211_node_table *nt,
|
||||
const A_UINT8 *macaddr)
|
||||
const u8 *macaddr)
|
||||
{
|
||||
bss_t *ni;
|
||||
int hash;
|
||||
|
@ -178,7 +178,7 @@ _ieee80211_find_node(struct ieee80211_node_table *nt,
|
|||
}
|
||||
|
||||
bss_t *
|
||||
wlan_find_node(struct ieee80211_node_table *nt, const A_UINT8 *macaddr)
|
||||
wlan_find_node(struct ieee80211_node_table *nt, const u8 *macaddr)
|
||||
{
|
||||
bss_t *ni;
|
||||
|
||||
|
@ -326,7 +326,7 @@ wlan_refresh_inactive_nodes (struct ieee80211_node_table *nt)
|
|||
{
|
||||
#ifdef THREAD_X
|
||||
bss_t *bss, *nextBss;
|
||||
A_UINT8 myBssid[IEEE80211_ADDR_LEN], reArmTimer = false;
|
||||
u8 myBssid[IEEE80211_ADDR_LEN], reArmTimer = false;
|
||||
|
||||
wmi_get_current_bssid(nt->nt_wmip, myBssid);
|
||||
|
||||
|
@ -346,7 +346,7 @@ wlan_refresh_inactive_nodes (struct ieee80211_node_table *nt)
|
|||
}
|
||||
#else
|
||||
bss_t *bss, *nextBss;
|
||||
A_UINT8 myBssid[IEEE80211_ADDR_LEN];
|
||||
u8 myBssid[IEEE80211_ADDR_LEN];
|
||||
A_UINT32 timeoutValue = 0;
|
||||
A_UINT32 now = A_GET_MS(0);
|
||||
timeoutValue = nt->nt_nodeAge;
|
||||
|
@ -379,7 +379,7 @@ wlan_node_timeout (A_ATH_TIMER arg)
|
|||
{
|
||||
struct ieee80211_node_table *nt = (struct ieee80211_node_table *)arg;
|
||||
bss_t *bss, *nextBss;
|
||||
A_UINT8 myBssid[IEEE80211_ADDR_LEN], reArmTimer = false;
|
||||
u8 myBssid[IEEE80211_ADDR_LEN], reArmTimer = false;
|
||||
A_UINT32 timeoutValue = 0;
|
||||
|
||||
timeoutValue = nt->nt_nodeAge;
|
||||
|
@ -526,7 +526,7 @@ wlan_node_remove_core (struct ieee80211_node_table *nt, bss_t *ni)
|
|||
}
|
||||
|
||||
bss_t *
|
||||
wlan_node_remove(struct ieee80211_node_table *nt, A_UINT8 *bssid)
|
||||
wlan_node_remove(struct ieee80211_node_table *nt, u8 *bssid)
|
||||
{
|
||||
bss_t *bss, *nextBss;
|
||||
|
||||
|
|
|
@ -50,22 +50,22 @@
|
|||
/* unaligned little endian access */
|
||||
#define LE_READ_2(p) \
|
||||
((A_UINT16) \
|
||||
((((A_UINT8 *)(p))[0] ) | (((A_UINT8 *)(p))[1] << 8)))
|
||||
((((u8 *)(p))[0] ) | (((u8 *)(p))[1] << 8)))
|
||||
|
||||
#define LE_READ_4(p) \
|
||||
((A_UINT32) \
|
||||
((((A_UINT8 *)(p))[0] ) | (((A_UINT8 *)(p))[1] << 8) | \
|
||||
(((A_UINT8 *)(p))[2] << 16) | (((A_UINT8 *)(p))[3] << 24)))
|
||||
((((u8 *)(p))[0] ) | (((u8 *)(p))[1] << 8) | \
|
||||
(((u8 *)(p))[2] << 16) | (((u8 *)(p))[3] << 24)))
|
||||
|
||||
|
||||
static int __inline
|
||||
iswpaoui(const A_UINT8 *frm)
|
||||
iswpaoui(const u8 *frm)
|
||||
{
|
||||
return frm[1] > 3 && LE_READ_4(frm+2) == ((WPA_OUI_TYPE<<24)|WPA_OUI);
|
||||
}
|
||||
|
||||
static int __inline
|
||||
iswmmoui(const A_UINT8 *frm)
|
||||
iswmmoui(const u8 *frm)
|
||||
{
|
||||
return frm[1] > 3 && LE_READ_4(frm+2) == ((WMM_OUI_TYPE<<24)|WMM_OUI);
|
||||
}
|
||||
|
@ -73,38 +73,38 @@ iswmmoui(const A_UINT8 *frm)
|
|||
/* unused functions for now */
|
||||
#if 0
|
||||
static int __inline
|
||||
iswmmparam(const A_UINT8 *frm)
|
||||
iswmmparam(const u8 *frm)
|
||||
{
|
||||
return frm[1] > 5 && frm[6] == WMM_PARAM_OUI_SUBTYPE;
|
||||
}
|
||||
|
||||
static int __inline
|
||||
iswmminfo(const A_UINT8 *frm)
|
||||
iswmminfo(const u8 *frm)
|
||||
{
|
||||
return frm[1] > 5 && frm[6] == WMM_INFO_OUI_SUBTYPE;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int __inline
|
||||
isatherosoui(const A_UINT8 *frm)
|
||||
isatherosoui(const u8 *frm)
|
||||
{
|
||||
return frm[1] > 3 && LE_READ_4(frm+2) == ((ATH_OUI_TYPE<<24)|ATH_OUI);
|
||||
}
|
||||
|
||||
static int __inline
|
||||
iswscoui(const A_UINT8 *frm)
|
||||
iswscoui(const u8 *frm)
|
||||
{
|
||||
return frm[1] > 3 && LE_READ_4(frm+2) == ((0x04<<24)|WPA_OUI);
|
||||
}
|
||||
|
||||
int
|
||||
wlan_parse_beacon(A_UINT8 *buf, int framelen, struct ieee80211_common_ie *cie)
|
||||
wlan_parse_beacon(u8 *buf, int framelen, struct ieee80211_common_ie *cie)
|
||||
{
|
||||
A_UINT8 *frm, *efrm;
|
||||
A_UINT8 elemid_ssid = false;
|
||||
u8 *frm, *efrm;
|
||||
u8 elemid_ssid = false;
|
||||
|
||||
frm = buf;
|
||||
efrm = (A_UINT8 *) (frm + framelen);
|
||||
efrm = (u8 *) (frm + framelen);
|
||||
|
||||
/*
|
||||
* beacon/probe response frame format
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -47,9 +47,9 @@ typedef struct sq_threshold_params_s {
|
|||
A_UINT32 upper_threshold_valid_count;
|
||||
A_UINT32 lower_threshold_valid_count;
|
||||
A_UINT32 polling_interval;
|
||||
A_UINT8 weight;
|
||||
A_UINT8 last_rssi; //normally you would expect this to be bss specific but we keep only one instance because its only valid when the device is in a connected state. Not sure if it belongs to host or target.
|
||||
A_UINT8 last_rssi_poll_event; //Not sure if it belongs to host or target
|
||||
u8 weight;
|
||||
u8 last_rssi; //normally you would expect this to be bss specific but we keep only one instance because its only valid when the device is in a connected state. Not sure if it belongs to host or target.
|
||||
u8 last_rssi_poll_event; //Not sure if it belongs to host or target
|
||||
} SQ_THRESHOLD_PARAMS;
|
||||
|
||||
/*
|
||||
|
@ -63,14 +63,14 @@ struct wmi_t {
|
|||
bool wmi_ready;
|
||||
bool wmi_numQoSStream;
|
||||
A_UINT16 wmi_streamExistsForAC[WMM_NUM_AC];
|
||||
A_UINT8 wmi_fatPipeExists;
|
||||
u8 wmi_fatPipeExists;
|
||||
void *wmi_devt;
|
||||
struct wmi_stats wmi_stats;
|
||||
struct ieee80211_node_table wmi_scan_table;
|
||||
A_UINT8 wmi_bssid[ATH_MAC_LEN];
|
||||
A_UINT8 wmi_powerMode;
|
||||
A_UINT8 wmi_phyMode;
|
||||
A_UINT8 wmi_keepaliveInterval;
|
||||
u8 wmi_bssid[ATH_MAC_LEN];
|
||||
u8 wmi_powerMode;
|
||||
u8 wmi_phyMode;
|
||||
u8 wmi_keepaliveInterval;
|
||||
#ifdef THREAD_X
|
||||
A_CSECT_T wmi_lock;
|
||||
#else
|
||||
|
@ -81,8 +81,8 @@ struct wmi_t {
|
|||
CRYPTO_TYPE wmi_pair_crypto_type;
|
||||
CRYPTO_TYPE wmi_grp_crypto_type;
|
||||
bool wmi_is_wmm_enabled;
|
||||
A_UINT8 wmi_ht_allowed[A_NUM_BANDS];
|
||||
A_UINT8 wmi_traffic_class;
|
||||
u8 wmi_ht_allowed[A_NUM_BANDS];
|
||||
u8 wmi_traffic_class;
|
||||
};
|
||||
|
||||
#ifdef THREAD_X
|
||||
|
|
Loading…
Reference in a new issue