summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/simplelink/source/wlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'cc3200/simplelink/source/wlan.c')
-rw-r--r--cc3200/simplelink/source/wlan.c66
1 files changed, 33 insertions, 33 deletions
diff --git a/cc3200/simplelink/source/wlan.c b/cc3200/simplelink/source/wlan.c
index 648a624e1f..0cc825439f 100644
--- a/cc3200/simplelink/source/wlan.c
+++ b/cc3200/simplelink/source/wlan.c
@@ -66,7 +66,7 @@ typedef struct
typedef union
{
_WlanConnectCmd_t Cmd;
- _BasicResponse_t Rsp;
+ _BasicResponse_t Rsp;
}_SlWlanConnectMsg_u;
@@ -111,7 +111,7 @@ _i16 sl_WlanConnect(_i8* pName, _i16 NameLen, _u8 *pMacAddr, SlSecParams_t* pSe
/* update key length */
Msg.Cmd.Args.Common.PasswordLen = pSecParams->KeyLen;
ARG_CHECK_PTR(pSecParams->Key);
- /* copy key */
+ /* copy key */
sl_Memcpy(EAP_PASSWORD_STRING(&Msg), pSecParams->Key, pSecParams->KeyLen);
CmdCtrl.TxDescLen += pSecParams->KeyLen;
}
@@ -159,7 +159,7 @@ _i16 sl_WlanConnect(_i8* pName, _i16 NameLen, _u8 *pMacAddr, SlSecParams_t* pSe
CmdCtrl.Opcode = SL_OPCODE_WLAN_WLANCONNECTCOMMAND;
CmdCtrl.TxDescLen += sizeof(_WlanConnectCommon_t);
/* copy SSID */
- sl_Memcpy(SSID_STRING(&Msg), pName, NameLen);
+ sl_Memcpy(SSID_STRING(&Msg), pName, NameLen);
CmdCtrl.TxDescLen += NameLen;
/* Copy password if supplied */
if( NULL != pSecParams )
@@ -185,7 +185,7 @@ _i16 sl_WlanConnect(_i8* pName, _i16 NameLen, _u8 *pMacAddr, SlSecParams_t* pSe
{
Msg.Cmd.Args.Common.PasswordLen = 0;
Msg.Cmd.Args.Common.SecType = SL_SEC_TYPE_OPEN;
- }
+ }
}
/* If BSSID is not null, copy to buffer, otherwise set to 0 */
if(NULL != pMacAddr)
@@ -220,7 +220,7 @@ _i16 sl_WlanDisconnect(void)
typedef union
{
_WlanPoliciySetGet_t Cmd;
- _BasicResponse_t Rsp;
+ _BasicResponse_t Rsp;
}_SlPolicyMsg_u;
const _SlCmdCtrl_t _SlPolicySetCmdCtrl =
@@ -258,8 +258,8 @@ _i16 sl_WlanPolicySet(_u8 Type , const _u8 Policy, _u8 *pVal,_u8 ValLen)
/******************************************************************************/
typedef union
{
- _WlanPoliciySetGet_t Cmd;
- _WlanPoliciySetGet_t Rsp;
+ _WlanPoliciySetGet_t Cmd;
+ _WlanPoliciySetGet_t Rsp;
}_SlPolicyGetMsg_u;
const _SlCmdCtrl_t _SlPolicyGetCmdCtrl =
@@ -316,14 +316,14 @@ _i16 sl_WlanPolicyGet(_u8 Type , _u8 Policy,_u8 *pVal,_u8 *pValLen)
/*******************************************************************************/
typedef struct
{
- _WlanAddGetEapProfile_t Args;
+ _WlanAddGetEapProfile_t Args;
_i8 Strings[MAX_SSID_LEN + MAX_KEY_LEN + MAX_USER_LEN + MAX_ANON_USER_LEN];
}_SlProfileParams_t;
typedef union
{
- _SlProfileParams_t Cmd;
- _BasicResponse_t Rsp;
+ _SlProfileParams_t Cmd;
+ _BasicResponse_t Rsp;
}_SlProfileAddMsg_u;
@@ -352,7 +352,7 @@ _i16 sl_WlanProfileAdd(_i8* pName, _i16 NameLen, _u8 *pMacAddr, SlSecParams_t*
CmdCtrl.TxDescLen += sizeof(_WlanAddGetEapProfile_t);
/* copy SSID */
- sl_Memcpy(EAP_PROFILE_SSID_STRING(&Msg), pName, NameLen);
+ sl_Memcpy(EAP_PROFILE_SSID_STRING(&Msg), pName, NameLen);
CmdCtrl.TxDescLen += NameLen;
/* Copy password if supplied */
@@ -373,7 +373,7 @@ _i16 sl_WlanProfileAdd(_i8* pName, _i16 NameLen, _u8 *pMacAddr, SlSecParams_t*
}
VERIFY_PROTOCOL(pSecParams->KeyLen <= MAX_KEY_LEN);
/* update key length */
- Msg.Cmd.Args.Common.PasswordLen = pSecParams->KeyLen;
+ Msg.Cmd.Args.Common.PasswordLen = pSecParams->KeyLen;
CmdCtrl.TxDescLen += pSecParams->KeyLen;
ARG_CHECK_PTR(pSecParams->Key);
/* copy key */
@@ -487,7 +487,7 @@ _i16 sl_WlanProfileAdd(_i8* pName, _i16 NameLen, _u8 *pMacAddr, SlSecParams_t*
typedef union
{
_WlanProfileDelGetCommand_t Cmd;
- _SlProfileParams_t Rsp;
+ _SlProfileParams_t Rsp;
}_SlProfileGetMsg_u;
const _SlCmdCtrl_t _SlProfileGetCmdCtrl =
@@ -513,7 +513,7 @@ _i16 sl_WlanProfileGet(_i16 Index,_i8* pName, _i16 *pNameLen, _u8 *pMacAddr, Sl
pEntParams->UserLen = Msg.Rsp.Args.UserLen;
/* copy user name */
if (pEntParams->UserLen > 0)
- {
+ {
sl_Memcpy(pEntParams->User, EAP_PROFILE_USER_STRING(&Msg), pEntParams->UserLen);
}
pEntParams->AnonUserLen = Msg.Rsp.Args.AnonUserLen;
@@ -543,8 +543,8 @@ _i16 sl_WlanProfileGet(_i16 Index,_i8* pName, _i16 *pNameLen, _u8 *pMacAddr, Sl
/*******************************************************************************/
typedef union
{
- _WlanProfileDelGetCommand_t Cmd;
- _BasicResponse_t Rsp;
+ _WlanProfileDelGetCommand_t Cmd;
+ _BasicResponse_t Rsp;
}_SlProfileDelMsg_u;
const _SlCmdCtrl_t _SlProfileDelCmdCtrl =
@@ -622,7 +622,7 @@ _i16 sl_WlanGetNetworkList(_u8 Index, _u8 Count, Sl_WlanNetworkEntry_t *pEntries
/* Set command */
typedef union
{
- _WlanRxFilterAddCommand_t Cmd;
+ _WlanRxFilterAddCommand_t Cmd;
_WlanRxFilterAddCommandReponse_t Rsp;
}_SlrxFilterAddMsg_u;
@@ -637,7 +637,7 @@ const _SlCmdCtrl_t _SlRxFilterAddtCmdCtrl =
/* Set command */
typedef union _SlRxFilterSetMsg_u
{
- _WlanRxFilterSetCommand_t Cmd;
+ _WlanRxFilterSetCommand_t Cmd;
_WlanRxFilterSetCommandReponse_t Rsp;
}_SlRxFilterSetMsg_u;
@@ -652,7 +652,7 @@ const _SlCmdCtrl_t _SlRxFilterSetCmdCtrl =
/* Get command */
typedef union _SlRxFilterGetMsg_u
{
- _WlanRxFilterGetCommand_t Cmd;
+ _WlanRxFilterGetCommand_t Cmd;
_WlanRxFilterGetCommandReponse_t Rsp;
}_SlRxFilterGetMsg_u;
@@ -670,11 +670,11 @@ const _SlCmdCtrl_t _SlRxFilterGetCmdCtrl =
/*******************************************************************************/
#if _SL_INCLUDE_FUNC(sl_WlanRxFilterAdd)
-SlrxFilterID_t sl_WlanRxFilterAdd( SlrxFilterRuleType_t RuleType,
- SlrxFilterFlags_t FilterFlags,
- const SlrxFilterRule_t* const Rule,
- const SlrxFilterTrigger_t* const Trigger,
- const SlrxFilterAction_t* const Action,
+SlrxFilterID_t sl_WlanRxFilterAdd( SlrxFilterRuleType_t RuleType,
+ SlrxFilterFlags_t FilterFlags,
+ const SlrxFilterRule_t* const Rule,
+ const SlrxFilterTrigger_t* const Trigger,
+ const SlrxFilterAction_t* const Action,
SlrxFilterID_t* pFilterId)
{
@@ -807,14 +807,14 @@ _i16 sl_WlanSmartConfigStop(void)
typedef struct
{
- _WlanSmartConfigStartCommand_t Args;
+ _WlanSmartConfigStartCommand_t Args;
_i8 Strings[3 * MAX_SMART_CONFIG_KEY]; /* public key + groupId1 key + groupId2 key */
}_SlSmartConfigStart_t;
typedef union
{
- _SlSmartConfigStart_t Cmd;
- _BasicResponse_t Rsp;
+ _SlSmartConfigStart_t Cmd;
+ _BasicResponse_t Rsp;
}_SlSmartConfigStartMsg_u;
const _SlCmdCtrl_t _SlSmartConfigStartCmdCtrl =
@@ -861,8 +861,8 @@ _i16 sl_WlanSmartConfigStart( const _u32 groupIdBitmask,
/*******************************************************************************/
typedef union
{
- _WlanSetMode_t Cmd;
- _BasicResponse_t Rsp;
+ _WlanSetMode_t Cmd;
+ _BasicResponse_t Rsp;
}_SlwlanSetModeMsg_u;
const _SlCmdCtrl_t _SlWlanSetModeCmdCtrl =
@@ -899,8 +899,8 @@ _i16 sl_WlanSetMode(const _u8 mode)
/* ******************************************************************************/
typedef union
{
- _WlanCfgSetGet_t Cmd;
- _BasicResponse_t Rsp;
+ _WlanCfgSetGet_t Cmd;
+ _BasicResponse_t Rsp;
}_SlWlanCfgSetMsg_u;
const _SlCmdCtrl_t _SlWlanCfgSetCmdCtrl =
@@ -939,8 +939,8 @@ _i16 sl_WlanSet(_u16 ConfigId ,_u16 ConfigOpt,_u16 ConfigLen, _u8 *pValues)
/******************************************************************************/
typedef union
{
- _WlanCfgSetGet_t Cmd;
- _WlanCfgSetGet_t Rsp;
+ _WlanCfgSetGet_t Cmd;
+ _WlanCfgSetGet_t Rsp;
}_SlWlanCfgMsgGet_u;
const _SlCmdCtrl_t _SlWlanCfgGetCmdCtrl =