diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-05-11 14:24:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-05-11 14:24:55 -0400 |
commit | cc755896a4274f11283bca32d1d658203844057a (patch) | |
tree | 218970ece71df99f686b9416b7fd88b921690ebb /drivers/net/wireless/mac80211_hwsim.c | |
parent | d250fe91ae129bff0968e685cc9c466d3a5e3482 (diff) | |
parent | 9459d59fbf0bc82ff4c804679fa8bc22788eca63 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
drivers/net/wireless/ath/ar9170/main.c
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 9fd2beadb6f5..6f8cb3ee6fed 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -652,17 +652,17 @@ static void mac80211_hwsim_beacon(unsigned long arg) | |||
652 | add_timer(&data->beacon_timer); | 652 | add_timer(&data->beacon_timer); |
653 | } | 653 | } |
654 | 654 | ||
655 | static const char *hwsim_chantypes[] = { | ||
656 | [NL80211_CHAN_NO_HT] = "noht", | ||
657 | [NL80211_CHAN_HT20] = "ht20", | ||
658 | [NL80211_CHAN_HT40MINUS] = "ht40-", | ||
659 | [NL80211_CHAN_HT40PLUS] = "ht40+", | ||
660 | }; | ||
655 | 661 | ||
656 | static int mac80211_hwsim_config(struct ieee80211_hw *hw, u32 changed) | 662 | static int mac80211_hwsim_config(struct ieee80211_hw *hw, u32 changed) |
657 | { | 663 | { |
658 | struct mac80211_hwsim_data *data = hw->priv; | 664 | struct mac80211_hwsim_data *data = hw->priv; |
659 | struct ieee80211_conf *conf = &hw->conf; | 665 | struct ieee80211_conf *conf = &hw->conf; |
660 | static const char *chantypes[4] = { | ||
661 | [NL80211_CHAN_NO_HT] = "noht", | ||
662 | [NL80211_CHAN_HT20] = "ht20", | ||
663 | [NL80211_CHAN_HT40MINUS] = "ht40-", | ||
664 | [NL80211_CHAN_HT40PLUS] = "ht40+", | ||
665 | }; | ||
666 | static const char *smps_modes[IEEE80211_SMPS_NUM_MODES] = { | 666 | static const char *smps_modes[IEEE80211_SMPS_NUM_MODES] = { |
667 | [IEEE80211_SMPS_AUTOMATIC] = "auto", | 667 | [IEEE80211_SMPS_AUTOMATIC] = "auto", |
668 | [IEEE80211_SMPS_OFF] = "off", | 668 | [IEEE80211_SMPS_OFF] = "off", |
@@ -673,7 +673,7 @@ static int mac80211_hwsim_config(struct ieee80211_hw *hw, u32 changed) | |||
673 | printk(KERN_DEBUG "%s:%s (freq=%d/%s idle=%d ps=%d smps=%s)\n", | 673 | printk(KERN_DEBUG "%s:%s (freq=%d/%s idle=%d ps=%d smps=%s)\n", |
674 | wiphy_name(hw->wiphy), __func__, | 674 | wiphy_name(hw->wiphy), __func__, |
675 | conf->channel->center_freq, | 675 | conf->channel->center_freq, |
676 | chantypes[conf->channel_type], | 676 | hwsim_chantypes[conf->channel_type], |
677 | !!(conf->flags & IEEE80211_CONF_IDLE), | 677 | !!(conf->flags & IEEE80211_CONF_IDLE), |
678 | !!(conf->flags & IEEE80211_CONF_PS), | 678 | !!(conf->flags & IEEE80211_CONF_PS), |
679 | smps_modes[conf->smps_mode]); | 679 | smps_modes[conf->smps_mode]); |
@@ -761,9 +761,10 @@ static void mac80211_hwsim_bss_info_changed(struct ieee80211_hw *hw, | |||
761 | } | 761 | } |
762 | 762 | ||
763 | if (changed & BSS_CHANGED_HT) { | 763 | if (changed & BSS_CHANGED_HT) { |
764 | printk(KERN_DEBUG " %s: HT: op_mode=0x%x\n", | 764 | printk(KERN_DEBUG " %s: HT: op_mode=0x%x, chantype=%s\n", |
765 | wiphy_name(hw->wiphy), | 765 | wiphy_name(hw->wiphy), |
766 | info->ht_operation_mode); | 766 | info->ht_operation_mode, |
767 | hwsim_chantypes[info->channel_type]); | ||
767 | } | 768 | } |
768 | 769 | ||
769 | if (changed & BSS_CHANGED_BASIC_RATES) { | 770 | if (changed & BSS_CHANGED_BASIC_RATES) { |