XDK API  3.6.0
Documentation
Data Structures | Macros | Enumerations
wlan.h File Reference
#include "simplelink.h"
+ Include dependency graph for wlan.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  sl_protocol_InfoElement_t
 
struct  sl_protocol_WlanSetInfoElement_t
 
struct  Sl_WlanNetworkEntry_t
 
struct  SlGetRxStatResponse_t
 
struct  SlGetSecParamsExt_t
 
struct  slPeerInfoAsyncResponse_t
 
struct  SlSecParams_t
 
struct  SlSecParamsExt_t
 
struct  slSmartConfigStartAsyncResponse_t
 
struct  slSmartConfigStopAsyncResponse_t
 
struct  slWlanConnectAsyncResponse_t
 
struct  slWlanConnFailureAsyncResponse_t
 
struct  SlWlanEvent_t
 
union  SlWlanEventData_u
 
struct  SlWlanGetPmPolicyParams_t
 
struct  SlWlanGetScanPolicyParams_t
 
struct  slWlanScanParamCommand_t
 
struct  SlWlanSetPmPolicyParams_t
 

Macros

#define CC31XX_DEFAULT_CIPHER   (WPA_CIPHER_CCMP | WPA_CIPHER_TKIP)
 
#define EAPMETHOD(phase1, phase2, pairwise_cipher, group_cipher)
 
#define EAPMETHOD_GROUP_CIPHER_SHIFT   (27)
 
#define EAPMETHOD_PAIRWISE_CIPHER_SHIFT   (19)
 
#define EAPMETHOD_PHASE2_SHIFT   (8)
 
#define FAST   (0x80)
 
#define FAST_AUTH_PROVISIONING   (0x02)
 
#define FAST_NO_PROVISIONING   (0x00)
 
#define FAST_UNAUTH_PROVISIONING   (0x01)
 
#define INFO_ELEMENT_AP_ROLE   (0)
 
#define INFO_ELEMENT_DEFAULT_ID   (0) /* 221 will be used */
 
#define INFO_ELEMENT_DEFAULT_OUI   (0x000000) /* 08, 00, 28 will be used */
 
#define INFO_ELEMENT_DEFAULT_OUI_0   (0x08)
 
#define INFO_ELEMENT_DEFAULT_OUI_1   (0x00)
 
#define INFO_ELEMENT_DEFAULT_OUI_2   (0x28)
 
#define INFO_ELEMENT_MAX_SIZE   (252)
 
#define INFO_ELEMENT_MAX_TOTAL_LENGTH_AP   (300)
 
#define INFO_ELEMENT_MAX_TOTAL_LENGTH_P2P_GO   (160)
 
#define INFO_ELEMENT_P2P_GO_ROLE   (1)
 
#define MASK_2_VAL(position, mask)   (((1 << position) & (mask)) >> (position))
 
#define MAX_PRIVATE_INFO_ELEMENTS_SUPPROTED   (4)
 
#define MAXIMAL_SSID_LENGTH   (32)
 
#define MSCHAP   (0x0)
 
#define NUM_OF_RATE_INDEXES   (20)
 
#define PEAP0   (0x20)
 
#define PEAP1   (0x40)
 
#define POLICY_VAL_2_OPTIONS(position, mask, policy)   ((mask & policy) << position )
 
#define PSK   (0x2)
 
#define SIZE_OF_RSSI_HISTOGRAM   (6)
 
#define SL_ALWAYS_ON_POLICY   (3)
 
#define SL_BSSID_LENGTH   (6)
 
#define SL_CIPHER_SUITE_REJECTED_BECAUSE_OF_THE_SECURITY_POLICY   SL_WLAN_DISCONNECT_CIPHER_SUITE_REJECTED
 
#define SL_CLASS_2_FRAME_RECEIVED_FROM_NONAUTHENTICATED_STATION   SL_WLAN_DISCONNECT_CLASS2_FRAME_FROM_NONAUTH_STA
 
#define SL_CLASS_3_FRAME_RECEIVED_FROM_NONASSOCIATED_STATION   SL_WLAN_DISCONNECT_CLASS3_FRAME_FROM_NONASSOC_STA
 
