| /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 | 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-2025 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 …]
|
| H A D | util.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2005, Instant802 Networks, Inc. 4 * Copyright 2005-2006, Devicescape Software, Inc. 5 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 7 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright (C) 2015-2017 Intel Deutschland GmbH 9 * Copyright (C) 2018-202 3242 u8 i, rates, skip; ieee80211_put_srates_elem() local 3313 ieee80211_mcs_to_chains(const struct ieee80211_mcs_info * mcs) ieee80211_mcs_to_chains() argument [all...] |
| H A D | status.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright 2002-2005, Instant802 Networks, Inc. 4 * Copyright 2005-2006, Devicescape Software, Inc. 5 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz> 6 * Copyright 2008-2010 Johannes Berg <johannes@sipsolutions.net> 7 * Copyright 2013-2014 Intel Mobile Communications GmbH 8 * Copyright 2021-202 [all...] |
| /linux/net/mac80211/tests/ |
| H A D | chan-mode.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2024-2025 Intel Corporation 53 .extra_supp_rate = 0x80 | (BSS_MEMBERSHIP_SELECTOR_MIN - 1), 58 .userspace_selector = BSS_MEMBERSHIP_SELECTOR_MIN - 1, 59 .extra_supp_rate = 0x80 | (BSS_MEMBERSHIP_SELECTOR_MIN - 1), 66 .mcs.rx_mask[0] = 0xf7, 72 /* Only one RX stream at MCS 0-7 */ 85 /* Only one TX stream at MCS 0-7 */ 102 .desc = "all zero VHT basic rates are ignored (many APs broken)", 114 .desc = "all zero HE basic rates are ignored (iPhone workaround)", [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/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/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 */ 92 struct ieee80211_sta *sta = info->status.status_driver_data[0]; in ath_tx_status() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| 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 …]
|
| H A D | hal_com.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 17 /*------------------------------ Tx Desc definition Macro ------------------------*/ 18 /* pragma mark -- Tx Desc related definition. -- */ 23 /* CCK Rates, TxHT = 0 */ 29 /* OFDM Rates, TxHT = 0 */ 39 /* MCS Rates, TxHT = 1 */
|
| /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) - 266 unsigned int mcs; adau1977_lookup_mcs() local 301 int mcs, fs; adau1977_hw_params() local 780 unsigned int mcs; adau1977_check_sysclk() local [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, 2025 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. 38 hash_for_each_possible(ar->htt.rx_ring.skb_table, rxcb, hlist, paddr) in ath10k_htt_rx_find_skb_paddr() 39 if (rxcb->paddr == paddr) in ath10k_htt_rx_find_skb_paddr() 53 if (htt->rx_ring.in_ord_rx) { in ath10k_htt_rx_ring_free() 54 hash_for_each_safe(htt->rx_ring.skb_table, i, n, rxcb, hlist) { in ath10k_htt_rx_ring_free() 56 dma_unmap_single(htt->ar->dev, rxcb->paddr, in ath10k_htt_rx_ring_free() 57 skb->len + skb_tailroom(skb), in ath10k_htt_rx_ring_free() 59 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 …]
|
| H A D | main.c | 146 .mcs = { 169 .mcs = { 190 return NL80211_IFTYPE_STATION == vif->type ? in get_sta_index() 191 sta_priv->bss_sta_index : in get_sta_index() 192 sta_priv->sta_index; in get_sta_index() 200 if (wcn36xx_firmware_get_feat_caps(wcn->fw_feat_caps, i)) { in wcn36xx_feat_caps_info() 209 struct wcn36xx *wcn = hw->priv; in wcn36xx_start() 263 INIT_LIST_HEAD(&wcn->vif_list); in wcn36xx_start() 264 spin_lock_init(&wcn->dxe_lock); in wcn36xx_start() 265 spin_lock_init(&wcn->survey_lock); in wcn36xx_start() [all …]
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt2x00queue.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 Copyright (C) 2004 - 2010 Ivo van Doorn <IvDoorn@gmail.com> 5 Copyright (C) 2004 - 2009 Gertjan van Wingerde <gwingerde@gmail.com> 18 #include <linux/dma-mapping.h> 25 struct data_queue *queue = entry->queue; in rt2x00queue_alloc_rxskb() 26 struct rt2x00_dev *rt2x00dev = queue->rt2x00dev; in rt2x00queue_alloc_rxskb() 37 frame_size = queue->data_size + queue->desc_size + queue->winfo_size; in rt2x00queue_alloc_rxskb() 40 * The payload should be aligned to a 4-byte boundary, in rt2x00queue_alloc_rxskb() 79 skb_dma = dma_map_single(rt2x00dev->dev, skb->data, skb->len, in rt2x00queue_alloc_rxskb() 81 if (unlikely(dma_mapping_error(rt2x00dev->dev, skb_dma))) { in rt2x00queue_alloc_rxskb() [all …]
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | dp_tx.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 20 struct ath11k_base *ab = arvif->ar->ab; in ath11k_dp_tx_get_encap_type() 22 if (test_bit(ATH11K_FLAG_RAW_MODE, &ab->dev_flags)) in ath11k_dp_tx_get_encap_type() 25 if (tx_info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP) in ath11k_dp_tx_get_encap_type() 33 struct ieee80211_hdr *hdr = (void *)skb->data; in ath11k_dp_tx_encap_nwifi() 36 if (!ieee80211_is_data_qos(hdr->frame_control)) in ath11k_dp_tx_encap_nwifi() 40 memmove(skb->data + IEEE80211_QOS_CTL_LEN, in ath11k_dp_tx_encap_nwifi() 41 skb->data, (void *)qos_ctl - (void *)skb->data); in ath11k_dp_tx_encap_nwifi() [all …]
|