25 #define LWS_WIFI_MAX_SCAN_TRACK 16
26 #define LWS_ETH_ALEN 6
53 const char *name,
void *platinfo);
59 void *buf,
size_t len);
63 const char *passphrase,
uint8_t *bssid);
225 #define rssi_averaged(_x) (_x->rssi_count ? \
226 ((int)_x->rssi_avg / (int)_x->rssi_count) : \
247 void *buf,
size_t len);
259 const char *passphrase,
uint8_t *bssid);
264 #define lws_netdev_wifi_plat_ops \
265 .create = lws_netdev_wifi_create_plat, \
266 .configure = lws_netdev_wifi_configure_plat, \
267 .event = lws_netdev_wifi_event_plat, \
268 .up = lws_netdev_wifi_up_plat, \
269 .down = lws_netdev_wifi_down_plat, \
270 .connect = lws_netdev_wifi_connect_plat, \
271 .scan = lws_netdev_wifi_scan_plat, \
272 .destroy = lws_netdev_wifi_destroy_plat
LWS_VISIBLE LWS_EXTERN int lws_netdev_credentials_settings_get(lws_netdevs_t *nds)
struct lws_wifi_sta lws_wifi_sta_t
struct lws_netdevs lws_netdevs_t
uint8_t bssid[LWS_ETH_ALEN]
lws_dll2_owner_t owner_creds
LWS_VISIBLE LWS_EXTERN int lws_netdev_wifi_configure_plat(struct lws_netdev_instance *nd, lws_netdev_config_t *config)
struct lws_wifi_creds lws_wifi_creds_t
LWS_VISIBLE LWS_EXTERN int lws_netdev_wifi_down_plat(struct lws_netdev_instance *nd)
LWS_VISIBLE LWS_EXTERN void lws_netdev_wifi_destroy_plat(struct lws_netdev_instance **pnd)
uint8_t current_attempt_bssid[LWS_ETH_ALEN]
struct lws_netdev_ops lws_netdev_ops_t
uint8_t mac[LWS_ETH_ALEN]
LWS_VISIBLE LWS_EXTERN lws_netdevs_t * lws_netdevs_from_ctx(struct lws_context *ctx)
lws_sorted_usec_list_t sul_scan
struct lws_netdev_instance lws_netdev_instance_t
char current_attempt_ssid[33]
LWS_VISIBLE LWS_EXTERN int lws_netdev_wifi_up_plat(struct lws_netdev_instance *nd)
struct lws_netdev_config lws_netdev_config_t
const lws_netdev_ops_t * ops
lws_settings_instance_t * si
LWS_VISIBLE LWS_EXTERN int lws_netdev_plat_wifi_init(void)
@ LWSNDVWIFI_STATE_AP_SCAN
@ LWSNDVWIFI_STATE_STAT_GRP_AP
@ LWSNDVWIFI_STATE_STAT_HAPPY
@ LWSNDVWIFI_STATE_INITIAL
@ LWSNDVWIFI_STATE_STAT_GRP_AP_SCAN
lws_netdev_instance_t inst
struct lws_netdev_instance_wifi lws_netdev_instance_wifi_t
uint8_t bssid[LWS_ETH_ALEN]
LWS_VISIBLE LWS_EXTERN int lws_netdev_wifi_event_plat(struct lws_netdev_instance *nd, lws_usec_t timestamp, void *buf, size_t len)
lws_wifi_creds_t * ap_cred
LWS_VISIBLE LWS_EXTERN int lws_netdev_credentials_settings_set(lws_netdevs_t *nds)
LWS_VISIBLE LWS_EXTERN struct lws_netdev_instance * lws_netdev_wifi_create_plat(struct lws_context *ctx, const lws_netdev_ops_t *ops, const char *name, void *platinfo)
LWS_VISIBLE LWS_EXTERN void lws_netdev_wifi_scan_plat(lws_netdev_instance_t *nd)
LWS_VISIBLE LWS_EXTERN int lws_netdev_wifi_connect_plat(lws_netdev_instance_t *wnd, const char *ssid, const char *passphrase, uint8_t *bssid)
LWS_VISIBLE LWS_EXTERN lws_netdev_instance_t * lws_netdev_find(lws_netdevs_t *netdevs, const char *ifname)
LWS_VISIBLE LWS_EXTERN int lws_netdev_plat_init(void)
lws_sockaddr46 sa46_dns_resolver
void(* destroy)(struct lws_netdev_instance **pnd)
int(* down)(struct lws_netdev_instance *nd)
int(* event)(struct lws_netdev_instance *nd, lws_usec_t timestamp, void *buf, size_t len)
int(* configure)(struct lws_netdev_instance *nd, lws_netdev_config_t *config)
void(* scan)(struct lws_netdev_instance *nd)
int(* connect)(struct lws_netdev_instance *wnd, const char *ssid, const char *passphrase, uint8_t *bssid)
int(* up)(struct lws_netdev_instance *nd)