diff options
author | Jouni Malinen <j@w1.fi> | 2008-10-30 10:59:21 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-10 15:17:39 -0500 |
commit | fe63bfa3669dbdd4985ed35d9a0ed08881f62516 (patch) | |
tree | 60688b0836a014ae3d665750b460b511139a9157 /drivers/net/wireless/mac80211_hwsim.c | |
parent | 95f8e38deffc55f7108bcfa3e180bd5b3d53fc04 (diff) |
mac80211_hwsim: Debug info for BSS config changes
Provide detailed information on BSS configuration changes to make it
easier to debug mac80211 functionality.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index c57652325286..6671592fd81f 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -413,6 +413,43 @@ static void mac80211_hwsim_bss_info_changed(struct ieee80211_hw *hw, | |||
413 | u32 changed) | 413 | u32 changed) |
414 | { | 414 | { |
415 | hwsim_check_magic(vif); | 415 | hwsim_check_magic(vif); |
416 | |||
417 | printk(KERN_DEBUG "%s:%s(changed=0x%x)\n", | ||
418 | wiphy_name(hw->wiphy), __func__, changed); | ||
419 | |||
420 | if (changed & BSS_CHANGED_ASSOC) { | ||
421 | printk(KERN_DEBUG " %s: ASSOC: assoc=%d aid=%d\n", | ||
422 | wiphy_name(hw->wiphy), info->assoc, info->aid); | ||
423 | } | ||
424 | |||
425 | if (changed & BSS_CHANGED_ERP_CTS_PROT) { | ||
426 | printk(KERN_DEBUG " %s: ERP_CTS_PROT: %d\n", | ||
427 | wiphy_name(hw->wiphy), info->use_cts_prot); | ||
428 | } | ||
429 | |||
430 | if (changed & BSS_CHANGED_ERP_PREAMBLE) { | ||
431 | printk(KERN_DEBUG " %s: ERP_PREAMBLE: %d\n", | ||
432 | wiphy_name(hw->wiphy), info->use_short_preamble); | ||
433 | } | ||
434 | |||
435 | if (changed & BSS_CHANGED_ERP_SLOT) { | ||
436 | printk(KERN_DEBUG " %s: ERP_SLOT: %d\n", | ||
437 | wiphy_name(hw->wiphy), info->use_short_slot); | ||
438 | } | ||
439 | |||
440 | if (changed & BSS_CHANGED_HT) { | ||
441 | printk(KERN_DEBUG " %s: HT: sec_ch_offs=%d width_40_ok=%d " | ||
442 | "op_mode=%d\n", | ||
443 | wiphy_name(hw->wiphy), | ||
444 | info->ht.secondary_channel_offset, | ||
445 | info->ht.width_40_ok, info->ht.operation_mode); | ||
446 | } | ||
447 | |||
448 | if (changed & BSS_CHANGED_BASIC_RATES) { | ||
449 | printk(KERN_DEBUG " %s: BASIC_RATES: 0x%llx\n", | ||
450 | wiphy_name(hw->wiphy), | ||
451 | (unsigned long long) info->basic_rates); | ||
452 | } | ||
416 | } | 453 | } |
417 | 454 | ||
418 | static void mac80211_hwsim_sta_notify(struct ieee80211_hw *hw, | 455 | static void mac80211_hwsim_sta_notify(struct ieee80211_hw *hw, |