blob: 26fd1de630cf6659da8d854be3f87942cfb8bf60 [file] [log] [blame]
developer26d6cc52023-07-31 12:27:06 +08001From 2598c3fce61bdca1c3b5684e39cbfa368aea9011 Mon Sep 17 00:00:00 2001
developerb8853042023-02-17 11:50:45 +08002From: Peter Chiu <chui-hao.chiu@mediatek.com>
3Date: Mon, 13 Feb 2023 11:03:53 +0800
developer26d6cc52023-07-31 12:27:06 +08004Subject: [PATCH 16/35] hostapd: mtk: 6G band does not require DFS
developerb8853042023-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
developer52278a12023-03-02 20:22:29 +080011index 1c3f678..4b1e642 100644
developerb8853042023-02-17 11:50:45 +080012--- a/src/ap/dfs.c
13+++ b/src/ap/dfs.c
14@@ -1506,6 +1506,7 @@ int hostapd_is_dfs_required(struct hostapd_iface *iface)
15 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--
developer52278a12023-03-02 20:22:29 +0800232.18.0
developerb8853042023-02-17 11:50:45 +080024