From 3431d09f093ccfee039b05e856b002edc0cfd052 Mon Sep 17 00:00:00 2001 From: Marcin Niestroj Date: Wed, 10 Apr 2024 20:02:50 +0200 Subject: [PATCH] drivers: wifi: esp_at: fix missing channel in scan result WiFi scan results were not updated with information about channel, after scan results parsing was updated. Fix that. Fixes: a6b06004c221 ("drivers: wifi: esp_at: handle commas in SSIDs during scan and status") Signed-off-by: Marcin Niestroj --- drivers/wifi/esp_at/esp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/wifi/esp_at/esp.c b/drivers/wifi/esp_at/esp.c index e2c84e4eb7..2261a11f71 100644 --- a/drivers/wifi/esp_at/esp.c +++ b/drivers/wifi/esp_at/esp.c @@ -382,6 +382,8 @@ MODEM_CMD_DIRECT_DEFINE(on_cmd_cwlap) return err; } + res.channel = strtol(channel, NULL, 10); + if (dev->scan_cb) { dev->scan_cb(dev->net_iface, 0, &res); }