Lines Matching refs:ht_cap
2174 const struct ieee80211_sta_ht_cap *ht_cap; in ath12k_peer_assoc_h_ht() local
2195 ht_cap = &link_sta->ht_cap; in ath12k_peer_assoc_h_ht()
2196 if (!ht_cap->ht_supported) in ath12k_peer_assoc_h_ht()
2208 ht_cap->ampdu_factor)) - 1; in ath12k_peer_assoc_h_ht()
2211 ath12k_parse_mpdudensity(ht_cap->ampdu_density); in ath12k_peer_assoc_h_ht()
2213 arg->peer_ht_caps = ht_cap->cap; in ath12k_peer_assoc_h_ht()
2216 if (ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) in ath12k_peer_assoc_h_ht()
2232 if (ht_cap->cap & (IEEE80211_HT_CAP_SGI_20 | IEEE80211_HT_CAP_SGI_40)) in ath12k_peer_assoc_h_ht()
2236 if (ht_cap->cap & IEEE80211_HT_CAP_TX_STBC) { in ath12k_peer_assoc_h_ht()
2241 if (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) { in ath12k_peer_assoc_h_ht()
2242 stbc = ht_cap->cap & IEEE80211_HT_CAP_RX_STBC; in ath12k_peer_assoc_h_ht()
2249 if (ht_cap->mcs.rx_mask[1] && ht_cap->mcs.rx_mask[2]) in ath12k_peer_assoc_h_ht()
2251 else if (ht_cap->mcs.rx_mask[1]) in ath12k_peer_assoc_h_ht()
2255 if ((ht_cap->mcs.rx_mask[i / 8] & BIT(i % 8)) && in ath12k_peer_assoc_h_ht()
2696 else if (link_sta->ht_cap.ht_supported) in ath12k_peer_assoc_h_he()
2891 static int ath12k_get_smps_from_capa(const struct ieee80211_sta_ht_cap *ht_cap, in ath12k_get_smps_from_capa() argument
2895 if (ht_cap->ht_supported) in ath12k_get_smps_from_capa()
2896 *smps = u16_get_bits(ht_cap->cap, IEEE80211_HT_CAP_SM_PS); in ath12k_get_smps_from_capa()
2913 const struct ieee80211_sta_ht_cap *ht_cap; in ath12k_peer_assoc_h_smps() local
2926 ht_cap = &link_sta->ht_cap; in ath12k_peer_assoc_h_smps()
2928 if (!ht_cap->ht_supported && !he_6ghz_capa->capa) in ath12k_peer_assoc_h_smps()
2931 if (ath12k_get_smps_from_capa(ht_cap, he_6ghz_capa, &smps)) in ath12k_peer_assoc_h_smps()
3208 } else if (link_sta->ht_cap.ht_supported && in ath12k_peer_assoc_h_phymode()
3231 } else if (link_sta->ht_cap.ht_supported && in ath12k_peer_assoc_h_phymode()
3612 const struct ieee80211_sta_ht_cap *ht_cap, in ath12k_setup_peer_smps() argument
3617 if (!ht_cap->ht_supported && !he_6ghz_capa) in ath12k_setup_peer_smps()
3620 ret = ath12k_get_smps_from_capa(ht_cap, he_6ghz_capa, &smps); in ath12k_setup_peer_smps()
3925 &link_sta->ht_cap, &link_sta->he_6ghz_capa); in ath12k_bss_assoc()
6537 &link_sta->ht_cap, &link_sta->he_6ghz_capa); in ath12k_mac_station_assoc()
8239 struct ieee80211_sta_ht_cap ht_cap = {}; in ath12k_create_ht_cap() local
8243 return ht_cap; in ath12k_create_ht_cap()
8245 ht_cap.ht_supported = 1; in ath12k_create_ht_cap()
8246 ht_cap.ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in ath12k_create_ht_cap()
8247 ht_cap.ampdu_density = IEEE80211_HT_MPDU_DENSITY_NONE; in ath12k_create_ht_cap()
8248 ht_cap.cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; in ath12k_create_ht_cap()
8249 ht_cap.cap |= IEEE80211_HT_CAP_DSSSCCK40; in ath12k_create_ht_cap()
8250 ht_cap.cap |= WLAN_HT_CAP_SM_PS_STATIC << IEEE80211_HT_CAP_SM_PS_SHIFT; in ath12k_create_ht_cap()
8253 ht_cap.cap |= IEEE80211_HT_CAP_SGI_20; in ath12k_create_ht_cap()
8256 ht_cap.cap |= IEEE80211_HT_CAP_SGI_40; in ath12k_create_ht_cap()
8264 ht_cap.cap |= smps; in ath12k_create_ht_cap()
8268 ht_cap.cap |= IEEE80211_HT_CAP_TX_STBC; in ath12k_create_ht_cap()
8279 ht_cap.cap |= stbc; in ath12k_create_ht_cap()
8283 ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; in ath12k_create_ht_cap()
8286 ht_cap.cap |= IEEE80211_HT_CAP_LSIG_TXOP_PROT; in ath12k_create_ht_cap()
8289 ht_cap.cap |= IEEE80211_HT_CAP_MAX_AMSDU; in ath12k_create_ht_cap()
8293 ht_cap.mcs.rx_mask[i] = 0xFF; in ath12k_create_ht_cap()
8296 ht_cap.mcs.tx_params |= IEEE80211_HT_MCS_TX_DEFINED; in ath12k_create_ht_cap()
8298 return ht_cap; in ath12k_create_ht_cap()
8443 u32 ht_cap; in ath12k_mac_setup_ht_vht_cap() local
8450 ht_cap = cap->band[NL80211_BAND_2GHZ].ht_cap_info; in ath12k_mac_setup_ht_vht_cap()
8452 *ht_cap_info = ht_cap; in ath12k_mac_setup_ht_vht_cap()
8453 band->ht_cap = ath12k_create_ht_cap(ar, ht_cap, in ath12k_mac_setup_ht_vht_cap()
8461 ht_cap = cap->band[NL80211_BAND_5GHZ].ht_cap_info; in ath12k_mac_setup_ht_vht_cap()
8463 *ht_cap_info = ht_cap; in ath12k_mac_setup_ht_vht_cap()
8464 band->ht_cap = ath12k_create_ht_cap(ar, ht_cap, in ath12k_mac_setup_ht_vht_cap()
12507 sband->ht_cap.mcs.rx_mask[i]) in ath12k_mac_bitrate_mask_get_single_nss()
14440 u32 *ht_cap, in ath12k_mac_setup_register() argument
14458 ath12k_mac_setup_ht_vht_cap(ar, cap, ht_cap); in ath12k_mac_setup_register()
14491 u32 ht_cap = U32_MAX, antennas_rx = 0, antennas_tx = 0; in ath12k_mac_hw_register() local
14515 ht_cap &= ht_cap_info; in ath12k_mac_hw_register()
14589 if ((ht_cap & WMI_HT_CAP_ENABLED) || is_6ghz) { in ath12k_mac_hw_register()
14604 if (ht_cap & WMI_HT_CAP_DYNAMIC_SMPS || in ath12k_mac_hw_register()