Home
last modified time | relevance | path

Searched +full:txpower +full:- (Results 1 – 25 of 78) sorted by relevance

1234

/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_phy.c41 /* MCS RATE CODES - first and last */
163 /* Hardware workaround - remove rates 6, 9 from rate ctrl */
214 /* Hardware workaround - remove rates 6, 9 from rate ctrl */
223 /*--- HT SS rates ---*/
232 /*--- HT DS rates ---*/
241 /*--- HT TS rates ---*/
272 /*--- HT SS rates ---*/
281 /*--- HT DS rates ---*/
290 /*--- HT TS rates ---*/
313 HAL_CAPABILITIES *p_cap = &ahpriv->ah_caps; in ar9300_get_rate_table()
[all …]
H A Dar9300_xmit_ds.c48 /* checksum = __bswap32(ads->ds_info) + ads->ds_link */ in ar9300_calc_ptr_chk_sum()
49 checksum = ads->ds_info + ads->ds_link in ar9300_calc_ptr_chk_sum()
50 + ads->ds_data0 + ads->ds_ctl3 in ar9300_calc_ptr_chk_sum()
51 + ads->ds_data1 + ads->ds_ctl5 in ar9300_calc_ptr_chk_sum()
52 + ads->ds_data2 + ads->ds_ctl7 in ar9300_calc_ptr_chk_sum()
53 + ads->ds_data3 + ads->ds_ctl9; in ar9300_calc_ptr_chk_sum()
77 ads->ds_info = TXC_INFO(qcu, desclen); in ar9300_fill_tx_desc()
80 ads->ds_data0 = buf_addr[0]; in ar9300_fill_tx_desc()
81 ads->ds_data1 = buf_addr[1]; in ar9300_fill_tx_desc()
82 ads->ds_data2 = buf_addr[2]; in ar9300_fill_tx_desc()
[all …]
H A Dar9300_freebsd.c46 HAL_CAPABILITIES *pCap = &AH_PRIVATE(ah)->ah_caps; in ar9300SetChainMasks()
48 AH9300(ah)->ah_tx_chainmask = tx_chainmask & pCap->halTxChainMask; in ar9300SetChainMasks()
49 AH9300(ah)->ah_rx_chainmask = rx_chainmask & pCap->halRxChainMask; in ar9300SetChainMasks()
93 * For now we'll just go with the HAL default and make these no-ops.
121 * XXX TODO: read ar5416SetTsf64() - we should wait before we do in ar9300_freebsd_set_tsf64()
150 if ((rxs->rs_phyerr != HAL_PHYERR_RADAR) && in ar9300_freebsd_proc_radar_event()
151 (rxs->rs_phyerr != HAL_PHYERR_FALSE_RADAR_EXT)) { in ar9300_freebsd_proc_radar_event()
156 doDfsExtCh = AH_PRIVATE(ah)->ah_caps.halExtChanDfsSupport; in ar9300_freebsd_proc_radar_event()
157 doDfsEnhanced = AH_PRIVATE(ah)->ah_caps.halEnhancedDfsSupport; in ar9300_freebsd_proc_radar_event()
158 doDfsCombinedRssi = AH_PRIVATE(ah)->ah_caps.halUseCombinedRadarRssi; in ar9300_freebsd_proc_radar_event()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5416/
H A Dar5416_xmit.c1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
40 HALASSERT(q < AH_PRIVATE(ah)->ah_caps.halTotalQueues); in ar5416StopTxDma()
42 HALASSERT(AH5212(ah)->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE); in ar5416StopTxDma()
45 for (i = STOP_DMA_TIMEOUT/STOP_DMA_ITER; i != 0; i--) { in ar5416StopTxDma()
75 /* TODO - save off and restore current values of Q1/Q2? */ in ar5416StopTxDma()
100 for (i = STOP_DMA_TIMEOUT/STOP_DMA_ITER; i != 0; i--) { in ar5416StopTxDma()
163 * Handle the non-MCS rates in ar5416RateToRateTable()
[all …]
H A Dar5416.h1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
52 #define AR5416_CCA_MAX_GOOD_VALUE -85
53 #define AR5416_CCA_MAX_HIGH_VALUE -62
54 #define AR5416_CCA_MIN_BAD_VALUE -140
55 #define AR9285_CCA_MAX_GOOD_VALUE -118
90 /* optional open-loop tx power control related methods */
162 #define IS_5416_PCI(ah) ((AH_PRIVATE(ah)->ah_macVersion) == AR_SREV_VERSION_OWL_PCI)
[all …]
/freebsd/sys/dev/ath/ath_hal/ar9002/
H A Dar9280_olc.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
53 AH9280(ah)->originalGain[i] = MS(OS_REG_READ(ah, in ar9280olcInit()
56 AH9280(ah)->PDADCdelta = 0; in ar9280olcInit()
87 while (pcdac > AH9280(ah)->originalGain[i] && in ar9280olcGetTxGainIndex()
88 i < (AR9280_TX_GAIN_TABLE_SIZE - 1)) in ar9280olcGetTxGainIndex()
95 * XXX txPower here is likely not the target txPower in the traditional
100 ar9280olcGetPDADCs(struct ath_hal *ah, uint32_t initTxGain, int txPower, in ar9280olcGetPDADCs() argument
111 offset = txPower; in ar9280olcGetPDADCs()
143 __func__, AH5416(ah)->initPDADC, currPDADC); in ar9280olcTemperatureCompensation()
[all …]
H A Dar9287_olc.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
74 __func__, AH5416(ah)->initPDADC, currPDADC); in ar9287olcTemperatureCompensation()
76 if (AH5416(ah)->initPDADC == 0 || currPDADC == 0) { in ar9287olcTemperatureCompensation()
91 delta = ((currPDADC - AH5416(ah)->initPDADC)*4) / slope; in ar9287olcTemperatureCompensation()
132 ar9287olcSetPDADCs(struct ath_hal *ah, int32_t txPower, in ar9287olcSetPDADCs() argument
157 a = (txPower)&0xff; in ar9287olcSetPDADCs()
167 a = (txPower)&0xff; in ar9287olcSetPDADCs()
H A Dar9287_reset.c1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
40 * Set the TX power calibration table per-chain.
42 * This only supports open-loop TX power control for the AR9287.
55 HAL_EEPROM_9287 *ee = AH_PRIVATE(ah)->ah_eeprom; in ar9287SetPowerCalTable()
56 struct ar9287_eeprom *pEepData = &ee->ee_base; in ar9287SetPowerCalTable()
58 xpdMask = pEepData->modalHeader.xpdGain; in ar9287SetPowerCalTable()
60 if ((pEepData->baseEepHeader.version & AR9287_EEP_VER_MINOR_MASK) >= in ar9287SetPowerCalTable()
[all …]
H A Dar9287_olc.h1 /*-
2 * SPDX-License-Identifier: ISC
29 int32_t txPower, uint16_t chain);
H A Dar9280_olc.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2010-2011 Adrian Chadd, Xenion Pty Ltd.
35 int txPower, uint8_t *pPDADCValues);
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dmcu.h1 /* SPDX-License-Identifier: ISC */
521 mt7915_get_power_bound(struct mt7915_phy *phy, s8 txpower) in mt7915_get_power_bound() argument
523 struct mt76_phy *mphy = phy->mt76; in mt7915_get_power_bound()
524 int n_chains = hweight8(mphy->antenna_mask); in mt7915_get_power_bound()
526 txpower = mt76_get_sar_power(mphy, mphy->chandef.chan, txpower * 2); in mt7915_get_power_bound()
527 txpower -= mt76_tx_power_nss_delta(n_chains); in mt7915_get_power_bound()
529 return txpower; in mt7915_get_power_bound()
H A Dmt7915.h1 /* SPDX-License-Identifier: ISC */
18 #define MT7915_WTBL_RESERVED (mt7915_wtbl_size(dev) - 1)
19 #define MT7915_WTBL_STA (MT7915_WTBL_RESERVED - \
182 /* crash-dump */
355 struct mt76_phy *phy = hw->priv; in mt7915_hw_phy()
357 return phy->priv; in mt7915_hw_phy()
363 struct mt76_phy *phy = hw->priv; in mt7915_hw_dev()
365 return container_of(phy->dev, struct mt7915_dev, mt76); in mt7915_hw_dev()
371 struct mt76_phy *phy = dev->mt76.phys[MT_BAND1]; in mt7915_ext_phy()
376 return phy->priv; in mt7915_ext_phy()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/
H A Dmcu.c1 // SPDX-License-Identifier: ISC
24 dev_err(mdev->dev, "MCU message %02x (seq %d) timed out\n", in mt7603_mcu_parse_response()
26 dev->mcu_hang = MT7603_WATCHDOG_TIMEOUT; in mt7603_mcu_parse_response()
27 return -ETIMEDOUT; in mt7603_mcu_parse_response()
30 rxd = (struct mt7603_mcu_rxd *)skb->data; in mt7603_mcu_parse_response()
31 if (seq != rxd->seq) in mt7603_mcu_parse_response()
32 return -EAGAIN; in mt7603_mcu_parse_response()
42 int hdrlen = dev->mcu_running ? sizeof(struct mt7603_mcu_txd) : 12; in mt7603_mcu_skb_send_msg()
46 mdev->mcu.timeout = 3 * HZ; in mt7603_mcu_skb_send_msg()
48 seq = ++mdev->mcu.msg_seq & 0xf; in mt7603_mcu_skb_send_msg()
[all …]
/freebsd/sys/net80211/
H A Dieee80211_var.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
93 * says that VHT is supported - and then this macro can be
97 ((ic)->ic_flags_ext & IEEE80211_FEXT_VHT)
100 ((ic)->ic_flags_ext & IEEE80211_FEXT_SEQNO_OFFLOAD)
102 ((ic)->ic_flags_ext & IEEE80211_FEXT_FRAG_OFFLOAD)
106 * 1-1 to a physical device and one or more "Virtual AP's" (VAP)
116 * e.g. device-specific callbacks.
123 uint8_t ie_data[]; /* user-specified IE's */
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_xmit.c1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
52 if (ahp->ah_txTrigLev >= ahp->ah_maxTxTrigLev) in ar5212UpdateTxTrigLevel()
58 omask = ath_hal_setInterrupts(ah, ahp->ah_maskReg &~ HAL_INT_GLOBAL); in ar5212UpdateTxTrigLevel()
64 if (curLevel < ahp->ah_maxTxTrigLev) in ar5212UpdateTxTrigLevel()
67 newLevel--; in ar5212UpdateTxTrigLevel()
73 ahp->ah_txTrigLev = newLevel; in ar5212UpdateTxTrigLevel()
75 /* re-enable chip interrupts */ in ar5212UpdateTxTrigLevel()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/net/wireless/
H A Dmediatek,mt76.yaml1 # 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 …]
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-agn-hw.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2005-2014 Intel Corporation
6 * Please use this file (iwl-agn-hw.h) only for hardware-related definitions.
18 #define IWLAGN_RTC_INST_SIZE (IWLAGN_RTC_INST_UPPER_BOUND - \
20 #define IWLAGN_RTC_DATA_SIZE (IWLAGN_RTC_DATA_UPPER_BOUND - \
28 (IWL60_RTC_INST_UPPER_BOUND - IWL60_RTC_INST_LOWER_BOUND)
30 (IWL60_RTC_DATA_UPPER_BOUND - IWL60_RTC_DATA_LOWER_BOUND)
41 /* Limit range of txpower output target to be between these values */
/freebsd/tools/tools/ath/athalq/
H A Dar5416_ds.c44 memcpy(&txs, &a->payload, sizeof(struct ar5416_desc)); in ar5416_decode_txstatus()
47 (unsigned int) be32toh(a->hdr.tstamp_sec), in ar5416_decode_txstatus()
48 (unsigned int) be32toh(a->hdr.tstamp_usec), in ar5416_decode_txstatus()
49 (unsigned long long) be64toh(a->hdr.threadid), in ar5416_decode_txstatus()
117 printf("\n ------\n"); in ar5416_decode_txstatus()
126 memcpy(&txc, &a->payload, sizeof(struct ar5416_desc)); in ar5416_decode_txdesc()
129 (unsigned int) be32toh(a->hdr.tstamp_sec), in ar5416_decode_txdesc()
130 (unsigned int) be32toh(a->hdr.tstamp_usec), in ar5416_decode_txdesc()
131 (unsigned long long) be64toh(a->hdr.threadid)); in ar5416_decode_txdesc()
234 printf(" try 1: TxPower=%d, ant=0x%08x\n", in ar5416_decode_txdesc()
[all …]
H A Dar9300_ds.c46 memcpy(&p, &a->payload, sizeof(p)); in ath_alq_print_edma_tx_fifo_push()
48 (unsigned int) be32toh(a->hdr.tstamp_sec), in ath_alq_print_edma_tx_fifo_push()
49 (unsigned int) be32toh(a->hdr.tstamp_usec), in ath_alq_print_edma_tx_fifo_push()
50 (unsigned long long) be64toh(a->hdr.threadid), in ath_alq_print_edma_tx_fifo_push()
63 memcpy(&txs, &a->payload, sizeof(struct ar9300_txs)); in ar9300_decode_txstatus()
66 (unsigned int) be32toh(a->hdr.tstamp_sec), in ar9300_decode_txstatus()
67 (unsigned int) be32toh(a->hdr.tstamp_usec), in ar9300_decode_txstatus()
68 (unsigned long long) be64toh(a->hdr.threadid), in ar9300_decode_txstatus()
70 txs.status4 - last_ts, in ar9300_decode_txstatus()
140 printf("\n ------ \n"); in ar9300_decode_txstatus()
[all …]
H A Dar5416_ds_tdma.c45 memcpy(&txs, &a->payload, sizeof(struct ar5416_desc)); in ar5416_decode_txstatus()
51 (unsigned int) be32toh(a->hdr.tstamp), in ar5416_decode_txstatus()
52 (unsigned long long) be64toh(a->hdr.threadid), in ar5416_decode_txstatus()
55 txs.u.tx.status[2] - tx_tsf); in ar5416_decode_txstatus()
119 printf("\n ------\n"); in ar5416_decode_txstatus()
129 memcpy(&txc, &a->payload, sizeof(struct ar5416_desc)); in ar5416_decode_txdesc()
132 (unsigned int) be32toh(a->hdr.tstamp), in ar5416_decode_txdesc()
133 (unsigned long long) be64toh(a->hdr.threadid)); in ar5416_decode_txdesc()
238 printf(" try 1: TxPower=%d, ant=0x%08x\n", in ar5416_decode_txdesc()
243 printf(" try 2: TxPower=%d, ant=0x%08x\n", in ar5416_decode_txdesc()
[all …]
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dmac.c1 // SPDX-License-Identifier: BSD-3-Clause-Clear
3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
4 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
233 #define ath12k_a_rates_size (ARRAY_SIZE(ath12k_legacy_rates) - 4)
259 return "11na-ht20"; in ath12k_mac_phymode_str()
261 return "11ng-ht20"; in ath12k_mac_phymode_str()
263 return "11na-ht40"; in ath12k_mac_phymode_str()
265 return "11ng-ht40"; in ath12k_mac_phymode_str()
267 return "11ac-vht20"; in ath12k_mac_phymode_str()
269 return "11ac-vht40"; in ath12k_mac_phymode_str()
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dmac.c1 // SPDX-License-Identifier: BSD-3-Clause-Clear
3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
4 * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
163 /* new addition in IEEE Std 802.11ax-2021 */
243 #define ath11k_a_rates_size (ARRAY_SIZE(ath11k_legacy_rates) - 4)
407 return -EINVAL; in ath11k_mac_hw_ratecode_to_legacy_rate()
428 for (i = 0; i < sband->n_bitrates; i++) in ath11k_mac_bitrate_to_idx()
429 if (sband->bitrates[i].bitrate == bitrate) in ath11k_mac_bitrate_to_idx()
440 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath11k_mac_max_ht_nss()
452 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_vht_nss()
[all …]
/freebsd/tools/tools/net80211/wlaninject/
H A DREADME18 -----------------------------------
19 -i The network interface to use to TX; defaults to ath0.
20 -c The channel to TX on; defaults to 1.
21 -N Mark transmitted frames such that no ACK is expected. In practice,
24 -V Verify that the packet you TXed did indeed fly in the air as
29 -W The WME AC to use for transmission. Symbolic names are used:
34 -X The rate to use for transmission; defaults to 1Mbps.
35 -P The txpower to use; defaults to the maximum permitted by the driver.
38 ----------------------------------
39 -t The 802.11 frame type. Symbolic names are:
[all …]
/freebsd/sys/dev/wpi/
H A Dif_wpi_debug.h1 /*-
36 WPI_DEBUG_TEMP = 0x00000800, /* TXPower/Temp Calibration */
50 if (sc->sc_debug & (m)) \
54 #define TRACE_STR_BEGIN "->%s: begin\n"
55 #define TRACE_STR_DOING "->Doing %s\n"
56 #define TRACE_STR_END "->%s: end\n"
57 #define TRACE_STR_END_ERR "->%s: end in error\n"
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76x02_debugfs.c1 // SPDX-License-Identifier: ISC
12 struct mt76x02_dev *dev = file->private; in mt76x02_ampdu_stat_show()
23 dev->mphy.aggr_stats[i * 8 + j]); in mt76x02_ampdu_stat_show()
25 seq_puts(file, "--------"); in mt76x02_ampdu_stat_show()
27 seq_puts(file, "-----------"); in mt76x02_ampdu_stat_show()
38 struct mt76x02_dev *dev = dev_get_drvdata(file->private); in read_txpower()
40 seq_printf(file, "Target power: %d\n", dev->target_power); in read_txpower()
42 mt76_seq_puts_array(file, "Delta", dev->target_power_delta, in read_txpower()
43 ARRAY_SIZE(dev->target_power_delta)); in read_txpower()
50 struct mt76x02_dev *dev = file->private; in mt76x02_dfs_stat_show()
[all …]

1234