aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mac80211_hwsim.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-12-12 01:27:43 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-12-19 15:22:54 -0500
commit094d05dc32fc2930e381189a942016e5561775d9 (patch)
tree4deedbcbe196f88cb8d9fe0cd0755775a7ff0939 /drivers/net/wireless/mac80211_hwsim.c
parent420e7fabd9c6d907280ed6b3e40eef425c5d8d8d (diff)
mac80211: Fix HT channel selection
HT management is done differently for AP and STA modes, unify to just the ->config() callback since HT is fundamentally a PHY property and cannot be per-BSS. Rename enum nl80211_sec_chan_offset as nl80211_channel_type to denote the channel type ( NO_HT, HT20, HT40+, HT40- ). Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Sujith <Sujith.Manoharan@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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index fd5a537ac51d..f83d69e813d3 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -495,11 +495,9 @@ static void mac80211_hwsim_bss_info_changed(struct ieee80211_hw *hw,
495 } 495 }
496 496
497 if (changed & BSS_CHANGED_HT) { 497 if (changed & BSS_CHANGED_HT) {
498 printk(KERN_DEBUG " %s: HT: sec_ch_offs=%d width_40_ok=%d " 498 printk(KERN_DEBUG " %s: HT: op_mode=0x%x\n",
499 "op_mode=%d\n",
500 wiphy_name(hw->wiphy), 499 wiphy_name(hw->wiphy),
501 info->ht.secondary_channel_offset, 500 info->ht.operation_mode);
502 info->ht.width_40_ok, info->ht.operation_mode);
503 } 501 }
504 502
505 if (changed & BSS_CHANGED_BASIC_RATES) { 503 if (changed & BSS_CHANGED_BASIC_RATES) {