Lines Matching refs:vht_cap

17 				   struct ieee80211_sta_vht_cap *vht_cap,  in __check_vhtcap_disable()  argument
24 vht_cap->cap &= ~flag; in __check_vhtcap_disable()
28 struct ieee80211_sta_vht_cap *vht_cap) in ieee80211_apply_vhtcap_overrides() argument
33 if (!vht_cap->vht_supported) in ieee80211_apply_vhtcap_overrides()
39 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
41 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
43 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
45 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
47 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
49 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
51 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
53 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
64 cap = vht_cap->cap & IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; in ieee80211_apply_vhtcap_overrides()
68 vht_cap->cap &= in ieee80211_apply_vhtcap_overrides()
70 vht_cap->cap |= in ieee80211_apply_vhtcap_overrides()
80 rxmcs_cap = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ieee80211_apply_vhtcap_overrides()
86 txmcs_cap = le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map); in ieee80211_apply_vhtcap_overrides()
110 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(rxmcs_cap); in ieee80211_apply_vhtcap_overrides()
111 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(txmcs_cap); in ieee80211_apply_vhtcap_overrides()
120 struct ieee80211_sta_vht_cap *vht_cap = &sta->sta.vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap() local
125 memset(vht_cap, 0, sizeof(*vht_cap)); in ieee80211_vht_cap_ie_to_sta_vht_cap()
130 if (!vht_cap_ie || !sband->vht_cap.vht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
154 vht_cap->vht_supported = true; in ieee80211_vht_cap_ie_to_sta_vht_cap()
156 own_cap = sband->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap()
169 vht_cap->cap = cap_info; in ieee80211_vht_cap_ie_to_sta_vht_cap()
170 vht_cap->cap &= IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895 | in ieee80211_vht_cap_ie_to_sta_vht_cap()
185 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
189 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
198 vht_cap->cap |= cap_info & own_cap.cap & in ieee80211_vht_cap_ie_to_sta_vht_cap()
204 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
209 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
214 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
218 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
222 vht_cap->cap |= cap_info & IEEE80211_VHT_CAP_RXSTBC_MASK; in ieee80211_vht_cap_ie_to_sta_vht_cap()
225 vht_cap->cap |= cap_info & IEEE80211_VHT_CAP_TXSTBC; in ieee80211_vht_cap_ie_to_sta_vht_cap()
228 memcpy(&vht_cap->vht_mcs, &vht_cap_ie->supp_mcs, in ieee80211_vht_cap_ie_to_sta_vht_cap()
241 peer_rx = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ieee80211_vht_cap_ie_to_sta_vht_cap()
244 peer_tx = le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map); in ieee80211_vht_cap_ie_to_sta_vht_cap()
261 vht_cap->vht_mcs.rx_mcs_map &= in ieee80211_vht_cap_ie_to_sta_vht_cap()
263 vht_cap->vht_mcs.rx_mcs_map |= cpu_to_le16(peer_rx << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
265 vht_cap->vht_mcs.tx_mcs_map &= in ieee80211_vht_cap_ie_to_sta_vht_cap()
267 vht_cap->vht_mcs.tx_mcs_map |= cpu_to_le16(peer_tx << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
271 switch (vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK) { in ieee80211_vht_cap_ie_to_sta_vht_cap()
285 struct ieee80211_sta_vht_cap *vht_cap = &sta->sta.vht_cap; in ieee80211_sta_cap_rx_bw() local
288 if (!vht_cap->vht_supported) in ieee80211_sta_cap_rx_bw()
293 cap_width = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in ieee80211_sta_cap_rx_bw()
358 if (sta->sta.vht_cap.vht_supported) { in ieee80211_sta_set_rx_nss()
362 rx_mcs_map = le16_to_cpu(sta->sta.vht_cap.vht_mcs.rx_mcs_map); in ieee80211_sta_set_rx_nss()
441 void ieee80211_get_vht_mask_from_cap(__le16 vht_cap, in ieee80211_get_vht_mask_from_cap() argument
445 u16 mask, cap = le16_to_cpu(vht_cap); in ieee80211_get_vht_mask_from_cap()