From: Johannes Berg Date: Mon, 21 Feb 2011 21:12:54 +0000 (+0100) Subject: use nla_type X-Git-Tag: v3.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ef6df4fc69453f89e586d5bde866a9d2c9d77ea;p=thirdparty%2Fiw.git use nla_type --- diff --git a/info.c b/info.c index de4777f..bc87eaa 100644 --- 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]) {