Search Linux Wireless

Re: [PATCH] mac80211: free ifsta->extra_ie in ieee80211_stop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-11-22 at 11:10 +0800, Zhu Yi wrote:
> On Wed, 2007-11-21 at 16:19 +0100, Johannes Berg wrote:
> > Yeah. Can you amend the patch to also clear the
> > IEEE80211_STA_PRIVACY_INVOKED flag?
> 
> Signed-off-by: Zhu Yi <yi.zhu@xxxxxxxxx>

And if you adjust the patch subject now and fill in the description you
have my
Acked-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

> ---
> 
> diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
> index 59350b8..69daf0a 100644
> --- a/net/mac80211/ieee80211.c
> +++ b/net/mac80211/ieee80211.c
> @@ -357,6 +357,11 @@ static int ieee80211_stop(struct net_device *dev)
>  			cancel_delayed_work(&local->scan_work);
>  		}
>  		flush_workqueue(local->hw.workqueue);
> +
> +		sdata->u.sta.flags &= ~IEEE80211_STA_PRIVACY_INVOKED;
> +		kfree(sdata->u.sta.extra_ie);
> +		sdata->u.sta.extra_ie = NULL;
> +		sdata->u.sta.extra_ie_len = 0;
>  		/* fall through */
>  	default:
>  		conf.if_id = dev->ifindex;
> 

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux