[PATCH 13/16] PR: Prefer higher band when selecting best channel at equal bandwidth
Jouni Malinen
j at w1.fi
Mon Jul 27 14:15:29 PDT 2026
On Mon, Jul 13, 2026 at 12:00:01PM +0530, Peddolla Harshavardhan Reddy wrote:
> Currently pr_choose_best_channel() picks the first channel it finds
> with the highest bandwidth, with no tiebreaker when two op classes
> offer the same bandwidth on different bands.
>
> Add pr_op_class_band_priority() to assign a preference value by band
> (6 GHz = 2, 5 GHz = 1, 2.4 GHz = 0) and use it as a tiebreaker in
> pr_choose_best_channel() so that among op classes with equal bandwidth
> a higher-band channel is preferred.
Why is a higher band better than lower band for PR when both bands can
use the same bandwidth?
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list