developer | bf0f2d6 | 2023-11-14 17:01:47 +0800 | [diff] [blame] | 1 | From ffd6770c6cb58a8b7cb6bd4ec7a1c5f161e86d1d Mon Sep 17 00:00:00 2001 |
| 2 | From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| 3 | Date: Fri, 27 Oct 2023 10:12:59 +0800 |
| 4 | Subject: [PATCH] hostapd: mtk: add log in extender mode |
| 5 | |
| 6 | --- |
| 7 | hostapd/ctrl_iface.c | 8 ++++++++ |
| 8 | src/ap/ctrl_iface_ap.c | 1 + |
| 9 | 2 files changed, 9 insertions(+) |
| 10 | |
| 11 | diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c |
| 12 | index 89594ec..aa435ee 100644 |
| 13 | --- a/hostapd/ctrl_iface.c |
| 14 | +++ b/hostapd/ctrl_iface.c |
| 15 | @@ -186,6 +186,13 @@ static struct hostapd_config *hostapd_ctrl_iface_config_read(const char *fname) |
| 16 | break; |
| 17 | } |
| 18 | |
| 19 | + wpa_printf(MSG_INFO, "mtk: new channel information: channel=%u, " |
| 20 | + "secondary_channel=%d, center_segment0=%u, " |
| 21 | + "center_segment1=%u, op_class=%u\n", |
| 22 | + conf->channel, conf->secondary_channel, |
| 23 | + hostapd_get_oper_centr_freq_seg0_idx(conf), |
| 24 | + hostapd_get_oper_centr_freq_seg1_idx(conf), conf->op_class); |
| 25 | + |
| 26 | return conf; |
| 27 | } |
| 28 | |
| 29 | @@ -199,6 +206,7 @@ static int hostapd_ctrl_iface_update(struct hostapd_data *hapd, char *txt) |
| 30 | iface->interfaces->config_read_cb = hostapd_ctrl_iface_config_read; |
| 31 | reload_opts = txt; |
| 32 | |
| 33 | + wpa_printf(MSG_INFO, "mtk: update iface for %s\n", iface->phy); |
| 34 | for (j = 0; j < iface->num_bss; j++) |
| 35 | iface->bss[j]->stopped_by_supplicant = 0; |
| 36 | |
| 37 | diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c |
| 38 | index 1ad37c5..86e8729 100644 |
| 39 | --- a/src/ap/ctrl_iface_ap.c |
| 40 | +++ b/src/ap/ctrl_iface_ap.c |
| 41 | @@ -951,6 +951,7 @@ int hostapd_ctrl_iface_stop_ap(struct hostapd_data *hapd) |
| 42 | struct hostapd_iface *iface = hapd->iface; |
| 43 | int i; |
| 44 | |
| 45 | + wpa_printf(MSG_INFO, "mtk: stop iface for %s\n", iface->phy); |
| 46 | for (i = 0; i < iface->num_bss; i++){ |
| 47 | iface->bss[i]->stopped_by_supplicant = 1; |
| 48 | hostapd_drv_stop_ap(iface->bss[i]); |
| 49 | -- |
| 50 | 2.25.1 |
| 51 | |