forked from lede-project/source
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hostapd: ACS: fix channel 100 frequency
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. Signed-off-by: David Bauer <[email protected]>
- Loading branch information
1 parent
862bc9f
commit 553cc47
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
package/network/services/hostapd/patches/720-ACS-fix-channel-100-frequency.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 5a24286ed6315e1fef755ca1970792554f59b1fc Mon Sep 17 00:00:00 2001 | ||
From: David Bauer <[email protected]> | ||
Date: Wed, 26 May 2021 22:15:35 +0200 | ||
Subject: [PATCH] ACS: fix channel 100 frequency | ||
|
||
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 <[email protected]> | ||
--- | ||
src/ap/acs.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
--- a/src/ap/acs.c | ||
+++ b/src/ap/acs.c | ||
@@ -386,7 +386,7 @@ static int acs_usable_bw40_chan(const st | ||
|
||
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; |