zephyr/drivers/wifi
Brian Dunlay 491933b185 drivers: wifi: eswifi: Guard net_ctx state change
Previously, a call to set the net_context state was added here to
accommodate a new KConfig scenario that permitted disabling offload
sockets. This code path is used by both local and offloaded sockets.
While it is necessary to update the state of the net_context for a
locally managed socket, setting the net_context for an offloaded socket
is an error, as the net_context is invalid (in fact, it points to a
hard-coded dummy socket), as observed in #52346 and #38544.

A prior commit (a9ac0a88) attempting to remedy the offload socket
scenario removed this line, which resulted in problems for the local
socket scenario. The socket never got updated to the connected state,
and thus was unusable.

Adding this guard allows the eswifi socket to set the socket net_context
only if the socket is NOT offloaded.

Signed-off-by: Brian Dunlay <brian@nubix.io>
2022-12-12 14:55:03 +01:00
..
esp32 driver: wifi: esp32: disable optimization by default 2022-11-30 13:40:10 +01:00
esp_at drivers: wifi: esp_at: Align driver with iface status upgrade 2022-10-20 10:00:31 +02:00
eswifi drivers: wifi: eswifi: Guard net_ctx state change 2022-12-12 14:55:03 +01:00
simplelink includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
winc1500 drivers: tests: replace usage of `spi_is_ready` with `spi_is_ready_dt` 2022-12-07 09:40:23 -06:00
CMakeLists.txt
Kconfig