]> git.ipfire.org Git - thirdparty/hostap.git/commit
ACS: Fix not selecting the best channel in the segment
authorMichael-CY Lee <michael-cy.lee@mediatek.com>
Fri, 22 Dec 2023 04:59:09 +0000 (12:59 +0800)
committerJouni Malinen <j@w1.fi>
Sat, 23 Dec 2023 13:28:50 +0000 (15:28 +0200)
commit733de85680a49bb36b071dde90815729f6cb2450
tree29e653f5cadee270fdaadfe4b83319b8bf108707
parentdc57ede0105ad1170ff835f31a79fa193e1906c8
ACS: Fix not selecting the best channel in the segment

Fix the following bugs about selecting the best channels in the segment:
1. If the 'update_best' once became false, it never becomes true again.
   In other word, if one of the channels in the segment is not usable,
   the remaining channels in the segment were never able to be the best
   channel.
2. The primary channel in the segment might not be usable due to the
   insufficient survey data. Therefore, it cannot be the best channel and
   we cannot take its factor/weight into account.

Co-developed-by: Money Wang <money.wang@mediatek.com>
Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
src/ap/acs.c