aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ht.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/ht.c')
-rw-r--r--net/mac80211/ht.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c
index e03c46ac8e4d..c62101857b9b 100644
--- a/net/mac80211/ht.c
+++ b/net/mac80211/ht.c
@@ -112,8 +112,9 @@ void ieee80211_apply_htcap_overrides(struct ieee80211_sub_if_data *sdata,
112 IEEE80211_HT_CAP_TX_STBC); 112 IEEE80211_HT_CAP_TX_STBC);
113 113
114 /* Allow user to configure RX STBC bits */ 114 /* Allow user to configure RX STBC bits */
115 if (ht_capa_mask->cap_info & IEEE80211_HT_CAP_RX_STBC) 115 if (ht_capa_mask->cap_info & cpu_to_le16(IEEE80211_HT_CAP_RX_STBC))
116 ht_cap->cap |= ht_capa->cap_info & IEEE80211_HT_CAP_RX_STBC; 116 ht_cap->cap |= le16_to_cpu(ht_capa->cap_info) &
117 IEEE80211_HT_CAP_RX_STBC;
117 118
118 /* Allow user to decrease AMPDU factor */ 119 /* Allow user to decrease AMPDU factor */
119 if (ht_capa_mask->ampdu_params_info & 120 if (ht_capa_mask->ampdu_params_info &