]> git.ipfire.org Git - thirdparty/hostap.git/commit
ACS: Accept channel if any (rather than all) survey results are valid
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 6 Feb 2015 16:36:13 +0000 (18:36 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 6 Feb 2015 19:26:32 +0000 (21:26 +0200)
commit0d7eb4344f40c7de0458f7704923c98dc4aa7254
tree3d3ec79ab6da5f91e97ae1eb68fe8face46f35b0
parent65013c9331f56cdb2bd3e0d47dac1df521d0734c
ACS: Accept channel if any (rather than all) survey results are valid

Previously, a channel with even a single scan/survey result missing
information was skipped in ACS. This may not be desirable in cases when
multiple scan iterations are used (which is the case by default in
hostapd). Instead, use all channels that provided at least one complete
set of results. Calculate the average interference factor as an average
of the iterations that did provide complete values.

This seems to help with some cases, e.g., when ath9k may not be able to
report the noise floor for all channels from the first scan iteration
immediately after the driver has been loaded, but then returns it for
all other scan iterations.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/acs.c