Skip to content

Commit

Permalink
drivers: wifi: esp_at: fix missing channel in scan result
Browse files Browse the repository at this point in the history
WiFi scan results were not updated with information about channel, after
scan results parsing was updated. Fix that.

Fixes: a6b0600 ("drivers: wifi: esp_at: handle commas in SSIDs during
  scan and status")
Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
  • Loading branch information
mniestroj authored and nashif committed Apr 12, 2024
1 parent e41ed38 commit 3431d09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/wifi/esp_at/esp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3431d09

Please sign in to comment.