]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Write channel type in debug log on channel switch event
authorJouni Malinen <j@w1.fi>
Sat, 25 Oct 2014 08:28:56 +0000 (11:28 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 25 Oct 2014 08:28:56 +0000 (11:28 +0300)
This makes it easier to understand what kind of channel switch was
indicated by the driver.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211.c

index 1017c80211926840acff83b71e30728e4c7e7a0c..9a7260960c86b108b73934b86e66bcf7024123a3 100644 (file)
@@ -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;