From: Johannes Berg Date: Fri, 21 Oct 2011 12:36:20 +0000 (+0200) Subject: print wiphy idx in iface info X-Git-Tag: v3.2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47b76de49d7cdfc53a862f905eb30aaaa5265f1f;p=thirdparty%2Fiw.git print wiphy idx in iface info --- diff --git a/interface.c b/interface.c index 9ee39c8..3a345ba 100644 --- a/interface.c +++ b/interface.c @@ -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; }