Search Linux Wireless

Re: [PATCH 3/4] mac80211: disallow HT40 if max channel bandwidth is less than 40 MHz

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

 



On Mon, 2009-03-09 at 22:04 -0400, Luis R. Rodriguez wrote:
> Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx>
> ---
>  net/mac80211/util.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/net/mac80211/util.c b/net/mac80211/util.c
> index 32610a0..a891d7e 100644
> --- a/net/mac80211/util.c
> +++ b/net/mac80211/util.c
> @@ -796,6 +796,9 @@ int ieee80211_set_freq(struct ieee80211_sub_if_data *sdata, int freqMHz)
>  	if (!chan || (chan->flags & IEEE80211_CHAN_DISABLED))
>  		return ret;
>  
> +	if (conf_is_ht40(&local->hw.conf) && chan->max_bandwidth < 40)
> +		return ret;
> +

You just made nl80211 check this, why bother adding it here too?

johannes

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