blob: a955f11401c4ba8c769556145ddf145736aa7773 [file] [log] [blame]
developerb85e8752023-09-25 14:16:05 +08001From 38302b0ff51f0e666a2f47ef8851d0fe6e03daad Mon Sep 17 00:00:00 2001
developerd8126d12023-02-17 11:50:45 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Mon, 13 Feb 2023 11:03:53 +0800
developerb85e8752023-09-25 14:16:05 +08004Subject: [PATCH 15/38] hostapd: mtk: 6G band does not require DFS
developerd8126d12023-02-17 11:50:45 +08005
6---
7 src/ap/dfs.c | 1 +
8 1 file changed, 1 insertion(+)
9
10diff --git a/src/ap/dfs.c b/src/ap/dfs.c
developerb85e8752023-09-25 14:16:05 +080011index 23e6527..0a8486a 100644
developerd8126d12023-02-17 11:50:45 +080012--- a/src/ap/dfs.c
13+++ b/src/ap/dfs.c
developerb85e8752023-09-25 14:16:05 +080014@@ -1516,6 +1516,7 @@ int hostapd_is_dfs_required(struct hostapd_iface *iface)
developerd8126d12023-02-17 11:50:45 +080015 if ((!(iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD) &&
16 !iface->conf->ieee80211h) ||
17 !iface->current_mode ||
18+ is_6ghz_freq(iface->freq) ||
19 iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A)
20 return 0;
21
22--
developerbddc9db2023-09-11 13:34:36 +0800232.18.0
developerd8126d12023-02-17 11:50:45 +080024