nl80211: Use nl_atype() from libnl

libnl provides nla_type() which can be used to derive nla_type from
struct nlattr.
This commit is contained in:
Raghunathan Kailasanathan 2011-02-22 21:48:49 +02:00 committed by Jouni Malinen
parent b89883a444
commit 58708b3bd1

View file

@ -1499,7 +1499,7 @@ static int wiphy_info_handler(struct nl_msg *msg, void *arg)
int i; int i;
nla_for_each_nested(nl_mode, nla_for_each_nested(nl_mode,
tb[NL80211_ATTR_SUPPORTED_IFTYPES], i) { tb[NL80211_ATTR_SUPPORTED_IFTYPES], i) {
switch (nl_mode->nla_type) { switch (nla_type(nl_mode)) {
case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP:
info->ap_supported = 1; info->ap_supported = 1;
break; break;