/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A D | ampdu.c | 52 #define NUM_FFPLD_FIFO 4 /* number of fifo concerned by pre-loading */ 57 #define FFPLD_MAX_MCS 23 /* we don't deal with mcs 32 */ 76 #define MODADD_POW2(x, y, bound) (((x) + (y)) & ((bound) - 1)) 77 #define MODSUB_POW2(x, y, bound) (((x) - (y)) & ((bound) - 1)) 79 /* structure to hold tx fifo information and pre-loading state 85 * ampdu_pld_size: number of bytes to be pre-loaded 86 * mcs2ampdu_table: per-mcs max # of mpdus in an ampdu 107 * ini_enable: per-tid initiator enable/disable of ampdu 112 * retry_limit_tid: per-tid mpdu transmit retry limit 113 * rr_retry_limit_tid: per-tid mpdu transmit retry limit at regular rate [all …]
|
H A D | pub.h | 25 #define BRCMS_NUMRATES 16 /* max # of rates in a rateset */ 34 #define PHY_TYPE_LCNXN 9 /* Phy type 2-stream N */ 35 #define PHY_TYPE_HT 7 /* Phy type 3-Stream N */ 42 #define BRCMS_RSSI_MINVAL -200 /* Low value, e.g. for forcing roam */ 43 #define BRCMS_RSSI_NO_SIGNAL -91 /* NDIS RSSI link quality cutoffs */ 44 #define BRCMS_RSSI_VERY_LOW -80 /* Very low quality cutoffs */ 45 #define BRCMS_RSSI_LOW -70 /* Low quality cutoffs */ 46 #define BRCMS_RSSI_GOOD -68 /* Good quality cutoffs */ 47 #define BRCMS_RSSI_VERY_GOOD -58 /* Very good quality cutoffs */ 48 #define BRCMS_RSSI_EXCELLENT -57 /* Excellent quality cutoffs */ [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A 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 …]
|
/openbmc/linux/net/mac80211/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/wireless/ |
H A 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 …]
|
/openbmc/linux/drivers/net/wireless/ralink/rt2x00/ |
H A 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 …]
|
/openbmc/linux/drivers/net/wireless/virtual/ |
H A 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 …]
|
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/ |
H A 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 …]
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | fwil_types.h | 1 // SPDX-License-Identifier: ISC 76 #define BRCMF_MAXRATES_IN_SET 16 /* max # of rates in rateset */ 79 #define BRCMF_OBSS_COEX_AUTO (-1) 88 /* Wakeup on loss-of-link due to Disassoc/Deauth: */ 98 /* Wakeup after receipt of EAP-Identity Req: */ 255 * struct tdls_iovar - common structure for tdls iovars. 325 __le32 count; /* # rates in this set */ 326 u8 rates[16]; /* rates in 500kbps units w/hi bit set if basic */ member 327 } rateset; /* supported rates */ 341 u8 basic_mcs[BRCMF_MCSSET_LEN]; /* 802.11N BSS required MCS set */ [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | eeprom.c | 1 // SPDX-License-Identifier: ISC 9 #include <linux/nvmem-consumer.h> 15 struct device_node *np = dev->dev->of_node; in mt76_get_of_eeprom_data() 19 data = of_get_property(np, "mediatek,eeprom-data", &size); in mt76_get_of_eeprom_data() 21 return -ENOENT; in mt76_get_of_eeprom_data() 24 return -EINVAL; in mt76_get_of_eeprom_data() 34 struct device_node *np = dev->dev->of_node; in mt76_get_of_epprom_from_mtd() 43 list = of_get_property(np, "mediatek,mtd-eeprom", &size); in mt76_get_of_epprom_from_mtd() 45 return -ENOENT; in mt76_get_of_epprom_from_mtd() 49 return -ENOENT; in mt76_get_of_epprom_from_mtd() [all …]
|
H A D | mt76x02_mac.c | 1 // SPDX-License-Identifier: ISC 28 memset(dev->mphy.aggr_stats, 0, sizeof(dev->mphy.aggr_stats)); in mt76x02_mac_reset_counters() 39 if (key->keylen > 32) in mt76x02_mac_get_key_info() 42 memcpy(key_data, key->key, key->keylen); in mt76x02_mac_get_key_info() 44 switch (key->cipher) { in mt76x02_mac_get_key_info() 67 return -EOPNOTSUPP; in mt76x02_mac_shared_key_setup() 103 atomic64_set(&key->tx_pn, pn); in mt76x02_mac_wcid_sync_pn() 116 return -EOPNOTSUPP; in mt76x02_mac_wcid_set_key() 124 !!(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)); in mt76x02_mac_wcid_set_key() 126 pn = atomic64_read(&key->tx_pn); in mt76x02_mac_wcid_set_key() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | xmit.c | 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 17 #include <linux/dma-mapping.h> 33 #define TIME_SYMBOLS_HALFGI(t) (((t) * 5 - 4) / 18) 35 #define NUM_SYMBOLS_PER_USEC_HALFGI(_usec) (((_usec*5)-4)/18) 49 { 104, 216 }, /* 3: 16-QAM 1/2 */ 50 { 156, 324 }, /* 4: 16-QAM 3/4 */ 51 { 208, 432 }, /* 5: 64-QAM 2/3 */ 52 { 234, 486 }, /* 6: 64-QAM 3/4 */ 53 { 260, 540 }, /* 7: 64-QAM 5/6 */ 93 struct ieee80211_sta *sta = info->status.status_driver_data[0]; in ath_tx_status() [all …]
|
/openbmc/linux/drivers/staging/rtl8192u/ieee80211/ |
H A D | rtl819x_HT.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 * There should be 128 bits to cover all of the MCS rates. However, since 17 * 8190 does not support too much rates, one integer is quite enough. 62 //Supported MCS set 63 u8 MCS[16]; member 120 * configured as non-AP STA mode. **Note** Current_xxx should be set 150 // A-MSDU related 151 u8 bAMSDU_Support; // This indicates Tx A-MSDU capability 152 u16 nAMSDU_MaxSize; // This indicates Tx A-MSDU capability 153 u8 bCurrent_AMSDU_Support; // This indicates Tx A-MSDU capability [all …]
|
/openbmc/linux/drivers/staging/rtl8723bs/include/ |
H A D | ieee80211.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 141 /* Sub-Element */ 144 WIRELESS_11_24N = BIT(3), /* tx: MCS only, rx: MCS & cck, hw: MCS & cck */ 149 …WIRELESS_11BG = (WIRELESS_11B|WIRELESS_11G), /* tx: cck & ofdm, rx: cck & ofdm & MCS, hw: cck & o… 150 …WIRELESS_11G_24N = (WIRELESS_11G|WIRELESS_11_24N), /* tx: ofdm & MCS, rx: ofdm & cck & MCS, hw: c… 151 …WIRELESS_11B_24N = (WIRELESS_11B|WIRELESS_11_24N), /* tx: ofdm & cck & MCS, rx: ofdm & cck & MCS,… 152 …IRELESS_11B|WIRELESS_11G|WIRELESS_11_24N), /* tx: ofdm & cck & MCS, rx: ofdm & cck & MCS, hw: ofd… 261 #define ETH_P_PREAUTH 0x88C7 /* IEEE 802.11i pre-authentication */ 438 ,-------------------------------------------------------------------. [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | adau1977.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Author: Lars-Peter Clausen <lars@metafoo.de> 26 #include <dt-bindings/sound/adi,adau1977.h> 157 static const DECLARE_TLV_DB_MINMAX_MUTE(adau1977_adc_gain, -3562, 6000); 197 ADAU1977_REG_POST_ADC_GAIN((x) - 1), \ 201 SOC_SINGLE("ADC" #x " Highpass-Filter Capture Switch", \ 202 ADAU1977_REG_DC_HPF_CAL, (x) - 1, 1, 0) 235 regcache_cache_bypass(adau1977->regmap, true); in adau1977_reset() 236 ret = regmap_write(adau1977->regmap, ADAU1977_REG_POWER, in adau1977_reset() 238 regcache_cache_bypass(adau1977->regmap, false); in adau1977_reset() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | rs-fw.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 4 * Copyright (C) 2018-2023 Intel Corporation 7 #include "fw-api.h" 9 #include "iwl-op-mode.h" 14 switch (link_sta->bandwidth) { in rs_fw_bw_from_sta_bw() 43 struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in rs_fw_sgi_cw_support() 44 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; in rs_fw_sgi_cw_support() 45 struct ieee80211_sta_he_cap *he_cap = &link_sta->he_cap; in rs_fw_sgi_cw_support() 48 if (he_cap->has_he) in rs_fw_sgi_cw_support() 51 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_20) in rs_fw_sgi_cw_support() [all …]
|
H A D | rs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2005 - 2014, 2018 - 2023 Intel Corporation. All rights reserved. 5 * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH 6 * Copyright(c) 2016 - 2017 Intel Deutschland GmbH 19 #include "fw-api.h" 21 #include "iwl-op-mode.h" 83 IWL_DECLARE_RATE_INFO(6, 0, 5, 11), /* 6mbps ; MCS 0 */ 85 IWL_DECLARE_RATE_INFO(12, 1, 11, 18), /* 12mbps ; MCS 1 */ 86 IWL_DECLARE_RATE_INFO(18, 2, 12, 24), /* 18mbps ; MCS 2 */ 87 IWL_DECLARE_RATE_INFO(24, 3, 18, 36), /* 24mbps ; MCS 3 */ [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A D | rs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2005 - 2014 Intel Corporation. All rights reserved. 5 * Copyright (C) 2019 - 2020, 2022 - 2023 Intel Corporation 21 #define RS_NAME "iwl-agn-rs" 47 /*ANT_NONE -> */ ANT_NONE, 48 /*ANT_A -> */ ANT_B, 49 /*ANT_B -> */ ANT_C, 50 /*ANT_AB -> */ ANT_BC, 51 /*ANT_C -> */ ANT_A, 52 /*ANT_AC -> */ ANT_AB, [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 4965-rs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2005 - 2011 Intel Corporation. All rights reserved. 8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 25 #define IL4965_RS_NAME "iwl-4965-rs" 51 /*ANT_NONE -> */ ANT_NONE, 52 /*ANT_A -> */ ANT_B, 53 /*ANT_B -> */ ANT_C, 54 /*ANT_AB -> */ ANT_BC, 55 /*ANT_C -> */ ANT_A, 56 /*ANT_AC -> */ ANT_AB, [all …]
|