| From ffd6770c6cb58a8b7cb6bd4ec7a1c5f161e86d1d Mon Sep 17 00:00:00 2001 |
| From: Michael-CY Lee <michael-cy.lee@mediatek.com> |
| Date: Fri, 27 Oct 2023 10:12:59 +0800 |
| Subject: [PATCH] hostapd: mtk: add log in extender mode |
| |
| --- |
| hostapd/ctrl_iface.c | 8 ++++++++ |
| src/ap/ctrl_iface_ap.c | 1 + |
| 2 files changed, 9 insertions(+) |
| |
| diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c |
| index 89594ec..aa435ee 100644 |
| --- a/hostapd/ctrl_iface.c |
| +++ b/hostapd/ctrl_iface.c |
| @@ -186,6 +186,13 @@ static struct hostapd_config *hostapd_ctrl_iface_config_read(const char *fname) |
| break; |
| } |
| |
| + wpa_printf(MSG_INFO, "mtk: new channel information: channel=%u, " |
| + "secondary_channel=%d, center_segment0=%u, " |
| + "center_segment1=%u, op_class=%u\n", |
| + conf->channel, conf->secondary_channel, |
| + hostapd_get_oper_centr_freq_seg0_idx(conf), |
| + hostapd_get_oper_centr_freq_seg1_idx(conf), conf->op_class); |
| + |
| return conf; |
| } |
| |
| @@ -199,6 +206,7 @@ static int hostapd_ctrl_iface_update(struct hostapd_data *hapd, char *txt) |
| iface->interfaces->config_read_cb = hostapd_ctrl_iface_config_read; |
| reload_opts = txt; |
| |
| + wpa_printf(MSG_INFO, "mtk: update iface for %s\n", iface->phy); |
| for (j = 0; j < iface->num_bss; j++) |
| iface->bss[j]->stopped_by_supplicant = 0; |
| |
| diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c |
| index 1ad37c5..86e8729 100644 |
| --- a/src/ap/ctrl_iface_ap.c |
| +++ b/src/ap/ctrl_iface_ap.c |
| @@ -951,6 +951,7 @@ int hostapd_ctrl_iface_stop_ap(struct hostapd_data *hapd) |
| struct hostapd_iface *iface = hapd->iface; |
| int i; |
| |
| + wpa_printf(MSG_INFO, "mtk: stop iface for %s\n", iface->phy); |
| for (i = 0; i < iface->num_bss; i++){ |
| iface->bss[i]->stopped_by_supplicant = 1; |
| hostapd_drv_stop_ap(iface->bss[i]); |
| -- |
| 2.25.1 |
| |