mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-21 11:22:50 +00:00
Some checks failed
Build OpenWrt/uCentral images / build (cig_wf186h) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf186w) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf188n) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf189) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf196) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cybertan_eww631-a1) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cybertan_eww631-b1) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap101) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap102) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap104) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap105) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap111) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap112) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101-6e) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101e) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101e-6e) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x_2) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x_3) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x_w) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4xe) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4xi) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4xi_w) (push) Has been cancelled
Build OpenWrt/uCentral images / build (indio_um-305ax) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sercomm_ap72tip) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sonicfi_rap630c-311g) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sonicfi_rap630w-211g) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sonicfi_rap630w-311g) (push) Has been cancelled
Build OpenWrt/uCentral images / build (udaya_a6-id2) (push) Has been cancelled
Build OpenWrt/uCentral images / build (udaya_a6-od2) (push) Has been cancelled
Build OpenWrt/uCentral images / build (wallys_dr5018) (push) Has been cancelled
Build OpenWrt/uCentral images / build (wallys_dr6018) (push) Has been cancelled
Build OpenWrt/uCentral images / build (wallys_dr6018-v4) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_ax820) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_ax840) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_fap640) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_fap650) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_fap655) (push) Has been cancelled
Build OpenWrt/uCentral images / trigger-testing (push) Has been cancelled
Build OpenWrt/uCentral images / create-x64_vm-ami (push) Has been cancelled
Signed-off-by: John Crispin <john@phrozen.org>
58 lines
2.0 KiB
Diff
58 lines
2.0 KiB
Diff
From 066ddfaca33016fb0acb3516e7ca71a715518580 Mon Sep 17 00:00:00 2001
|
|
From: Ramasamy Kaliappan <quic_rkaliapp@quicinc.com>
|
|
Date: Thu, 20 Jul 2023 19:42:34 +0530
|
|
Subject: [PATCH 2/4] hostapd: revert the acs changes to bringup ap in acs
|
|
|
|
Revert the patch https://w1.fi/cgit/hostap/commit/?id=4cb23b66d6eac1e1afb6cfd4f51b0f3ba328c078
|
|
and updated the changes before hostapd upgrade.
|
|
|
|
Signed-off-by: Ramasamy Kaliappan <quic_rkaliapp@quicinc.com>
|
|
---
|
|
src/ap/acs.c | 16 ++--------------
|
|
1 file changed, 2 insertions(+), 14 deletions(-)
|
|
|
|
diff --git a/src/ap/acs.c b/src/ap/acs.c
|
|
index d9f85e8..576cbe5 100644
|
|
--- a/src/ap/acs.c
|
|
+++ b/src/ap/acs.c
|
|
@@ -908,7 +908,7 @@ acs_find_ideal_chan_mode(struct hostapd_iface *iface,
|
|
struct hostapd_channel_data **ideal_chan,
|
|
long double *ideal_factor)
|
|
{
|
|
- struct hostapd_channel_data *chan, *adj_chan = NULL, *best;
|
|
+ struct hostapd_channel_data *chan, *adj_chan = NULL;
|
|
long double factor;
|
|
int i, j;
|
|
unsigned int k;
|
|
@@ -918,7 +918,7 @@ acs_find_ideal_chan_mode(struct hostapd_iface *iface,
|
|
struct acs_bias *bias, tmp_bias;
|
|
bool update_best = true;
|
|
|
|
- best = chan = &mode->channels[i];
|
|
+ chan = &mode->channels[i];
|
|
|
|
/* Since in the current ACS implementation the first channel is
|
|
* always a primary channel, skip channels not available as
|
|
@@ -1042,18 +1042,6 @@ acs_find_ideal_chan_mode(struct hostapd_iface *iface,
|
|
continue;
|
|
}
|
|
|
|
- /* If the AP is in the 5 GHz or 6 GHz band, lets prefer a less
|
|
- * crowded primary channel if one was found in the segment */
|
|
- if (iface->current_mode->mode == HOSTAPD_MODE_IEEE80211A &&
|
|
- chan != best) {
|
|
- wpa_printf(MSG_DEBUG,
|
|
- "ACS: promoting channel %d over %d (less interference %Lg/%Lg)",
|
|
- best->chan, chan->chan,
|
|
- chan->interference_factor,
|
|
- best->interference_factor);
|
|
- chan = best;
|
|
- }
|
|
-
|
|
/* 2.4 GHz has overlapping 20 MHz channels. Include adjacent
|
|
* channel interference factor. */
|
|
if (is_24ghz_mode(mode->mode)) {
|
|
--
|
|
2.17.1
|
|
|