Lines Matching refs:deflink
70 struct ieee80211_sta_he_cap cap = sta->deflink.he_cap; in get_he_ra_mask()
73 switch (sta->deflink.bandwidth) { in get_he_ra_mask()
166 if (sta->deflink.he_cap.has_he) { in rtw89_phy_ra_mask_cfg()
171 } else if (sta->deflink.vht_cap.vht_supported) { in rtw89_phy_ra_mask_cfg()
176 } else if (sta->deflink.ht_cap.ht_supported) { in rtw89_phy_ra_mask_cfg()
255 if (sta->deflink.he_cap.has_he) { in rtw89_phy_ra_sta_update()
260 if (sta->deflink.he_cap.he_cap_elem.phy_cap_info[2] & in rtw89_phy_ra_sta_update()
263 if (sta->deflink.he_cap.he_cap_elem.phy_cap_info[1] & in rtw89_phy_ra_sta_update()
267 } else if (sta->deflink.vht_cap.vht_supported) { in rtw89_phy_ra_sta_update()
268 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in rtw89_phy_ra_sta_update()
275 if (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_RXSTBC_MASK) in rtw89_phy_ra_sta_update()
277 if (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_RXLDPC) in rtw89_phy_ra_sta_update()
279 } else if (sta->deflink.ht_cap.ht_supported) { in rtw89_phy_ra_sta_update()
282 ra_mask |= ((u64)sta->deflink.ht_cap.mcs.rx_mask[3] << 48) | in rtw89_phy_ra_sta_update()
283 ((u64)sta->deflink.ht_cap.mcs.rx_mask[2] << 36) | in rtw89_phy_ra_sta_update()
284 (sta->deflink.ht_cap.mcs.rx_mask[1] << 24) | in rtw89_phy_ra_sta_update()
285 (sta->deflink.ht_cap.mcs.rx_mask[0] << 12); in rtw89_phy_ra_sta_update()
287 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) in rtw89_phy_ra_sta_update()
289 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING) in rtw89_phy_ra_sta_update()
295 ra_mask |= sta->deflink.supp_rates[NL80211_BAND_2GHZ]; in rtw89_phy_ra_sta_update()
296 if (sta->deflink.supp_rates[NL80211_BAND_2GHZ] & 0xf) in rtw89_phy_ra_sta_update()
298 if (sta->deflink.supp_rates[NL80211_BAND_2GHZ] & 0xff0) in rtw89_phy_ra_sta_update()
302 ra_mask |= (u64)sta->deflink.supp_rates[NL80211_BAND_5GHZ] << 4; in rtw89_phy_ra_sta_update()
306 ra_mask |= (u64)sta->deflink.supp_rates[NL80211_BAND_6GHZ] << 4; in rtw89_phy_ra_sta_update()
335 switch (sta->deflink.bandwidth) { in rtw89_phy_ra_sta_update()
338 sgi = sta->deflink.vht_cap.vht_supported && in rtw89_phy_ra_sta_update()
339 (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_160); in rtw89_phy_ra_sta_update()
343 sgi = sta->deflink.vht_cap.vht_supported && in rtw89_phy_ra_sta_update()
344 (sta->deflink.vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80); in rtw89_phy_ra_sta_update()
348 sgi = sta->deflink.ht_cap.ht_supported && in rtw89_phy_ra_sta_update()
349 (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_40); in rtw89_phy_ra_sta_update()
353 sgi = sta->deflink.ht_cap.ht_supported && in rtw89_phy_ra_sta_update()
354 (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_20); in rtw89_phy_ra_sta_update()
358 if (sta->deflink.he_cap.he_cap_elem.phy_cap_info[3] & in rtw89_phy_ra_sta_update()
373 ra->ss_num = min(sta->deflink.rx_nss, rtwdev->hal.tx_nss) - 1; in rtw89_phy_ra_sta_update()
2074 sta->deflink.agg.max_rc_amsdu_len = get_max_amsdu_len(rtwdev, ra_report); in rtw89_phy_c2h_ra_rpt_iter()
2075 rtwsta->max_agg_wait = sta->deflink.agg.max_rc_amsdu_len / 1500 - 1; in rtw89_phy_c2h_ra_rpt_iter()