]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
print wiphy idx in iface info
authorJohannes Berg <johannes.berg@intel.com>
Fri, 21 Oct 2011 12:36:20 +0000 (14:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 21 Oct 2011 12:36:20 +0000 (14:36 +0200)
interface.c

index 9ee39c8d1010cda660950bc599d23b0060a97ea2..3a345baaed12937a38a84416a17843b53ca1e30a 100644 (file)
@@ -265,6 +265,8 @@ static int print_iface_handler(struct nl_msg *msg, void *arg)
                printf("%s\tifindex %d\n", indent, nla_get_u32(tb_msg[NL80211_ATTR_IFINDEX]));
        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]));
 
        return NL_SKIP;
 }