From adaea813b53d2f3cbbaefb9dffa19faf58d670a2 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 15 Feb 2022 17:05:18 +0100 Subject: [PATCH] hostapd: add acs_exclude_dfs support for SW ACS Signed-off-by: John Crispin --- .../hostapd/patches/760-acs_exclude_dfs.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/network/services/hostapd/patches/760-acs_exclude_dfs.patch diff --git a/package/network/services/hostapd/patches/760-acs_exclude_dfs.patch b/package/network/services/hostapd/patches/760-acs_exclude_dfs.patch new file mode 100644 index 0000000000..52d63c5ff9 --- /dev/null +++ b/package/network/services/hostapd/patches/760-acs_exclude_dfs.patch @@ -0,0 +1,15 @@ +Index: hostapd-2021-02-20-59e9794c/src/ap/acs.c +=================================================================== +--- hostapd-2021-02-20-59e9794c.orig/src/ap/acs.c ++++ hostapd-2021-02-20-59e9794c/src/ap/acs.c +@@ -672,6 +672,10 @@ acs_find_ideal_chan_mode(struct hostapd_ + continue; + } + ++ if (iface->conf->acs_exclude_dfs && ++ (chan->flag & HOSTAPD_CHAN_RADAR)) ++ continue; ++ + /* HT40 on 5 GHz has a limited set of primary channels as per + * 11n Annex J */ + if (mode->mode == HOSTAPD_MODE_IEEE80211A && -- 2.25.1