diff mbox series

ACS: fix channel 100 frequency

Message ID 20210526210503.33906-1-mail@david-bauer.net
State Accepted
Headers show
Series ACS: fix channel 100 frequency | expand

Commit Message

David Bauer May 26, 2021, 9:05 p.m. UTC
Channel 100 is a valid channel to choose for 80MHz operation. However,
it's assigned to 5500 MHz, not 5550MHz. In fact, there is no channel
assigned to this frequency.

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

Fixes commit bef5eee4f7b2 ("Convert channel to frequency based selection for AP mode ACS")

Signed-off-by: David Bauer <mail@david-bauer.net>
---
 src/ap/acs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen Aug. 26, 2021, 1:39 p.m. UTC | #1
On Wed, May 26, 2021 at 11:05:03PM +0200, David Bauer wrote:
> Channel 100 is a valid channel to choose for 80MHz operation. However,
> it's assigned to 5500 MHz, not 5550MHz. In fact, there is no channel
> assigned to this frequency.
> 
> Fix this obbvious typo to allow ACS to select channel 100 for 80 MHz
> operation again.

Thanks, applied.
diff mbox series

Patch

diff --git a/src/ap/acs.c b/src/ap/acs.c
index a11204536..865a415c3 100644
--- a/src/ap/acs.c
+++ b/src/ap/acs.c
@@ -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;