]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
use nla_type
authorJohannes Berg <johannes.berg@intel.com>
Mon, 21 Feb 2011 21:12:54 +0000 (22:12 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 21 Feb 2011 21:12:54 +0000 (22:12 +0100)
info.c

diff --git a/info.c b/info.c
index de4777f1d25759f51e9ed109cde958bc21c68bb9..bc87eaae7bae0c7b0e285c9f936c86b7a6f9eb4d 100644 (file)
--- a/info.c
+++ b/info.c
@@ -183,7 +183,7 @@ static int print_phy_handler(struct nl_msg *msg, void *arg)
        if (tb_msg[NL80211_ATTR_SUPPORTED_IFTYPES]) {
                printf("\tSupported interface modes:\n");
                nla_for_each_nested(nl_mode, tb_msg[NL80211_ATTR_SUPPORTED_IFTYPES], rem_mode)
-                       printf("\t\t * %s\n", iftype_name(nl_mode->nla_type));
+                       printf("\t\t * %s\n", iftype_name(nla_type(nl_mode)));
        }
 
        if (tb_msg[NL80211_ATTR_SUPPORTED_COMMANDS]) {