cc3200: Replace physical tabs with spaces.
Preparing this to move to drivers/ directory, want to make it as similar to original code from TI as possible.
This commit is contained in:
parent
4a23a01945
commit
36e2845e36
|
@ -294,11 +294,7 @@ extern "C"
|
||||||
#define SL_INC_NET_APP_PKG
|
#define SL_INC_NET_APP_PKG
|
||||||
#define SL_INC_NET_CFG_PKG
|
#define SL_INC_NET_CFG_PKG
|
||||||
#define SL_INC_FS_PKG
|
#define SL_INC_FS_PKG
|
||||||
#if defined(DEBUG) && !defined(BOOTLOADER)
|
|
||||||
#define SL_INC_ARG_CHECK
|
#define SL_INC_ARG_CHECK
|
||||||
#else
|
|
||||||
#undef SL_INC_ARG_CHECK
|
|
||||||
#endif
|
|
||||||
#define SL_INC_WLAN_PKG
|
#define SL_INC_WLAN_PKG
|
||||||
#define SL_INC_SOCKET_PKG
|
#define SL_INC_SOCKET_PKG
|
||||||
#define SL_INC_SOCK_CLIENT_SIDE_API
|
#define SL_INC_SOCK_CLIENT_SIDE_API
|
||||||
|
@ -352,7 +348,7 @@ typedef void (*_SlSpawnEntryFunc_t)(void* pValue);
|
||||||
#define _u32 unsigned long
|
#define _u32 unsigned long
|
||||||
#define _i32 signed long
|
#define _i32 signed long
|
||||||
#define _volatile volatile
|
#define _volatile volatile
|
||||||
#define _const const
|
#define _const const
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef _u16 _SlOpcode_t;
|
typedef _u16 _SlOpcode_t;
|
||||||
|
|
|
@ -269,8 +269,8 @@ sl_EventMaskSet
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_DevMaskEventSetCommand_t Cmd;
|
_DevMaskEventSetCommand_t Cmd;
|
||||||
_BasicResponse_t Rsp;
|
_BasicResponse_t Rsp;
|
||||||
}_SlEventMaskSetMsg_u;
|
}_SlEventMaskSetMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlEventMaskSetCmdCtrl =
|
const _SlCmdCtrl_t _SlEventMaskSetCmdCtrl =
|
||||||
|
@ -299,7 +299,7 @@ sl_EventMaskGet
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_DevMaskEventGetCommand_t Cmd;
|
_DevMaskEventGetCommand_t Cmd;
|
||||||
_DevMaskEventGetResponse_t Rsp;
|
_DevMaskEventGetResponse_t Rsp;
|
||||||
}_SlEventMaskGetMsg_u;
|
}_SlEventMaskGetMsg_u;
|
||||||
|
|
||||||
|
@ -332,8 +332,8 @@ sl_DevGet
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_DeviceSetGet_t Cmd;
|
_DeviceSetGet_t Cmd;
|
||||||
_DeviceSetGet_t Rsp;
|
_DeviceSetGet_t Rsp;
|
||||||
}_SlDeviceMsgGet_u;
|
}_SlDeviceMsgGet_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlDeviceGetCmdCtrl =
|
const _SlCmdCtrl_t _SlDeviceGetCmdCtrl =
|
||||||
|
@ -471,7 +471,7 @@ sl_UartSetMode
|
||||||
#ifdef SL_IF_TYPE_UART
|
#ifdef SL_IF_TYPE_UART
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_DevUartSetModeCommand_t Cmd;
|
_DevUartSetModeCommand_t Cmd;
|
||||||
_DevUartSetModeResponse_t Rsp;
|
_DevUartSetModeResponse_t Rsp;
|
||||||
}_SlUartSetModeMsg_u;
|
}_SlUartSetModeMsg_u;
|
||||||
|
|
||||||
|
|
|
@ -62,8 +62,8 @@ support backward sync pattern */
|
||||||
#define MATCH_WITH_SEQ_NUM(pBuf, TxSeqNum) ( BUF_SYNC_SPIM(pBuf) == (N2H_SYNC_SPIM_WITH_SEQ(TxSeqNum)) )
|
#define MATCH_WITH_SEQ_NUM(pBuf, TxSeqNum) ( BUF_SYNC_SPIM(pBuf) == (N2H_SYNC_SPIM_WITH_SEQ(TxSeqNum)) )
|
||||||
#define N2H_SYNC_PATTERN_MATCH(pBuf, TxSeqNum) \
|
#define N2H_SYNC_PATTERN_MATCH(pBuf, TxSeqNum) \
|
||||||
( \
|
( \
|
||||||
( (*((_u32 *)pBuf) & N2H_SYNC_PATTERN_SEQ_NUM_EXISTS) && ( MATCH_WITH_SEQ_NUM(pBuf, TxSeqNum) ) ) || \
|
( (*((_u32 *)pBuf) & N2H_SYNC_PATTERN_SEQ_NUM_EXISTS) && ( MATCH_WITH_SEQ_NUM(pBuf, TxSeqNum) ) ) || \
|
||||||
( !(*((_u32 *)pBuf) & N2H_SYNC_PATTERN_SEQ_NUM_EXISTS) && ( MATCH_WOUT_SEQ_NUM(pBuf ) ) ) \
|
( !(*((_u32 *)pBuf) & N2H_SYNC_PATTERN_SEQ_NUM_EXISTS) && ( MATCH_WOUT_SEQ_NUM(pBuf ) ) ) \
|
||||||
)
|
)
|
||||||
|
|
||||||
#define OPCODE(_ptr) (((_SlResponseHeader_t *)(_ptr))->GenHeader.Opcode)
|
#define OPCODE(_ptr) (((_SlResponseHeader_t *)(_ptr))->GenHeader.Opcode)
|
||||||
|
@ -116,12 +116,12 @@ _SlReturnVal_t _SlDrvRxHdrRead(_u8 *pBuf, _u8 *pAlignSize);
|
||||||
void _SlDrvShiftDWord(_u8 *pBuf);
|
void _SlDrvShiftDWord(_u8 *pBuf);
|
||||||
void _SlDrvDriverCBInit(void);
|
void _SlDrvDriverCBInit(void);
|
||||||
void _SlAsyncEventGenericHandler(void);
|
void _SlAsyncEventGenericHandler(void);
|
||||||
_i16 _SlDrvWaitForPoolObj(_u32 ActionID, _u8 SocketID);
|
_i16 _SlDrvWaitForPoolObj(_u32 ActionID, _u8 SocketID);
|
||||||
void _SlDrvReleasePoolObj(_u8 pObj);
|
void _SlDrvReleasePoolObj(_u8 pObj);
|
||||||
void _SlDrvObjInit(void);
|
void _SlDrvObjInit(void);
|
||||||
void _SlDrvObjDeInit(void);
|
void _SlDrvObjDeInit(void);
|
||||||
void _SlRemoveFromList(_u8* ListIndex, _u8 ItemIndex);
|
void _SlRemoveFromList(_u8* ListIndex, _u8 ItemIndex);
|
||||||
_SlReturnVal_t _SlFindAndSetActiveObj(_SlOpcode_t Opcode, _u8 Sd);
|
_SlReturnVal_t _SlFindAndSetActiveObj(_SlOpcode_t Opcode, _u8 Sd);
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -352,8 +352,8 @@ _SlReturnVal_t _SlDrvDataReadOp(
|
||||||
OSI_RET_OK_CHECK( sl_LockObjUnlock(&g_pCB->FlowContCB.TxLockObj) );
|
OSI_RET_OK_CHECK( sl_LockObjUnlock(&g_pCB->FlowContCB.TxLockObj) );
|
||||||
|
|
||||||
/* send the message */
|
/* send the message */
|
||||||
g_pCB->TempProtocolHeader.Opcode = pCmdCtrl->Opcode;
|
g_pCB->TempProtocolHeader.Opcode = pCmdCtrl->Opcode;
|
||||||
g_pCB->TempProtocolHeader.Len = _SL_PROTOCOL_CALC_LEN(pCmdCtrl,pCmdExt);
|
g_pCB->TempProtocolHeader.Len = _SL_PROTOCOL_CALC_LEN(pCmdCtrl,pCmdExt);
|
||||||
g_pCB->FunctionParams.pCmdCtrl = pCmdCtrl;
|
g_pCB->FunctionParams.pCmdCtrl = pCmdCtrl;
|
||||||
g_pCB->FunctionParams.pTxRxDescBuff = (_u8 *)pTxRxDescBuff;
|
g_pCB->FunctionParams.pTxRxDescBuff = (_u8 *)pTxRxDescBuff;
|
||||||
g_pCB->FunctionParams.pCmdExt = pCmdExt;
|
g_pCB->FunctionParams.pCmdExt = pCmdExt;
|
||||||
|
@ -427,8 +427,8 @@ _SlReturnVal_t _SlDrvDataWriteOp(
|
||||||
OSI_RET_OK_CHECK( sl_LockObjUnlock(&g_pCB->FlowContCB.TxLockObj) );
|
OSI_RET_OK_CHECK( sl_LockObjUnlock(&g_pCB->FlowContCB.TxLockObj) );
|
||||||
|
|
||||||
/* send the message */
|
/* send the message */
|
||||||
g_pCB->TempProtocolHeader.Opcode = pCmdCtrl->Opcode;
|
g_pCB->TempProtocolHeader.Opcode = pCmdCtrl->Opcode;
|
||||||
g_pCB->TempProtocolHeader.Len = _SL_PROTOCOL_CALC_LEN(pCmdCtrl,pCmdExt);
|
g_pCB->TempProtocolHeader.Len = _SL_PROTOCOL_CALC_LEN(pCmdCtrl,pCmdExt);
|
||||||
|
|
||||||
g_pCB->FunctionParams.pCmdCtrl = pCmdCtrl;
|
g_pCB->FunctionParams.pCmdCtrl = pCmdCtrl;
|
||||||
g_pCB->FunctionParams.pTxRxDescBuff = pTxRxDescBuff;
|
g_pCB->FunctionParams.pTxRxDescBuff = pTxRxDescBuff;
|
||||||
|
@ -447,8 +447,8 @@ _SlReturnVal_t _SlDrvMsgWrite(void)
|
||||||
{
|
{
|
||||||
VERIFY_PROTOCOL(NULL != g_pCB->FunctionParams.pCmdCtrl);
|
VERIFY_PROTOCOL(NULL != g_pCB->FunctionParams.pCmdCtrl);
|
||||||
|
|
||||||
g_pCB->TempProtocolHeader.Opcode = g_pCB->FunctionParams.pCmdCtrl->Opcode;
|
g_pCB->TempProtocolHeader.Opcode = g_pCB->FunctionParams.pCmdCtrl->Opcode;
|
||||||
g_pCB->TempProtocolHeader.Len = _SL_PROTOCOL_CALC_LEN(g_pCB->FunctionParams.pCmdCtrl,
|
g_pCB->TempProtocolHeader.Len = _SL_PROTOCOL_CALC_LEN(g_pCB->FunctionParams.pCmdCtrl,
|
||||||
g_pCB->FunctionParams.pCmdExt);
|
g_pCB->FunctionParams.pCmdExt);
|
||||||
/* */
|
/* */
|
||||||
if (g_pCB->RelayFlagsViaRxPayload == TRUE)
|
if (g_pCB->RelayFlagsViaRxPayload == TRUE)
|
||||||
|
@ -800,7 +800,7 @@ void _SlAsyncEventGenericHandler(void)
|
||||||
}
|
}
|
||||||
case SL_OPCODE_WLAN_CONNECTION_FAILED:
|
case SL_OPCODE_WLAN_CONNECTION_FAILED:
|
||||||
{
|
{
|
||||||
slWlanConnFailureAsyncResponse_t * pResp = (slWlanConnFailureAsyncResponse_t*)_SL_RESP_ARGS_START(g_pCB->FunctionParams.AsyncExt.pAsyncBuf);
|
slWlanConnFailureAsyncResponse_t * pResp = (slWlanConnFailureAsyncResponse_t*)_SL_RESP_ARGS_START(g_pCB->FunctionParams.AsyncExt.pAsyncBuf);
|
||||||
|
|
||||||
wlanEvent.Event = SL_WLAN_CONNECTION_FAILED_EVENT;
|
wlanEvent.Event = SL_WLAN_CONNECTION_FAILED_EVENT;
|
||||||
wlanEvent.EventData.P2PModewlanConnectionFailure.status = pResp->status;
|
wlanEvent.EventData.P2PModewlanConnectionFailure.status = pResp->status;
|
||||||
|
@ -817,7 +817,7 @@ void _SlAsyncEventGenericHandler(void)
|
||||||
wlanEvent.EventData.STAandP2PModeWlanConnected.connection_type = pWlanResp->connection_type;
|
wlanEvent.EventData.STAandP2PModeWlanConnected.connection_type = pWlanResp->connection_type;
|
||||||
sl_Memcpy(wlanEvent.EventData.STAandP2PModeWlanConnected.bssid, pWlanResp->bssid, 6);
|
sl_Memcpy(wlanEvent.EventData.STAandP2PModeWlanConnected.bssid, pWlanResp->bssid, 6);
|
||||||
sl_Memcpy(wlanEvent.EventData.STAandP2PModeWlanConnected.go_peer_device_name,pWlanResp->go_peer_device_name,pWlanResp->go_peer_device_name_len);
|
sl_Memcpy(wlanEvent.EventData.STAandP2PModeWlanConnected.go_peer_device_name,pWlanResp->go_peer_device_name,pWlanResp->go_peer_device_name_len);
|
||||||
sl_Memcpy(wlanEvent.EventData.STAandP2PModeWlanConnected.ssid_name, pWlanResp->ssid_name, pWlanResp->ssid_len);
|
sl_Memcpy(wlanEvent.EventData.STAandP2PModeWlanConnected.ssid_name, pWlanResp->ssid_name, pWlanResp->ssid_len);
|
||||||
wlanEvent.EventData.STAandP2PModeWlanConnected.ssid_len = pWlanResp->ssid_len;
|
wlanEvent.EventData.STAandP2PModeWlanConnected.ssid_len = pWlanResp->ssid_len;
|
||||||
wlanEvent.EventData.STAandP2PModeWlanConnected.go_peer_device_name_len = pWlanResp->go_peer_device_name_len;
|
wlanEvent.EventData.STAandP2PModeWlanConnected.go_peer_device_name_len = pWlanResp->go_peer_device_name_len;
|
||||||
|
|
||||||
|
@ -832,7 +832,7 @@ void _SlAsyncEventGenericHandler(void)
|
||||||
wlanEvent.EventData.STAandP2PModeDisconnected.connection_type = pWlanResp->connection_type;
|
wlanEvent.EventData.STAandP2PModeDisconnected.connection_type = pWlanResp->connection_type;
|
||||||
sl_Memcpy(wlanEvent.EventData.STAandP2PModeDisconnected.bssid, pWlanResp->bssid, 6);
|
sl_Memcpy(wlanEvent.EventData.STAandP2PModeDisconnected.bssid, pWlanResp->bssid, 6);
|
||||||
sl_Memcpy(wlanEvent.EventData.STAandP2PModeDisconnected.go_peer_device_name,pWlanResp->go_peer_device_name,pWlanResp->go_peer_device_name_len);
|
sl_Memcpy(wlanEvent.EventData.STAandP2PModeDisconnected.go_peer_device_name,pWlanResp->go_peer_device_name,pWlanResp->go_peer_device_name_len);
|
||||||
sl_Memcpy(wlanEvent.EventData.STAandP2PModeDisconnected.ssid_name, pWlanResp->ssid_name, pWlanResp->ssid_len);
|
sl_Memcpy(wlanEvent.EventData.STAandP2PModeDisconnected.ssid_name, pWlanResp->ssid_name, pWlanResp->ssid_len);
|
||||||
wlanEvent.EventData.STAandP2PModeDisconnected.ssid_len = pWlanResp->ssid_len;
|
wlanEvent.EventData.STAandP2PModeDisconnected.ssid_len = pWlanResp->ssid_len;
|
||||||
wlanEvent.EventData.STAandP2PModeDisconnected.reason_code = pWlanResp->reason_code;
|
wlanEvent.EventData.STAandP2PModeDisconnected.reason_code = pWlanResp->reason_code;
|
||||||
wlanEvent.EventData.STAandP2PModeDisconnected.go_peer_device_name_len = pWlanResp->go_peer_device_name_len;
|
wlanEvent.EventData.STAandP2PModeDisconnected.go_peer_device_name_len = pWlanResp->go_peer_device_name_len;
|
||||||
|
@ -1176,12 +1176,12 @@ void _SlDrvClassifyRxMsg(
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
/* else if (SL_OPCODE_SILO_NVMEM == (Opcode & SL_OPCODE_SILO_MASK)) */
|
/* else if (SL_OPCODE_SILO_NVMEM == (Opcode & SL_OPCODE_SILO_MASK)) */
|
||||||
/* { */
|
/* { */
|
||||||
/* } */
|
/* } */
|
||||||
/* else if (SL_OPCODE_SILO_NETCFG == (Opcode & SL_OPCODE_SILO_MASK)) */
|
/* else if (SL_OPCODE_SILO_NETCFG == (Opcode & SL_OPCODE_SILO_MASK)) */
|
||||||
/* { */
|
/* { */
|
||||||
/* } */
|
/* } */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SL_ERROR_TRACE1(MSG_311, "ASSERT: _SlDrvClassifyRxMsg : invalid opcode = 0x%x", Opcode);
|
SL_ERROR_TRACE1(MSG_311, "ASSERT: _SlDrvClassifyRxMsg : invalid opcode = 0x%x", Opcode);
|
||||||
|
@ -1280,7 +1280,7 @@ _SlReturnVal_t _SlDrvRxHdrRead(_u8 *pBuf, _u8 *pAlignSize)
|
||||||
/* ***************************************************************************** */
|
/* ***************************************************************************** */
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_BasicResponse_t Rsp;
|
_BasicResponse_t Rsp;
|
||||||
}_SlBasicCmdMsg_u;
|
}_SlBasicCmdMsg_u;
|
||||||
|
|
||||||
_i16 _SlDrvBasicCmd(_SlOpcode_t Opcode)
|
_i16 _SlDrvBasicCmd(_SlOpcode_t Opcode)
|
||||||
|
|
|
@ -97,8 +97,8 @@ _u32 _sl_GetCreateFsMode(_u32 maxSizeInBytes,_u32 accessFlags)
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_FsOpenCommand_t Cmd;
|
_FsOpenCommand_t Cmd;
|
||||||
_FsOpenResponse_t Rsp;
|
_FsOpenResponse_t Rsp;
|
||||||
}_SlFsOpenMsg_u;
|
}_SlFsOpenMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlFsOpenCmdCtrl =
|
const _SlCmdCtrl_t _SlFsOpenCmdCtrl =
|
||||||
|
@ -122,27 +122,27 @@ _i32 sl_FsOpen(_u8 *pFileName,_u32 AccessModeAndMaxSize, _u32 *pToken,_i32 *pFil
|
||||||
|
|
||||||
Msg.Cmd.Mode = AccessModeAndMaxSize;
|
Msg.Cmd.Mode = AccessModeAndMaxSize;
|
||||||
|
|
||||||
if(pToken != NULL)
|
if(pToken != NULL)
|
||||||
{
|
{
|
||||||
Msg.Cmd.Token = *pToken;
|
Msg.Cmd.Token = *pToken;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Msg.Cmd.Token = 0;
|
Msg.Cmd.Token = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
RetVal = _SlDrvCmdOp((_SlCmdCtrl_t *)&_SlFsOpenCmdCtrl, &Msg, &CmdExt);
|
RetVal = _SlDrvCmdOp((_SlCmdCtrl_t *)&_SlFsOpenCmdCtrl, &Msg, &CmdExt);
|
||||||
*pFileHandle = Msg.Rsp.FileHandle;
|
*pFileHandle = Msg.Rsp.FileHandle;
|
||||||
if (pToken != NULL)
|
if (pToken != NULL)
|
||||||
{
|
{
|
||||||
*pToken = Msg.Rsp.Token;
|
*pToken = Msg.Rsp.Token;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* in case of an error, return the erros file handler as an error code */
|
/* in case of an error, return the erros file handler as an error code */
|
||||||
if( *pFileHandle < 0 )
|
if( *pFileHandle < 0 )
|
||||||
{
|
{
|
||||||
return *pFileHandle;
|
return *pFileHandle;
|
||||||
}
|
}
|
||||||
return (_i32)RetVal;
|
return (_i32)RetVal;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -152,8 +152,8 @@ _i32 sl_FsOpen(_u8 *pFileName,_u32 AccessModeAndMaxSize, _u32 *pToken,_i32 *pFil
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_FsCloseCommand_t Cmd;
|
_FsCloseCommand_t Cmd;
|
||||||
_BasicResponse_t Rsp;
|
_BasicResponse_t Rsp;
|
||||||
}_SlFsCloseMsg_u;
|
}_SlFsCloseMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlFsCloseCmdCtrl =
|
const _SlCmdCtrl_t _SlFsCloseCmdCtrl =
|
||||||
|
@ -198,8 +198,8 @@ _i16 sl_FsClose(_i32 FileHdl, _u8* pCeritificateFileName,_u8* pSignature ,_u32
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_FsReadCommand_t Cmd;
|
_FsReadCommand_t Cmd;
|
||||||
_FsReadResponse_t Rsp;
|
_FsReadResponse_t Rsp;
|
||||||
}_SlFsReadMsg_u;
|
}_SlFsReadMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlFsReadCmdCtrl =
|
const _SlCmdCtrl_t _SlFsReadCmdCtrl =
|
||||||
|
@ -269,8 +269,8 @@ _i32 sl_FsRead(_i32 FileHdl, _u32 Offset, _u8* pData, _u32 Len)
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_FsWriteCommand_t Cmd;
|
_FsWriteCommand_t Cmd;
|
||||||
_FsWriteResponse_t Rsp;
|
_FsWriteResponse_t Rsp;
|
||||||
}_SlFsWriteMsg_u;
|
}_SlFsWriteMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlFsWriteCmdCtrl =
|
const _SlCmdCtrl_t _SlFsWriteCmdCtrl =
|
||||||
|
@ -343,8 +343,8 @@ _i32 sl_FsWrite(_i32 FileHdl, _u32 Offset, _u8* pData, _u32 Len)
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_FsGetInfoCommand_t Cmd;
|
_FsGetInfoCommand_t Cmd;
|
||||||
_FsGetInfoResponse_t Rsp;
|
_FsGetInfoResponse_t Rsp;
|
||||||
}_SlFsGetInfoMsg_u;
|
}_SlFsGetInfoMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlFsGetInfoCmdCtrl =
|
const _SlCmdCtrl_t _SlFsGetInfoCmdCtrl =
|
||||||
|
@ -384,8 +384,8 @@ _i16 sl_FsGetInfo(_u8 *pFileName,_u32 Token,SlFsFileInfo_t* pFsFileInfo)
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_FsDeleteCommand_t Cmd;
|
_FsDeleteCommand_t Cmd;
|
||||||
_FsDeleteResponse_t Rsp;
|
_FsDeleteResponse_t Rsp;
|
||||||
}_SlFsDeleteMsg_u;
|
}_SlFsDeleteMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlFsDeleteCmdCtrl =
|
const _SlCmdCtrl_t _SlFsDeleteCmdCtrl =
|
||||||
|
|
|
@ -66,7 +66,7 @@ typedef struct
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_WlanConnectCmd_t Cmd;
|
_WlanConnectCmd_t Cmd;
|
||||||
_BasicResponse_t Rsp;
|
_BasicResponse_t Rsp;
|
||||||
}_SlWlanConnectMsg_u;
|
}_SlWlanConnectMsg_u;
|
||||||
|
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ _i16 sl_WlanConnect(_i8* pName, _i16 NameLen, _u8 *pMacAddr, SlSecParams_t* pSe
|
||||||
/* update key length */
|
/* update key length */
|
||||||
Msg.Cmd.Args.Common.PasswordLen = pSecParams->KeyLen;
|
Msg.Cmd.Args.Common.PasswordLen = pSecParams->KeyLen;
|
||||||
ARG_CHECK_PTR(pSecParams->Key);
|
ARG_CHECK_PTR(pSecParams->Key);
|
||||||
/* copy key */
|
/* copy key */
|
||||||
sl_Memcpy(EAP_PASSWORD_STRING(&Msg), pSecParams->Key, pSecParams->KeyLen);
|
sl_Memcpy(EAP_PASSWORD_STRING(&Msg), pSecParams->Key, pSecParams->KeyLen);
|
||||||
CmdCtrl.TxDescLen += pSecParams->KeyLen;
|
CmdCtrl.TxDescLen += pSecParams->KeyLen;
|
||||||
}
|
}
|
||||||
|
@ -220,7 +220,7 @@ _i16 sl_WlanDisconnect(void)
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_WlanPoliciySetGet_t Cmd;
|
_WlanPoliciySetGet_t Cmd;
|
||||||
_BasicResponse_t Rsp;
|
_BasicResponse_t Rsp;
|
||||||
}_SlPolicyMsg_u;
|
}_SlPolicyMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlPolicySetCmdCtrl =
|
const _SlCmdCtrl_t _SlPolicySetCmdCtrl =
|
||||||
|
@ -258,8 +258,8 @@ _i16 sl_WlanPolicySet(_u8 Type , const _u8 Policy, _u8 *pVal,_u8 ValLen)
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_WlanPoliciySetGet_t Cmd;
|
_WlanPoliciySetGet_t Cmd;
|
||||||
_WlanPoliciySetGet_t Rsp;
|
_WlanPoliciySetGet_t Rsp;
|
||||||
}_SlPolicyGetMsg_u;
|
}_SlPolicyGetMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlPolicyGetCmdCtrl =
|
const _SlCmdCtrl_t _SlPolicyGetCmdCtrl =
|
||||||
|
@ -316,14 +316,14 @@ _i16 sl_WlanPolicyGet(_u8 Type , _u8 Policy,_u8 *pVal,_u8 *pValLen)
|
||||||
/*******************************************************************************/
|
/*******************************************************************************/
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
_WlanAddGetEapProfile_t Args;
|
_WlanAddGetEapProfile_t Args;
|
||||||
_i8 Strings[MAX_SSID_LEN + MAX_KEY_LEN + MAX_USER_LEN + MAX_ANON_USER_LEN];
|
_i8 Strings[MAX_SSID_LEN + MAX_KEY_LEN + MAX_USER_LEN + MAX_ANON_USER_LEN];
|
||||||
}_SlProfileParams_t;
|
}_SlProfileParams_t;
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_SlProfileParams_t Cmd;
|
_SlProfileParams_t Cmd;
|
||||||
_BasicResponse_t Rsp;
|
_BasicResponse_t Rsp;
|
||||||
}_SlProfileAddMsg_u;
|
}_SlProfileAddMsg_u;
|
||||||
|
|
||||||
|
|
||||||
|
@ -487,7 +487,7 @@ _i16 sl_WlanProfileAdd(_i8* pName, _i16 NameLen, _u8 *pMacAddr, SlSecParams_t*
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_WlanProfileDelGetCommand_t Cmd;
|
_WlanProfileDelGetCommand_t Cmd;
|
||||||
_SlProfileParams_t Rsp;
|
_SlProfileParams_t Rsp;
|
||||||
}_SlProfileGetMsg_u;
|
}_SlProfileGetMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlProfileGetCmdCtrl =
|
const _SlCmdCtrl_t _SlProfileGetCmdCtrl =
|
||||||
|
@ -543,8 +543,8 @@ _i16 sl_WlanProfileGet(_i16 Index,_i8* pName, _i16 *pNameLen, _u8 *pMacAddr, Sl
|
||||||
/*******************************************************************************/
|
/*******************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_WlanProfileDelGetCommand_t Cmd;
|
_WlanProfileDelGetCommand_t Cmd;
|
||||||
_BasicResponse_t Rsp;
|
_BasicResponse_t Rsp;
|
||||||
}_SlProfileDelMsg_u;
|
}_SlProfileDelMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlProfileDelCmdCtrl =
|
const _SlCmdCtrl_t _SlProfileDelCmdCtrl =
|
||||||
|
@ -622,7 +622,7 @@ _i16 sl_WlanGetNetworkList(_u8 Index, _u8 Count, Sl_WlanNetworkEntry_t *pEntries
|
||||||
/* Set command */
|
/* Set command */
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_WlanRxFilterAddCommand_t Cmd;
|
_WlanRxFilterAddCommand_t Cmd;
|
||||||
_WlanRxFilterAddCommandReponse_t Rsp;
|
_WlanRxFilterAddCommandReponse_t Rsp;
|
||||||
}_SlrxFilterAddMsg_u;
|
}_SlrxFilterAddMsg_u;
|
||||||
|
|
||||||
|
@ -637,7 +637,7 @@ const _SlCmdCtrl_t _SlRxFilterAddtCmdCtrl =
|
||||||
/* Set command */
|
/* Set command */
|
||||||
typedef union _SlRxFilterSetMsg_u
|
typedef union _SlRxFilterSetMsg_u
|
||||||
{
|
{
|
||||||
_WlanRxFilterSetCommand_t Cmd;
|
_WlanRxFilterSetCommand_t Cmd;
|
||||||
_WlanRxFilterSetCommandReponse_t Rsp;
|
_WlanRxFilterSetCommandReponse_t Rsp;
|
||||||
}_SlRxFilterSetMsg_u;
|
}_SlRxFilterSetMsg_u;
|
||||||
|
|
||||||
|
@ -652,7 +652,7 @@ const _SlCmdCtrl_t _SlRxFilterSetCmdCtrl =
|
||||||
/* Get command */
|
/* Get command */
|
||||||
typedef union _SlRxFilterGetMsg_u
|
typedef union _SlRxFilterGetMsg_u
|
||||||
{
|
{
|
||||||
_WlanRxFilterGetCommand_t Cmd;
|
_WlanRxFilterGetCommand_t Cmd;
|
||||||
_WlanRxFilterGetCommandReponse_t Rsp;
|
_WlanRxFilterGetCommandReponse_t Rsp;
|
||||||
}_SlRxFilterGetMsg_u;
|
}_SlRxFilterGetMsg_u;
|
||||||
|
|
||||||
|
@ -670,11 +670,11 @@ const _SlCmdCtrl_t _SlRxFilterGetCmdCtrl =
|
||||||
/*******************************************************************************/
|
/*******************************************************************************/
|
||||||
|
|
||||||
#if _SL_INCLUDE_FUNC(sl_WlanRxFilterAdd)
|
#if _SL_INCLUDE_FUNC(sl_WlanRxFilterAdd)
|
||||||
SlrxFilterID_t sl_WlanRxFilterAdd( SlrxFilterRuleType_t RuleType,
|
SlrxFilterID_t sl_WlanRxFilterAdd( SlrxFilterRuleType_t RuleType,
|
||||||
SlrxFilterFlags_t FilterFlags,
|
SlrxFilterFlags_t FilterFlags,
|
||||||
const SlrxFilterRule_t* const Rule,
|
const SlrxFilterRule_t* const Rule,
|
||||||
const SlrxFilterTrigger_t* const Trigger,
|
const SlrxFilterTrigger_t* const Trigger,
|
||||||
const SlrxFilterAction_t* const Action,
|
const SlrxFilterAction_t* const Action,
|
||||||
SlrxFilterID_t* pFilterId)
|
SlrxFilterID_t* pFilterId)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -807,14 +807,14 @@ _i16 sl_WlanSmartConfigStop(void)
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
_WlanSmartConfigStartCommand_t Args;
|
_WlanSmartConfigStartCommand_t Args;
|
||||||
_i8 Strings[3 * MAX_SMART_CONFIG_KEY]; /* public key + groupId1 key + groupId2 key */
|
_i8 Strings[3 * MAX_SMART_CONFIG_KEY]; /* public key + groupId1 key + groupId2 key */
|
||||||
}_SlSmartConfigStart_t;
|
}_SlSmartConfigStart_t;
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_SlSmartConfigStart_t Cmd;
|
_SlSmartConfigStart_t Cmd;
|
||||||
_BasicResponse_t Rsp;
|
_BasicResponse_t Rsp;
|
||||||
}_SlSmartConfigStartMsg_u;
|
}_SlSmartConfigStartMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlSmartConfigStartCmdCtrl =
|
const _SlCmdCtrl_t _SlSmartConfigStartCmdCtrl =
|
||||||
|
@ -861,8 +861,8 @@ _i16 sl_WlanSmartConfigStart( const _u32 groupIdBitmask,
|
||||||
/*******************************************************************************/
|
/*******************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_WlanSetMode_t Cmd;
|
_WlanSetMode_t Cmd;
|
||||||
_BasicResponse_t Rsp;
|
_BasicResponse_t Rsp;
|
||||||
}_SlwlanSetModeMsg_u;
|
}_SlwlanSetModeMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlWlanSetModeCmdCtrl =
|
const _SlCmdCtrl_t _SlWlanSetModeCmdCtrl =
|
||||||
|
@ -899,8 +899,8 @@ _i16 sl_WlanSetMode(const _u8 mode)
|
||||||
/* ******************************************************************************/
|
/* ******************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_WlanCfgSetGet_t Cmd;
|
_WlanCfgSetGet_t Cmd;
|
||||||
_BasicResponse_t Rsp;
|
_BasicResponse_t Rsp;
|
||||||
}_SlWlanCfgSetMsg_u;
|
}_SlWlanCfgSetMsg_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlWlanCfgSetCmdCtrl =
|
const _SlCmdCtrl_t _SlWlanCfgSetCmdCtrl =
|
||||||
|
@ -939,8 +939,8 @@ _i16 sl_WlanSet(_u16 ConfigId ,_u16 ConfigOpt,_u16 ConfigLen, _u8 *pValues)
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
_WlanCfgSetGet_t Cmd;
|
_WlanCfgSetGet_t Cmd;
|
||||||
_WlanCfgSetGet_t Rsp;
|
_WlanCfgSetGet_t Rsp;
|
||||||
}_SlWlanCfgMsgGet_u;
|
}_SlWlanCfgMsgGet_u;
|
||||||
|
|
||||||
const _SlCmdCtrl_t _SlWlanCfgGetCmdCtrl =
|
const _SlCmdCtrl_t _SlWlanCfgGetCmdCtrl =
|
||||||
|
|
Loading…
Reference in New Issue