drivers: esp_at: fix net_if_get_by_iface() typo

s/net_if_get_by_ifindex/net_if_get_by_iface/

Fixes: 0e57844b2d ("drivers: wifi: esp_at: Bind DNS to device net
  interface")
Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
This commit is contained in:
Marcin Niestroj 2025-07-03 09:20:50 +02:00 committed by Dan Kalowsky
parent 3962dab707
commit 5e25a3e24a

View File

@ -494,7 +494,7 @@ static void esp_dns_work(struct k_work *work)
size_t i;
int err, ifindex;
ifindex = net_if_get_by_ifindex(data->net_iface);
ifindex = net_if_get_by_iface(data->net_iface);
for (i = 0; i < ESP_MAX_DNS; i++) {
if (!addrs[i].sin_addr.s_addr) {