#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))
 
#define SL_DEAUTHENTICATED_BECAUSE_SENDING_STATION_IS_LEAVING   SL_WLAN_DISCONNECT_DEAUTH_LEAVING
 
#define SL_DISASSOCIATED_BECAUSE_AP_IS_UNABLE_TO_HANDLE_ALL_CURRENTLY_ASSOCIATED_STATIONS   SL_WLAN_DISCONNECT_DISASSOC_AP_BUSY
 
#define SL_DISASSOCIATED_BECAUSE_SENDING_STATION_IS_LEAVING_BSS   SL_WLAN_DISCONNECT_DISASSOC_STA_HAS_LEFT
 
#define SL_DISASSOCIATED_BECAUSE_THE_INFORMATION_IN_THE_POWER_CAPABILITY_ELEMENT_IS_UNACCEPTABLE   SL_WLAN_DISCONNECT_PWR_CAPABILITY_NOT_VALID
 
#define SL_DISASSOCIATED_BECAUSE_THE_INFORMATION_IN_THE_SUPPORTED_CHANNELS_ELEMENT_IS_UNACCEPTABLE   SL_WLAN_DISCONNECT_SUPPORTED_CHANNEL_NOT_VALID
 
#define SL_DISASSOCIATED_DUE_TO_INACTIVITY   SL_WLAN_DISCONNECT_DISASSOC_DUE_TO_INACTIVITY
 
#define SL_DISCONNECT_RESERVED_0   (0)
 
#define SL_DISCONNECT_RESERVED_1   (12)
 
#define SL_DISCONNECT_RESERVED_2   (26)
 
#define SL_DISCONNECT_RESERVED_3   (27)
 
#define SL_DISCONNECT_RESERVED_4   (28)
 
#define SL_DISCONNECT_RESERVED_5   (29)
 
#define SL_DISCONNECT_RESERVED_6   (30)
 
#define SL_DISCONNECT_RESERVED_7   (31)
 
#define SL_DISCONNECT_RESERVED_8   (32)
 
#define SL_DISCONNECT_UNSPECIFIED_REASON   SL_WLAN_DISCONNECT_UNSPECIFIED_REASON
 
#define SL_ENT_EAP_METHOD_FAST_AUTH_PROVISIONING   EAPMETHOD(FAST , FAST_AUTH_PROVISIONING , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ENT_EAP_METHOD_FAST_NO_PROVISIONING   EAPMETHOD(FAST , FAST_NO_PROVISIONING , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ENT_EAP_METHOD_FAST_UNAUTH_PROVISIONING   EAPMETHOD(FAST , FAST_UNAUTH_PROVISIONING , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ENT_EAP_METHOD_PEAP0_MSCHAPv2   EAPMETHOD(PEAP0 , MSCHAP , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ENT_EAP_METHOD_PEAP0_PSK   EAPMETHOD(PEAP0 , PSK , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ENT_EAP_METHOD_PEAP0_TLS   EAPMETHOD(PEAP0 , TLS , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ENT_EAP_METHOD_PEAP1_MSCHAPv2   EAPMETHOD(PEAP1 , MSCHAP , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ENT_EAP_METHOD_PEAP1_PSK   EAPMETHOD(PEAP1 , PSK , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ENT_EAP_METHOD_PEAP1_TLS   EAPMETHOD(PEAP1 , TLS , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ENT_EAP_METHOD_TLS   EAPMETHOD(TLS , 0 , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ENT_EAP_METHOD_TTLS_MSCHAPv2   EAPMETHOD(TTLS , MSCHAP , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ENT_EAP_METHOD_TTLS_PSK   EAPMETHOD(TTLS , PSK , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ENT_EAP_METHOD_TTLS_TLS   EAPMETHOD(TTLS , TLS , CC31XX_DEFAULT_CIPHER , CC31XX_DEFAULT_CIPHER)
 
#define SL_ERROR_EAP_ANONYMOUS_LEN_ERROR   (-90)
 
