]> git.ipfire.org Git - thirdparty/hostap.git/commit
ACS: Fix ACS behavior for channel selection
authorHari Naraayana Desikan Kannan <quic_hnaraaya@quicinc.com>
Tue, 30 Apr 2024 09:52:31 +0000 (15:22 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 12 Jul 2024 09:40:00 +0000 (12:40 +0300)
commitbe2ac92918c50d37ebf69a98fe6f813c8492e0d8
tree2a86ef93c5c1201ac1c1ed873d9b8efa16d06978
parent83cfeb8903027603bf4e8c9f4c96a719e579287d
ACS: Fix ACS behavior for channel selection

The current ACS algorithm incorrectly returns success even when there is
no survey list, leading to improper interference factor calculation.
This leads to treating 0 as a valid interference factor, which affects
channel selection judgment.

Fix the issue by ensuring success is only returned when the survey list
is not empty, thereby ignoring non-zero values in the interference
factor calculation.

Signed-off-by: Hari Naraayana Desikan Kannan <quic_hnaraaya@quicinc.com>
src/ap/acs.c