41 #define FNET_WIFI_SSID_SIZE sizeof("123456789_123456789_123456789_12") 48 #define FNET_WIFI_PASSPHRASE_SIZE_MAX sizeof("123456789_123456789_123456789_123456789_123456789_123456789_1234") 55 #define FNET_WIFI_PASSPHRASE_SIZE_MIN sizeof("12345678") 109 #if defined(__cplusplus) 285 #if defined(__cplusplus) fnet_return_t fnet_wifi_set_country_code(fnet_netif_desc_t netif_desc, const fnet_char_t *country_code)
Set country code of the Wi-Fi interface.
WPA2. This mode uses AES(CCMP) cipher. It is used for best security and better performance.
fnet_wifi_op_mode_t fnet_wifi_get_op_mode(fnet_netif_desc_t netif_desc)
Retrieve current operation mode of the Wi-Fi interface.
fnet_return_t fnet_wifi_disconnect(fnet_netif_desc_t netif_desc)
Disconnect from a Wi-Fi network.
fnet_wifi_wpa_mode_t
WPA-personal security mode. s.
fnet_char_t * ssid
Wi-Fi SSID (Subscription Service Identifier), also called Wireless Network Name. It can be up to 32 ...
None. The Wi-Fi network is open.
WPA. This mode uses TKIP cipher. It is used mainly for legacy devices.
fnet_return_t fnet_wifi_connect(fnet_netif_desc_t netif_desc, fnet_wifi_connect_params_t *params)
Start Wi-Fi connection in station mode.
fnet_wifi_wpa_mode_t wpa_mode
WPA security mode.
fnet_return_t
General return codes, used by most of API functions.
fnet_size_t ie_size
Information Element size.
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Wi-Fi connection parameters for fnet_wifi_connect().
Disconnected. Wi-Fi radio is off.
fnet_return_t fnet_wifi_access_point(fnet_netif_desc_t netif_desc, fnet_wifi_access_point_params_t *params)
Initialize a Wi-Fi access point.
fnet_wifi_op_mode_t
Wi-Fi operation mode.
fnet_char_t * wpa_passphrase
WPA alphanumeric pass-phrase. Also, called Pre-Shared Key (PSK). It can be between 8 and 63 characte...
fnet_uint32_t fnet_wifi_fw_get_version(fnet_netif_desc_t netif_desc)
Retrieve firmware version number of the Wi-Fi interface module.
fnet_char_t * ssid
Wi-Fi SSID (Subscription Service Identifier), also called Wireless Network Name. It can be up to 32 ...
fnet_uint8_t * ie
Information Element to be added to Probe-Response and Beacon frames. It is optional.
Wi-Fi access point parameters for fnet_wifi_access_point().
char fnet_char_t
Type representing the charecter.
fnet_return_t fnet_wifi_get_country_code(fnet_netif_desc_t netif_desc, fnet_char_t *country_code)
Retrieve country code used by the Wi-Fi interface.
void * fnet_netif_desc_t
Network interface descriptor.
fnet_char_t * wpa_passphrase
WPA alphanumeric pass-phrase. Also, called Pre-Shared Key (PSK). It can be between 8 and 63 characte...
fnet_return_t fnet_wifi_fw_update(fnet_netif_desc_t netif_desc, const fnet_uint8_t *fw_buffer, fnet_size_t fw_buffer_size)
Update firmware of the Wi-Fi interface.