38 #include "cc3000_common.h"
50 #define WLAN_SEC_UNSEC (0)
51 #define WLAN_SEC_WEP (1)
52 #define WLAN_SEC_WPA (2)
53 #define WLAN_SEC_WPA2 (3)
108 tFWPatches sFWPatches,
109 tDriverPatches sDriverPatches,
110 tBootLoaderPatches sBootLoaderPatches,
111 tWlanReadInteruptPin sReadWlanInterruptPin,
112 tWlanInterruptEnable sWlanInterruptEnable,
113 tWlanInterruptDisable sWlanInterruptDisable,
114 tWriteWlanPin sWriteWlanPin);
144 extern void wlan_start(UINT16 usPatchesAvailableAtHost);
191 #ifndef CC3000_TINY_DRIVER
192 extern INT32
wlan_connect(UINT32 ulSecType, CHAR *ssid, INT32 ssid_len,
193 UINT8 *bssid, UINT8 *key, INT32 key_len);
246 UINT32 ulPairwiseCipher_Or_Key,
247 UINT32 ulGroupCipher_TxKeyLen,
250 UINT32 ulPassPhraseLen);
341 UINT32 should_connect_to_open_ap,
342 UINT32 should_use_fast_connect,
343 UINT32 ulUseProfiles);
420 uiMinDwellTime,UINT32 uiMaxDwellTime,
421 UINT32 uiNumOfProbeRequests,
422 UINT32 uiChannelMask,
423 INT32 iRSSIThreshold,UINT32 uiSNRThreshold,
424 UINT32 uiDefaultTxPower,
425 UINT32 *aiIntervalList);
516 #endif // __cplusplus
INT32 wlan_ioctl_set_connection_policy(UINT32 should_connect_to_open_ap, UINT32 ulShouldUseFastConnect, UINT32 ulUseProfiles)
When auto is enabled, the device tries to connect according the following policy: 1) If fast connect ...
Definition: wlan.c:520
INT32 wlan_ioctl_set_scan_params(UINT32 uiEnable, UINT32 uiMinDwellTime, UINT32 uiMaxDwellTime, UINT32 uiNumOfProbeRequests, UINT32 uiChannelMask, INT32 iRSSIThreshold, UINT32 uiSNRThreshold, UINT32 uiDefaultTxPower, UINT32 *aiIntervalList)
start and stop scan procedure. Set scan parameters.
Definition: wlan.c:851
INT32 wlan_smart_config_start(UINT32 algoEncryptedFlag)
Start to acquire device profile. The device acquire its own profile, if profile message is found...
Definition: wlan.c:1008
void wlan_init(tWlanCB sWlanCB, tFWPatches sFWPatches, tDriverPatches sDriverPatches, tBootLoaderPatches sBootLoaderPatches, tWlanReadInteruptPin sReadWlanInterruptPin, tWlanInterruptEnable sWlanInterruptEnable, tWlanInterruptDisable sWlanInterruptDisable, tWriteWlanPin sWriteWlanPin)
Initialize wlan driver.
Definition: wlan.c:178
void wlan_stop(void)
Stop WLAN device by putting it into reset state.
Definition: wlan.c:324
void wlan_start(UINT16 usPatchesAvailableAtHost)
Start WLAN device. This function asserts the enable pin of the device (WLAN_EN), starting the HW init...
Definition: wlan.c:255
INT32 wlan_smart_config_stop(void)
Stop the acquire profile procedure.
Definition: wlan.c:1045
INT32 wlan_add_profile(UINT32 ulSecType, UINT8 *ucSsid, UINT32 ulSsidLen, UINT8 *ucBssid, UINT32 ulPriority, UINT32 ulPairwiseCipher_Or_TxKeyLen, UINT32 ulGroupCipher_TxKeyIndex, UINT32 ulKeyMgmt, UINT8 *ucPf_OrKey, UINT32 ulPassPhraseLen)
When auto start is enabled, the device connects to station from the profiles table. Up to 7 profiles are supported. If several profiles configured the device choose the highest priority profile, within each priority group, device will choose profile based on security policy, signal strength, etc parameters. All the profiles are stored in CC3000 NVMEM.
Definition: wlan.c:580
INT32 wlan_disconnect()
Disconnect connection from AP.
Definition: wlan.c:471
INT32 wlan_ioctl_get_scan_results(UINT32 ulScanTimeout, UINT8 *ucResults)
Gets entry from scan result table. The scan results are returned one by one, and each entry represent...
Definition: wlan.c:790
INT32 wlan_smart_config_set_prefix(CHAR *cNewPrefix)
Configure station ssid prefix. The prefix is used internally in CC3000. It should always be TTT...
Definition: wlan.c:1078
INT32 wlan_connect(UINT32 ulSecType, CHAR *ssid, INT32 ssid_len, UINT8 *bssid, UINT8 *key, INT32 key_len)
Connect to AP.
Definition: wlan.c:376
INT32 wlan_set_event_mask(UINT32 ulMask)
Mask event according to bit mask. In case that event is masked (1), the device will not send the mask...
Definition: wlan.c:912
INT32 wlan_smart_config_process()
process the acquired data and store it as a profile. The acquired AP information is stored in CC3000 ...
Definition: wlan.c:1125
INT32 wlan_ioctl_del_profile(UINT32 ulIndex)
Delete WLAN profile.
Definition: wlan.c:732
INT32 wlan_ioctl_statusget(void)
get wlan status: disconnected, scanning, connecting or connected
Definition: wlan.c:969