]> git.ipfire.org Git - thirdparty/hostap.git/commit
ACS: Use weighted average for 2.4 GHz adjacent channel interference
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 5 Feb 2015 15:57:06 +0000 (17:57 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 6 Feb 2015 15:21:17 +0000 (17:21 +0200)
commit6f41a258057294c6006fab477754da80c93c890e
tree80069f094dbb7da2bed54ca65ed511a47319c9a1
parent1cb3ad73623c20498a9163730c43563a869cf4a0
ACS: Use weighted average for 2.4 GHz adjacent channel interference

The interference factors for adjacent 2.4 GHz channels were summed
together without doing any kind of weighted average on them. This
resulted in the channels at the band edges getting undue preference due
to only including interference factors from three channels vs. five for
the channels in the middle of the band.

While it is somewhat unclear whether the design here was supposed to
count overlapping channels together in this way or whether that is
already covered in channel survey results, it is clear that this summing
of three to five values together and then comparing the sum rather than
average of some kind gives too much preference to the channels at the
edges of the band by assuming that there is no interference whatsoever
outside the band.

Use weighted average of the interference factors rather than a sum from
different number of values. For now, the adjacent 2.4 GHz channels get
weight of 0.85 (1.0 for the main channel itself) and the neighboring
channels to those adjacent ones get 0.55 weight. Band-edge channels are
handled in a way that takes average over the channels that were actually
considered instead of assuming zero interference from neighboring bands.

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