blob: 2ba3b97cae4ead2eaee94bc1fc083bcde4725bff [file] [log] [blame]
developer05f3b2b2024-08-19 19:17:34 +08001From ba80aca90cdfbc98b8a21489f0fc89114c94f2d1 Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Mon, 13 Feb 2023 11:03:53 +0800
developer05f3b2b2024-08-19 19:17:34 +08004Subject: [PATCH 025/126] mtk: hostapd: 6G band does not require DFS
developer66e89bc2024-04-23 14:50:01 +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
developer05f3b2b2024-08-19 19:17:34 +080011index 42cce2dce..86598a18a 100644
developer66e89bc2024-04-23 14:50:01 +080012--- a/src/ap/dfs.c
13+++ b/src/ap/dfs.c
developer05f3b2b2024-08-19 19:17:34 +080014@@ -1538,6 +1538,7 @@ int hostapd_is_dfs_required(struct hostapd_iface *iface)
developer66e89bc2024-04-23 14:50:01 +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--
developer05f3b2b2024-08-19 19:17:34 +0800232.18.0
developer66e89bc2024-04-23 14:50:01 +080024