20#ifndef NET_NETDEV_WIFI_H
21#define NET_NETDEV_WIFI_H
47#define WIFI_SCAN_REQUEST_INITIALIZER(ch, cb, ms) \
48 (wifi_scan_request_t) { \
49 .base = NETOPT_SCAN_REQUEST_INITIALIZER(ch, cb), \
50 .timeout_ms_per_ch = ms, \
70#define WIFI_SCAN_RESULT_INITIALIZER(ch, str, sec) \
71 (wifi_scan_result_t) { \
72 .base = NETOPT_SCAN_RESULT_INITIALIZER(ch, str), \
88#define WIFI_SCAN_LIST_INITIALIZER(list) \
89 (wifi_scan_list_t) { \
90 .head = (list_node_t *)list, \
123#define WIFI_CONNECT_REQUEST_INITIALIZER(ch, ccb, dcb, cr) \
124 (wifi_connect_request_t) { \
125 .base = NETOPT_CONNECT_REQUEST_INITIALIZER(ch, ccb, dcb), \
150#define WIFI_CONNECT_RESULT_INITIALIZER(ch, p_ssid) \
151 (wifi_connect_result_t) { \
152 .base = NETOPT_CONNECT_RESULT_INITIALIZER(ch), \
154 .credentials = { .sec = WIFI_SECURITY_MODE_OPEN }, \
174#define WIFI_DISCONNECT_REQUEST_INITIALIZER(dcb) \
175 (wifi_disconnect_request_t) { \
176 .base = NETOPT_DISCONNECT_REQUEST_INITIALIZER(dcb), \
193#define WIFI_DISCONNECT_RESULT_INITIALIZER(ch, p_ssid) \
194 (wifi_disconnect_result_t) { \
195 .base = NETOPT_DISCONNECT_RESULT_INITIALIZER(ch), \
struct wifi_scan_list_node wifi_scan_list_node_t
Node type in a wifi scan list wifi_scan_list_t.
struct wifi_scan_result wifi_scan_result_t
A Wi-Fi scan result.
struct wifi_disconnect_result wifi_disconnect_result_t
A Wi-Fi disconnect result.
void(* wifi_on_scan_result_t)(void *netif, const wifi_scan_list_t *res)
Wi-Fi scan result callback prototype.
void(* wifi_on_connect_result_t)(void *netif, const wifi_connect_result_t *res)
Wi-Fi connect result callback prototype.
l2scan_list_t wifi_scan_list_t
A Wi-Fi scan list.
void(* wifi_on_disconnect_result_t)(void *netif, const wifi_disconnect_result_t *res)
Wi-Fi disconnect result callback prototype.
struct wifi_connect_request wifi_connect_request_t
A Wi-Fi connect request.
struct wifi_disconnect_request wifi_disconnect_request_t
A Wi-Fi disconnect request.
struct wifi_connect_result wifi_connect_result_t
A Wi-Fi connect result.
struct wifi_scan_request wifi_scan_request_t
A Wi-Fi scan request.
#define ETHERNET_ADDR_LEN
Length of an Ethernet address.
wifi_security_mode_t
Type to express a Wi-Fi security mode.
#define WIFI_SSID_LEN_MAX
Maximum length of an SSID.
Ethernet header definitions.
Definition of global configuration options.
Type of a Link Layer scan list.
Basic network connect request.
Basic network connect result.
Basic network disconnect request.
Basic network scan request.
Basic network scan result.
char ssid[WIFI_SSID_LEN_MAX+1]
SSID of AP to connect to.
netopt_connect_request_t base
Basic connect request.
const wifi_security_mode_t * cred
Pointer to credentials.
wifi_security_mode_t sec
WiFi security mode.
wifi_security_wep_psk_t wep
WEP security mode.
wifi_security_wpa_enterprise_t wpa_enterprise
WPA2 enterprise security mode.
wifi_security_wpa_psk_t wpa_psk
WPA2 PSK security mode.
const char * ssid
SSID of currently connected AP.
union wifi_connect_result::@229 credentials
Credentials.
netopt_connect_result_t base
Basic connect result.
A Wi-Fi disconnect request.
netopt_disconnect_request_t base
Basic disconnect request.
A Wi-Fi disconnect result.
const char * ssid
SSID of the AP no longer connected to.
netopt_disconnect_result_t base
Basic disconnect result.
Node type in a wifi scan list wifi_scan_list_t.
wifi_scan_result_t result
Wi-Fi scan result.
list_node_t node
Basic list node.
uint16_t timeout_ms_per_ch
timeout for each channel to scan
netopt_scan_request_t base
Basic scan request.
wifi_security_mode_t sec_mode
Security mode of AP.
uint8_t bssid[ETHERNET_ADDR_LEN]
BSSID of AP.
netopt_scan_result_t base
Basic scan result.
char ssid[WIFI_SSID_LEN_MAX+1]
SSID of AP.
WPA2 Enterprise credentials.