[PATCH v2 3/5] PR: Use preferred frequency for channel selection in PASN ranging

Jouni Malinen j at w1.fi
Sun Aug 2 01:33:48 PDT 2026


On Fri, Jul 31, 2026 at 03:22:25PM +0530, Peddolla Harshavardhan Reddy wrote:
> Add a preferred_freq field to pr_pasn_ranging_params. When set,
> the op_class with the highest bandwidth whose channel range covers
> the preferred frequency is selected from the common channel set.

What is the "preferred frequency" referring to here? If that is any
frequency, the design below does not really work in general.

> Channel numbers are op_class-specific so the match is done by
> comparing the preferred frequency against the frequency range
> [chan_freq, chan_freq + bw) of each entry.

Why? That chan_freq is most likely not the starting frequency of the
channel, but a center frequency of a 20 MHz channel that is within the
full frequency range. That would also imply that chan_freq + bw might be
beyond the end frequency of the channel.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list