aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-10-26 09:36:14 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-26 09:36:14 (GMT)
commit2f06bcb361c26d064723e4ad229e020d325f5d2e (patch)
tree806a16a4e878c630171851a34356930cdfb3b923 /src
parent8619c33420d2abce96356a9c811f85e837e64bf3 (diff)
downloadhostap-2f06bcb361c26d064723e4ad229e020d325f5d2e.zip
hostap-2f06bcb361c26d064723e4ad229e020d325f5d2e.tar.gz
hostap-2f06bcb361c26d064723e4ad229e020d325f5d2e.tar.bz2
Write human readable version of channel width to CSA event debug log
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r--src/ap/drv_callbacks.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c
index ea4e09a..7153bb8 100644
--- a/src/ap/drv_callbacks.c
+++ b/src/ap/drv_callbacks.c
@@ -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;