Search Linux Wireless

Re: [PATCH v2 07/22] mac80211: s1g: choose scanning width based on frequency

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

 



On Mon, 2020-08-31 at 13:55 -0700, Thomas Pedersen wrote:
> An S1G BSS can beacon at either 1 or 2 MHz and the channel
> width is unique to a given frequency. Ignore scan channel
> width for now and use the allowed channel width.
> 
> Signed-off-by: Thomas Pedersen <thomas@xxxxxxxxxxxx>
> ---
>  net/mac80211/scan.c | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
> index 5ac2785cdc7b..5002791fe165 100644
> --- a/net/mac80211/scan.c
> +++ b/net/mac80211/scan.c
> @@ -905,6 +905,17 @@ static void ieee80211_scan_state_set_channel(struct ieee80211_local *local,
>  	local->scan_chandef.center_freq1 = chan->center_freq;
>  	local->scan_chandef.freq1_offset = chan->freq_offset;
>  	local->scan_chandef.center_freq2 = 0;
> +
> +	/* For scanning on the S1G band, ignore scan_width (which is constant
> +	 * across all channels) for now since channel width is specific to each
> +	 * channel. Detect the required channel width here and likely revisit
> +	 * later. Maybe scan_width could be used to build the channel scan list?
> +	 */
> +	if (chan->band == NL80211_BAND_S1GHZ) {
> +		local->scan_chandef.width = ieee80211_s1g_channel_width(chan);
> +		goto  set_channel;
> +	}

nit: double space after 'goto'

but really I came to say that this probably changes then, if you don't
convince me about the stuff in the previous patch review? :)

So I'm leaving this patch also for now - have applied 1-5 so far.

johannes





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

  Powered by Linux