]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Debug print op_class changes from setting new frequency
authorJouni Malinen <jouni.malinen@oss.qualcomm.com>
Thu, 9 Oct 2025 22:08:24 +0000 (01:08 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 9 Oct 2025 22:08:24 +0000 (01:08 +0300)
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 <jouni.malinen@oss.qualcomm.com>
src/ap/hostapd.c

index ed644a06f28ff6dc4cd6341926c416783f2ebb75..7a6b3468da4a67fd62dc55ce3a4212b5b82cff6a 100644 (file)
@@ -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);