aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRaghunathan Kailasanathan <raghunathan.kailasanathan@wipro.com>2011-02-22 19:48:49 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-22 19:48:49 (GMT)
commit58708b3bd1ccedc246b6fc5c6927c39b68107258 (patch)
tree82f80a8859fa5976e6947dbf8e6b93e07e9083c4 /src
parentb89883a4440abffcc33a23045a03632d370caa53 (diff)
downloadhostap-58708b3bd1ccedc246b6fc5c6927c39b68107258.zip
hostap-58708b3bd1ccedc246b6fc5c6927c39b68107258.tar.gz
hostap-58708b3bd1ccedc246b6fc5c6927c39b68107258.tar.bz2
nl80211: Use nl_atype() from libnl
libnl provides nla_type() which can be used to derive nla_type from struct nlattr.
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index d3b0b65..a64b091 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;