Lines Matching refs:ht_cap

23 				  struct ieee80211_sta_ht_cap *ht_cap,  in __check_htcap_disable()  argument
29 ht_cap->cap &= ~flag; in __check_htcap_disable()
35 struct ieee80211_sta_ht_cap *ht_cap, in __check_htcap_enable() argument
42 ht_cap->cap |= flag; in __check_htcap_enable()
46 struct ieee80211_sta_ht_cap *ht_cap) in ieee80211_apply_htcap_overrides() argument
52 if (!ht_cap->ht_supported) in ieee80211_apply_htcap_overrides()
81 ht_cap->mcs.rx_mask[i] &= ~m; /* turn off all masked bits */ in ieee80211_apply_htcap_overrides()
83 ht_cap->mcs.rx_mask[i] |= (m & scaps[i]); in ieee80211_apply_htcap_overrides()
87 __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides()
89 __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides()
93 __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides()
97 __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides()
101 __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides()
105 __check_htcap_enable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides()
109 __check_htcap_enable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides()
114 ht_cap->cap |= le16_to_cpu(ht_capa->cap_info) & in ieee80211_apply_htcap_overrides()
122 if (n < ht_cap->ampdu_factor) in ieee80211_apply_htcap_overrides()
123 ht_cap->ampdu_factor = n; in ieee80211_apply_htcap_overrides()
132 if (n > ht_cap->ampdu_density) in ieee80211_apply_htcap_overrides()
133 ht_cap->ampdu_density = n; in ieee80211_apply_htcap_overrides()
143 struct ieee80211_sta_ht_cap ht_cap, own_cap; in ieee80211_ht_cap_ie_to_sta_ht_cap() local
149 memset(&ht_cap, 0, sizeof(ht_cap)); in ieee80211_ht_cap_ie_to_sta_ht_cap()
151 if (!ht_cap_ie || !sband->ht_cap.ht_supported) in ieee80211_ht_cap_ie_to_sta_ht_cap()
154 ht_cap.ht_supported = true; in ieee80211_ht_cap_ie_to_sta_ht_cap()
156 own_cap = sband->ht_cap; in ieee80211_ht_cap_ie_to_sta_ht_cap()
174 ht_cap.cap = le16_to_cpu(ht_cap_ie->cap_info) & in ieee80211_ht_cap_ie_to_sta_ht_cap()
187 ht_cap.cap &= ~IEEE80211_HT_CAP_RX_STBC; in ieee80211_ht_cap_ie_to_sta_ht_cap()
189 ht_cap.cap &= ~IEEE80211_HT_CAP_TX_STBC; in ieee80211_ht_cap_ie_to_sta_ht_cap()
192 ht_cap.ampdu_factor = in ieee80211_ht_cap_ie_to_sta_ht_cap()
194 ht_cap.ampdu_density = in ieee80211_ht_cap_ie_to_sta_ht_cap()
201 ht_cap.mcs.tx_params = ht_cap_ie->mcs.tx_params; in ieee80211_ht_cap_ie_to_sta_ht_cap()
223 ht_cap.mcs.rx_mask[i] = in ieee80211_ht_cap_ie_to_sta_ht_cap()
229 ht_cap.mcs.rx_mask[i] = in ieee80211_ht_cap_ie_to_sta_ht_cap()
235 ht_cap.mcs.rx_mask[32/8] |= 1; in ieee80211_ht_cap_ie_to_sta_ht_cap()
238 ht_cap.mcs.rx_highest = ht_cap_ie->mcs.rx_highest; in ieee80211_ht_cap_ie_to_sta_ht_cap()
240 if (ht_cap.cap & IEEE80211_HT_CAP_MAX_AMSDU) in ieee80211_ht_cap_ie_to_sta_ht_cap()
246 changed = memcmp(&sta->sta.deflink.ht_cap, &ht_cap, sizeof(ht_cap)); in ieee80211_ht_cap_ie_to_sta_ht_cap()
248 memcpy(&sta->sta.deflink.ht_cap, &ht_cap, sizeof(ht_cap)); in ieee80211_ht_cap_ie_to_sta_ht_cap()
262 bw = ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_ht_cap_ie_to_sta_ht_cap()
270 ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_ht_cap_ie_to_sta_ht_cap()
277 switch ((ht_cap.cap & IEEE80211_HT_CAP_SM_PS) in ieee80211_ht_cap_ie_to_sta_ht_cap()