|
void | wlan_init (tWlanCB sWlanCB, tFWPatches sFWPatches, tDriverPatches sDriverPatches, tBootLoaderPatches sBootLoaderPatches, tWlanReadInteruptPin sReadWlanInterruptPin, tWlanInterruptEnable sWlanInterruptEnable, tWlanInterruptDisable sWlanInterruptDisable, tWriteWlanPin sWriteWlanPin) |
| Initialize wlan driver.
|
|
void | wlan_start (unsigned short usPatchesAvailableAtHost) |
| Start WLAN device. This function asserts the enable pin of the device (WLAN_EN), starting the HW initialization process. The function blocked until device Initialization is completed. Function also configure patches (FW, driver or bootloader) and calls appropriate device callbacks.
|
|
void | wlan_stop (void) |
| Stop WLAN device by putting it into reset state.
|
|
long | wlan_connect (unsigned long ulSecType, char *ssid, long ssid_len, unsigned char *bssid, unsigned char *key, long key_len) |
| Connect to AP.
|
|
long | wlan_disconnect (void) |
| Disconnect connection from AP.
|
|
long | wlan_add_profile (unsigned long ulSecType, unsigned char *ucSsid, unsigned long ulSsidLen, unsigned char *ucBssid, unsigned long ulPriority, unsigned long ulPairwiseCipher_Or_Key, unsigned long ulGroupCipher_TxKeyLen, unsigned long ulKeyMgmt, unsigned char *ucPf_OrKey, unsigned long 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.
|
|
long | wlan_ioctl_del_profile (unsigned long ulIndex) |
| Delete WLAN profile.
|
|
long | wlan_set_event_mask (unsigned long ulMask) |
| Mask event according to bit mask. In case that event is masked (1), the device will not send the masked event to host.
|
|
long | wlan_ioctl_statusget (void) |
| get wlan status: disconnected, scanning, connecting or connected
|
|
long | wlan_ioctl_set_connection_policy (unsigned long should_connect_to_open_ap, unsigned long should_use_fast_connect, unsigned long ulUseProfiles) |
| When auto is enabled, the device tries to connect according the following policy: 1) If fast connect is enabled and last connection is valid, the device will try to connect to it without the scanning procedure (fast). The last connection will be marked as invalid, due to adding/removing profile. 2) If profile exists, the device will try to connect it (Up to seven profiles). 3) If fast and profiles are not found, and open mode is enabled, the device will try to connect to any AP.
|
|
long | wlan_ioctl_get_scan_results (unsigned long ulScanTimeout, unsigned char *ucResults) |
| Gets entry from scan result table. The scan results are returned one by one, and each entry represents a single AP found in the area. The following is a format of the scan result:
|
|
long | wlan_ioctl_set_scan_params (unsigned long uiEnable, unsigned long uiMinDwellTime, unsigned long uiMaxDwellTime, unsigned long uiNumOfProbeRequests, unsigned long uiChannelMask, long iRSSIThreshold, unsigned long uiSNRThreshold, unsigned long uiDefaultTxPower, unsigned long *aiIntervalList) |
| start and stop scan procedure. Set scan parameters.
|
|
long | wlan_smart_config_start (unsigned long algoEncryptedFlag) |
| Start to acquire device profile. The device acquire its own profile, if profile message is found. The acquired AP information is stored in CC3000 EEPROM only in case AES128 encryption is used. In case AES128 encryption is not used, a profile is created by CC3000 internally.
|
|
long | wlan_smart_config_stop (void) |
| Stop the acquire profile procedure.
|
|
long | wlan_smart_config_set_prefix (char *cNewPrefix) |
| Configure station ssid prefix. The prefix is used internally in CC3000. It should always be TTT.
|
|
long | wlan_smart_config_process (void) |
| process the acquired data and store it as a profile. The acquired AP information is stored in CC3000 EEPROM encrypted. The encrypted data is decrypted and stored as a profile. behavior is as defined by connection policy.
|
|