40 #include "simplelink.h"
64 #define SL_BSSID_LENGTH (6)
65 #define MAXIMAL_SSID_LENGTH (32)
67 #define NUM_OF_RATE_INDEXES (20)
68 #define SIZE_OF_RSSI_HISTOGRAM (6)
71 #define SL_WLAN_DISCONNECT_UNSPECIFIED_REASON (1)
72 #define SL_WLAN_DISCONNECT_PREV_AUTH_NOT_VALID (2)
73 #define SL_WLAN_DISCONNECT_DEAUTH_LEAVING (3)
74 #define SL_WLAN_DISCONNECT_DISASSOC_DUE_TO_INACTIVITY (4)
75 #define SL_WLAN_DISCONNECT_DISASSOC_AP_BUSY (5)
76 #define SL_WLAN_DISCONNECT_CLASS2_FRAME_FROM_NONAUTH_STA (6)
77 #define SL_WLAN_DISCONNECT_CLASS3_FRAME_FROM_NONASSOC_STA (7)
78 #define SL_WLAN_DISCONNECT_DISASSOC_STA_HAS_LEFT (8)
79 #define SL_WLAN_DISCONNECT_STA_REQ_ASSOC_WITHOUT_AUTH (9)
80 #define SL_WLAN_DISCONNECT_PWR_CAPABILITY_NOT_VALID (10)
81 #define SL_WLAN_DISCONNECT_SUPPORTED_CHANNEL_NOT_VALID (11)
82 #define SL_WLAN_DISCONNECT_INVALID_IE (13)
83 #define SL_WLAN_DISCONNECT_MIC_FAILURE (14)
84 #define SL_WLAN_DISCONNECT_4WAY_HANDSHAKE_TIMEOUT (15)
85 #define SL_WLAN_DISCONNECT_GROUP_KEY_UPDATE_TIMEOUT (16)
86 #define SL_WLAN_DISCONNECT_IE_IN_4WAY_DIFFERS (17)
87 #define SL_WLAN_DISCONNECT_GROUP_CIPHER_NOT_VALID (18)
88 #define SL_WLAN_DISCONNECT_PAIRWISE_CIPHER_NOT_VALID (19)
89 #define SL_WLAN_DISCONNECT_AKMP_NOT_VALID (20)
90 #define SL_WLAN_DISCONNECT_UNSUPPORTED_RSN_IE_VERSION (21)
91 #define SL_WLAN_DISCONNECT_INVALID_RSN_IE_CAPAB (22)
92 #define SL_WLAN_DISCONNECT_IEEE_802_1X_AUTH_FAILED (23)
93 #define SL_WLAN_DISCONNECT_CIPHER_SUITE_REJECTED (24)
94 #define SL_WLAN_DISCONNECT_DISASSOC_LOW_ACK (34)
95 #define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_NONE (100)
96 #define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_LOW_TX_RATE (104)
97 #define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_LOW_SNR (105)
98 #define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_LOW_QUALITY (106)
99 #define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_TSPEC_REJECTED (107)
100 #define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_MAX_TX_RETRIES (108)
101 #define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_BSS_LOSS (109)
102 #define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_BSS_LOSS_DUE_TO_MAX_TX_RETRY (110)
103 #define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_SWITCH_CHANNEL (111)
104 #define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_AP_DISCONNECT (112)
105 #define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_SECURITY_ATTACK (113)
106 #define SL_WLAN_DISCONNECT_USER_INITIATED_DISCONNECTION (200)
110 #define SL_ERROR_KEY_ERROR (-3)
111 #define SL_ERROR_INVALID_ROLE (-71)
112 #define SL_ERROR_INVALID_SECURITY_TYPE (-84)
113 #define SL_ERROR_PASSPHRASE_TOO_LONG (-85)
114 #define SL_ERROR_WPS_NO_PIN_OR_WRONG_PIN_LEN (-87)
115 #define SL_ERROR_EAP_WRONG_METHOD (-88)
116 #define SL_ERROR_PASSWORD_ERROR (-89)
117 #define SL_ERROR_EAP_ANONYMOUS_LEN_ERROR (-90)
118 #define SL_ERROR_SSID_LEN_ERROR (-91)
119 #define SL_ERROR_USER_ID_LEN_ERROR (-92)
120 #define SL_ERROR_ILLEGAL_WEP_KEY_INDEX (-95)
121 #define SL_ERROR_INVALID_DWELL_TIME_VALUES (-96)
122 #define SL_ERROR_INVALID_POLICY_TYPE (-97)
123 #define SL_ERROR_PM_POLICY_INVALID_OPTION (-98)
124 #define SL_ERROR_PM_POLICY_INVALID_PARAMS (-99)
125 #define SL_ERROR_WIFI_ALREADY_DISCONNECTED (-129)
126 #define SL_ERROR_WIFI_NOT_CONNECTED (-59)
130 #define SL_SEC_TYPE_OPEN (0)
131 #define SL_SEC_TYPE_WEP (1)
132 #define SL_SEC_TYPE_WPA (2)
133 #define SL_SEC_TYPE_WPA_WPA2 (2)
134 #define SL_SEC_TYPE_WPS_PBC (3)
135 #define SL_SEC_TYPE_WPS_PIN (4)
136 #define SL_SEC_TYPE_WPA_ENT (5)
137 #define SL_SEC_TYPE_P2P_PBC (6)
138 #define SL_SEC_TYPE_P2P_PIN_KEYPAD (7)
139 #define SL_SEC_TYPE_P2P_PIN_DISPLAY (8)
140 #define SL_SEC_TYPE_P2P_PIN_AUTO (9)
144 #define SL_SCAN_SEC_TYPE_OPEN (0)
145 #define SL_SCAN_SEC_TYPE_WEP (1)
146 #define SL_SCAN_SEC_TYPE_WPA (2)
147 #define SL_SCAN_SEC_TYPE_WPA2 (3)
158 #define FAST_AUTH_PROVISIONING (0x02)
159 #define FAST_UNAUTH_PROVISIONING (0x01)
160 #define FAST_NO_PROVISIONING (0x00)
162 #define EAPMETHOD_PHASE2_SHIFT (8)
163 #define EAPMETHOD_PAIRWISE_CIPHER_SHIFT (19)
164 #define EAPMETHOD_GROUP_CIPHER_SHIFT (27)
166 #define WPA_CIPHER_CCMP (0x1)
167 #define WPA_CIPHER_TKIP (0x2)
168 #define CC31XX_DEFAULT_CIPHER (WPA_CIPHER_CCMP | WPA_CIPHER_TKIP)
170 #define EAPMETHOD(phase1,phase2,pairwise_cipher,group_cipher) \
172 ((phase2) << EAPMETHOD_PHASE2_SHIFT ) |\
173 ((_u32)(pairwise_cipher) << EAPMETHOD_PAIRWISE_CIPHER_SHIFT ) |\
174 ((_u32)(group_cipher) << EAPMETHOD_GROUP_CIPHER_SHIFT ))
177 #define SL_ENT_EAP_METHOD_TLS EAPMETHOD(TLS , 0 , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
178 #define SL_ENT_EAP_METHOD_TTLS_TLS EAPMETHOD(TTLS , TLS , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
179 #define SL_ENT_EAP_METHOD_TTLS_MSCHAPv2 EAPMETHOD(TTLS , MSCHAP , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
180 #define SL_ENT_EAP_METHOD_TTLS_PSK EAPMETHOD(TTLS , PSK , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
181 #define SL_ENT_EAP_METHOD_PEAP0_TLS EAPMETHOD(PEAP0 , TLS , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
182 #define SL_ENT_EAP_METHOD_PEAP0_MSCHAPv2 EAPMETHOD(PEAP0 , MSCHAP , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
183 #define SL_ENT_EAP_METHOD_PEAP0_PSK EAPMETHOD(PEAP0 , PSK , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
184 #define SL_ENT_EAP_METHOD_PEAP1_TLS EAPMETHOD(PEAP1 , TLS , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
185 #define SL_ENT_EAP_METHOD_PEAP1_MSCHAPv2 EAPMETHOD(PEAP1 , MSCHAP , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
186 #define SL_ENT_EAP_METHOD_PEAP1_PSK EAPMETHOD(PEAP1 , PSK , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
187 #define SL_ENT_EAP_METHOD_FAST_AUTH_PROVISIONING EAPMETHOD(FAST , FAST_AUTH_PROVISIONING , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
188 #define SL_ENT_EAP_METHOD_FAST_UNAUTH_PROVISIONING EAPMETHOD(FAST , FAST_UNAUTH_PROVISIONING , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
189 #define SL_ENT_EAP_METHOD_FAST_NO_PROVISIONING EAPMETHOD(FAST , FAST_NO_PROVISIONING , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
191 #define SL_LONG_PREAMBLE (0)
192 #define SL_SHORT_PREAMBLE (1)
194 #define SL_RAW_RF_TX_PARAMS_CHANNEL_SHIFT (0)
195 #define SL_RAW_RF_TX_PARAMS_RATE_SHIFT (6)
196 #define SL_RAW_RF_TX_PARAMS_POWER_SHIFT (11)
197 #define SL_RAW_RF_TX_PARAMS_PREAMBLE_SHIFT (15)
199 #define SL_RAW_RF_TX_PARAMS(chan,rate,power,preamble) \
200 ((chan << SL_RAW_RF_TX_PARAMS_CHANNEL_SHIFT) | \
201 (rate << SL_RAW_RF_TX_PARAMS_RATE_SHIFT) | \
202 (power << SL_RAW_RF_TX_PARAMS_POWER_SHIFT) | \
203 (preamble << SL_RAW_RF_TX_PARAMS_PREAMBLE_SHIFT))
207 #define SL_WLAN_CFG_AP_ID (0)
208 #define SL_WLAN_CFG_GENERAL_PARAM_ID (1)
209 #define SL_WLAN_CFG_P2P_PARAM_ID (2)
212 #define WLAN_AP_OPT_SSID (0)
213 #define WLAN_AP_OPT_CHANNEL (3)
214 #define WLAN_AP_OPT_HIDDEN_SSID (4)
215 #define WLAN_AP_OPT_SECURITY_TYPE (6)
216 #define WLAN_AP_OPT_PASSWORD (7)
217 #define WLAN_GENERAL_PARAM_OPT_COUNTRY_CODE (9)
218 #define WLAN_GENERAL_PARAM_OPT_STA_TX_POWER (10)
219 #define WLAN_GENERAL_PARAM_OPT_AP_TX_POWER (11)
221 #define WLAN_P2P_OPT_DEV_NAME (12)
222 #define WLAN_P2P_OPT_DEV_TYPE (13)
223 #define WLAN_P2P_OPT_CHANNEL_N_REGS (14)
224 #define WLAN_GENERAL_PARAM_OPT_INFO_ELEMENT (16)
225 #define WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS (18)
228 #define SMART_CONFIG_CIPHER_SFLASH (0)
230 #define SMART_CONFIG_CIPHER_AES (1)
231 #define SMART_CONFIG_CIPHER_NONE (0xFF)
234 #define SL_POLICY_CONNECTION (0x10)
235 #define SL_POLICY_SCAN (0x20)
236 #define SL_POLICY_PM (0x30)
237 #define SL_POLICY_P2P (0x40)
239 #define VAL_2_MASK(position,value) ((1 & (value))<<(position))
240 #define MASK_2_VAL(position,mask) (((1 << position) & (mask)) >> (position))
242 #define SL_CONNECTION_POLICY(Auto,Fast,Open,anyP2P,autoSmartConfig) (VAL_2_MASK(0,Auto) | VAL_2_MASK(1,Fast) | VAL_2_MASK(2,Open) | VAL_2_MASK(3,anyP2P) | VAL_2_MASK(4,autoSmartConfig))
243 #define SL_SCAN_POLICY_EN(policy) (MASK_2_VAL(0,policy))
244 #define SL_SCAN_POLICY(Enable) (VAL_2_MASK(0,Enable))
247 #define SL_NORMAL_POLICY (0)
248 #define SL_LOW_LATENCY_POLICY (1)
249 #define SL_LOW_POWER_POLICY (2)
250 #define SL_ALWAYS_ON_POLICY (3)
251 #define SL_LONG_SLEEP_INTERVAL_POLICY (4)
253 #define SL_P2P_ROLE_NEGOTIATE (3)
254 #define SL_P2P_ROLE_GROUP_OWNER (15)
255 #define SL_P2P_ROLE_CLIENT (0)
257 #define SL_P2P_NEG_INITIATOR_ACTIVE (0)
258 #define SL_P2P_NEG_INITIATOR_PASSIVE (1)
259 #define SL_P2P_NEG_INITIATOR_RAND_BACKOFF (2)
261 #define POLICY_VAL_2_OPTIONS(position,mask,policy) ((mask & policy) << position )
263 #define SL_P2P_POLICY(p2pNegType,p2pNegInitiator) (POLICY_VAL_2_OPTIONS(0,0xF,(p2pNegType > SL_P2P_ROLE_GROUP_OWNER ? SL_P2P_ROLE_GROUP_OWNER : p2pNegType)) | \
264 POLICY_VAL_2_OPTIONS(4,0x1,(p2pNegType > SL_P2P_ROLE_GROUP_OWNER ? 1:0)) | \
265 POLICY_VAL_2_OPTIONS(5,0x3, p2pNegInitiator))
270 #define INFO_ELEMENT_DEFAULT_ID (0)
273 #define INFO_ELEMENT_MAX_SIZE (252)
276 #define INFO_ELEMENT_MAX_TOTAL_LENGTH_AP (300)
278 #define INFO_ELEMENT_MAX_TOTAL_LENGTH_P2P_GO (160)
280 #define INFO_ELEMENT_AP_ROLE (0)
281 #define INFO_ELEMENT_P2P_GO_ROLE (1)
284 #define MAX_PRIVATE_INFO_ELEMENTS_SUPPROTED (4)
286 #define INFO_ELEMENT_DEFAULT_OUI_0 (0x08)
287 #define INFO_ELEMENT_DEFAULT_OUI_1 (0x00)
288 #define INFO_ELEMENT_DEFAULT_OUI_2 (0x28)
290 #define INFO_ELEMENT_DEFAULT_OUI (0x000000)
298 #define SL_DISCONNECT_UNSPECIFIED_REASON SL_WLAN_DISCONNECT_UNSPECIFIED_REASON
299 #define SL_PREVIOUS_AUTHENTICATION_NO_LONGER_VALID SL_WLAN_DISCONNECT_PREV_AUTH_NOT_VALID
300 #define SL_DEAUTHENTICATED_BECAUSE_SENDING_STATION_IS_LEAVING SL_WLAN_DISCONNECT_DEAUTH_LEAVING
301 #define SL_DISASSOCIATED_DUE_TO_INACTIVITY SL_WLAN_DISCONNECT_DISASSOC_DUE_TO_INACTIVITY
302 #define SL_DISASSOCIATED_BECAUSE_AP_IS_UNABLE_TO_HANDLE_ALL_CURRENTLY_ASSOCIATED_STATIONS SL_WLAN_DISCONNECT_DISASSOC_AP_BUSY
303 #define SL_CLASS_2_FRAME_RECEIVED_FROM_NONAUTHENTICATED_STATION SL_WLAN_DISCONNECT_CLASS2_FRAME_FROM_NONAUTH_STA
304 #define SL_CLASS_3_FRAME_RECEIVED_FROM_NONASSOCIATED_STATION SL_WLAN_DISCONNECT_CLASS3_FRAME_FROM_NONASSOC_STA
305 #define SL_DISASSOCIATED_BECAUSE_SENDING_STATION_IS_LEAVING_BSS SL_WLAN_DISCONNECT_DISASSOC_STA_HAS_LEFT
306 #define SL_STATION_REQUESTING_ASSOCIATION_IS_NOT_AUTHENTICATED_WITH_RESPONDING_STATION SL_WLAN_DISCONNECT_STA_REQ_ASSOC_WITHOUT_AUTH
307 #define SL_DISASSOCIATED_BECAUSE_THE_INFORMATION_IN_THE_POWER_CAPABILITY_ELEMENT_IS_UNACCEPTABLE SL_WLAN_DISCONNECT_PWR_CAPABILITY_NOT_VALID
308 #define SL_DISASSOCIATED_BECAUSE_THE_INFORMATION_IN_THE_SUPPORTED_CHANNELS_ELEMENT_IS_UNACCEPTABLE SL_WLAN_DISCONNECT_SUPPORTED_CHANNEL_NOT_VALID
309 #define SL_INVALID_INFORMATION_ELEMENT SL_WLAN_DISCONNECT_INVALID_IE
310 #define SL_MESSAGE_INTEGRITY_CODE_MIC_FAILURE SL_WLAN_DISCONNECT_MIC_FAILURE
311 #define SL_FOUR_WAY_HANDSHAKE_TIMEOUT SL_WLAN_DISCONNECT_4WAY_HANDSHAKE_TIMEOUT
312 #define SL_GROUP_KEY_HANDSHAKE_TIMEOUT SL_WLAN_DISCONNECT_GROUP_KEY_UPDATE_TIMEOUT
313 #define SL_RE_ASSOCIATION_REQUEST_PROBE_RESPONSE_BEACON_FRAME SL_WLAN_DISCONNECT_IE_IN_4WAY_DIFFERS
314 #define SL_INVALID_GROUP_CIPHER SL_WLAN_DISCONNECT_GROUP_CIPHER_NOT_VALID
315 #define SL_INVALID_PAIRWISE_CIPHER SL_WLAN_DISCONNECT_PAIRWISE_CIPHER_NOT_VALID
316 #define SL_INVALID_AKMP SL_WLAN_DISCONNECT_AKMP_NOT_VALID
317 #define SL_UNSUPPORTED_RSN_INFORMATION_ELEMENT_VERSION SL_WLAN_DISCONNECT_UNSUPPORTED_RSN_IE_VERSION
318 #define SL_INVALID_RSN_INFORMATION_ELEMENT_CAPABILITIES SL_WLAN_DISCONNECT_INVALID_RSN_IE_CAPAB
319 #define SL_IEEE_802_1X_AUTHENTICATION_FAILED SL_WLAN_DISCONNECT_IEEE_802_1X_AUTH_FAILED
320 #define SL_CIPHER_SUITE_REJECTED_BECAUSE_OF_THE_SECURITY_POLICY SL_WLAN_DISCONNECT_CIPHER_SUITE_REJECTED
321 #define SL_USER_INITIATED_DISCONNECTION SL_WLAN_DISCONNECT_USER_INITIATED_DISCONNECTION
324 #define SL_DISCONNECT_RESERVED_0 (0)
325 #define SL_DISCONNECT_RESERVED_1 (12)
326 #define SL_DISCONNECT_RESERVED_2 (26)
327 #define SL_DISCONNECT_RESERVED_3 (27)
328 #define SL_DISCONNECT_RESERVED_4 (28)
329 #define SL_DISCONNECT_RESERVED_5 (29)
330 #define SL_DISCONNECT_RESERVED_6 (30)
331 #define SL_DISCONNECT_RESERVED_7 (31)
332 #define SL_DISCONNECT_RESERVED_8 (32)
372 DEV_PW_PUSH_BUTTON=4,
374 } sl_p2p_dev_password_method;
382 _u32 private_token_len;
383 _u8 private_token[32];
403 _u8 go_peer_device_name_len;
404 _u8 go_peer_device_name[32];
412 _u8 go_peer_device_name[32];
414 _u8 go_peer_device_name_len;
415 _u8 wps_dev_password_id;
445 _u32 ReceivedValidPacketsNumber;
446 _u32 ReceivedFcsErrorPacketsNumber;
447 _u32 ReceivedAddressMismatchPacketsNumber;
448 _i16 AvarageDataCtrlRssi;
449 _i16 AvarageMgMntRssi;
450 _u16 RateHistogram[NUM_OF_RATE_INDEXES];
451 _u16 RssiHistogram[SIZE_OF_RSSI_HISTOGRAM];
459 _u8 ssid[MAXIMAL_SSID_LENGTH];
462 _u8 bssid[SL_BSSID_LENGTH];
510 _u32 G_Channels_mask;
561 #if _SL_INCLUDE_FUNC(sl_WlanConnect)
576 #if _SL_INCLUDE_FUNC(sl_WlanDisconnect)
618 #if _SL_INCLUDE_FUNC(sl_WlanProfileAdd)
650 #if _SL_INCLUDE_FUNC(sl_WlanProfileGet)
669 #if _SL_INCLUDE_FUNC(sl_WlanProfileDel)
738 #if _SL_INCLUDE_FUNC(sl_WlanPolicySet)
739 _i16
sl_WlanPolicySet(
const _u8 Type ,
const _u8 Policy, _u8 *pVal,
const _u8 ValLen);
761 #if _SL_INCLUDE_FUNC(sl_WlanPolicyGet)
792 #if _SL_INCLUDE_FUNC(sl_WlanGetNetworkList)
831 #if _SL_INCLUDE_FUNC(sl_WlanRxStatStart)
845 #if _SL_INCLUDE_FUNC(sl_WlanRxStatStop)
861 #if _SL_INCLUDE_FUNC(sl_WlanRxStatGet)
880 #if _SL_INCLUDE_FUNC(sl_WlanSmartConfigStop)
931 #if _SL_INCLUDE_FUNC(sl_WlanSmartConfigStart)
934 const _u8 publicKeyLen,
935 const _u8 group1KeyLen,
936 const _u8 group2KeyLen,
937 const _u8* publicKey,
938 const _u8* group1Key,
939 const _u8* group2Key);
965 #if _SL_INCLUDE_FUNC(sl_WlanSetMode)
1163 #if _SL_INCLUDE_FUNC(sl_WlanSet)
1164 _i16
sl_WlanSet(
const _u16 ConfigId ,
const _u16 ConfigOpt,
const _u16 ConfigLen,
const _u8 *pValues);
1346 #if _SL_INCLUDE_FUNC(sl_WlanGet)
1347 _i16
sl_WlanGet(
const _u16 ConfigId, _u16 *pConfigOpt,_u16 *pConfigLen, _u8 *pValues);
_i16 sl_WlanRxStatStart(void)
Start collecting wlan RX statistics, for unlimited time.
_i16 sl_WlanProfileGet(const _i16 Index, _i8 *pName, _i16 *pNameLen, _u8 *pMacAddr, SlSecParams_t *pSecParams, SlGetSecParamsExt_t *pSecExtParams, _u32 *pPriority)
get profile
_i16 sl_WlanProfileDel(const _i16 Index)
Delete WLAN profile.
_i16 sl_WlanPolicySet(const _u8 Type, const _u8 Policy, _u8 *pVal, const _u8 ValLen)
Set policy values.
_i16 sl_WlanGet(const _u16 ConfigId, _u16 *pConfigOpt, _u16 *pConfigLen, _u8 *pValues)
Internal function for getting WLAN configurations.
_i16 sl_WlanRxStatGet(SlGetRxStatResponse_t *pRxStat, const _u32 Flags)
Get wlan RX statistics. upon calling this command, the statistics counters will be cleared...
_i16 sl_WlanDisconnect(void)
wlan disconnect
_i16 sl_WlanPolicyGet(const _u8 Type, _u8 Policy, _u8 *pVal, _u8 *pValLen)
get policy values
_i16 sl_WlanSetMode(const _u8 mode)
Wlan set mode.
_i16 sl_WlanSmartConfigStart(const _u32 groupIdBitmask, const _u8 cipher, const _u8 publicKeyLen, const _u8 group1KeyLen, const _u8 group2KeyLen, const _u8 *publicKey, const _u8 *group1Key, const _u8 *group2Key)
Start Smart Config procedure.
_i16 sl_WlanGetNetworkList(const _u8 Index, const _u8 Count, Sl_WlanNetworkEntry_t *pEntries)
Gets the WLAN scan operation results.
_i16 sl_WlanSmartConfigStop(void)
Stop Smart Config procedure. Once Smart Config will be stopped, Asynchronous event will be received -...
_i16 sl_WlanSet(const _u16 ConfigId, const _u16 ConfigOpt, const _u16 ConfigLen, const _u8 *pValues)
Internal function for setting WLAN configurations.
_i16 sl_WlanRxStatStop(void)
Stop collecting wlan RX statistic, (if previous called sl_WlanRxStatStart)
_i16 sl_WlanConnect(const _i8 *pName, const _i16 NameLen, const _u8 *pMacAddr, const SlSecParams_t *pSecParams, const SlSecParamsExt_t *pSecExtParams)
Connect to wlan network as a station.
_i16 sl_WlanProfileAdd(const _i8 *pName, const _i16 NameLen, const _u8 *pMacAddr, const SlSecParams_t *pSecParams, const SlSecParamsExt_t *pSecExtParams, const _u32 Priority, const _u32 Options)
add profile