3ef19e5298cddb1a1166979f5b4956aa9fd0afc4
[openwrt/staging/mkresin.git] / package / network / services / hostapd / patches / 720-ACS-fix-channel-100-frequency.patch
1 From 5a24286ed6315e1fef755ca1970792554f59b1fc Mon Sep 17 00:00:00 2001
2 From: David Bauer <mail@david-bauer.net>
3 Date: Wed, 26 May 2021 22:15:35 +0200
4 Subject: [PATCH] ACS: fix channel 100 frequency
5
6 Channel 100 is a valid channel to choose for 80MHz operation. However,
7 it's assigned to 5500 MHz, not 5550MHz. In fact, there is no channel
8 assigned to this frequency.
9
10 Fix this obbvious typo to allow ACS to select channel 100 for 80 MHz
11 operation again.
12
13 Fixes commit bef5eee4f7b2 ("Convert channel to frequency based selection for AP mode ACS")
14
15 Signed-off-by: David Bauer <mail@david-bauer.net>
16 ---
17 src/ap/acs.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 --- a/src/ap/acs.c
21 +++ b/src/ap/acs.c
22 @@ -386,7 +386,7 @@ static int acs_usable_bw40_chan(const st
23
24 static int acs_usable_bw80_chan(const struct hostapd_channel_data *chan)
25 {
26 - const int allowed[] = { 5180, 5260, 5550, 5580, 5660, 5745, 5955, 6035,
27 + const int allowed[] = { 5180, 5260, 5500, 5580, 5660, 5745, 5955, 6035,
28 6115, 6195, 6275, 6355, 6435, 6515, 6595, 6675,
29 6755, 6835, 6915, 6995 };
30 unsigned int i;