[PATCH] use nla_type() from libnl

Jouni Malinen j at w1.fi
Mon Feb 21 16:19:49 EST 2011


On Thu, Feb 10, 2011 at 06:55:38PM +0530, raghunathan.kailasanathan at wipro.com wrote:
> compiler errors when using nl_mode->nla_type. libnl provides 
> nla_type() which can be used to derive nla_type from struct nlattr

> --- a/src/drivers/driver_nl80211.c	2011-02-10 16:56:56.630940254 +0530
> -			switch (nl_mode->nla_type) {
> +			switch (nla_type(nl_mode)) {

The change itself looks fine, but I don't see how this could break
compilation or functionality.. Which libnl version are you using?

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list