From aed8d4d1ff545a74f0683f592c5d11f72b3e22d6 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 25 Oct 2014 11:28:56 +0300 Subject: [PATCH] nl80211: Write channel type in debug log on channel switch event This makes it easier to understand what kind of channel switch was indicated by the driver. Signed-off-by: Jouni Malinen --- src/drivers/driver_nl80211.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 1017c8021..9a7260960 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -1755,7 +1755,10 @@ static void mlme_event_ch_switch(struct wpa_driver_nl80211_data *drv, } if (type) { - switch (nla_get_u32(type)) { + enum nl80211_channel_type ch_type = nla_get_u32(type); + + wpa_printf(MSG_DEBUG, "nl80211: Channel type: %d", ch_type); + switch (ch_type) { case NL80211_CHAN_NO_HT: ht_enabled = 0; break;