]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
Fix typo in print_iface_handler.
authorPontus Fuchs <pontus.fuchs@gmail.com>
Mon, 19 Mar 2012 19:25:05 +0000 (20:25 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 20 Mar 2012 06:20:34 +0000 (07:20 +0100)
print_iface_handler printed the interface type at the phy number.

interface.c

index 274103e0fe0d0c82e5a172ef13c28dad1ef8d925..8c07ba1d7420b84ec924b0734271ea7794ec494c 100644 (file)
@@ -266,7 +266,7 @@ static int print_iface_handler(struct nl_msg *msg, void *arg)
        if (tb_msg[NL80211_ATTR_IFTYPE])
                printf("%s\ttype %s\n", indent, iftype_name(nla_get_u32(tb_msg[NL80211_ATTR_IFTYPE])));
        if (!wiphy && tb_msg[NL80211_ATTR_WIPHY])
-               printf("%s\twiphy %d\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_IFTYPE]));
+               printf("%s\twiphy %d\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_WIPHY]));
 
        return NL_SKIP;
 }