[PATCH] nl80211: fix EAPOL frames not being delivered

Maxime Bizon mbizon at freebox.fr
Thu Mar 20 14:26:35 EDT 2014


On Thu, 2014-03-20 at 19:25 +0100, Maxime Bizon wrote:

> diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
> index fb2847f..bb71814 100644
> --- a/src/drivers/driver_nl80211.c
> +++ b/src/drivers/driver_nl80211.c
> @@ -7645,13 +7645,13 @@ static int nl80211_create_iface(struct wpa_driver_nl80211_data *drv,
>  				int (*handler)(struct nl_msg *, void *),
>  				void *arg, int use_existing)
>  {
> -	int ret;
> +	int ret, ifidx;
>  
>  	ret = nl80211_create_iface_once(drv, ifname, iftype, addr, wds, handler,
>  					arg);
>  
>  	/* if error occurred and interface exists already */
> -	if (ret == -ENFILE && if_nametoindex(ifname)) {
> +	if (ret == -ENFILE && (ifidx = if_nametoindex(ifname))) {
>  		if (use_existing) {
>  			wpa_printf(MSG_DEBUG, "nl80211: Continue using existing interface %s",
>  				   ifname);

Bad hunk, leftover from a previous patch, will repost V2 sorry

-- 
Maxime




More information about the HostAP mailing list