From: Jouni Malinen Date: Thu, 9 Oct 2025 22:08:24 +0000 (+0300) Subject: Debug print op_class changes from setting new frequency X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c76d5ad0b8c2612e3ffb01ed7dce7362759b5ad;p=thirdparty%2Fhostap.git Debug print op_class changes from setting new frequency Since the recent addition of update op_class here in commit 3bc01a901803 ("Update conf->op_class in hostapd_change_config_freq()") has needed at least two fixes, it is good to get clear debug prints from it to be able to figure out any potential remaining issues more easily. Signed-off-by: Jouni Malinen --- diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index ed644a06f..7a6b3468d 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -4563,6 +4563,9 @@ int hostapd_change_config_freq(struct hostapd_data *hapd, NUM_HOSTAPD_MODES) return -1; + wpa_printf(MSG_DEBUG, + "%s:Update op_class %d->%d and channel=%d based on freq=%d", + __func__, conf->op_class, op_class, channel, params->freq); conf->op_class = op_class; hostapd_set_oper_centr_freq_seg0_idx(conf, seg0); hostapd_set_oper_centr_freq_seg1_idx(conf, seg1);