Lines Matching refs:vht_cap
18 struct ieee80211_sta_vht_cap *vht_cap, in __check_vhtcap_disable() argument
25 vht_cap->cap &= ~flag; in __check_vhtcap_disable()
29 struct ieee80211_sta_vht_cap *vht_cap) in ieee80211_apply_vhtcap_overrides() argument
34 if (!vht_cap->vht_supported) in ieee80211_apply_vhtcap_overrides()
40 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
42 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
44 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
46 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
48 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
50 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
52 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
54 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
65 cap = vht_cap->cap & IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; in ieee80211_apply_vhtcap_overrides()
69 vht_cap->cap &= in ieee80211_apply_vhtcap_overrides()
71 vht_cap->cap |= in ieee80211_apply_vhtcap_overrides()
81 rxmcs_cap = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ieee80211_apply_vhtcap_overrides()
87 txmcs_cap = le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map); in ieee80211_apply_vhtcap_overrides()
111 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(rxmcs_cap); in ieee80211_apply_vhtcap_overrides()
112 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(txmcs_cap); in ieee80211_apply_vhtcap_overrides()
121 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->pub->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap() local
126 memset(vht_cap, 0, sizeof(*vht_cap)); in ieee80211_vht_cap_ie_to_sta_vht_cap()
131 if (!vht_cap_ie || !sband->vht_cap.vht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
155 vht_cap->vht_supported = true; in ieee80211_vht_cap_ie_to_sta_vht_cap()
157 own_cap = sband->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap()
170 vht_cap->cap = cap_info; in ieee80211_vht_cap_ie_to_sta_vht_cap()
171 vht_cap->cap &= IEEE80211_VHT_CAP_RXLDPC | in ieee80211_vht_cap_ie_to_sta_vht_cap()
180 vht_cap->cap |= min_t(u32, cap_info & IEEE80211_VHT_CAP_MAX_MPDU_MASK, in ieee80211_vht_cap_ie_to_sta_vht_cap()
186 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
190 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
199 vht_cap->cap |= cap_info & own_cap.cap & in ieee80211_vht_cap_ie_to_sta_vht_cap()
205 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
210 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
215 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
219 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
223 vht_cap->cap |= cap_info & IEEE80211_VHT_CAP_RXSTBC_MASK; in ieee80211_vht_cap_ie_to_sta_vht_cap()
226 vht_cap->cap |= cap_info & IEEE80211_VHT_CAP_TXSTBC; in ieee80211_vht_cap_ie_to_sta_vht_cap()
229 memcpy(&vht_cap->vht_mcs, &vht_cap_ie->supp_mcs, in ieee80211_vht_cap_ie_to_sta_vht_cap()
234 vht_cap->cap |= (cap_info & IEEE80211_VHT_CAP_EXT_NSS_BW_MASK); in ieee80211_vht_cap_ie_to_sta_vht_cap()
236 vht_cap->vht_mcs.tx_highest &= in ieee80211_vht_cap_ie_to_sta_vht_cap()
249 peer_rx = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ieee80211_vht_cap_ie_to_sta_vht_cap()
252 peer_tx = le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map); in ieee80211_vht_cap_ie_to_sta_vht_cap()
269 vht_cap->vht_mcs.rx_mcs_map &= in ieee80211_vht_cap_ie_to_sta_vht_cap()
271 vht_cap->vht_mcs.rx_mcs_map |= cpu_to_le16(peer_rx << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
273 vht_cap->vht_mcs.tx_mcs_map &= in ieee80211_vht_cap_ie_to_sta_vht_cap()
275 vht_cap->vht_mcs.tx_mcs_map |= cpu_to_le16(peer_tx << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
287 if (vht_cap->vht_mcs.rx_mcs_map == cpu_to_le16(0xFFFF)) { in ieee80211_vht_cap_ie_to_sta_vht_cap()
288 vht_cap->vht_supported = false; in ieee80211_vht_cap_ie_to_sta_vht_cap()
296 switch (vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK) { in ieee80211_vht_cap_ie_to_sta_vht_cap()
304 if (!(vht_cap->vht_mcs.tx_highest & in ieee80211_vht_cap_ie_to_sta_vht_cap()
324 switch (vht_cap->cap & IEEE80211_VHT_CAP_MAX_MPDU_MASK) { in ieee80211_vht_cap_ie_to_sta_vht_cap()
346 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->pub->vht_cap; in ieee80211_sta_cap_rx_bw() local
392 if (!vht_cap->vht_supported) in ieee80211_sta_cap_rx_bw()
397 cap_width = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in ieee80211_sta_cap_rx_bw()
408 if (vht_cap->cap & IEEE80211_VHT_CAP_EXT_NSS_BW_MASK) in ieee80211_sta_cap_rx_bw()
417 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->pub->vht_cap; in ieee80211_sta_cap_chan_bw() local
420 if (!vht_cap->vht_supported) { in ieee80211_sta_cap_chan_bw()
428 cap_width = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in ieee80211_sta_cap_chan_bw()
443 struct ieee80211_sta_vht_cap *vht_cap = in ieee80211_sta_rx_bw_to_chan_width() local
444 &link_sta->pub->vht_cap; in ieee80211_sta_rx_bw_to_chan_width()
459 vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in ieee80211_sta_rx_bw_to_chan_width()
598 if (link_sta->pub->vht_cap.vht_supported) { in ieee80211_sta_set_rx_nss()
602 rx_mcs_map = le16_to_cpu(link_sta->pub->vht_cap.vht_mcs.rx_mcs_map); in ieee80211_sta_set_rx_nss()
742 void ieee80211_get_vht_mask_from_cap(__le16 vht_cap, in ieee80211_get_vht_mask_from_cap() argument
746 u16 mask, cap = le16_to_cpu(vht_cap); in ieee80211_get_vht_mask_from_cap()