zephyr/drivers/wifi/esp
Marcin Niestroj 03ce61004b drivers: wifi: esp: control CWMODE depending on current needs
So far ESP chip was configured directly into STA mode. This works fine,
but consumes lots of power because of enabled WiFi radio, even when it
is not actively used.

Enter NONE mode during initialization, so WiFi radio will be
disabled. Switch between NONE, STA, AP and STA+AP modes depending on
what driver is currently doing (e.g. enable STA only when scanning,
connecting and being connected to AP).

AT+CWAUTOCONN=0 command fails when in NONE mode, so workaround that by
entering temporarily into STA and then switching back to NONE.

Add also a warning log when switching mode was not successful, to ease
debugging possible issues.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
2020-12-01 11:16:36 -05:00
..
CMakeLists.txt
Kconfig.esp drivers: wifi: esp DHCP/Static IP Support 2020-11-12 07:59:10 +02:00
esp.c drivers: wifi: esp: control CWMODE depending on current needs 2020-12-01 11:16:36 -05:00
esp.h drivers: wifi: esp: control CWMODE depending on current needs 2020-12-01 11:16:36 -05:00
esp_offload.c drivers: wifi: esp: change internal API to work with multiple flags 2020-12-01 11:16:36 -05:00
esp_socket.c drivers: wifi: esp: add esp_cmd_send() helper function 2020-12-01 11:16:36 -05:00