From: Raghunathan Kailasanathan Date: Tue, 22 Feb 2011 19:48:49 +0000 (+0200) Subject: nl80211: Use nl_atype() from libnl X-Git-Tag: hostap-1-bp~571 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58708b3bd1ccedc246b6fc5c6927c39b68107258;p=thirdparty%2Fhostap.git nl80211: Use nl_atype() from libnl libnl provides nla_type() which can be used to derive nla_type from struct nlattr. --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index d3b0b650c..a64b091ab 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -1499,7 +1499,7 @@ static int wiphy_info_handler(struct nl_msg *msg, void *arg) int i; nla_for_each_nested(nl_mode, tb[NL80211_ATTR_SUPPORTED_IFTYPES], i) { - switch (nl_mode->nla_type) { + switch (nla_type(nl_mode)) { case NL80211_IFTYPE_AP: info->ap_supported = 1; break;