25 #define LWS_WIFI_MAX_SCAN_TRACK 16
26 #define LWS_ETH_ALEN 6
28 typedef uint8_t lws_wifi_ch_t;
29 typedef int8_t lws_wifi_rssi_t;
53 const char *name,
void *platinfo);
59 void *buf,
size_t len);
63 const char *passphrase, uint8_t *bssid);
101 uint8_t mac[LWS_ETH_ALEN];
109 LNDIW_MODE_STA = (1 << 0),
110 LNDIW_MODE_AP = (1 << 1),
113 LNDIW_ACQ_IPv4 = (1 << 0),
114 LNDIW_ACQ_IPv6 = (1 << 1),
122 LWSNDVWIFI_STATE_INITIAL,
127 LWSNDVWIFI_STATE_SCAN,
138 LWSNDVWIFI_STATE_AP_SCAN,
144 LWSNDVWIFI_STATE_STAT_GRP_AP,
152 LWSNDVWIFI_STATE_STAT_GRP_AP_SCAN,
159 LWSNDVWIFI_STATE_STAT,
164 LWSNDVWIFI_STATE_STAT_HAPPY,
165 } lws_netdev_wifi_state_t;
174 uint8_t bssid[LWS_ETH_ALEN];
194 char current_attempt_ssid[33];
195 uint8_t current_attempt_bssid[LWS_ETH_ALEN];
211 uint8_t bssid[LWS_ETH_ALEN];
215 lws_wifi_rssi_t rssi[8];
225 #define rssi_averaged(_x) (_x->rssi_count ? \
226 ((int)_x->rssi_avg / (int)_x->rssi_count) : \
230 lws_netdevs_from_ctx(
struct lws_context *ctx);
232 LWS_VISIBLE LWS_EXTERN
int
235 LWS_VISIBLE LWS_EXTERN
int
239 lws_netdev_wifi_create_plat(
struct lws_context *ctx,
242 LWS_VISIBLE LWS_EXTERN
int
245 LWS_VISIBLE LWS_EXTERN
int
247 void *buf,
size_t len);
248 LWS_VISIBLE LWS_EXTERN
int
250 LWS_VISIBLE LWS_EXTERN
int
252 LWS_VISIBLE LWS_EXTERN
void
254 LWS_VISIBLE LWS_EXTERN
void
257 LWS_VISIBLE LWS_EXTERN
int
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
279 LWS_VISIBLE LWS_EXTERN
int
280 lws_netdev_plat_init(
void);
282 LWS_VISIBLE LWS_EXTERN
int
283 lws_netdev_plat_wifi_init(
void);
Definition: lws-dll2.h:203
Definition: lws-dll2.h:197
Definition: lws-netdev.h:42
Definition: lws-netdev.h:184
Definition: lws-netdev.h:96
Definition: lws-netdev.h:50
int(* event)(struct lws_netdev_instance *nd, lws_usec_t timestamp, void *buf, size_t len)
Definition: lws-netdev.h:58
Definition: lws-netdev.h:75
lws_dll2_owner_t owner_creds
Definition: lws-netdev.h:79
uint8_t refcount_creds
Definition: lws-netdev.h:87
struct lwsac * ac_creds
Definition: lws-netdev.h:81
lws_dll2_owner_t owner
Definition: lws-netdev.h:76
Definition: lws-settings.h:41
Definition: lws-timeout-timer.h:157
Definition: lws-netdev.h:171
Definition: lws-netdev.h:205
Definition: lws-adopt.h:86