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 <j@w1.fi>
This commit is contained in:
parent
5de748187e
commit
aed8d4d1ff
1 changed files with 4 additions and 1 deletions
|
@ -1755,7 +1755,10 @@ static void mlme_event_ch_switch(struct wpa_driver_nl80211_data *drv,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type) {
|
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:
|
case NL80211_CHAN_NO_HT:
|
||||||
ht_enabled = 0;
|
ht_enabled = 0;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue