Typedefs | |
| typedef void(* | wiced_scan_result_callback_t) (wiced_scan_result_t **result_ptr, void *user_data, wiced_scan_status_t status) |
Functions | |
| wiced_result_t | wiced_get_bss_info (wl_bss_info_t *bi, wwd_interface_t interface) |
| wiced_result_t | wiced_status_result (void) |
| wiced_result_t | wiced_wifi_join_adhoc (char *ssid, uint8_t ssid_length, wiced_security_t auth_type, uint8_t *security_key, uint16_t key_length, char *channel, char *ip, char *netmask, char *gateway) |
| wiced_result_t | wiced_wifi_join_halt (wiced_bool_t halt) |
| wiced_result_t | wiced_wifi_join_specific (char *ssid, uint8_t ssid_length, wiced_security_t auth_type, uint8_t *security_key, uint16_t key_length, char *bssid, char *channel, char *ip, char *netmask, char *gateway) |
| wiced_result_t | wiced_wifi_scan_disable (void) |
| wiced_result_t | wiced_wifi_scan_networks (wiced_scan_result_handler_t results_handler, void *user_data) |
| wiced_result_t | wiced_wifi_scan_networks_ex (wiced_scan_result_handler_t results_handler, void *user_data, wiced_scan_type_t scan_type, wiced_bss_type_t bss_type, const wiced_ssid_t *optional_ssid, const wiced_mac_t *optional_mac, const uint16_t *optional_channel_list, const wiced_scan_extended_params_t *optional_extended_params, wiced_interface_t interface) |
| wwd_result_t | wwd_wifi_abort_scan (void) |
| wwd_result_t | wwd_wifi_get_scan_params (uint32_t *assoc_time, uint32_t *unassoc_time, uint32_t *passive_time, uint32_t *home_time, uint32_t *nprobes) |
| wwd_result_t | wwd_wifi_join (const wiced_ssid_t *ssid, wiced_security_t auth_type, const uint8_t *security_key, uint8_t key_length, host_semaphore_type_t *semaphore, wwd_interface_t interface) |
| wwd_result_t | wwd_wifi_join_halt (wiced_bool_t halt) |
| wiced_bool_t | wwd_wifi_join_is_ready_to_halt (wwd_interface_t interface) |
| wwd_result_t | wwd_wifi_join_specific (const wiced_scan_result_t *ap, const uint8_t *security_key, uint8_t key_length, host_semaphore_type_t *semaphore, wwd_interface_t interface) |
| wwd_result_t | wwd_wifi_leave (wwd_interface_t interface) |
| wwd_result_t | wwd_wifi_scan (wiced_scan_type_t scan_type, wiced_bss_type_t bss_type, const wiced_ssid_t *optional_ssid, const wiced_mac_t *optional_mac, const uint16_t *optional_channel_list, const wiced_scan_extended_params_t *optional_extended_params, wiced_scan_result_callback_t callback, wiced_scan_result_t **result_ptr, void *user_data, wwd_interface_t interface) |
| wwd_result_t | wwd_wifi_set_scan_params (uint32_t assoc_time, uint32_t unassoc_time, uint32_t passive_time, uint32_t home_time, uint32_t nprobes) |
| wwd_result_t | wwd_wifi_set_scan_suppress (wiced_bool_t enable_suppression) |
WICED functions to Wifi join/scan
WICED functions to Wifi join/scan
| typedef void(* wiced_scan_result_callback_t) (wiced_scan_result_t **result_ptr, void *user_data, wiced_scan_status_t status) |
Scan result callback function pointer type
| result_ptr | : A pointer to the pointer that indicates where to put the next scan result |
| user_data | : User provided data |
| status | : Status of scan process |
|
extern |
Retrives the bss info
| [in] | bi | : A pointer to the structure wl_bss_info_t |
| [in] | interface | : Type of interface |
|
extern |
Prints the status of the wiced
| wiced_result_t wiced_wifi_join_adhoc | ( | char * | ssid, |
| uint8_t | ssid_length, | ||
| wiced_security_t | auth_type, | ||
| uint8_t * | security_key, | ||
| uint16_t | key_length, | ||
| char * | channel, | ||
| char * | ip, | ||
| char * | netmask, | ||
| char * | gateway ) |
Joins a adhoc network
| [in] | ssid | : An argument that specifies the SSID of the AP |
| [in] | ssid_length | : Specifies the length of the ssid |
| [in] | auth_type | : Specifies the authentication type |
| [in] | security_key | : Security passpharse given by the user |
| [in] | key_length | : Length of the security_key given |
| [in] | channel | : Specifies the channel number of the particular AP to join |
| [in] | ip | : Specifies the IP address of the device |
| [in] | netmask | : Specifies the netmask |
| [in] | gateway | : Specifies the gateway IP address |
| wiced_result_t wiced_wifi_join_halt | ( | wiced_bool_t | halt | ) |
Halt any joins, including ongoing ones
| [in] | halt | WICED_TRUE: halt all join attempts; WICED_FALSE: allow join attempts to proceed Calling applications are expected to manage the join state independently from this API. That is, this API gives no guarantee that an in progress join is cancelled successfully. However, calling wiced_leave_ap after this API would be acceptable toensure the host is in an unassociated state. !!!!NOTE: wwd_wifi_join_halt( WICED_FALSE ) needs to be called after any wwd_wifi_join_halt( WICED_TRUE ) call to allow subsequent join attempts to proceed. |
| wiced_result_t wiced_wifi_join_specific | ( | char * | ssid, |
| uint8_t | ssid_length, | ||
| wiced_security_t | auth_type, | ||
| uint8_t * | security_key, | ||
| uint16_t | key_length, | ||
| char * | bssid, | ||
| char * | channel, | ||
| char * | ip, | ||
| char * | netmask, | ||
| char * | gateway ) |
Joins a specific access point using the BSSID
| [in] | ssid | : An argument that specifies the SSID of the AP |
| [in] | ssid_length | : Specifies the length of the ssid |
| [in] | auth_type | : Specifies the authentication type |
| [in] | security_key | : Security passpharse given by the user |
| [in] | key_length | : Length of the security_key given |
| [in] | bssid | : An argument that specifies the BSSID (MAC address of the Access Point) to join |
| [in] | channel | : Specifies the Channel number of the particular AP to join |
| [in] | ip | : Specifies the IP address of the device (optional) |
| [in] | netmask | : Specifies the netmask (optional) |
| [in] | gateway | : Specifies the gateway IP address (optional) |
|
extern |
Enables/disables scans for wi-fi networks, including most roam scans done by firmware. !!!WARNING!!! Disable will abort any ongoing scans. Note: enable can used to allow firmware to do its normal roam scanning and any other internal scans. Calling wiced_wifi_scan_networks after a disable will cause wiced_wifi_scan_enable to be invoked.
|
extern |
Scans for Wi-Fi networks
| [in] | results_handler | : A function pointer for the handler that will process the network details as they arrive. |
| [in] | user_data | : An argument that will be passed to the results_handler function of this device |
|
extern |
Scans for Wi-Fi networks with extended parameters. The function returns after the scan is started. Results are reported in an asynchronous manner to the results_handler.
| [in] | results_handler | : A function pointer for the handler that will process the scan results as they arrive. |
| [in] | user_data | : An argument that will be passed through to the results_handler function |
| [in] | scan_type | : Specifies whether the scan should be Active, Passive or scan Prohibited channels |
| [in] | bss_type | : Specifies whether the scan should search for Infrastructure networks (those using an Access Point), Ad-hoc networks, or both types. |
| [in] | optional_ssid | : If this is non-Null, then the scan will only search for networks using the specified SSID. |
| [in] | optional_mac | : If this is non-Null, then the scan will only search for networks where the BSSID (MAC address of the Access Point) matches the specified MAC address. |
| [in] | optional_channel_list | : If this is non-Null, then the scan will only search for networks on the specified channels - array of channel numbers to search, terminated with a zero |
| [in] | optional_extended_params | : If this is non-Null, then the scan will obey the specifications about dwell times and number of probes. |
|
extern |
Abort a previously issued scan
|
extern |
Sets default scan parameters in FW
| [out] | assoc_time | : Dwell time per channel in associated state |
| [out] | unassoc_time | : Dwell time per channel in unassociated state |
| [out] | passive_time | : Dwell time per channel for passive scanning |
| [out] | home_time | : Dwell time for the home channel between channel scans |
| [out] | nprobes | : Number of probes per channel |
|
extern |
Joins a Wi-Fi network
Scans for, associates and authenticates with a Wi-Fi network. On successful return, the system is ready to send data packets.
| [in] | ssid | : A null terminated string containing the SSID name of the network to join |
| [in] | auth_type | : Authentication type:
|
| [in] | security_key | : A byte array containing either the cleartext security key for WPA/WPA2 secured networks, or a pointer to an array of wiced_wep_key_t structures for WEP secured networks |
| [in] | key_length | : The length of the security_key in bytes. |
| [in] | semaphore | : A user provided semaphore that is flagged when the join is complete |
| [in] | interface | : interface |
|
extern |
Halt any joins, including ongoing ones
| [in] | halt | WICED_TRUE: halt all join attempts; WICED_FALSE: allow join attempts to proceed Calling applications are expected to manage the join state independently from this API. That is, this API gives no guarantee that an in progress join is cancelled successfully. However, calling wwd_wifi_leave after this API would be acceptable to ensure the host is in an unassociated state. !!!!NOTE: wwd_wifi_join_halt( WICED_FALSE ) needs to be called after any wwd_wifi_join_halt( WICED_TRUE ) call to allow subsequent join attempts to proceed. |
|
extern |
Query: Is there a join in progress that can be halted?
| [in] | interface | interface to halt join on |
|
extern |
Joins a specific Wi-Fi network
Associates and authenticates with a specific Wi-Fi access point. On successful return, the system is ready to send data packets.
| [in] | ap | : A pointer to a wiced_scan_result_t structure containing AP details |
| [in] | security_key | : A byte array containing either the cleartext security key for WPA/WPA2 secured networks, or a pointer to an array of wiced_wep_key_t structures for WEP secured networks |
| [in] | key_length | : The length of the security_key in bytes. |
| [in] | semaphore | : A user provided semaphore that is flagged when the join is complete |
|
extern |
Disassociates from a Wi-Fi network.
|
extern |
Initiates a scan to search for 802.11 networks.
The scan progressively accumulates results over time, and may take between 1 and 10 seconds to complete. The results of the scan will be individually provided to the callback function. Note: The callback function will be executed in the context of the WICED thread and so must not perform any actions that may cause a bus transaction.
| [in] | scan_type | : Specifies whether the scan should be Active, Passive or scan Prohibited channels |
| [in] | bss_type | : Specifies whether the scan should search for Infrastructure networks (those using an Access Point), Ad-hoc networks, or both types. |
| [in] | optional_ssid | : If this is non-Null, then the scan will only search for networks using the specified SSID. |
| [in] | optional_mac | : If this is non-Null, then the scan will only search for networks where the BSSID (MAC address of the Access Point) matches the specified MAC address. |
| [in] | optional_channel_list | : If this is non-Null, then the scan will only search for networks on the specified channels - array of channel numbers to search, terminated with a zero |
| [in] | optional_extended_params | : If this is non-Null, then the scan will obey the specifications about dwell times and number of probes. |
| callback[in] | : the callback function which will receive and process the result data. | |
| result_ptr[in] | : a pointer to a pointer to a result storage structure. | |
| user_data[in] | : user specific data that will be passed directly to the callback function |
|
extern |
Sets default scan parameters in FW
| [in] | assoc_time | : Specifies dwell time per channel in associated state |
| [in] | unassoc_time | : Specifies dwell time per channel in unassociated state |
| [in] | passive_time | : Specifies dwell time per channel for passive scanning |
| [in] | home_time | : Specifies dwell time for the home channel between channel scans |
| [in] | nprobes | : Specifies number of probes per channel |
| wwd_result_t wwd_wifi_set_scan_suppress | ( | wiced_bool_t | enable_suppression | ) |
Enable or disable scan suppression; a state that disallows all Wi-Fi scans