Lines Matching refs:vht_cap

20 				   struct ieee80211_sta_vht_cap *vht_cap,  in __check_vhtcap_disable()  argument
27 vht_cap->cap &= ~flag; in __check_vhtcap_disable()
31 struct ieee80211_sta_vht_cap *vht_cap) in ieee80211_apply_vhtcap_overrides() argument
36 if (!vht_cap->vht_supported) 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()
56 __check_vhtcap_disable(sdata, vht_cap, in ieee80211_apply_vhtcap_overrides()
67 cap = vht_cap->cap & IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; in ieee80211_apply_vhtcap_overrides()
71 vht_cap->cap &= in ieee80211_apply_vhtcap_overrides()
73 vht_cap->cap |= in ieee80211_apply_vhtcap_overrides()
83 rxmcs_cap = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ieee80211_apply_vhtcap_overrides()
89 txmcs_cap = le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map); in ieee80211_apply_vhtcap_overrides()
113 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(rxmcs_cap); in ieee80211_apply_vhtcap_overrides()
114 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(txmcs_cap); in ieee80211_apply_vhtcap_overrides()
123 struct ieee80211_sta_vht_cap *vht_cap = &sta->sta.vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap() local
128 memset(vht_cap, 0, sizeof(*vht_cap)); in ieee80211_vht_cap_ie_to_sta_vht_cap()
133 if (!vht_cap_ie || !sband->vht_cap.vht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
157 vht_cap->vht_supported = true; in ieee80211_vht_cap_ie_to_sta_vht_cap()
159 own_cap = sband->vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap()
172 vht_cap->cap = cap_info; in ieee80211_vht_cap_ie_to_sta_vht_cap()
173 vht_cap->cap &= IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895 | in ieee80211_vht_cap_ie_to_sta_vht_cap()
188 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
192 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
201 vht_cap->cap |= cap_info & own_cap.cap & in ieee80211_vht_cap_ie_to_sta_vht_cap()
207 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
212 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
217 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
221 vht_cap->cap |= cap_info & in ieee80211_vht_cap_ie_to_sta_vht_cap()
225 vht_cap->cap |= cap_info & IEEE80211_VHT_CAP_RXSTBC_MASK; in ieee80211_vht_cap_ie_to_sta_vht_cap()
228 vht_cap->cap |= cap_info & IEEE80211_VHT_CAP_TXSTBC; in ieee80211_vht_cap_ie_to_sta_vht_cap()
231 memcpy(&vht_cap->vht_mcs, &vht_cap_ie->supp_mcs, in ieee80211_vht_cap_ie_to_sta_vht_cap()
244 peer_rx = le16_to_cpu(vht_cap->vht_mcs.rx_mcs_map); in ieee80211_vht_cap_ie_to_sta_vht_cap()
247 peer_tx = le16_to_cpu(vht_cap->vht_mcs.tx_mcs_map); in ieee80211_vht_cap_ie_to_sta_vht_cap()
264 vht_cap->vht_mcs.rx_mcs_map &= in ieee80211_vht_cap_ie_to_sta_vht_cap()
266 vht_cap->vht_mcs.rx_mcs_map |= cpu_to_le16(peer_rx << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
268 vht_cap->vht_mcs.tx_mcs_map &= in ieee80211_vht_cap_ie_to_sta_vht_cap()
270 vht_cap->vht_mcs.tx_mcs_map |= cpu_to_le16(peer_tx << i * 2); in ieee80211_vht_cap_ie_to_sta_vht_cap()
282 if (vht_cap->vht_mcs.rx_mcs_map == cpu_to_le16(0xFFFF)) { in ieee80211_vht_cap_ie_to_sta_vht_cap()
283 vht_cap->vht_supported = false; in ieee80211_vht_cap_ie_to_sta_vht_cap()
290 switch (vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK) { in ieee80211_vht_cap_ie_to_sta_vht_cap()
305 switch (vht_cap->cap & IEEE80211_VHT_CAP_MAX_MPDU_MASK) { in ieee80211_vht_cap_ie_to_sta_vht_cap()
321 struct ieee80211_sta_vht_cap *vht_cap = &sta->sta.vht_cap; in ieee80211_sta_cap_rx_bw() local
324 if (!vht_cap->vht_supported) in ieee80211_sta_cap_rx_bw()
329 cap_width = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in ieee80211_sta_cap_rx_bw()
340 struct ieee80211_sta_vht_cap *vht_cap = &sta->sta.vht_cap; in ieee80211_sta_cap_chan_bw() local
343 if (!vht_cap->vht_supported) { in ieee80211_sta_cap_chan_bw()
351 cap_width = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in ieee80211_sta_cap_chan_bw()
365 struct ieee80211_sta_vht_cap *vht_cap = &sta->sta.vht_cap; in ieee80211_sta_rx_bw_to_chan_width() local
380 vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; in ieee80211_sta_rx_bw_to_chan_width()
454 if (sta->sta.vht_cap.vht_supported) { in ieee80211_sta_set_rx_nss()
458 rx_mcs_map = le16_to_cpu(sta->sta.vht_cap.vht_mcs.rx_mcs_map); in ieee80211_sta_set_rx_nss()
581 void ieee80211_get_vht_mask_from_cap(__le16 vht_cap, in ieee80211_get_vht_mask_from_cap() argument
585 u16 mask, cap = le16_to_cpu(vht_cap); in ieee80211_get_vht_mask_from_cap()