zephyr/drivers/wifi
Marcin Niestroj eb78d70805 drivers: wifi: esp: stop using pkt->work in TX path
Usage of k_work object from within net_pkt results in undefined behavior
in case when net_pkt is deallocated (by net_pkt_unref()) before work has
been finished.

Use per socket k_work object (sock->send_work) to submit send work and
put net_pkt objects onto k_fifo (sock->tx_fifo). Add a helper function
esp_socket_queue_tx() for that, which will make sure that packets are
enqueued only when send work handler will be successfully submitted (so
that all packets are consumed/dereferenced).

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
2021-05-07 13:10:01 +02:00
..
esp32 drivers: wifi: remove usage of device_pm_control_nop 2021-04-28 12:25:39 -04:00
esp_at drivers: wifi: esp: stop using pkt->work in TX path 2021-05-07 13:10:01 +02:00
eswifi drivers: wifi: remove usage of device_pm_control_nop 2021-04-28 12:25:39 -04:00
simplelink drivers: wifi: remove usage of device_pm_control_nop 2021-04-28 12:25:39 -04:00
winc1500 drivers: wifi: remove usage of device_pm_control_nop 2021-04-28 12:25:39 -04:00
CMakeLists.txt drivers: wifi: esp_at: rename driver from esp 2021-05-06 13:21:39 -04:00
Kconfig drivers: wifi: esp_at: rename driver from esp 2021-05-06 13:21:39 -04:00