- Jan 24, 2019
-
-
Gunar Schorcht authored
-
Gunar Schorcht authored
Although only the station interface is needed, the WiFi interface has to be used in SoftAP + Station mode. Otherwise the send function blocks sporadically. Since the SoftAP interface is not used, it is configured with a hidden SSID and a long beacon interval. Connections from other stations are not allowed.
-
Gunar Schorcht authored
-
Gunar Schorcht authored
A timeout was introduced if sending a frame takes to long time. In that case the WiFi interface disconnects and reconnects automatically to recover.
-
Gunar Schorcht authored
A reconnect timer is used to try to reconnect every 20 secons if WiFi interface is in disconnected or connecting state.
-
Gunar Schorcht authored
Due to performance reasons _esp_wifi_recv_cb and _send have to be executed in IRAM.
-
Gunar Schorcht authored
To avoid conflicts on receiption of a frame while sending, _esp_wifi_recv_cb should not executed while a frame is in transmission
-
Gunar Schorcht authored
Overriding ethernet_input function _esp_wifi_recv_cb is only used when the WiFi interface is in connected state.
-
Gunar Schorcht authored
wifi_station_connect and wifi_stattion_disconnect never produce errors. Thus, error handling can be removed.
-
Gunar Schorcht authored
Different connection states defined to be able to realize a better connect/reconnect handling
-
Gunar Schorcht authored
-
Gunar Schorcht authored
Since complete MAC frames are handled, ETHERNET_MAX_LEN has to be used instead of ETHERNET_DATA_LEN for receive buffer size and length check.
-
Gunar Schorcht authored
-
Gunar Schorcht authored
-
Gunar Schorcht authored
-
Gunar Schorcht authored
-
Gunar Schorcht authored
-
Gunar Schorcht authored
Fixes sporadic blocking of the wifi thread in esp_wifi_recv_cb function under heavy network load conditions when frames are coming in faster than they can be processed. Since esp_wifi_recv_cb function is not executed in interrupt context, the msg_send function used for ISR event can block when the message queue is full. With this change esp_wifi can be flooded with icmpv6 packets of maximum size without any problems over hours.
-
Gunar Schorcht authored
-