ath11k.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v2 07/23] wifi: wireless: correct validation 6G Band for primary channel
       [not found] ` <20230301115906.314faf725255.I5e27251ac558297553b590d3917a7b6d1aae0e74@changeid>
@ 2023-03-02  9:31   ` Wen Gong
  0 siblings, 0 replies; only message in thread
From: Wen Gong @ 2023-03-02  9:31 UTC (permalink / raw)
  To: gregory.greenman, johannes; +Cc: linux-wireless, Mordechay Goodstein, ath11k

On 3/1/2023 6:09 PM, gregory.greenman@intel.com wrote:
...
>   	 */
> -	if (channel->band == NL80211_BAND_6GHZ &&
> -	    (freq == channel->center_freq ||
> -	     abs(freq - channel->center_freq) > 80))
> +	if (freq == channel->center_freq)
>   		return channel;
>   
freq is KHz, channel->center_freq is MHz, so should change to if (freq / 
1000 == channel->center_freq)?
>   	alt_channel = ieee80211_get_channel_khz(wiphy, freq);
>   	if (!alt_channel) {
> -		if (channel->band == NL80211_BAND_2GHZ) {
> +		if (channel->band == NL80211_BAND_2GHZ ||
> +		    channel->band == NL80211_BAND_60GHZ) {

it should be NL80211_BAND_6GHZ, NOT 60GHZ?

...


-- 
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-02  9:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230301100935.170922-1-gregory.greenman@intel.com>
     [not found] ` <20230301115906.314faf725255.I5e27251ac558297553b590d3917a7b6d1aae0e74@changeid>
2023-03-02  9:31   ` [PATCH v2 07/23] wifi: wireless: correct validation 6G Band for primary channel Wen Gong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).