]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/ap/drv_callbacks.c
Write human readable version of channel width to CSA event debug log
[thirdparty/hostap.git] / src / ap / drv_callbacks.c
index ea4e09abd11ed18e93cd32f9caebb2e3ad71ccd9..7153bb8df59cd17690e3ee6e6456a38a17f3f7e6 100644 (file)
@@ -442,9 +442,10 @@ void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht,
        int channel, chwidth, seg0_idx = 0, seg1_idx = 0;
 
        hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
-                      HOSTAPD_LEVEL_INFO, "driver had channel switch: "
-                      "freq=%d, ht=%d, offset=%d, width=%d, cf1=%d, cf2=%d",
-                      freq, ht, offset, width, cf1, cf2);
+                      HOSTAPD_LEVEL_INFO,
+                      "driver had channel switch: freq=%d, ht=%d, offset=%d, width=%d (%s), cf1=%d, cf2=%d",
+                      freq, ht, offset, width, channel_width_to_string(width),
+                      cf1, cf2);
 
        hapd->iface->freq = freq;