diff --git a/feeds/wifi-ax/hostapd/patches/760-acs_exclude_dfs.patch b/feeds/wifi-ax/hostapd/patches/760-acs_exclude_dfs.patch new file mode 100644 index 000000000..52d63c5ff --- /dev/null +++ b/feeds/wifi-ax/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 && diff --git a/patches/wifi/0010-hostapd-add-acs_exclude_dfs-support-for-SW-ACS.patch b/patches/wifi/0010-hostapd-add-acs_exclude_dfs-support-for-SW-ACS.patch new file mode 100644 index 000000000..356f3ba0b --- /dev/null +++ b/patches/wifi/0010-hostapd-add-acs_exclude_dfs-support-for-SW-ACS.patch @@ -0,0 +1,35 @@ +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 +