Wi-Fi APIs to perform SoftAP related functionalities. More...
Functions | |
| uint32_t | whd_wifi_init_ap (whd_interface_t ifp, whd_ssid_t *ssid, whd_security_t auth_type, const uint8_t *security_key, uint8_t key_length, uint8_t channel) | 
| Initialises an infrastructure WiFi network (SoftAP)  More... | |
| uint32_t | whd_wifi_start_ap (whd_interface_t ifp) | 
| Start the infrastructure WiFi network (SoftAP) using the parameter set by whd_wifi_init_ap() and optionaly by whd_wifi_manage_custom_ie()  More... | |
| uint32_t | whd_wifi_stop_ap (whd_interface_t ifp) | 
| Stops an existing infrastructure WiFi network.  More... | |
| uint32_t | whd_wifi_ap_get_max_assoc (whd_interface_t ifp, uint32_t *max_assoc) | 
| Get the maximum number of associations supported by AP interfaces.  More... | |
| uint32_t | whd_wifi_get_associated_client_list (whd_interface_t ifp, void *client_list_buffer, uint16_t buffer_length) | 
| Gets the current number of active connections.  More... | |
| uint32_t | whd_wifi_deauth_sta (whd_interface_t ifp, whd_mac_t *mac, whd_dot11_reason_code_t reason) | 
| Deauthenticates a STA which may or may not be associated to SoftAP.  More... | |
| uint32_t | whd_wifi_get_ap_info (whd_interface_t ifp, whd_bss_info_t *ap_info, whd_security_t *security) | 
| Retrieves AP information.  More... | |
| uint32_t | whd_wifi_ap_set_beacon_interval (whd_interface_t ifp, uint16_t interval) | 
| Set the beacon interval.  More... | |
| uint32_t | whd_wifi_ap_set_dtim_interval (whd_interface_t ifp, uint16_t interval) | 
| Set the DTIM interval.  More... | |
Wi-Fi APIs to perform SoftAP related functionalities.
| uint32_t whd_wifi_ap_get_max_assoc | ( | whd_interface_t | ifp, | 
| uint32_t * | max_assoc | ||
| ) | 
Get the maximum number of associations supported by AP interfaces.
| ifp | Pointer to handle instance of whd interface | 
| max_assoc | The maximum number of associations supported by Soft AP interfaces. | 
| uint32_t whd_wifi_ap_set_beacon_interval | ( | whd_interface_t | ifp, | 
| uint16_t | interval | ||
| ) | 
Set the beacon interval.
Note that the value needs to be set before ap_start in order to beacon interval to take effect.
| ifp | Pointer to handle instance of whd interface | 
| interval | Beacon interval in time units (Default: 100 time units = 102.4 ms) | 
| uint32_t whd_wifi_ap_set_dtim_interval | ( | whd_interface_t | ifp, | 
| uint16_t | interval | ||
| ) | 
Set the DTIM interval.
Note that the value needs to be set before ap_start in order to DTIM interval to take effect.
| ifp | Pointer to handle instance of whd interface | 
| interval | DTIM interval, in unit of beacon interval | 
| uint32_t whd_wifi_deauth_sta | ( | whd_interface_t | ifp, | 
| whd_mac_t * | mac, | ||
| whd_dot11_reason_code_t | reason | ||
| ) | 
Deauthenticates a STA which may or may not be associated to SoftAP.
| ifp | Pointer to handle instance of whd interface | 
| mac | Pointer to a variable containing the MAC address to which the deauthentication will be sent NULL mac address will deauthenticate all the associated STAs | 
| reason | Deauthentication reason code | 
| uint32_t whd_wifi_get_ap_info | ( | whd_interface_t | ifp, | 
| whd_bss_info_t * | ap_info, | ||
| whd_security_t * | security | ||
| ) | 
Retrieves AP information.
| ifp | Pointer to handle instance of whd interface | 
| ap_info | Returns a whd_bss_info_t structure containing AP details | 
| security | Authentication type | 
| uint32_t whd_wifi_get_associated_client_list | ( | whd_interface_t | ifp, | 
| void * | client_list_buffer, | ||
| uint16_t | buffer_length | ||
| ) | 
Gets the current number of active connections.
| ifp | Pointer to handle instance of whd interface | 
| client_list_buffer | Buffer to store list of associated clients | 
| buffer_length | Length of client list buffer | 
| uint32_t whd_wifi_init_ap | ( | whd_interface_t | ifp, | 
| whd_ssid_t * | ssid, | ||
| whd_security_t | auth_type, | ||
| const uint8_t * | security_key, | ||
| uint8_t | key_length, | ||
| uint8_t | channel | ||
| ) | 
Initialises an infrastructure WiFi network (SoftAP)
| ifp | Pointer to handle instance of whd interface | 
| ssid | A null terminated string containing the SSID name of the network to join | 
| auth_type | Authentication type | 
| security_key | A byte array containing the cleartext security key for the network | 
| key_length | The length of the security_key in bytes. | 
| channel | 802.11 channel number | 
| uint32_t whd_wifi_start_ap | ( | whd_interface_t | ifp | ) | 
Start the infrastructure WiFi network (SoftAP) using the parameter set by whd_wifi_init_ap() and optionaly by whd_wifi_manage_custom_ie()
| uint32_t whd_wifi_stop_ap | ( | whd_interface_t | ifp | ) | 
Stops an existing infrastructure WiFi network.
| ifp | Pointer to handle instance of whd interface |