/linux-5.19.10/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 | 368 struct ieee80211_sta_ht_cap ht_cap; in ieee80211_tdls_add_setup_start_ies() local 448 memcpy(&ht_cap, &sband->ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies() 452 ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies() 453 ieee80211_apply_htcap_overrides(sdata, &ht_cap); in ieee80211_tdls_add_setup_start_ies() 456 ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED in ieee80211_tdls_add_setup_start_ies() 460 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies() 462 ht_cap.ht_supported && sta->sta.deflink.ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies() 464 memcpy(&ht_cap, &sta->sta.deflink.ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies() 467 ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_tdls_add_setup_start_ies() 470 if (ht_cap.ht_supported && in ieee80211_tdls_add_setup_start_ies() [all …]
|
D | vht.c | 128 if (!sta->sta.deflink.ht_cap.ht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap() 372 return sta->sta.deflink.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_sta_cap_rx_bw() 399 if (!sta->sta.deflink.ht_cap.ht_supported) in ieee80211_sta_cap_chan_bw() 402 return sta->sta.deflink.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_sta_cap_chan_bw() 425 if (!sta->sta.deflink.ht_cap.ht_supported) in ieee80211_sta_rx_bw_to_chan_width() 552 if (sta->sta.deflink.ht_cap.ht_supported) { in ieee80211_sta_set_rx_nss() 553 if (sta->sta.deflink.ht_cap.mcs.rx_mask[0]) in ieee80211_sta_set_rx_nss() 555 if (sta->sta.deflink.ht_cap.mcs.rx_mask[1]) in ieee80211_sta_set_rx_nss() 557 if (sta->sta.deflink.ht_cap.mcs.rx_mask[2]) in ieee80211_sta_set_rx_nss() 559 if (sta->sta.deflink.ht_cap.mcs.rx_mask[3]) in ieee80211_sta_set_rx_nss()
|
/linux-5.19.10/drivers/net/wireless/marvell/mwifiex/ |
D | 11n.c | 38 struct ieee80211_ht_cap *ht_cap) in mwifiex_fill_cap_info() argument 40 uint16_t ht_ext_cap = le16_to_cpu(ht_cap->extended_ht_cap_info); in mwifiex_fill_cap_info() 49 ht_cap->ampdu_params_info = in mwifiex_fill_cap_info() 50 (sband->ht_cap.ampdu_factor & in mwifiex_fill_cap_info() 52 ((sband->ht_cap.ampdu_density << in mwifiex_fill_cap_info() 56 memcpy((u8 *)&ht_cap->mcs, &sband->ht_cap.mcs, in mwifiex_fill_cap_info() 57 sizeof(sband->ht_cap.mcs)); in mwifiex_fill_cap_info() 60 (sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && in mwifiex_fill_cap_info() 64 SETHT_MCS32(ht_cap->mcs.rx_mask); in mwifiex_fill_cap_info() 69 ht_cap->cap_info = cpu_to_le16(sband->ht_cap.cap); in mwifiex_fill_cap_info() [all …]
|
D | uap_cmd.c | 171 memcpy(&bss_cfg->ht_cap, ht_ie + 2, in mwifiex_set_ht_params() 175 memset(&bss_cfg->ht_cap, 0, sizeof(struct ieee80211_ht_cap)); in mwifiex_set_ht_params() 176 bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP); in mwifiex_set_ht_params() 177 bss_cfg->ht_cap.ampdu_params_info = MWIFIEX_DEF_AMPDU; in mwifiex_set_ht_params() 635 if (bss_cfg->ht_cap.cap_info) { in mwifiex_uap_bss_param_prepare() 640 htcap->ht_cap.cap_info = bss_cfg->ht_cap.cap_info; in mwifiex_uap_bss_param_prepare() 641 htcap->ht_cap.ampdu_params_info = in mwifiex_uap_bss_param_prepare() 642 bss_cfg->ht_cap.ampdu_params_info; in mwifiex_uap_bss_param_prepare() 643 memcpy(&htcap->ht_cap.mcs, &bss_cfg->ht_cap.mcs, in mwifiex_uap_bss_param_prepare() 645 htcap->ht_cap.extended_ht_cap_info = in mwifiex_uap_bss_param_prepare() [all …]
|
D | join.c | 855 struct mwifiex_ie_types_htcap *ht_cap; in mwifiex_cmd_802_11_ad_hoc_start() local 1045 ht_cap = (struct mwifiex_ie_types_htcap *) pos; in mwifiex_cmd_802_11_ad_hoc_start() 1046 memset(ht_cap, 0, sizeof(struct mwifiex_ie_types_htcap)); in mwifiex_cmd_802_11_ad_hoc_start() 1047 ht_cap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); in mwifiex_cmd_802_11_ad_hoc_start() 1048 ht_cap->header.len = in mwifiex_cmd_802_11_ad_hoc_start() 1052 mwifiex_fill_cap_info(priv, radio_type, &ht_cap->ht_cap); in mwifiex_cmd_802_11_ad_hoc_start() 1058 tmp_ht_cap = le16_to_cpu(ht_cap->ht_cap.cap_info); in mwifiex_cmd_802_11_ad_hoc_start() 1061 ht_cap->ht_cap.cap_info = cpu_to_le16(tmp_ht_cap); in mwifiex_cmd_802_11_ad_hoc_start()
|
/linux-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/drivers/net/wireless/realtek/rtw88/ |
D | main.c | 126 .ht_cap = {0}, 140 .ht_cap = {0}, 1140 } else if (sta->deflink.ht_cap.ht_supported) { in rtw_update_sta_info() 1141 ra_mask |= (sta->deflink.ht_cap.mcs.rx_mask[1] << 20) | in rtw_update_sta_info() 1142 (sta->deflink.ht_cap.mcs.rx_mask[0] << 12); in rtw_update_sta_info() 1143 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) in rtw_update_sta_info() 1145 if (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING) in rtw_update_sta_info() 1158 } else if (sta->deflink.ht_cap.ht_supported) { in rtw_update_sta_info() 1173 } else if (sta->deflink.ht_cap.ht_supported) { in rtw_update_sta_info() 1199 is_support_sgi = sta->deflink.ht_cap.ht_supported && in rtw_update_sta_info() [all …]
|
/linux-5.19.10/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-5.19.10/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-5.19.10/drivers/net/wireless/mediatek/mt76/ |
D | mt76_connac_mcu.c | 747 struct ieee80211_sta_ht_cap *ht_cap; in mt76_connac_get_phy_mode_v2() local 753 ht_cap = &sta->deflink.ht_cap; in mt76_connac_get_phy_mode_v2() 760 ht_cap = &sband->ht_cap; in mt76_connac_get_phy_mode_v2() 768 if (ht_cap->ht_supported) in mt76_connac_get_phy_mode_v2() 776 if (ht_cap->ht_supported) in mt76_connac_get_phy_mode_v2() 804 if (sta->deflink.ht_cap.ht_supported) { in mt76_connac_mcu_sta_tlv() 809 ht->ht_cap = cpu_to_le16(sta->deflink.ht_cap.cap); in mt76_connac_mcu_sta_tlv() 831 if (sta->deflink.ht_cap.ht_supported || sta->deflink.he_cap.has_he) in mt76_connac_mcu_sta_tlv() 854 sta->deflink.ht_cap.ampdu_factor) | in mt76_connac_mcu_sta_tlv() 856 sta->deflink.ht_cap.ampdu_density); in mt76_connac_mcu_sta_tlv() [all …]
|
/linux-5.19.10/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-5.19.10/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-5.19.10/drivers/staging/rtl8192e/ |
D | rtllib_wx.c | 139 struct ht_capab_ele *ht_cap = NULL; in rtl819x_translate_scan() local 144 ht_cap = (struct ht_capab_ele *) in rtl819x_translate_scan() 147 ht_cap = (struct ht_capab_ele *) in rtl819x_translate_scan() 149 is40M = (ht_cap->ChlWidth) ? 1 : 0; in rtl819x_translate_scan() 150 isShortGI = (ht_cap->ChlWidth) ? in rtl819x_translate_scan() 151 ((ht_cap->ShortGI40Mhz) ? 1 : 0) : in rtl819x_translate_scan() 152 ((ht_cap->ShortGI20Mhz) ? 1 : 0); in rtl819x_translate_scan() 154 max_mcs = HTGetHighestMCSRate(ieee, ht_cap->MCS, in rtl819x_translate_scan()
|
/linux-5.19.10/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-5.19.10/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-5.19.10/drivers/staging/rtl8712/ |
D | rtl871x_ht.h | 29 struct ieee80211_ht_cap ht_cap; member
|
/linux-5.19.10/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-5.19.10/drivers/staging/r8188eu/include/ |
D | rtw_ht.h | 25 struct ieee80211_ht_cap ht_cap; member
|
/linux-5.19.10/drivers/net/wireless/ath/ath11k/ |
D | mac.c | 1684 const struct ieee80211_sta_ht_cap *ht_cap = &sta->deflink.ht_cap; in ath11k_peer_assoc_h_ht() local 1698 if (!ht_cap->ht_supported) in ath11k_peer_assoc_h_ht() 1710 ht_cap->ampdu_factor)) - 1; in ath11k_peer_assoc_h_ht() 1713 ath11k_parse_mpdudensity(ht_cap->ampdu_density); in ath11k_peer_assoc_h_ht() 1715 arg->peer_ht_caps = ht_cap->cap; in ath11k_peer_assoc_h_ht() 1718 if (ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) in ath11k_peer_assoc_h_ht() 1735 if (ht_cap->cap & (IEEE80211_HT_CAP_SGI_20 | in ath11k_peer_assoc_h_ht() 1740 if (ht_cap->cap & IEEE80211_HT_CAP_TX_STBC) { in ath11k_peer_assoc_h_ht() 1745 if (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) { in ath11k_peer_assoc_h_ht() 1746 stbc = ht_cap->cap & IEEE80211_HT_CAP_RX_STBC; in ath11k_peer_assoc_h_ht() [all …]
|
/linux-5.19.10/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 …]
|