#define SL_ERROR_EAP_WRONG_METHOD   (-88)
 
#define SL_ERROR_ILLEGAL_WEP_KEY_INDEX   (-95)
 
#define SL_ERROR_INVALID_DWELL_TIME_VALUES   (-96)
 
#define SL_ERROR_INVALID_POLICY_TYPE   (-97)
 
#define SL_ERROR_INVALID_ROLE   (-71)
 
#define SL_ERROR_INVALID_SECURITY_TYPE   (-84)
 
#define SL_ERROR_KEY_ERROR   (-3)
 
#define SL_ERROR_PASSPHRASE_TOO_LONG   (-85)
 
#define SL_ERROR_PASSWORD_ERROR   (-89)
 
#define SL_ERROR_PM_POLICY_INVALID_OPTION   (-98)
 
#define SL_ERROR_PM_POLICY_INVALID_PARAMS   (-99)
 
#define SL_ERROR_SSID_LEN_ERROR   (-91)
 
#define SL_ERROR_USER_ID_LEN_ERROR   (-92)
 
#define SL_ERROR_WIFI_ALREADY_DISCONNECTED   (-129)
 
#define SL_ERROR_WIFI_NOT_CONNECTED   (-59)
 
#define SL_ERROR_WPS_NO_PIN_OR_WRONG_PIN_LEN   (-87)
 
#define SL_FOUR_WAY_HANDSHAKE_TIMEOUT   SL_WLAN_DISCONNECT_4WAY_HANDSHAKE_TIMEOUT
 
#define SL_GROUP_KEY_HANDSHAKE_TIMEOUT   SL_WLAN_DISCONNECT_GROUP_KEY_UPDATE_TIMEOUT
 
#define SL_IEEE_802_1X_AUTHENTICATION_FAILED   SL_WLAN_DISCONNECT_IEEE_802_1X_AUTH_FAILED
 
#define SL_INVALID_AKMP   SL_WLAN_DISCONNECT_AKMP_NOT_VALID
 
#define SL_INVALID_GROUP_CIPHER   SL_WLAN_DISCONNECT_GROUP_CIPHER_NOT_VALID
 
#define SL_INVALID_INFORMATION_ELEMENT   SL_WLAN_DISCONNECT_INVALID_IE
 
#define SL_INVALID_PAIRWISE_CIPHER   SL_WLAN_DISCONNECT_PAIRWISE_CIPHER_NOT_VALID
 
#define SL_INVALID_RSN_INFORMATION_ELEMENT_CAPABILITIES   SL_WLAN_DISCONNECT_INVALID_RSN_IE_CAPAB
 
#define SL_LONG_PREAMBLE   (0)
 
#define SL_LONG_SLEEP_INTERVAL_POLICY   (4)
 
#define SL_LOW_LATENCY_POLICY   (1)
 
#define SL_LOW_POWER_POLICY   (2)
 
#define SL_MESSAGE_INTEGRITY_CODE_MIC_FAILURE   SL_WLAN_DISCONNECT_MIC_FAILURE
 
#define SL_NORMAL_POLICY   (0)
 
#define SL_P2P_NEG_INITIATOR_ACTIVE   (0)
 
#define SL_P2P_NEG_INITIATOR_PASSIVE   (1)
 
#define SL_P2P_NEG_INITIATOR_RAND_BACKOFF   (2)
 
#define SL_P2P_POLICY(p2pNegType, p2pNegInitiator)
 
#define SL_P2P_ROLE_CLIENT   (0)
 
#define SL_P2P_ROLE_GROUP_OWNER   (15)
 
#define SL_P2P_ROLE_NEGOTIATE   (3)
 
#define SL_POLICY_CONNECTION   (0x10)
 
#define SL_POLICY_P2P   (0x40)
 
#define SL_POLICY_PM   (0x30)
 
#define SL_POLICY_SCAN   (0x20)
 
#define SL_PREVIOUS_AUTHENTICATION_NO_LONGER_VALID   SL_WLAN_DISCONNECT_PREV_AUTH_NOT_VALID
 
