Search Linux Wireless

Re: [PATCH] mac80211: allow tx via monitor iface when DFS

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

 



On Fri, 2014-05-30 at 11:44 +0200, Janusz Dziedzic wrote:

> +	struct cfg80211_chan_def chandef;
>  	u16 len_rthdr;
>  	int hdrlen;
>  
> @@ -1721,9 +1721,9 @@ netdev_tx_t ieee80211_monitor_start_xmit(struct sk_buff *skb,
>  	}
>  
>  	if (chanctx_conf)
> -		chan = chanctx_conf->def.chan;
> +		chandef = chanctx_conf->def;
>  	else if (!local->use_chanctx)
> -		chan = local->_oper_chandef.chan;
> +		chandef = local->_oper_chandef;

Why are you making a copy of the chandef - wouldn't a pointer work just
as well?

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux