/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 …]
|
/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 …]
|
/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 | 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-2024 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 …]
|
H A D | rc80211_minstrel_ht_debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 ms = file->private_data; in minstrel_stats_read() 25 return simple_read_from_buffer(buf, len, ppos, ms->buf, ms->len); in minstrel_stats_read() 31 kfree(file->private_data); in minstrel_stats_release() 40 for (type = 0; type < ARRAY_SIZE(mi->sample); type++) in minstrel_ht_is_sample_rate() 42 if (mi->sample[type].cur_sample_rates[i] == idx) in minstrel_ht_is_sample_rate() 56 if (!mi->supported[i]) in minstrel_ht_stats_dump() 60 gflags = mg->flags; in minstrel_ht_stats_dump() 70 struct minstrel_rate_stats *mrs = &mi->groups[i].rates[j]; in minstrel_ht_stats_dump() 74 if (!(mi->supported[i] & BIT(j))) in minstrel_ht_stats_dump() [all …]
|
/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, 2024 Intel Corporation 12 * enum iwl_tlc_mng_cfg_flags - 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 …]
|
/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 …]
|
/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> 25 - mediatek,mt76 26 - mediatek,mt7628-wmac 27 - mediatek,mt7622-wmac [all …]
|
/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 6 * Copyright (C) 2020, 2022-2024 Intel Corporation 13 * enum hwsim_tx_control_flags - flags to describe transmission info/status 51 * enum hwsim_commands - supported hwsim commands 106 #define HWSIM_CMD_MAX (_HWSIM_CMD_MAX - 1) 112 * enum hwsim_attrs - hwsim netlink attributes 145 * @HWSIM_ATTR_PAD: padding attribute for 64-bit values, ignore 148 * rates of %HWSIM_ATTR_TX_INFO 198 #define HWSIM_ATTR_MAX (__HWSIM_ATTR_MAX - 1) [all …]
|
/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 …]
|
/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 …]
|
/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_data_from_mtd() 43 list = of_get_property(np, "mediatek,mtd-eeprom", &size); in mt76_get_of_data_from_mtd() 45 return -ENOENT; in mt76_get_of_data_from_mtd() 49 return -ENOENT; in mt76_get_of_data_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 …]
|
/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 …]
|
/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 …]
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
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 …]
|
/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 …]
|
H A D | rxon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2003 - 2014 Intel Corporation. All rights reserved. 9 #include "iwl-trans.h" 10 #include "iwl-modparams.h" 21 memset(&ctx->staging, 0, sizeof(ctx->staging)); in iwl_connection_init_rx_config() 23 if (!ctx->vif) { in iwl_connection_init_rx_config() 24 ctx->staging.dev_type = ctx->unused_devtype; in iwl_connection_init_rx_config() 26 switch (ctx->vif->type) { in iwl_connection_init_rx_config() 28 ctx->staging.dev_type = ctx->ap_devtype; in iwl_connection_init_rx_config() 32 ctx->staging.dev_type = ctx->station_devtype; in iwl_connection_init_rx_config() [all …]
|
/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 …]
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | htt_rx.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 35 hash_for_each_possible(ar->htt.rx_ring.skb_table, rxcb, hlist, paddr) in ath10k_htt_rx_find_skb_paddr() 36 if (rxcb->paddr == paddr) in ath10k_htt_rx_find_skb_paddr() 50 if (htt->rx_ring.in_ord_rx) { in ath10k_htt_rx_ring_free() 51 hash_for_each_safe(htt->rx_ring.skb_table, i, n, rxcb, hlist) { in ath10k_htt_rx_ring_free() 53 dma_unmap_single(htt->ar->dev, rxcb->paddr, in ath10k_htt_rx_ring_free() 54 skb->len + skb_tailroom(skb), in ath10k_htt_rx_ring_free() 56 hash_del(&rxcb->hlist); in ath10k_htt_rx_ring_free() [all …]
|
/linux/drivers/net/wireless/ath/wcn36xx/ |
H A D | txrx.c | 24 return 100 - ((bd->phy_stat0 >> 24) & 0xff); in get_rssi0() 29 return ((bd->phy_stat1 >> 24) & 0xff); in get_snr() 40 /* Buffer descriptor rx_ch field is limited to 5-bit (4+1), a mapping is used 48 /* 11b rates */ 134 /* 11ac 20 MHz 800ns GI MCS 0-8 */ 156 /* 11ac 20 MHz 400ns SGI MCS 6-8 */ 166 /* 11ac 40 MHz 800ns GI MCS 0-9 */ 187 /* 11ac 40 MHz 400ns SGI MCS 5-7 */ 195 /* 11ac 40 MHz 400ns SGI MCS 5-7 */ 202 /* 11ac 80 MHz 800ns GI MCS 0-7 */ [all …]
|