blob: 2a44a8fbcec1d84b52e51f38befeec932b9d33fb [file] [log] [blame]
developer2fd555a2023-07-25 05:48:15 +08001From 3f674a6f2414a7c3e2e06ea561c04137355603a3 Mon Sep 17 00:00:00 2001
developerec64d9d2023-07-07 11:05:50 +08002From: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
3Date: Wed, 5 Jul 2023 10:47:20 +0800
developer2fd555a2023-07-25 05:48:15 +08004Subject: [PATCH 34/35] hostapd: mtk: Fix hostapd_dfs_start_cac log
developerec64d9d2023-07-07 11:05:50 +08005
6Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
7---
8 src/ap/dfs.c | 6 ++++--
9 1 file changed, 4 insertions(+), 2 deletions(-)
10
11diff --git a/src/ap/dfs.c b/src/ap/dfs.c
developer2fd555a2023-07-25 05:48:15 +080012index d688ecb..db8375e 100644
developerec64d9d2023-07-07 11:05:50 +080013--- a/src/ap/dfs.c
14+++ b/src/ap/dfs.c
developer2fd555a2023-07-25 05:48:15 +080015@@ -1627,9 +1627,11 @@ int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq,
developerec64d9d2023-07-07 11:05:50 +080016 /* TODO: How to check CAC time for ETSI weather channels? */
17 iface->dfs_cac_ms = 60000;
18 wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO, DFS_EVENT_CAC_START
19- "freq=%d chan=%d chan_offset=%d width=%d seg0=%d "
20+ "freq=%d chan=%d chan_offset=%d width=%s seg0=%d "
21 "seg1=%d cac_time=%ds%s",
22- freq, (freq - 5000) / 5, chan_offset, chan_width, cf1, cf2,
23+ freq, (freq - 5000) / 5, chan_offset,
24+ channel_width_to_string(chan_width),
25+ (cf1 - 5000) / 5, cf2 ? (cf2 - 5000) / 5 : 0,
26 iface->dfs_cac_ms / 1000,
27 hostapd_dfs_is_background_event(iface, freq) ?
28 " (background)" : "");
29--
302.18.0
31