| /kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| D | rate.c | 43 /* rates are in units of Kbps */ 45 /* MCS 0: SS 1, MOD: BPSK, CR 1/2 */ 48 /* MCS 1: SS 1, MOD: QPSK, CR 1/2 */ 51 /* MCS 2: SS 1, MOD: QPSK, CR 3/4 */ 54 /* MCS 3: SS 1, MOD: 16QAM, CR 1/2 */ 57 /* MCS 4: SS 1, MOD: 16QAM, CR 3/4 */ 60 /* MCS 5: SS 1, MOD: 64QAM, CR 2/3 */ 63 /* MCS 6: SS 1, MOD: 64QAM, CR 3/4 */ 66 /* MCS 7: SS 1, MOD: 64QAM, CR 5/6 */ 69 /* MCS 8: SS 2, MOD: BPSK, CR 1/2 */ [all …]
|
| D | rate.h | 48 #define BRCMS_MAXMCS 32 /* max valid mcs index */ 49 #define MCS_TABLE_SIZE 33 /* Number of mcs entries in the table */ 52 #define MCS_TXS_MASK 0xc0 /* num tx streams - 1 bit mask */ 53 #define MCS_TXS_SHIFT 6 /* num tx streams - 1 bit shift */ 55 /* returns num tx streams - 1 */ 56 static inline u8 mcs_2_txstreams(u8 mcs) in mcs_2_txstreams() argument 58 return (mcs_table[mcs].tx_phy_ctl3 & MCS_TXS_MASK) >> MCS_TXS_SHIFT; in mcs_2_txstreams() 61 static inline uint mcs_2_rate(u8 mcs, bool is40, bool sgi) in mcs_2_rate() argument 65 return mcs_table[mcs].phy_rate_40_sgi; in mcs_2_rate() 66 return mcs_table[mcs].phy_rate_20_sgi; in mcs_2_rate() [all …]
|
| D | channel.c | 41 * maxpwr[0] - channels [34-48] 42 * maxpwr[1] - channels [52-60] 43 * maxpwr[2] - channels [62-64] 44 * maxpwr[3] - channels [100-140] 45 * maxpwr[4] - channels [149-165] 60 #define BRCM_2GHZ_2412_2462 REG_RULE(2412-10, 2462+10, 40, 0, 19, 0) 61 #define BRCM_2GHZ_2467_2472 REG_RULE(2467-10, 2472+10, 20, 0, 19, \ 64 #define BRCM_5GHZ_5180_5240 REG_RULE(5180-10, 5240+10, 40, 0, 21, \ 66 #define BRCM_5GHZ_5260_5320 REG_RULE(5260-10, 5320+10, 40, 0, 21, \ 69 #define BRCM_5GHZ_5500_5700 REG_RULE(5500-10, 5700+10, 40, 0, 21, \ [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| D | rate.c | 43 /* rates are in units of Kbps */ 45 /* MCS 0: SS 1, MOD: BPSK, CR 1/2 */ 48 /* MCS 1: SS 1, MOD: QPSK, CR 1/2 */ 51 /* MCS 2: SS 1, MOD: QPSK, CR 3/4 */ 54 /* MCS 3: SS 1, MOD: 16QAM, CR 1/2 */ 57 /* MCS 4: SS 1, MOD: 16QAM, CR 3/4 */ 60 /* MCS 5: SS 1, MOD: 64QAM, CR 2/3 */ 63 /* MCS 6: SS 1, MOD: 64QAM, CR 3/4 */ 66 /* MCS 7: SS 1, MOD: 64QAM, CR 5/6 */ 69 /* MCS 8: SS 2, MOD: BPSK, CR 1/2 */ [all …]
|
| D | rate.h | 48 #define BRCMS_MAXMCS 32 /* max valid mcs index */ 49 #define MCS_TABLE_SIZE 33 /* Number of mcs entries in the table */ 52 #define MCS_TXS_MASK 0xc0 /* num tx streams - 1 bit mask */ 53 #define MCS_TXS_SHIFT 6 /* num tx streams - 1 bit shift */ 55 /* returns num tx streams - 1 */ 56 static inline u8 mcs_2_txstreams(u8 mcs) in mcs_2_txstreams() argument 58 return (mcs_table[mcs].tx_phy_ctl3 & MCS_TXS_MASK) >> MCS_TXS_SHIFT; in mcs_2_txstreams() 61 static inline uint mcs_2_rate(u8 mcs, bool is40, bool sgi) in mcs_2_rate() argument 65 return mcs_table[mcs].phy_rate_40_sgi; in mcs_2_rate() 66 return mcs_table[mcs].phy_rate_20_sgi; in mcs_2_rate() [all …]
|
| D | channel.c | 41 * maxpwr[0] - channels [34-48] 42 * maxpwr[1] - channels [52-60] 43 * maxpwr[2] - channels [62-64] 44 * maxpwr[3] - channels [100-140] 45 * maxpwr[4] - channels [149-165] 60 #define BRCM_2GHZ_2412_2462 REG_RULE(2412-10, 2462+10, 40, 0, 19, 0) 61 #define BRCM_2GHZ_2467_2472 REG_RULE(2467-10, 2472+10, 20, 0, 19, \ 64 #define BRCM_5GHZ_5180_5240 REG_RULE(5180-10, 5240+10, 40, 0, 21, \ 66 #define BRCM_5GHZ_5260_5320 REG_RULE(5260-10, 5320+10, 40, 0, 21, \ 69 #define BRCM_5GHZ_5500_5700 REG_RULE(5500-10, 5700+10, 40, 0, 21, \ [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
| D | ppr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 for (i = 0, entry = &(ppr)->__all_rates[i]; \ 21 /* Compile-time PPR check */ in b43_ppr_clear() 71 struct b43_ppr_rates *rates = &ppr->rates; in b43_ppr_load_max_from_sprom() local 72 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_ppr_load_max_from_sprom() 73 struct b43_phy *phy = &dev->phy; in b43_ppr_load_max_from_sprom() 82 maxpwr = min(sprom->core_pwr_info[0].maxpwr_2g, in b43_ppr_load_max_from_sprom() 83 sprom->core_pwr_info[1].maxpwr_2g); in b43_ppr_load_max_from_sprom() 84 sprom_ofdm_po = sprom->ofdm2gpo; in b43_ppr_load_max_from_sprom() 85 sprom_mcs_po = sprom->mcs2gpo; in b43_ppr_load_max_from_sprom() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/ |
| D | ppr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 for (i = 0, entry = &(ppr)->__all_rates[i]; \ 21 /* Compile-time PPR check */ in b43_ppr_clear() 71 struct b43_ppr_rates *rates = &ppr->rates; in b43_ppr_load_max_from_sprom() local 72 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_ppr_load_max_from_sprom() 73 struct b43_phy *phy = &dev->phy; in b43_ppr_load_max_from_sprom() 82 maxpwr = min(sprom->core_pwr_info[0].maxpwr_2g, in b43_ppr_load_max_from_sprom() 83 sprom->core_pwr_info[1].maxpwr_2g); in b43_ppr_load_max_from_sprom() 84 sprom_ofdm_po = sprom->ofdm2gpo; in b43_ppr_load_max_from_sprom() 85 sprom_mcs_po = sprom->mcs2gpo; in b43_ppr_load_max_from_sprom() [all …]
|
| /kernel/linux/linux-5.10/net/mac80211/ |
| D | rc80211_minstrel_ht.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 46 /* sorted rate set within a MCS group*/ 50 /* MCS rate statistics */ 51 struct minstrel_rate_stats rates[MCS_GROUP_RATES]; member 97 /* current MCS group to be sampled */ 103 /* Bitfield of supported MCS rates of all groups */ 106 /* MCS rate group info and statistics */
|
| D | ht.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright 2002-2005, Instant802 Networks, Inc. 7 * Copyright 2005-2006, Devicescape Software, Inc. 8 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 10 * Copyright 2007-2010, Intel Corporation 27 if (ht_capa_mask->cap_info & le_flag) { in __check_htcap_disable() 28 if (!(ht_capa->cap_info & le_flag)) in __check_htcap_disable() 29 ht_cap->cap &= ~flag; in __check_htcap_disable() 40 if ((ht_capa_mask->cap_info & le_flag) && in __check_htcap_enable() 41 (ht_capa->cap_info & le_flag)) in __check_htcap_enable() [all …]
|
| D | rc80211_minstrel_ht.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2010-2013 Felix Fietkau <nbd@openwrt.org> 4 * Copyright (C) 2019-2020 Intel Corporation 46 * Define group sort order: HT40 -> SGI -> #streams 52 _streams - 1 57 _MAX(0, 16 - __builtin_clz(duration)) 59 /* MCS rate information for an MCS group */ 92 (_streams) - 1) 174 "Use only VHT rates when VHT is supported by sta."); 177 * To enable sufficiently targeted rate sampling, MCS rates are divided into [all …]
|
| /kernel/linux/linux-6.6/net/mac80211/ |
| D | rc80211_minstrel_ht.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 11 /* number of highest throughput rates to consider*/ 27 * a1 = exp(-pi * sqrt(2) / period) 29 * coeff3 = -sqr(a1) 30 * coeff1 = 1 - coeff2 - coeff3 32 #define MINSTREL_AVG_COEFF1 (MINSTREL_FRAC(1, 1) - \ 33 MINSTREL_AVG_COEFF2 - \ 36 #define MINSTREL_AVG_COEFF3 -0x0000092e 72 #define MINSTREL_SAMPLE_RATES 5 /* rates per sample type */ 89 * - write static index to debugfs:ieee80211/phyX/rc/fixed_rate_idx [all …]
|
| D | rc80211_minstrel_ht.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2010-2013 Felix Fietkau <nbd@openwrt.org> 4 * Copyright (C) 2019-2022 Intel Corporation 44 * Define group sort order: HT40 -> SGI -> #streams 50 _streams - 1 55 _MAX(0, 16 - __builtin_clz(duration)) 57 /* MCS rate information for an MCS group */ 90 (_streams) - 1) 200 "Use only VHT rates when VHT is supported by sta."); 203 * To enable sufficiently targeted rate sampling, MCS rates are divided into [all …]
|
| D | ht.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright 2002-2005, Instant802 Networks, Inc. 7 * Copyright 2005-2006, Devicescape Software, Inc. 8 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 10 * Copyright 2007-2010, Intel Corporation 12 * Copyright(c) 2020-2023 Intel Corporation 27 if (ht_capa_mask->cap_info & le_flag) { in __check_htcap_disable() 28 if (!(ht_capa->cap_info & le_flag)) in __check_htcap_disable() 29 ht_cap->cap &= ~flag; in __check_htcap_disable() 40 if ((ht_capa_mask->cap_info & le_flag) && in __check_htcap_enable() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/rtl8188eu/include/ |
| D | hal_com.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 27 /* MCS 1 Spatial Stream */ 36 /* MCS 2 Spatial Stream */ 60 /* MCS 1 Spatial Stream */ 69 /* MCS 2 Spatial Stream */ 90 /*------------------------------ Tx Desc definition Macro --------------------*/ 91 /* pragma mark -- Tx Desc related definition. -- */ 93 /* CCK Rates, TxHT = 0 */ 99 /* OFDM Rates, TxHT = 0 */ [all …]
|
| D | ieee80211.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 140 /* Sub-Element */ 144 WIRELESS_11_24N = BIT(3), /* tx:MCS only, rx:MCS & cck, hw:MCS & cck */ 145 WIRELESS_11_5N = BIT(4), /* tx:MCS only, rx:MCS & ofdm, hw:ofdm only */ 149 /* tx: cck & ofdm, rx: cck & ofdm & MCS, hw: cck & ofdm */ 151 /* tx: ofdm & MCS, rx: ofdm & cck & MCS, hw: cck & ofdm */ 153 /* tx: ofdm & MCS, rx: ofdm & MCS, hw: ofdm only */ 155 /* tx: ofdm & cck & MCS, rx: ofdm & cck & MCS, hw: ofdm & cck */ 157 /* tx: ofdm & MCS, rx: ofdm & MCS, hw: ofdm only */ [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/api/ |
| D | rs.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2022 Intel Corporation 12 * enum iwl_tlc_mng_cfg_flags_enum - options for TLC config flags 19 * for BPSK (MCS 0) with 1 spatial 22 * for BPSK (MCS 0) with 2 spatial 36 * enum iwl_tlc_mng_cfg_cw - channel width options 52 * enum iwl_tlc_mng_cfg_chains - possible chains 62 * enum iwl_tlc_mng_cfg_mode - supported modes 82 * enum iwl_tlc_mng_ht_rates - HT/VHT/HE rates 120 * enum IWL_TLC_MCS_PER_BW - mcs index per BW [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/wireless/ |
| D | mediatek,mt76.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Felix Fietkau <nbd@nbd.name> 12 - Lorenzo Bianconi <lorenzo@kernel.org> 13 - Ryder Lee <ryder.lee@mediatek.com> 23 - $ref: ieee80211.yaml# 28 - mediatek,mt76 29 - mediatek,mt7628-wmac [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ralink/rt2x00/ |
| D | rt2x00dev.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 Copyright (C) 2004 - 2010 Ivo van Doorn <IvDoorn@gmail.com> 34 if (rt2x00dev->intf_sta_count) in rt2x00lib_get_bssidx() 36 return vif->addr[5] & (rt2x00dev->ops->max_ap_intf - 1); in rt2x00lib_get_bssidx() 51 if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) in rt2x00lib_enable_radio() 63 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_ON); in rt2x00lib_enable_radio() 67 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_IRQ_ON); in rt2x00lib_enable_radio() 72 set_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags); in rt2x00lib_enable_radio() 90 if (!test_and_clear_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) in rt2x00lib_disable_radio() 104 rt2x00queue_stop_queue(rt2x00dev->bcn); in rt2x00lib_disable_radio() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/ |
| D | rt2x00dev.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 Copyright (C) 2004 - 2010 Ivo van Doorn <IvDoorn@gmail.com> 34 if (rt2x00dev->intf_sta_count) in rt2x00lib_get_bssidx() 36 return vif->addr[5] & (rt2x00dev->ops->max_ap_intf - 1); in rt2x00lib_get_bssidx() 51 if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) in rt2x00lib_enable_radio() 63 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_ON); in rt2x00lib_enable_radio() 67 rt2x00dev->ops->lib->set_device_state(rt2x00dev, STATE_RADIO_IRQ_ON); in rt2x00lib_enable_radio() 72 set_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags); in rt2x00lib_enable_radio() 90 if (!test_and_clear_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) in rt2x00lib_disable_radio() 104 rt2x00queue_stop_queue(rt2x00dev->bcn); in rt2x00lib_disable_radio() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| D | fwil_types.h | 1 // SPDX-License-Identifier: ISC 71 #define BRCMF_MAXRATES_IN_SET 16 /* max # of rates in rateset */ 74 #define BRCMF_OBSS_COEX_AUTO (-1) 83 /* Wakeup on loss-of-link due to Disassoc/Deauth: */ 93 /* Wakeup after receipt of EAP-Identity Req: */ 246 * struct tdls_iovar - common structure for tdls iovars. 316 __le32 count; /* # rates in this set */ 317 u8 rates[16]; /* rates in 500kbps units w/hi bit set if basic */ member 318 } rateset; /* supported rates */ 332 u8 basic_mcs[BRCMF_MCSSET_LEN]; /* 802.11N BSS required MCS set */ [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/virtual/ |
| D | mac80211_hwsim.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211 13 * enum hwsim_tx_control_flags - flags to describe transmission info/status 51 * enum hwsim_commands - supported hwsim commands 104 #define HWSIM_CMD_MAX (_HWSIM_CMD_MAX - 1) 110 * enum hwsim_attrs - hwsim netlink attributes 145 * rates of %HWSIM_ATTR_TX_INFO 193 #define HWSIM_ATTR_MAX (__HWSIM_ATTR_MAX - 1) 196 * struct hwsim_tx_rate - rate selection/status 201 * A value of -1 for @idx indicates an invalid rate and, if used [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ |
| D | mac80211_hwsim.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211 13 * enum hwsim_tx_control_flags - flags to describe transmission info/status 51 * enum hwsim_commands - supported hwsim commands 98 #define HWSIM_CMD_MAX (_HWSIM_CMD_MAX - 1) 104 * enum hwsim_attrs - hwsim netlink attributes 139 * rates of %HWSIM_ATTR_TX_INFO 175 #define HWSIM_ATTR_MAX (__HWSIM_ATTR_MAX - 1) 178 * struct hwsim_tx_rate - rate selection/status 183 * A value of -1 for @idx indicates an invalid rate and, if used [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/marvell/mwifiex/ |
| D | cfp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2011-2020 NXP 83 /* AC rates */ 181 * This function maps an index in supported rates table into 202 rate = ac_mcs_rate_nss2[2 * (3 - bw) + gi][mcs_index]; in mwifiex_index_to_acs_data_rate() 204 rate = ac_mcs_rate_nss1[2 * (3 - bw) + gi][mcs_index]; in mwifiex_index_to_acs_data_rate() 214 rate = 0x0D; /* MCS 32 SGI rate */ in mwifiex_index_to_acs_data_rate() 216 rate = 0x0C; /* MCS 32 LGI rate */ in mwifiex_index_to_acs_data_rate() 219 rate = mcs_rate[2 * (1 - bw) + gi][index]; in mwifiex_index_to_acs_data_rate() 226 /* 11n non-HT rates */ in mwifiex_index_to_acs_data_rate() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
| D | cfp.c | 4 * Copyright 2011-2020 NXP 11 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the 12 * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 14 * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE 95 /* AC rates */ 193 * This function maps an index in supported rates table into 214 rate = ac_mcs_rate_nss2[2 * (3 - bw) + gi][mcs_index]; in mwifiex_index_to_acs_data_rate() 216 rate = ac_mcs_rate_nss1[2 * (3 - bw) + gi][mcs_index]; in mwifiex_index_to_acs_data_rate() 226 rate = 0x0D; /* MCS 32 SGI rate */ in mwifiex_index_to_acs_data_rate() 228 rate = 0x0C; /* MCS 32 LGI rate */ in mwifiex_index_to_acs_data_rate() [all …]
|