From: "Leon M. Busch-George" <l...@georgemail.eu>

Signed-off-by: Leon M. Busch-George <l...@georgemail.eu>
---
 iwinfo_nl80211.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c
index 8eab671..6270ef9 100644
--- a/iwinfo_nl80211.c
+++ b/iwinfo_nl80211.c
@@ -2031,7 +2031,9 @@ static int nl80211_get_phyname(const char *ifname, char 
*buf)
                strcpy(buf, name);
                return 0;
        }
-       else if ((name = nl80211_phy2ifname(ifname)) != NULL)
+
+       name = nl80211_phy2ifname(ifname);
+       if (name != NULL)
        {
                name = nl80211_ifname2phy(name);
 
-- 
2.44.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to