#define SL_RAW_RF_TX_PARAMS(chan, rate, power, preamble)
 
#define SL_RAW_RF_TX_PARAMS_CHANNEL_SHIFT   (0)
 
#define SL_RAW_RF_TX_PARAMS_POWER_SHIFT   (11)
 
#define SL_RAW_RF_TX_PARAMS_PREAMBLE_SHIFT   (15)
 
#define SL_RAW_RF_TX_PARAMS_RATE_SHIFT   (6)
 
#define SL_RE_ASSOCIATION_REQUEST_PROBE_RESPONSE_BEACON_FRAME   SL_WLAN_DISCONNECT_IE_IN_4WAY_DIFFERS
 
#define SL_SCAN_POLICY(Enable)   (VAL_2_MASK(0,Enable))
 
#define SL_SCAN_POLICY_EN(policy)   (MASK_2_VAL(0,policy))
 
#define SL_SCAN_SEC_TYPE_OPEN   (0)
 
#define SL_SCAN_SEC_TYPE_WEP   (1)
 
#define SL_SCAN_SEC_TYPE_WPA   (2)
 
#define SL_SCAN_SEC_TYPE_WPA2   (3)
 
#define SL_SEC_TYPE_OPEN   (0)
 
#define SL_SEC_TYPE_P2P_PBC   (6)
 
#define SL_SEC_TYPE_P2P_PIN_AUTO   (9) /* NOT Supported yet */
 
#define SL_SEC_TYPE_P2P_PIN_DISPLAY   (8)
 
#define SL_SEC_TYPE_P2P_PIN_KEYPAD   (7)
 
#define SL_SEC_TYPE_WEP   (1)
 
#define SL_SEC_TYPE_WPA   (2) /* deprecated */
 
#define SL_SEC_TYPE_WPA_ENT   (5)
 
#define SL_SEC_TYPE_WPA_WPA2   (2)
 
#define SL_SEC_TYPE_WPS_PBC   (3)
 
#define SL_SEC_TYPE_WPS_PIN   (4)
 
#define SL_SHORT_PREAMBLE   (1)
 
#define SL_STATION_REQUESTING_ASSOCIATION_IS_NOT_AUTHENTICATED_WITH_RESPONDING_STATION   SL_WLAN_DISCONNECT_STA_REQ_ASSOC_WITHOUT_AUTH
 
#define SL_UNSUPPORTED_RSN_INFORMATION_ELEMENT_VERSION   SL_WLAN_DISCONNECT_UNSUPPORTED_RSN_IE_VERSION
 
#define SL_USER_INITIATED_DISCONNECTION   SL_WLAN_DISCONNECT_USER_INITIATED_DISCONNECTION
 
#define SL_WLAN_CFG_AP_ID   (0)
 
#define SL_WLAN_CFG_GENERAL_PARAM_ID   (1)
 
#define SL_WLAN_CFG_P2P_PARAM_ID   (2)
 
#define SL_WLAN_DISCONNECT_4WAY_HANDSHAKE_TIMEOUT   (15)
 
#define SL_WLAN_DISCONNECT_AKMP_NOT_VALID   (20)
 
#define SL_WLAN_DISCONNECT_CIPHER_SUITE_REJECTED   (24)
 
#define SL_WLAN_DISCONNECT_CLASS2_FRAME_FROM_NONAUTH_STA   (6)
 
#define SL_WLAN_DISCONNECT_CLASS3_FRAME_FROM_NONASSOC_STA   (7)
 
#define SL_WLAN_DISCONNECT_DEAUTH_LEAVING   (3)
 
#define SL_WLAN_DISCONNECT_DISASSOC_AP_BUSY   (5)
 
#define SL_WLAN_DISCONNECT_DISASSOC_DUE_TO_INACTIVITY   (4)
 
#define SL_WLAN_DISCONNECT_DISASSOC_LOW_ACK   (34)
 
#define SL_WLAN_DISCONNECT_DISASSOC_STA_HAS_LEFT   (8)
 
#define SL_WLAN_DISCONNECT_GROUP_CIPHER_NOT_VALID   (18)
 
