From 54a785b88689aeb838300fd2a71057208f399dae Mon Sep 17 00:00:00 2001 From: Marcin Niestroj Date: Thu, 16 Dec 2021 12:47:15 +0100 Subject: [PATCH] drivers: wifi: esp_at: don't send AT+CWLAP during initial setup Sending AT+CWLAP was introduced with commit f2859f9501f4 ("drivers: wifi: esp_at: changes to scanning") as a way to easily test introduced changes, rather than on purpose. Remove that now, as there is no particular reason to send it and additionally it breaks setup phase: modem_cmd_handler: command AT+CWLAP ret:-5 wifi_esp_at: Init failed -5 with ESP-AT firmware v2.1. Signed-off-by: Marcin Niestroj --- drivers/wifi/esp_at/esp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/wifi/esp_at/esp.c b/drivers/wifi/esp_at/esp.c index b35ec8c46da..ce8966b267c 100644 --- a/drivers/wifi/esp_at/esp.c +++ b/drivers/wifi/esp_at/esp.c @@ -949,7 +949,6 @@ static void esp_init_work(struct k_work *work) SETUP_CMD_NOHANDLE( ESP_CMD_CWLAPOPT(ESP_CMD_CWLAPOPT_ORDERED, ESP_CMD_CWLAPOPT_MASK)), - SETUP_CMD_NOHANDLE(ESP_CMD_CWLAP), #if defined(CONFIG_WIFI_ESP_AT_VERSION_2_0) SETUP_CMD_NOHANDLE(ESP_CMD_CWMODE(STA)),