/Linux-v6.1/net/mac80211/ |
D | ht.c | 23 struct ieee80211_sta_ht_cap *ht_cap, in __check_htcap_disable() argument 29 ht_cap->cap &= ~flag; in __check_htcap_disable() 35 struct ieee80211_sta_ht_cap *ht_cap, in __check_htcap_enable() argument 42 ht_cap->cap |= flag; in __check_htcap_enable() 46 struct ieee80211_sta_ht_cap *ht_cap) in ieee80211_apply_htcap_overrides() argument 52 if (!ht_cap->ht_supported) in ieee80211_apply_htcap_overrides() 81 ht_cap->mcs.rx_mask[i] &= ~m; /* turn off all masked bits */ in ieee80211_apply_htcap_overrides() 83 ht_cap->mcs.rx_mask[i] |= (m & scaps[i]); in ieee80211_apply_htcap_overrides() 87 __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides() 89 __check_htcap_disable(ht_capa, ht_capa_mask, ht_cap, in ieee80211_apply_htcap_overrides() [all …]
|
D | tdls.c | 369 struct ieee80211_sta_ht_cap ht_cap; in ieee80211_tdls_add_setup_start_ies() local 449 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies() 453 ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies() 454 ieee80211_apply_htcap_overrides(sdata, &ht_cap); in ieee80211_tdls_add_setup_start_ies() 457 ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED in ieee80211_tdls_add_setup_start_ies() 461 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies() 463 ht_cap.ht_supported && sta->sta.deflink.ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies() 465 memcpy(&ht_cap, &sta->sta.deflink.ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies() 468 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies() 471 if (ht_cap.ht_supported && in ieee80211_tdls_add_setup_start_ies() [all …]
|
D | vht.c | 128 if (!link_sta->pub->ht_cap.ht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap() 393 return link_sta->pub->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_sta_cap_rx_bw() 421 if (!link_sta->pub->ht_cap.ht_supported) in ieee80211_sta_cap_chan_bw() 424 return link_sta->pub->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_sta_cap_chan_bw() 449 if (!link_sta->pub->ht_cap.ht_supported) in ieee80211_sta_rx_bw_to_chan_width() 586 if (link_sta->pub->ht_cap.ht_supported) { in ieee80211_sta_set_rx_nss() 587 if (link_sta->pub->ht_cap.mcs.rx_mask[0]) in ieee80211_sta_set_rx_nss() 589 if (link_sta->pub->ht_cap.mcs.rx_mask[1]) in ieee80211_sta_set_rx_nss() 591 if (link_sta->pub->ht_cap.mcs.rx_mask[2]) in ieee80211_sta_set_rx_nss() 593 if (link_sta->pub->ht_cap.mcs.rx_mask[3]) in ieee80211_sta_set_rx_nss()
|
/Linux-v6.1/drivers/net/wireless/marvell/mwifiex/ |
D | 11n.c | 26 struct ieee80211_ht_cap *ht_cap) in mwifiex_fill_cap_info() argument 28 uint16_t ht_ext_cap = le16_to_cpu(ht_cap->extended_ht_cap_info); in mwifiex_fill_cap_info() 37 ht_cap->ampdu_params_info = in mwifiex_fill_cap_info() 38 (sband->ht_cap.ampdu_factor & in mwifiex_fill_cap_info() 40 ((sband->ht_cap.ampdu_density << in mwifiex_fill_cap_info() 44 memcpy((u8 *)&ht_cap->mcs, &sband->ht_cap.mcs, in mwifiex_fill_cap_info() 45 sizeof(sband->ht_cap.mcs)); in mwifiex_fill_cap_info() 48 (sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in mwifiex_fill_cap_info() 52 SETHT_MCS32(ht_cap->mcs.rx_mask); in mwifiex_fill_cap_info() 57 ht_cap->cap_info = cpu_to_le16(sband->ht_cap.cap); in mwifiex_fill_cap_info() [all …]
|
D | uap_cmd.c | 159 memcpy(&bss_cfg->ht_cap, ht_ie + 2, in mwifiex_set_ht_params() 163 memset(&bss_cfg->ht_cap, 0, sizeof(struct ieee80211_ht_cap)); in mwifiex_set_ht_params() 164 bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP); in mwifiex_set_ht_params() 165 bss_cfg->ht_cap.ampdu_params_info = MWIFIEX_DEF_AMPDU; in mwifiex_set_ht_params() 623 if (bss_cfg->ht_cap.cap_info) { in mwifiex_uap_bss_param_prepare() 628 htcap->ht_cap.cap_info = bss_cfg->ht_cap.cap_info; in mwifiex_uap_bss_param_prepare() 629 htcap->ht_cap.ampdu_params_info = in mwifiex_uap_bss_param_prepare() 630 bss_cfg->ht_cap.ampdu_params_info; in mwifiex_uap_bss_param_prepare() 631 memcpy(&htcap->ht_cap.mcs, &bss_cfg->ht_cap.mcs, in mwifiex_uap_bss_param_prepare() 633 htcap->ht_cap.extended_ht_cap_info = in mwifiex_uap_bss_param_prepare() [all …]
|
D | join.c | 843 struct mwifiex_ie_types_htcap *ht_cap; in mwifiex_cmd_802_11_ad_hoc_start() local 1033 ht_cap = (struct mwifiex_ie_types_htcap *) pos; in mwifiex_cmd_802_11_ad_hoc_start() 1034 memset(ht_cap, 0, sizeof(struct mwifiex_ie_types_htcap)); in mwifiex_cmd_802_11_ad_hoc_start() 1035 ht_cap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); in mwifiex_cmd_802_11_ad_hoc_start() 1036 ht_cap->header.len = in mwifiex_cmd_802_11_ad_hoc_start() 1040 mwifiex_fill_cap_info(priv, radio_type, &ht_cap->ht_cap); in mwifiex_cmd_802_11_ad_hoc_start() 1046 tmp_ht_cap = le16_to_cpu(ht_cap->ht_cap.cap_info); in mwifiex_cmd_802_11_ad_hoc_start() 1049 ht_cap->ht_cap.cap_info = cpu_to_le16(tmp_ht_cap); in mwifiex_cmd_802_11_ad_hoc_start()
|
/Linux-v6.1/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rs-fw.c | 41 struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in rs_fw_sgi_cw_support() local 49 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_20) in rs_fw_sgi_cw_support() 51 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_40) in rs_fw_sgi_cw_support() 65 struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in rs_fw_get_config_flags() local 79 else if (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) in rs_fw_get_config_flags() 84 ((ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) || in rs_fw_get_config_flags() 248 const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in rs_fw_set_supp_rates() local 267 } else if (ht_cap->ht_supported) { in rs_fw_set_supp_rates() 270 cpu_to_le16(ht_cap->mcs.rx_mask[0]); in rs_fw_set_supp_rates() 278 cpu_to_le16(ht_cap->mcs.rx_mask[1]); in rs_fw_set_supp_rates() [all …]
|
/Linux-v6.1/drivers/net/wireless/ti/wl18xx/ |
D | acx.c | 137 struct ieee80211_sta_ht_cap *ht_cap, in wl18xx_acx_set_peer_cap() argument 147 ht_cap->ht_supported, ht_cap->cap, rate_set); in wl18xx_acx_set_peer_cap() 155 if (allow_ht_operation && ht_cap->ht_supported) { in wl18xx_acx_set_peer_cap() 157 ht_capabilites = ht_cap->cap; in wl18xx_acx_set_peer_cap() 166 acx->ampdu_max_length = ht_cap->ampdu_factor; in wl18xx_acx_set_peer_cap() 167 acx->ampdu_min_spacing = ht_cap->ampdu_density; in wl18xx_acx_set_peer_cap()
|
/Linux-v6.1/drivers/net/wireless/mediatek/mt7601u/ |
D | init.c | 522 struct ieee80211_sta_ht_cap *ht_cap; in mt76_init_sband() local 536 ht_cap = &sband->ht_cap; in mt76_init_sband() 537 ht_cap->ht_supported = true; in mt76_init_sband() 538 ht_cap->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in mt76_init_sband() 544 ht_cap->mcs.rx_mask[0] = 0xff; in mt76_init_sband() 545 ht_cap->mcs.rx_mask[4] = 0x1; in mt76_init_sband() 546 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in mt76_init_sband() 547 ht_cap->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in mt76_init_sband() 548 ht_cap->ampdu_density = IEEE80211_HT_MPDU_DENSITY_2; in mt76_init_sband()
|
/Linux-v6.1/drivers/net/wireless/realtek/rtw88/ |
D | main.c | 126 .ht_cap = {0}, 140 .ht_cap = {0}, 1174 } else if (sta->deflink.ht_cap.ht_supported) { in rtw_update_sta_info() 1175 ra_mask |= (sta->deflink.ht_cap.mcs.rx_mask[1] << 20) | in rtw_update_sta_info() 1176 (sta->deflink.ht_cap.mcs.rx_mask[0] << 12); in rtw_update_sta_info() 1177 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) in rtw_update_sta_info() 1179 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING) in rtw_update_sta_info() 1192 } else if (sta->deflink.ht_cap.ht_supported) { in rtw_update_sta_info() 1207 } else if (sta->deflink.ht_cap.ht_supported) { in rtw_update_sta_info() 1233 is_support_sgi = sta->deflink.ht_cap.ht_supported && in rtw_update_sta_info() [all …]
|
/Linux-v6.1/drivers/net/wireless/realtek/rtlwifi/ |
D | base.c | 120 .ht_cap = {0}, 132 .ht_cap = {0}, 153 struct ieee80211_sta_ht_cap *ht_cap) in _rtl_init_hw_ht_capab() argument 158 ht_cap->ht_supported = true; in _rtl_init_hw_ht_capab() 159 ht_cap->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | in _rtl_init_hw_ht_capab() 165 ht_cap->cap &= ~IEEE80211_HT_CAP_MAX_AMSDU; in _rtl_init_hw_ht_capab() 171 ht_cap->ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in _rtl_init_hw_ht_capab() 174 ht_cap->ampdu_density = IEEE80211_HT_MPDU_DENSITY_16; in _rtl_init_hw_ht_capab() 176 ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; in _rtl_init_hw_ht_capab() 190 ht_cap->mcs.rx_mask[0] = 0xFF; in _rtl_init_hw_ht_capab() [all …]
|
D | rc.c | 124 sgi_20 = sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_20; in _rtl_rc_rate_set_series() 125 sgi_40 = sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SGI_40; in _rtl_rc_rate_set_series() 138 if (sta && (sta->deflink.ht_cap.cap & in _rtl_rc_rate_set_series() 152 if (sta && sta->deflink.ht_cap.ht_supported && in _rtl_rc_rate_set_series() 232 if (sta->deflink.ht_cap.ht_supported && in rtl_tx_status()
|
D | rc.h | 20 u8 ht_cap; member
|
/Linux-v6.1/drivers/net/wireless/ti/wlcore/ |
D | wlcore.h | 100 struct ieee80211_sta_ht_cap *ht_cap, 452 struct ieee80211_sta_ht_cap ht_cap[WLCORE_NUM_BANDS]; member 514 struct ieee80211_sta_ht_cap *ht_cap) in wlcore_set_ht_cap() argument 516 memcpy(&wl->ht_cap[band], ht_cap, sizeof(*ht_cap)); in wlcore_set_ht_cap()
|
/Linux-v6.1/drivers/net/wireless/st/cw1200/ |
D | cw1200.h | 54 struct ieee80211_sta_ht_cap ht_cap; member 308 (ht_info->ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) && in cw1200_ht_greenfield() 317 return ht_info->ht_cap.ampdu_density; in cw1200_ht_ampdu_density()
|
/Linux-v6.1/drivers/staging/rtl8723bs/core/ |
D | rtw_ap.c | 487 phtpriv_sta->ht_cap.ampdu_params_info & IEEE80211_HT_CAP_AMPDU_DENSITY in update_sta_info_apmode() 492 phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info in update_sta_info_apmode() 505 phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info in update_sta_info_apmode() 511 phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info in update_sta_info_apmode() 523 GET_HT_CAPABILITY_ELE_LDPC_CAP((u8 *)(&phtpriv_sta->ht_cap))) in update_sta_info_apmode() 528 GET_HT_CAPABILITY_ELE_RX_STBC((u8 *)(&phtpriv_sta->ht_cap))) in update_sta_info_apmode() 584 if ((phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SGI_20)) in update_ap_info() 588 if ((phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SGI_40)) in update_ap_info() 818 u16 cap, ht_cap = false; in rtw_check_beacon_data() local 1043 ht_cap = true; in rtw_check_beacon_data() [all …]
|
/Linux-v6.1/drivers/net/wireless/mediatek/mt76/ |
D | mt76_connac_mcu.c | 751 struct ieee80211_sta_ht_cap *ht_cap; in mt76_connac_get_phy_mode_v2() local 757 ht_cap = &sta->deflink.ht_cap; in mt76_connac_get_phy_mode_v2() 764 ht_cap = &sband->ht_cap; in mt76_connac_get_phy_mode_v2() 772 if (ht_cap->ht_supported) in mt76_connac_get_phy_mode_v2() 780 if (ht_cap->ht_supported) in mt76_connac_get_phy_mode_v2() 808 if (sta->deflink.ht_cap.ht_supported) { in mt76_connac_mcu_sta_tlv() 813 ht->ht_cap = cpu_to_le16(sta->deflink.ht_cap.cap); in mt76_connac_mcu_sta_tlv() 835 if (sta->deflink.ht_cap.ht_supported || sta->deflink.he_cap.has_he) in mt76_connac_mcu_sta_tlv() 858 sta->deflink.ht_cap.ampdu_factor) | in mt76_connac_mcu_sta_tlv() 860 sta->deflink.ht_cap.ampdu_density); in mt76_connac_mcu_sta_tlv() [all …]
|
/Linux-v6.1/drivers/staging/rtl8192e/ |
D | rtllib_wx.c | 130 struct ht_capab_ele *ht_cap = NULL; in rtl819x_translate_scan() local 135 ht_cap = (struct ht_capab_ele *) in rtl819x_translate_scan() 138 ht_cap = (struct ht_capab_ele *) in rtl819x_translate_scan() 140 is40M = (ht_cap->ChlWidth) ? 1 : 0; in rtl819x_translate_scan() 141 isShortGI = (ht_cap->ChlWidth) ? in rtl819x_translate_scan() 142 ((ht_cap->ShortGI40Mhz) ? 1 : 0) : in rtl819x_translate_scan() 143 ((ht_cap->ShortGI20Mhz) ? 1 : 0); in rtl819x_translate_scan() 145 max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, in rtl819x_translate_scan()
|
/Linux-v6.1/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_wx.c | 134 struct ht_capability_ele *ht_cap = NULL; in rtl819x_translate_scan() local 138 ht_cap = (struct ht_capability_ele *)&network->bssht.bdHTCapBuf[4]; in rtl819x_translate_scan() 140 ht_cap = (struct ht_capability_ele *)&network->bssht.bdHTCapBuf[0]; in rtl819x_translate_scan() 141 is40M = (ht_cap->ChlWidth) ? 1 : 0; in rtl819x_translate_scan() 142 isShortGI = (ht_cap->ChlWidth) ? in rtl819x_translate_scan() 143 ((ht_cap->ShortGI40Mhz) ? 1 : 0) : in rtl819x_translate_scan() 144 ((ht_cap->ShortGI20Mhz) ? 1 : 0); in rtl819x_translate_scan() 146 max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, MCS_FILTER_ALL); in rtl819x_translate_scan()
|
/Linux-v6.1/drivers/net/wireless/intel/iwlegacy/ |
D | 4965-rs.c | 630 return (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) && in il4965_rs_use_green() 1167 if (!conf_is_ht(conf) || !sta->deflink.ht_cap.ht_supported) in il4965_rs_switch_to_mimo2() 1185 if (il_is_ht40_tx_allowed(il, &sta->deflink.ht_cap)) in il4965_rs_switch_to_mimo2() 1220 if (!conf_is_ht(conf) || !sta->deflink.ht_cap.ht_supported) in il4965_rs_switch_to_siso() 1231 if (il_is_ht40_tx_allowed(il, &sta->deflink.ht_cap)) in il4965_rs_switch_to_siso() 1387 struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in il4965_rs_move_siso_to_other() local 1448 !(ht_cap->cap & IEEE80211_HT_CAP_SGI_20)) in il4965_rs_move_siso_to_other() 1451 !(ht_cap->cap & IEEE80211_HT_CAP_SGI_40)) in il4965_rs_move_siso_to_other() 1510 struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in il4965_rs_move_mimo2_to_other() local 1571 !(ht_cap->cap & IEEE80211_HT_CAP_SGI_20)) in il4965_rs_move_mimo2_to_other() [all …]
|
/Linux-v6.1/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rs.c | 1242 if (!conf_is_ht(conf) || !sta->deflink.ht_cap.ht_supported) in rs_switch_to_mimo2() 1297 if (!conf_is_ht(conf) || !sta->deflink.ht_cap.ht_supported) in rs_switch_to_mimo3() 1353 if (!conf_is_ht(conf) || !sta->deflink.ht_cap.ht_supported) in rs_switch_to_siso() 1573 struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in rs_move_siso_to_other() local 1667 if (!tbl->is_ht40 && !(ht_cap->cap & in rs_move_siso_to_other() 1670 if (tbl->is_ht40 && !(ht_cap->cap & in rs_move_siso_to_other() 1743 struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in rs_move_mimo2_to_other() local 1833 if (!tbl->is_ht40 && !(ht_cap->cap & in rs_move_mimo2_to_other() 1836 if (tbl->is_ht40 && !(ht_cap->cap & in rs_move_mimo2_to_other() 1911 struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in rs_move_mimo3_to_other() local [all …]
|
/Linux-v6.1/drivers/staging/rtl8712/ |
D | rtl871x_ht.h | 29 struct ieee80211_ht_cap ht_cap; member
|
/Linux-v6.1/drivers/net/wireless/ath/ath11k/ |
D | mac.c | 1685 const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in ath11k_peer_assoc_h_ht() local 1699 if (!ht_cap->ht_supported) in ath11k_peer_assoc_h_ht() 1711 ht_cap->ampdu_factor)) - 1; in ath11k_peer_assoc_h_ht() 1714 ath11k_parse_mpdudensity(ht_cap->ampdu_density); in ath11k_peer_assoc_h_ht() 1716 arg->peer_ht_caps = ht_cap->cap; in ath11k_peer_assoc_h_ht() 1719 if (ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) in ath11k_peer_assoc_h_ht() 1736 if (ht_cap->cap & (IEEE80211_HT_CAP_SGI_20 | in ath11k_peer_assoc_h_ht() 1741 if (ht_cap->cap & IEEE80211_HT_CAP_TX_STBC) { in ath11k_peer_assoc_h_ht() 1746 if (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) { in ath11k_peer_assoc_h_ht() 1747 stbc = ht_cap->cap & IEEE80211_HT_CAP_RX_STBC; in ath11k_peer_assoc_h_ht() [all …]
|
/Linux-v6.1/drivers/staging/r8188eu/include/ |
D | rtw_ht.h | 25 struct ieee80211_ht_cap ht_cap; member
|
/Linux-v6.1/drivers/net/wireless/marvell/ |
D | mwl8k.c | 1988 if (priv->ap_fw && sta && sta->deflink.ht_cap.ht_supported && !eapol_frame && in mwl8k_txq_xmit() 2394 band->ht_cap.ht_supported = 1; in mwl8k_set_ht_caps() 2397 band->ht_cap.cap |= IEEE80211_HT_CAP_MAX_AMSDU; in mwl8k_set_ht_caps() 2399 band->ht_cap.cap |= IEEE80211_HT_CAP_GRN_FLD; in mwl8k_set_ht_caps() 2402 band->ht_cap.ampdu_factor = IEEE80211_HT_MAX_AMPDU_64K; in mwl8k_set_ht_caps() 2403 band->ht_cap.ampdu_density = IEEE80211_HT_MPDU_DENSITY_NONE; in mwl8k_set_ht_caps() 2406 band->ht_cap.cap |= IEEE80211_HT_CAP_RX_STBC; in mwl8k_set_ht_caps() 2408 band->ht_cap.cap |= IEEE80211_HT_CAP_TX_STBC; in mwl8k_set_ht_caps() 2410 band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_40; in mwl8k_set_ht_caps() 2412 band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_20; in mwl8k_set_ht_caps() [all …]
|