iwinfo: nl80211: fix typo
authorFelix Fietkau <nbd@nbd.name>
Wed, 9 Jun 2021 20:12:08 +0000 (22:12 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 9 Jun 2021 20:12:08 +0000 (22:12 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
iwinfo_nl80211.c

index 84d69e8c32953ad1f224a7993aa5c96ab0bda077..ef0dffaf12e2a6465a6d971ad704e72c4e4b9c94 100644 (file)
@@ -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();