From 6e72e401f26c0bd12f37431f2887212d07ee8319 Mon Sep 17 00:00:00 2001 From: Marek Matej Date: Tue, 4 Jul 2023 12:56:17 +0200 Subject: [PATCH] drivers: wifi: Fix esp32 driver Fix compilation issue on esp_wifi_drv. Signed-off-by: Marek Matej --- drivers/wifi/esp32/src/esp_wifi_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/wifi/esp32/src/esp_wifi_drv.c b/drivers/wifi/esp32/src/esp_wifi_drv.c index 5272b6df21e..647f91b2890 100644 --- a/drivers/wifi/esp32/src/esp_wifi_drv.c +++ b/drivers/wifi/esp32/src/esp_wifi_drv.c @@ -406,7 +406,7 @@ static int esp32_wifi_scan(const struct device *dev, if (params) { /* The enum values are same, so, no conversion needed */ - scan_config->scan_type = params->scan_type; + scan_config.scan_type = params->scan_type; } ret = esp_wifi_set_mode(ESP32_WIFI_MODE_STA);