aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index d9a747d387f0..22f2216b397e 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1663,7 +1663,8 @@ u8 *ieee80211_ie_build_ht_cap(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap,
1663 1663
1664u8 *ieee80211_ie_build_ht_oper(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap, 1664u8 *ieee80211_ie_build_ht_oper(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap,
1665 struct ieee80211_channel *channel, 1665 struct ieee80211_channel *channel,
1666 enum nl80211_channel_type channel_type) 1666 enum nl80211_channel_type channel_type,
1667 u16 prot_mode)
1667{ 1668{
1668 struct ieee80211_ht_operation *ht_oper; 1669 struct ieee80211_ht_operation *ht_oper;
1669 /* Build HT Information */ 1670 /* Build HT Information */
@@ -1689,11 +1690,7 @@ u8 *ieee80211_ie_build_ht_oper(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap,
1689 channel_type != NL80211_CHAN_HT20) 1690 channel_type != NL80211_CHAN_HT20)
1690 ht_oper->ht_param |= IEEE80211_HT_PARAM_CHAN_WIDTH_ANY; 1691 ht_oper->ht_param |= IEEE80211_HT_PARAM_CHAN_WIDTH_ANY;
1691 1692
1692 /* 1693 ht_oper->operation_mode = cpu_to_le16(prot_mode);
1693 * Note: According to 802.11n-2009 9.13.3.1, HT Protection field and
1694 * RIFS Mode are reserved in IBSS mode, therefore keep them at 0
1695 */
1696 ht_oper->operation_mode = 0x0000;
1697 ht_oper->stbc_param = 0x0000; 1694 ht_oper->stbc_param = 0x0000;
1698 1695
1699 /* It seems that Basic MCS set and Supported MCS set 1696 /* It seems that Basic MCS set and Supported MCS set