#define SL_WLAN_DISCONNECT_GROUP_KEY_UPDATE_TIMEOUT   (16)
 
#define SL_WLAN_DISCONNECT_IE_IN_4WAY_DIFFERS   (17)
 
#define SL_WLAN_DISCONNECT_IEEE_802_1X_AUTH_FAILED   (23)
 
#define SL_WLAN_DISCONNECT_INVALID_IE   (13)
 
#define SL_WLAN_DISCONNECT_INVALID_RSN_IE_CAPAB   (22)
 
#define SL_WLAN_DISCONNECT_MIC_FAILURE   (14)
 
#define SL_WLAN_DISCONNECT_PAIRWISE_CIPHER_NOT_VALID   (19)
 
#define SL_WLAN_DISCONNECT_PREV_AUTH_NOT_VALID   (2)
 
#define SL_WLAN_DISCONNECT_PWR_CAPABILITY_NOT_VALID   (10)
 
#define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_AP_DISCONNECT   (112)
 
#define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_BSS_LOSS   (109)
 
#define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_BSS_LOSS_DUE_TO_MAX_TX_RETRY   (110)
 
#define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_LOW_QUALITY   (106)
 
#define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_LOW_SNR   (105)
 
#define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_LOW_TX_RATE   (104)
 
#define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_MAX_TX_RETRIES   (108)
 
#define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_NONE   (100)
 
#define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_SECURITY_ATTACK   (113)
 
#define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_SWITCH_CHANNEL   (111)
 
#define SL_WLAN_DISCONNECT_ROAMING_TRIGGER_TSPEC_REJECTED   (107)
 
#define SL_WLAN_DISCONNECT_STA_REQ_ASSOC_WITHOUT_AUTH   (9)
 
#define SL_WLAN_DISCONNECT_SUPPORTED_CHANNEL_NOT_VALID   (11)
 
#define SL_WLAN_DISCONNECT_UNSPECIFIED_REASON   (1)
 
#define SL_WLAN_DISCONNECT_UNSUPPORTED_RSN_IE_VERSION   (21)
 
#define SL_WLAN_DISCONNECT_USER_INITIATED_DISCONNECTION   (200)
 
#define SMART_CONFIG_CIPHER_AES   (1) /* AES (other types are not supported) */
 
#define SMART_CONFIG_CIPHER_NONE   (0xFF) /* do not check in the flash */
 
#define SMART_CONFIG_CIPHER_SFLASH   (0) /* password is not delivered by the application. The Simple Manager should */
 
#define TLS   (0x1)
 
#define TTLS   (0x10)
 
#define VAL_2_MASK(position, value)   ((1 & (value))<<(position))
 
#define WLAN_AP_OPT_CHANNEL   (3)
 
#define WLAN_AP_OPT_HIDDEN_SSID   (4)
 
#define WLAN_AP_OPT_PASSWORD   (7)
 
#define WLAN_AP_OPT_SECURITY_TYPE   (6)
 
#define WLAN_AP_OPT_SSID   (0)
 
#define WLAN_GENERAL_PARAM_OPT_AP_TX_POWER   (11)
 
#define WLAN_GENERAL_PARAM_OPT_COUNTRY_CODE   (9)
 
#define WLAN_GENERAL_PARAM_OPT_INFO_ELEMENT   (16)
 
#define WLAN_GENERAL_PARAM_OPT_SCAN_PARAMS   (18) /* change the scan channels and RSSI threshold using this configuration option */
 
#define WLAN_GENERAL_PARAM_OPT_STA_TX_POWER   (10)
 
#define WLAN_P2P_OPT_CHANNEL_N_REGS   (14)
 
#define WLAN_P2P_OPT_DEV_NAME   (12)
 
#define WLAN_P2P_OPT_DEV_TYPE   (13)
 
#define WPA_CIPHER_CCMP   (0x1)
 
#define WPA_CIPHER_TKIP   (0x2)
 

Enumerations

enum  sl_p2p_dev_password_method
 
enum  SlRateIndex_e
 
enum  SlWlanMode_e
 

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:41 by doxygen 1.8.8