From c0414642fead263a4a6a686ad3cb7e965ec8a23a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 9 Jun 2021 22:12:08 +0200 Subject: [PATCH] iwinfo: nl80211: fix typo Signed-off-by: Felix Fietkau --- iwinfo_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 84d69e8..ef0dffa 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -392,7 +392,7 @@ static int nl80211_phy_idx_from_uci(const char *name) goto out; opt = uci_lookup_option_string(uci_ctx, s, "phy"); - idx = nl80211_phy_idx_from_phy(s); + idx = nl80211_phy_idx_from_phy(opt); out: iwinfo_uci_free(); -- 2.30.2