| From 7f442586bbff0c7b6aca157237b442291b90116b Mon Sep 17 00:00:00 2001 |
| From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| Date: Tue, 23 Jan 2024 10:52:57 +0800 |
| Subject: [PATCH] hostapd: mtk: ACS: remove chan/freq list check when scan |
| request and factor calculation |
| |
| Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| --- |
| src/ap/acs.c | 12 ------------ |
| 1 file changed, 12 deletions(-) |
| |
| diff --git a/src/ap/acs.c b/src/ap/acs.c |
| index e4871921f..089d9c5f4 100644 |
| --- a/src/ap/acs.c |
| +++ b/src/ap/acs.c |
| @@ -590,12 +590,6 @@ static void acs_survey_mode_interference_factor( |
| iface->conf->acs_exclude_dfs) |
| continue; |
| |
| - if (!is_in_chanlist(iface, chan)) |
| - continue; |
| - |
| - if (!is_in_freqlist(iface, chan)) |
| - continue; |
| - |
| if (chan->max_tx_power < iface->conf->min_tx_power) |
| continue; |
| |
| @@ -1327,12 +1321,6 @@ static int * acs_request_scan_add_freqs(struct hostapd_iface *iface, |
| iface->conf->acs_exclude_dfs)) |
| continue; |
| |
| - if (!is_in_chanlist(iface, chan)) |
| - continue; |
| - |
| - if (!is_in_freqlist(iface, chan)) |
| - continue; |
| - |
| if (chan->max_tx_power < iface->conf->min_tx_power) |
| continue; |
| |
| -- |
| 2.25.1 |
| |