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>
This commit is contained in:
@@ -495,11 +495,9 @@ static void mac80211_hwsim_bss_info_changed(struct ieee80211_hw *hw,
|
||||
}
|
||||
|
||||
if (changed & BSS_CHANGED_HT) {
|
||||
printk(KERN_DEBUG " %s: HT: sec_ch_offs=%d width_40_ok=%d "
|
||||
"op_mode=%d\n",
|
||||
printk(KERN_DEBUG " %s: HT: op_mode=0x%x\n",
|
||||
wiphy_name(hw->wiphy),
|
||||
info->ht.secondary_channel_offset,
|
||||
info->ht.width_40_ok, info->ht.operation_mode);
|
||||
info->ht.operation_mode);
|
||||
}
|
||||
|
||||
if (changed & BSS_CHANGED_BASIC_RATES) {
|
||||
|
Reference in New Issue
Block a user