]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
ACS: Fix channel 100 frequency
authorDavid Bauer <mail@david-bauer.net>
Wed, 26 May 2021 21:05:03 +0000 (23:05 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 26 Aug 2021 13:10:26 +0000 (16:10 +0300)
Channel 100 is a valid channel to choose for 80 MHz operation. However,
it was converted to 5500 MHz, not 5550 MHz, for the 80 MHz case while
the conversion to other bandwidths was done correctly. In fact, there is
no channel assigned to this frequency 5550 MHz.

Fix this obvious typo to allow ACS to select channel 100 for 80 MHz
operation again.

Fixes: bef5eee4f7b2 ("Convert channel to frequency based selection for AP mode ACS")
Signed-off-by: David Bauer <mail@david-bauer.net>
src/ap/acs.c

index a112045364e3213516d3b8ec156a1467151380cb..865a415c30a4b1ff9365612cdb61427a13427364 100644 (file)
@@ -392,7 +392,7 @@ static int acs_usable_bw40_chan(const struct hostapd_channel_data *chan)
 
 static int acs_usable_bw80_chan(const struct hostapd_channel_data *chan)
 {
-       const int allowed[] = { 5180, 5260, 5550, 5580, 5660, 5745, 5955, 6035,
+       const int allowed[] = { 5180, 5260, 5500, 5580, 5660, 5745, 5955, 6035,
                                6115, 6195, 6275, 6355, 6435, 6515, 6595, 6675,
                                6755, 6835, 6915, 6995 };
        unsigned int i;