developer | 93607dd | 2023-08-30 04:53:00 +0800 | [diff] [blame] | 1 | From aeabc47685135ee69cdeca5f5753c4057ca0f608 Mon Sep 17 00:00:00 2001 |
developer | ec64d9d | 2023-07-07 11:05:50 +0800 | [diff] [blame] | 2 | From: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 3 | Date: Wed, 5 Jul 2023 10:47:20 +0800 |
developer | 93607dd | 2023-08-30 04:53:00 +0800 | [diff] [blame] | 4 | Subject: [PATCH 28/40] hostapd: mtk: Fix hostapd_dfs_start_cac log |
developer | ec64d9d | 2023-07-07 11:05:50 +0800 | [diff] [blame] | 5 | |
| 6 | Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com> |
| 7 | --- |
| 8 | src/ap/dfs.c | 6 ++++-- |
| 9 | 1 file changed, 4 insertions(+), 2 deletions(-) |
| 10 | |
| 11 | diff --git a/src/ap/dfs.c b/src/ap/dfs.c |
developer | 93607dd | 2023-08-30 04:53:00 +0800 | [diff] [blame] | 12 | index c9a9c6c..593a468 100644 |
developer | ec64d9d | 2023-07-07 11:05:50 +0800 | [diff] [blame] | 13 | --- a/src/ap/dfs.c |
| 14 | +++ b/src/ap/dfs.c |
developer | 93607dd | 2023-08-30 04:53:00 +0800 | [diff] [blame] | 15 | @@ -1650,9 +1650,11 @@ int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq, |
developer | ec64d9d | 2023-07-07 11:05:50 +0800 | [diff] [blame] | 16 | /* 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 | -- |
| 30 | 2.18.0 |
| 31 | |