| /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 …]
|
| H A D | xmit.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> 45 if (e->bitrate == bitrate) in b43_tx_legacy_rate_phy_ctl_ent() 56 switch (plcp->raw[0]) { in b43_plcp_get_bitrate_idx_cck() 66 return -1; in b43_plcp_get_bitrate_idx_cck() 69 /* Extract the bitrate index out of an OFDM PLCP header. */ 72 /* For 2 GHz band first OFDM rate is at index 4, see main.c */ in b43_plcp_get_bitrate_idx_ofdm() 75 switch (plcp->raw[0] & 0xF) { in b43_plcp_get_bitrate_idx_ofdm() 93 return -1; in b43_plcp_get_bitrate_idx_ofdm() 139 __u8 *raw = plcp->raw; in b43_generate_plcp_hdr() [all …]
|
| H A D | xmit.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 31 __le16 phy_ctl1_fb; /* PHY TX control word 1 for fallback rates */ 33 __le16 phy_ctl1_rts_fb; /* PHY TX control word 1 RTS for fallback rates */ 114 #define B43_TXH_MAC_SENDCTS 0x00000800 /* Send CTS-to-self */ 133 #define B43_TXH_EFT_FB_OFDM 0x01 /* OFDM */ 138 #define B43_TXH_EFT_RTS_OFDM 0x04 /* OFDM */ 143 #define B43_TXH_EFT_RTSFB_OFDM 0x10 /* OFDM */ 150 #define B43_TXH_PHY_ENC_OFDM 0x0001 /* OFDM */ 194 switch (dev->fw.hdr_format) { in b43_txhdr_size() 244 /* RSSI for A/B/G-PHYs */ [all …]
|
| H A D | ppr.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 u8 ofdm[B43_PPR_OFDM_RATES_NUM]; member 29 struct b43_ppr_rates rates; member
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| H A D | rate.c | 25 * Rate info per rate: It tells whether a rate is ofdm or not and its phy_rate 43 /* rates are in units of Kbps */ 146 * phycfg for legacy OFDM frames: code rate, modulation scheme, spatial streams 151 u32 rate_ofdm; /* ofdm mac rate */ 160 * In CCK mode LPPHY overloads OFDM Modulation bits with CCK Data Rate 170 /* OFDM 6Mbps, code rate 1/2, BPSK, 1 spatial stream */ 172 /* OFDM 9Mbps, code rate 3/4, BPSK, 1 spatial stream */ 174 /* OFDM 12Mbps, code rate 1/2, QPSK, 1 spatial stream */ 176 /* OFDM 18Mbps, code rate 3/4, QPSK, 1 spatial stream */ 178 /* OFDM 24Mbps, code rate 1/2, 16-QAM, 1 spatial stream */ [all …]
|
| H A D | rate.h | 44 /* matching legacy ofdm rate in 500bkps */ 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 */ 79 * tx frame. Legacy CCK and OFDM information is held in the same manner as was 200 /* Convert encoded rate value in plcp header to numerical rates in 500 KHz 212 /* Rates specified in brcms_c_rateset_filter() */ 222 /* copy rateset src to dst as-is (no masking or sorting) */ 231 u8 rates, uint xmask, bool mcsallow);
|
| /linux/drivers/net/wireless/zydas/zd1211rw/ |
| H A D | zd_mac.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* ZD1211 USB-WLAN driver for Linux 4 * Copyright (C) 2005-2007 Ulrich Kunitz <kune@deine-taler.de> 5 * Copyright (C) 2006-2007 Daniel Drake <dsd@gentoo.org> 31 * 802.11g in OFDM mode. 33 * The term zd-rate is used for the combination of the modulation type flag 50 /* The ZD1211 firmware uses proprietary encodings of the 802.11b (CCK) rates. 51 * For OFDM the PLCP rate encodings are used. We combine these "pure" rates 52 * with the modulation type flag and call the resulting values zd-rates. 68 * mode or the 802.11a/802.11g selection in OFDM mode. [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/intel/iwlwifi/mld/ |
| H A D | link.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2024-2025 Intel Corporation 25 lockdep_assert_wiphy(mld->wiphy); in iwl_mld_send_link_cmd() 27 cmd->action = cpu_to_le32(action); in iwl_mld_send_link_cmd() 40 struct ieee80211_vif *vif = link_conf->vif; in iwl_mld_add_link_to_fw() 45 lockdep_assert_wiphy(mld->wiphy); in iwl_mld_add_link_to_fw() 48 return -EINVAL; in iwl_mld_add_link_to_fw() 50 cmd.link_id = cpu_to_le32(link->fw_id); in iwl_mld_add_link_to_fw() 51 cmd.mac_id = cpu_to_le32(mld_vif->fw_id); in iwl_mld_add_link_to_fw() 52 cmd.spec_link_id = link_conf->link_id; in iwl_mld_add_link_to_fw() [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 */ 143 WIRELESS_11G = BIT(1), /* tx: ofdm only, rx: ofdm & cck, hw: cck & ofdm */ 149 …LESS_11BG = (WIRELESS_11B|WIRELESS_11G), /* tx: cck & ofdm, rx: cck & ofdm & MCS, hw: cck & ofdm … 150 …S_11G_24N = (WIRELESS_11G|WIRELESS_11_24N), /* tx: ofdm & MCS, rx: ofdm & cck & MCS, hw: cck & of… 151 …S_11B_24N = (WIRELESS_11B|WIRELESS_11_24N), /* tx: ofdm & cck & MCS, rx: ofdm & cck & MCS, hw: of… 152 …WIRELESS_11B|WIRELESS_11G|WIRELESS_11_24N), /* tx: ofdm & cck & MCS, rx: ofdm & cck & MCS, hw: of… 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 */
|
| H A D | hal_com_phycfg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 17 OFDM, enumerator 31 /*------------------------------Define structure----------------------------*/ 53 * 0x8b8-8bc for Path A and B */ 81 u8 *Rates, u8 RateArraySize);
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
| H A D | mac.c | 1 // SPDX-License-Identifier: ISC 20 #define to_rssi(field, rxv) ((FIELD_GET(field, rxv) - 220) / 2) 23 .pulse_th = { 110, -10, -80, 40, 5200, 128, 5200 }, 37 .pulse_th = { 110, -10, -80, 40, 5200, 128, 5200 }, 48 .pulse_th = { 110, -10, -80, 40, 5200, 128, 5200 }, 97 if (!wcid->sta) in mt7615_rx_get_wcid() 101 if (!sta->vif) in mt7615_rx_get_wcid() 104 return &sta->vif->sta.wcid; in mt7615_rx_get_wcid() 109 struct mt7615_dev *dev = phy->dev; in mt7615_mac_reset_counters() 117 memset(phy->mt76->aggr_stats, 0, sizeof(phy->mt76->aggr_stats)); in mt7615_mac_reset_counters() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
| 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 …]
|
| H A D | rs.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright(c) 2003 - 2014, 2023 Intel Corporation. All rights reserved. 12 #include "iwl-config.h" 49 IWL_RATE_COUNT_LEGACY = IWL_RATE_COUNT - 1, /* Excluding 60M */ 67 IWL_RATE_INVM_INDEX_TABLE = IWL_RATE_INVM_INDEX - 1, 92 /* uCode API values for legacy bit rates, both OFDM and CCK */ 111 /* uCode API values for OFDM high-throughput (HT) bit rates */ 142 /* MAC header values for bit rates */ 159 #define IWL_RATES_MASK ((1 << IWL_RATE_COUNT) - 1) 161 #define IWL_INVALID_VALUE -1 [all …]
|
| /linux/drivers/net/wireless/intel/iwlegacy/ |
| H A D | 3945.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. 8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 16 #include <linux/dma-mapping.h> 94 * il3945_disable_events - Disable selected events in uCode event log 99 * Use for only special debugging. This function is just a placeholder as-is, 107 u32 disable_ptr; /* SRAM address of event-disable bitmap array */ in il3945_disable_events() 110 0x00000000, /* 31 - 0 Event id numbers */ in il3945_disable_events() 111 0x00000000, /* 63 - 32 */ in il3945_disable_events() 112 0x00000000, /* 95 - 64 */ in il3945_disable_events() [all …]
|
| /linux/drivers/net/wireless/broadcom/b43legacy/ |
| H A D | xmit.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 Copyright (C) 2005 Martin Langer <martin-langer@gmx.de> 29 switch (plcp->raw[0]) { in b43legacy_plcp_get_bitrate_idx_cck() 40 return -1; in b43legacy_plcp_get_bitrate_idx_cck() 43 /* Extract the bitrate out of an OFDM PLCP header. */ 49 switch (plcp->raw[0] & 0xF) { in b43legacy_plcp_get_bitrate_idx_ofdm() 68 return -1; in b43legacy_plcp_get_bitrate_idx_ofdm() 114 __le32 *data = &(plcp->data); in b43legacy_generate_plcp_hdr() 115 __u8 *raw = plcp->raw; in b43legacy_generate_plcp_hdr() 182 int use_encryption = !!info->control.hw_key; in generate_txhdr_fw3() [all …]
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | pcu.c | 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 4 * Copyright (c) 2007-2008 Matthew W. S. Bell <mentor@madwifi.org> 5 * Copyright (c) 2007-2008 Luis Rodriguez <mcgrof@winlab.rutgers.edu> 6 * Copyright (c) 2007-2008 Pavel Roskin <proski@gnu.org> 7 * Copyright (c) 2007-2008 Jiri Slaby <jirislaby@gmail.com> 40 * - Buffering of RX and TX frames (after QCU/DCUs) 42 * - Encrypting and decrypting (using the built-in engine) 44 * - Generating ACKs, RTS/CTS frames 46 * - Maintaining TSF [all …]
|
| H A D | ath5k.h | 2 * Copyright (c) 2004-2007 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2007 Nick Kossifidis <mickflemm@gmail.com> 62 #define PCI_DEVICE_ID_ATHEROS_AR5312_REV7 0x0057 /* AR5312 WMAC (AP30-040) */ 63 #define PCI_DEVICE_ID_ATHEROS_AR5312_REV8 0x0058 /* AR5312 WMAC (AP43-030) */ 70 #define PCI_DEVICE_ID_ATHEROS_AR2413 0x001a /* AR2413 (Griffin-lite) */ 72 #define PCI_DEVICE_ID_ATHEROS_AR5424 0x001c /* AR5424 (Condor PCI-E) */ 189 #define AR5K_TUNE_NOISE_FLOOR -72 190 #define AR5K_TUNE_CCA_MAX_GOOD_VALUE -95 274 * enum ath5k_version - MAC Chips 286 * enum ath5k_radio - PHY Chips [all …]
|
| H A D | phy.c | 2 * Copyright (c) 2004-2007 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2009 Nick Kossifidis <mickflemm@gmail.com> 4 * Copyright (c) 2007-2008 Jiri Slaby <jirislaby@gmail.com> 5 * Copyright (c) 2008-2009 Felix Fietkau <nbd@openwrt.org> 42 * Here we handle the low-level functions related to baseband 48 * - Channel setting/switching 50 * - Automatic Gain Control (AGC) calibration 52 * - Noise Floor calibration 54 * - I/Q imbalance calibration (QAM correction) 56 * - Calibration due to thermal changes (gain_F) [all …]
|
| /linux/drivers/net/wireless/ti/wlcore/ |
| H A D | init.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 wl->scan_templ_id_2_4, NULL, in wl1271_init_templates_config() 37 wl->scan_templ_id_5, in wl1271_init_templates_config() 43 if (wl->quirks & WLCORE_QUIRK_DUAL_PROBE_TMPL) { in wl1271_init_templates_config() 45 wl->sched_scan_templ_id_2_4, in wl1271_init_templates_config() 53 wl->sched_scan_templ_id_5, in wl1271_init_templates_config() 153 ret = -ENOMEM; in wl1271_ap_init_deauth_template() 157 tmpl->header.frame_ctl = cpu_to_le16(IEEE80211_FTYPE_MGMT | in wl1271_ap_init_deauth_template() 160 rate = wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set); in wl1271_ap_init_deauth_template() 161 ret = wl1271_cmd_template_set(wl, wlvif->role_id, in wl1271_ap_init_deauth_template() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt7601u/ |
| H A D | eeprom.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 67 #define MT_EFUSE_USAGE_MAP_SIZE (MT_EE_USAGE_MAP_END - \ 77 s8 bw20; /* sign-extended int */ 78 s8 bw40; /* sign-extended int */ 81 /* Power per rate - one value per two rates */ 84 struct power_per_rate ofdm[4]; member 104 /* TSSI stuff - only with internal TX ALC */ 128 s6 -= BIT(6); in s6_to_int() 135 if (val < -0x20) in int_to_s6()
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | rx_desc.h | 1 /* SPDX-License-Identifier: ISC */ 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 56 * A-MPDU frame but a stand alone MPDU. Interior MPDU in an 57 * A-MPDU shall have both first_mpdu and last_mpdu bits set to 84 * Set if packet is not a non-QoS data frame. Only set when 108 * Set if packet is U-APSD trigger. Key table will have bits 109 * per TID to indicate U-APSD trigger. 179 * Indicates that the MPDU was pre-maturely terminated 325 * 6: AES-CCM (WPA2) [all …]
|
| /linux/net/mac80211/ |
| 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/st/cw1200/ |
| H A D | wsm.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * WSM host interface (HI) interface for ST-Ericsson CW1200 mac80211 drivers 5 * Copyright (c) 2010, ST-Ericsson 9 * Copyright (C) ST-Ericsson SA 2010 21 /* Radio band 2.412 -2.484 GHz. */ 24 /* Radio band 4.9375-5.8250 GHz. */ 27 /* Transmit rates */ 28 /* 1 Mbps ERP-DSSS */ 31 /* 2 Mbps ERP-DSSS */ 34 /* 5.5 Mbps ERP-CCK */ [all …]
|