Home
last modified time | relevance | path

Searched refs:mcs_map (Results 1 – 10 of 10) sorted by relevance

/drivers/net/wireless/mediatek/mt76/mt7915/
Dinit.c617 u16 mcs_map = 0; in mt7915_init_he_caps() local
621 mcs_map |= (IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2)); in mt7915_init_he_caps()
623 mcs_map |= (IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2)); in mt7915_init_he_caps()
723 he_mcs->rx_mcs_80 = cpu_to_le16(mcs_map); in mt7915_init_he_caps()
724 he_mcs->tx_mcs_80 = cpu_to_le16(mcs_map); in mt7915_init_he_caps()
725 he_mcs->rx_mcs_160 = cpu_to_le16(mcs_map); in mt7915_init_he_caps()
726 he_mcs->tx_mcs_160 = cpu_to_le16(mcs_map); in mt7915_init_he_caps()
727 he_mcs->rx_mcs_80p80 = cpu_to_le16(mcs_map); in mt7915_init_he_caps()
728 he_mcs->tx_mcs_80p80 = cpu_to_le16(mcs_map); in mt7915_init_he_caps()
Dmcu.c198 mt7915_mcu_get_sta_nss(u16 mcs_map) in mt7915_mcu_get_sta_nss() argument
203 u8 nss_mcs = (mcs_map >> (2 * (nss - 1))) & 3; in mt7915_mcu_get_sta_nss()
219 u16 mcs_map; in mt7915_mcu_set_sta_he_mcs() local
223 mcs_map = le16_to_cpu(sta->deflink.he_cap.he_mcs_nss_supp.rx_mcs_80p80); in mt7915_mcu_set_sta_he_mcs()
226 mcs_map = le16_to_cpu(sta->deflink.he_cap.he_mcs_nss_supp.rx_mcs_160); in mt7915_mcu_set_sta_he_mcs()
229 mcs_map = le16_to_cpu(sta->deflink.he_cap.he_mcs_nss_supp.rx_mcs_80); in mt7915_mcu_set_sta_he_mcs()
236 switch ((mcs_map >> (2 * nss)) & 0x3) { in mt7915_mcu_set_sta_he_mcs()
266 mcs_map &= ~(0x3 << (nss * 2)); in mt7915_mcu_set_sta_he_mcs()
267 mcs_map |= mcs << (nss * 2); in mt7915_mcu_set_sta_he_mcs()
274 *he_mcs = cpu_to_le16(mcs_map); in mt7915_mcu_set_sta_he_mcs()
[all …]
/drivers/net/wireless/marvell/mwifiex/
D11ac.c56 u8 bands, u16 mcs_map) in mwifiex_convert_mcsmap_to_maxrate() argument
71 mcs = GET_VHTNSSMCS(mcs_map, i); in mwifiex_convert_mcsmap_to_maxrate()
75 mcs = GET_VHTNSSMCS(mcs_map, nss); in mwifiex_convert_mcsmap_to_maxrate()
/drivers/net/wireless/realtek/rtw88/
Dmain.c851 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in get_vht_ra_mask() local
856 for (i = 0, nss = 12; i < 4; i++, mcs_map >>= 2, nss += 10) { in get_vht_ra_mask()
857 vht_mcs_cap = mcs_map & 0x3; in get_vht_ra_mask()
1368 u16 mcs_map; in rtw_init_vht_cap() local
1392 mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9 << 0 | in rtw_init_vht_cap()
1401 mcs_map |= IEEE80211_VHT_MCS_SUPPORT_0_9 << 2; in rtw_init_vht_cap()
1404 mcs_map |= IEEE80211_VHT_MCS_NOT_SUPPORTED << 2; in rtw_init_vht_cap()
1407 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in rtw_init_vht_cap()
1408 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in rtw_init_vht_cap()
/drivers/net/wireless/mediatek/mt76/mt7921/
Dmain.c38 u16 mcs_map = 0; in mt7921_init_he_caps() local
42 mcs_map |= (IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2)); in mt7921_init_he_caps()
44 mcs_map |= (IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2)); in mt7921_init_he_caps()
134 he_mcs->rx_mcs_80 = cpu_to_le16(mcs_map); in mt7921_init_he_caps()
135 he_mcs->tx_mcs_80 = cpu_to_le16(mcs_map); in mt7921_init_he_caps()
/drivers/net/wireless/mediatek/mt76/
Dmac80211.c147 u16 mcs_map = 0; in mt76_init_stream_cap() local
168 mcs_map |= (IEEE80211_VHT_MCS_SUPPORT_0_9 << (i * 2)); in mt76_init_stream_cap()
170 mcs_map |= in mt76_init_stream_cap()
173 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap()
174 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap()
/drivers/net/wireless/realtek/rtlwifi/
Dbase.c230 u16 mcs_map; in _rtl_init_hw_vht_capab() local
246 mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9 << 0 | in _rtl_init_hw_vht_capab()
255 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
258 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
262 u16 mcs_map; in _rtl_init_hw_vht_capab() local
278 mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9 << 0 | in _rtl_init_hw_vht_capab()
287 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
290 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
/drivers/net/wireless/ath/ath10k/
Dmac.c177 static int ath10k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath10k_mac_get_max_vht_mcs_map() argument
179 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath10k_mac_get_max_vht_mcs_map()
2482 u16 mcs_map; in ath10k_peer_assoc_h_vht_limit() local
2486 mcs_map = ath10k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath10k_peer_assoc_h_vht_limit()
2489 if (mcs_map) in ath10k_peer_assoc_h_vht_limit()
2490 idx_limit = fls(mcs_map) - 1; in ath10k_peer_assoc_h_vht_limit()
4848 u16 mcs_map; in ath10k_create_vht_cap() local
4873 mcs_map = 0; in ath10k_create_vht_cap()
4876 mcs_map |= IEEE80211_VHT_MCS_SUPPORT_0_9 << (i * 2); in ath10k_create_vht_cap()
4878 mcs_map |= IEEE80211_VHT_MCS_NOT_SUPPORTED << (i * 2); in ath10k_create_vht_cap()
[all …]
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcfg80211.c6817 u16 mcs_map; in brcmf_get_mcs_map() local
6820 for (i = 0, mcs_map = 0xFFFF; i < nchain; i++) in brcmf_get_mcs_map()
6821 mcs_map = (mcs_map << 2) | supp; in brcmf_get_mcs_map()
6823 return cpu_to_le16(mcs_map); in brcmf_get_mcs_map()
6830 __le16 mcs_map; in brcmf_update_vht_cap() local
6844 mcs_map = brcmf_get_mcs_map(nchain, IEEE80211_VHT_MCS_SUPPORT_0_9); in brcmf_update_vht_cap()
6845 band->vht_cap.vht_mcs.rx_mcs_map = mcs_map; in brcmf_update_vht_cap()
6846 band->vht_cap.vht_mcs.tx_mcs_map = mcs_map; in brcmf_update_vht_cap()
/drivers/net/wireless/ath/ath11k/
Dmac.c1155 static int ath11k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_vht_mcs_map() argument
1157 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_vht_mcs_map()
1171 u16 mcs_map; in ath11k_peer_assoc_h_vht_limit() local
1175 mcs_map = ath11k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_vht_limit()
1178 if (mcs_map) in ath11k_peer_assoc_h_vht_limit()
1179 idx_limit = fls(mcs_map) - 1; in ath11k_peer_assoc_h_vht_limit()