Search Linux Wireless

Re: [PATCH 5/8] qtnfmac: enable reporting the current operating channel

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

 



On Tue, 2017-06-20 at 22:55 +0300, Sergey Matyukevich wrote:

> +	if (sme->channel) {
> +		/* FIXME: need to set proper nl80211_channel_type
> value */
> +		cfg80211_chandef_create(&chandef, sme->channel,
> +					NL80211_CHAN_HT20);
> +		/* fall-back to minimal safe chandef description */
> +		if (!cfg80211_chandef_valid(&chandef))
> +			cfg80211_chandef_create(&chandef, sme-
> >channel,
> +						NL80211_CHAN_HT20);
> 
This seems odd since you just do the same thing over again? Not that I
could see how it would be invalid anyway.

johannes



[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