Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_phy.c41 /* MCS RATE CODES - first and last */
149 * rates in increasing order e.g. 5.5, 11, 6, 9.
163 /* Hardware workaround - remove rates 6, 9 from rate ctrl */
214 /* Hardware workaround - remove rates 6, 9 from rate ctrl */
223 /*--- HT SS rates ---*/
229 /* 52 Mb */ { AH_TRUE, HT, 52000, 0x85, 0x00, 5, 8 },
232 /*--- HT DS rates ---*/
241 /*--- HT TS rates ---*/
272 /*--- HT SS rates ---*/
278 /* 52 Mb */ { AH_TRUE, HT, 52000, 0x85, 0x00, 5, 4 },
[all …]
H A Dar9300_misc.c59 ahp->ah_hang_wars = *hangs; in ar9300_get_hw_hangs()
64 * HT20, HT40, fast-clock, turbo mode, etc.
70 const struct ieee80211_channel *chan = AH_PRIVATE(ah)->ah_curchan; in ar9300_mac_to_usec()
85 const struct ieee80211_channel *chan = AH_PRIVATE(ah)->ah_curchan; in ar9300_mac_to_clks()
101 OS_MEMCPY(mac, ahp->ah_macaddr, IEEE80211_ADDR_LEN); in ar9300_get_mac_address()
109 OS_MEMCPY(ahp->ah_macaddr, mac, IEEE80211_ADDR_LEN); in ar9300_set_mac_address()
118 OS_MEMCPY(mask, ahp->ah_bssid_mask, IEEE80211_ADDR_LEN); in ar9300_get_bss_id_mask()
127 OS_MEMCPY(ahp->ah_bssid_mask, mask, IEEE80211_ADDR_LEN); in ar9300_set_bss_id_mask()
129 OS_REG_WRITE(ah, AR_BSSMSKL, LE_READ_4(ahp->ah_bssid_mask)); in ar9300_set_bss_id_mask()
130 OS_REG_WRITE(ah, AR_BSSMSKU, LE_READ_2(ahp->ah_bssid_mask + 4)); in ar9300_set_bss_id_mask()
[all …]
H A Dar9300.h23 #define AR_EEPROM_MODAL_SPURS 5
48 #define INIT_RSSI_BEACON_WEIGHT 8 /* ave beacon rssi weight (0-16) */
51 * Various fifo fill before Tx start, in 64-byte units
55 #define MAX_TX_FIFO_THRESHOLD (( 4096 / 64) - 1)
61 #define COEFF ((FCLK * 5) / 2)
151 * Per-channel ANI state private to the driver.
178 u_int32_t cycle_count; /* Last cycle_count (can detect wrap-around) */
195 ((AH9300(ah)->ah_proc_phy_err & HAL_PROCESS_ANI))
211 u_int32_t ast_ani_reset; /* ANI parameters zero'd for non-STA */
289 #define AR9300_OPFLAGS_11G 0x02 /* if set, allow 11g */
[all …]
H A Dar9300_tx99_tgt.c40 ar9300_tx99_tgt_channel_pwr_update(struct ath_hal *ah, HAL_CHANNEL *c, u_int32_t txpower) in ar9300_tx99_tgt_channel_pwr_update() argument
48 pPwrArray[i] = txpower; in ar9300_tx99_tgt_channel_pwr_update()
85 /* 0/8/16 (LSB), 1-3/9-11/17-19, 4, 5 (MSB) */ in ar9300_tx99_tgt_channel_pwr_update()
86 OS_REG_WRITE(ah, AR_PHY_POWER_TX_RATE(5), in ar9300_tx99_tgt_channel_pwr_update()
120 /* 0/8/16 (LSB), 1-3/9-11/17-19, 4, 5 (MSB) */ in ar9300_tx99_tgt_channel_pwr_update()
168 /* 11G mode */ in ar9300_tx99_tgt_set_single_carrier()
209 | (0x1 << 6) | (0x1 << 5) in ar9300_tx99_tgt_set_single_carrier()
238 | (0x1 << 6) | (0x1 << 5) in ar9300_tx99_tgt_set_single_carrier()
268 | (0x1 << 6) | (0x1 << 5) in ar9300_tx99_tgt_set_single_carrier()
312 | (0x1 << 6) | (0x1 << 5) in ar9300_tx99_tgt_set_single_carrier()
[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
58 #define IEEE80211_TXPOWER_MAX 100 /* .5 dBm (XXX units?) */
68 #define IEEE80211_BGSCAN_INTVAL_DEFAULT (5*60) /* default bg scan intvl */
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)
104 ((ic)->ic_flags_ext & IEEE80211_FEXT_AMPDU_OFFLOAD)
[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/mediatek/mt76/mt7921/
H A Dinit.c1 // SPDX-License-Identifier: ISC
6 #include <linux/hwmon-sysfs.h>
18 switch (to_sensor_dev_attr(attr)->index) { in mt7921_thermal_temp_show()
21 struct mt792x_dev *mdev = phy->dev; in mt7921_thermal_temp_show()
34 return -EINVAL; in mt7921_thermal_temp_show()
47 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7921_thermal_init()
54 name = devm_kasprintf(&wiphy->dev, GFP_KERNEL, "mt7921_%s", in mt7921_thermal_init()
57 return -ENOMEM; in mt7921_thermal_init()
59 hwmon = devm_hwmon_device_register_with_groups(&wiphy->dev, name, phy, in mt7921_thermal_init()
69 (!(dev->phy.clc_chan_conf & BIT(idx)) && (cfreq) >= (sfreq) && (cfreq) <= (efreq)) in mt7921_regd_channel_update()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar9002/
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 Dar9285_reset.c1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
45 (AH_PRIVATE(_ah)->ah_eeversion & AR5416_EEP_VER_MINOR_MASK)
88 HAL_EEPROM_v4k *ee = AH_PRIVATE(ah)->ah_eeprom; in ar9285SetTransmitPower()
89 struct ar5416eeprom_4k *pEepData = &ee->ee_base; in ar9285SetTransmitPower()
91 HALASSERT(AH_PRIVATE(ah)->ah_eeversion >= AR_EEPROM_VER14_1); in ar9285SetTransmitPower()
93 AH5416(ah)->ah_ht40PowerIncForPdadc = 2; in ar9285SetTransmitPower()
96 OS_MEMZERO(AH5416(ah)->ah_ratesArray, sizeof(AH5416(ah)->ah_ratesArray)); in ar9285SetTransmitPower()
[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.
50 CHAN2G(5, 2432, 0),
94 CHAN6G(5, 5975, 0),
233 #define ath12k_a_rates_size (ARRAY_SIZE(ath12k_legacy_rates) - 4)
253 return "11g"; in ath12k_mac_phymode_str()
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()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dmcu.c1 // SPDX-License-Identifier: ISC
12 switch (mt76_chip(&(_dev)->mt76)) { \
47 for (nss = 8; nss > 0; nss--) { in mt7915_mcu_get_sta_nss()
48 u8 nss_mcs = (mcs_map >> (2 * (nss - 1))) & 3; in mt7915_mcu_get_sta_nss()
54 return nss - 1; in mt7915_mcu_get_sta_nss()
61 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_mcu_set_sta_he_mcs()
62 struct mt7915_dev *dev = msta->vif->phy->dev; in mt7915_mcu_set_sta_he_mcs()
63 enum nl80211_band band = msta->vif->phy->mt76->chandef.chan->band; in mt7915_mcu_set_sta_he_mcs()
64 const u16 *mask = msta->vif->bitrate_mask.control[band].he_mcs; in mt7915_mcu_set_sta_he_mcs()
65 int nss, max_nss = sta->deflink.rx_nss > 3 ? 4 : sta->deflink.rx_nss; in mt7915_mcu_set_sta_he_mcs()
[all …]
/freebsd/sbin/ifconfig/
H A Difconfig.81 .\"-
2 .\" SPDX-License-Identifier: BSD-3-Clause
61 .Op Fl G Ar groupname
62 .Op Fl g Ar groupname
68 .Fl g Ar groupname
73 .Op Fl g Ar groupname
93 .Bl -tag -width indent
120 The format is specified as a comma-separated list of
141 .Bl -tag -width default
145 .Bl -tag -width default -compact
[all …]
H A Difieee80211.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
30 /*-
131 /* XXX should also figure out where to put these for k/u-space sharing. */
164 [IEEE80211_MODE_11G] = "11g",
257 errx(-1, "missing or corrupted regdomain database"); in getregdata()
266 * allows the caller to look for promotion; e.g. from
267 * 11b > 11g.
272 const struct ieee80211_channel *fc = &chaninfo->ic_chans[i]; in canpromote()
275 if ((fc->ic_flags & from) != from) in canpromote()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dmac.c1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2005-2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc.
5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
26 #include "wmi-tlv.h"
27 #include "wmi-ops.h"
100 #define ath10k_a_rates_size (ARRAY_SIZE(ath10k_rates) - \
125 return DIV_ROUND_UP(bitrate, 5) | in ath10k_mac_bitrate_to_rate()
135 for (i = 0; i < sband->n_bitrates; i++) { in ath10k_mac_hw_rate_to_idx()
136 rate = &sband->bitrates[i]; in ath10k_mac_hw_rate_to_idx()
[all …]
/freebsd/sys/dev/ath/ath_hal/
H A Dah.h1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
26 * structure for use with the device. Hardware-related operations that
67 * error occurs--i.e. you cannot check it for success.
75 HAL_EEVERSION = 5, /* EEPROM version invalid */
81 HAL_EEWRITE = 11, /* Attempt to change write-locked EEPROM */
84 HAL_ESELFTEST = 14, /* Hardware self-test failed */
102 HAL_CAP_DIVERSITY = 5, /* hardware supports fast diversity */
[all …]
H A Dah_internal.h1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
38 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */
41 #define howmany(x, y) (((x)+((y)-1))/(y))
45 #define offsetof(type, field) ((size_t)(&((type *)0)->field))
66 HAL_TP_SCALE_50 = 1, /* 50% of max (-3 dBm) */
67 HAL_TP_SCALE_25 = 2, /* 25% of max (-6 dBm) */
68 HAL_TP_SCALE_12 = 3, /* 12% of max (-9 dBm) */
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5212/
H A Dar5212.h1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2008 Atheros Communications, Inc.
50 #define HALF_RATE_USEC 19 /* ((40 / 2) - 1 ) */
51 #define QUARTER_RATE_USEC 9 /* ((40 / 4) - 1 ) */
71 * Various fifo fill before Tx start, in 64-byte units
87 #define PHY_PROBE_CCK_CORRECTION 5
153 int totalSizeDesired[5];
154 int coarseHigh[5];
[all …]
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-csr.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2005-2014, 2018-2025 Intel Corporation
4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH
14 * low power states due to driver-invoked device resets
15 * (e.g. CSR_RESET_REG_FLAG_SW_RESET) or uCode-driven power-saving modes.
30 #define CSR_INT_COALESCING (CSR_BASE+0x004) /* accum ints, 32-usec units */
37 #define CSR_FUNC_SCRATCH (CSR_BASE+0x02c) /* Scratch register - used for FW dbg */
45 * 31-16: Reserved
46 * 15-4: Type of device: see CSR_HW_REV_TYPE_xxx definitions
47 * 3-2: Revision step: 0 = A, 1 = B, 2 = C, 3 = D
[all …]
/freebsd/sys/dev/bwi/
H A Dbwirf.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
81 (ieee80211_ieee2mhz((chan), IEEE80211_CHAN_2GHZ) - 2400)
106 #define SAVE_RF_REG(mac, regs, n) (regs)->rf_##n = RF_READ((mac), 0x##n)
107 #define RESTORE_RF_REG(mac, regs, n) RF_WRITE((mac), 0x##n, (regs)->rf_##n)
109 #define SAVE_PHY_REG(mac, regs, n) (regs)->phy_##n = PHY_READ((mac), 0x##n)
110 #define RESTORE_PHY_REG(mac, regs, n) PHY_WRITE((mac), 0x##n, (regs)->phy_##n)
167 val -= 64; in bwi_nrssi_11g()
181 return &mac->mac_rf.rf_lo[n]; in bwi_get_rf_lo()
187 struct bwi_rf *rf = &mac->mac_rf; in bwi_rf_lo_isused()
[all …]
H A Dbwimac.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
115 static const uint8_t bwi_sup_macrev[] = { 2, 4, 5, 6, 7, 9, 10 };
120 struct bwi_softc *sc = mac->mac_sc; in bwi_tmplt_write_4()
122 if (mac->mac_flags & BWI_MAC_F_BSWAP) in bwi_tmplt_write_4()
163 struct bwi_softc *sc = mac->mac_sc; in bwi_memobj_read_2()
180 struct bwi_softc *sc = mac->mac_sc; in bwi_memobj_read_4()
206 struct bwi_softc *sc = mac->mac_sc; in bwi_memobj_write_2()
224 struct bwi_softc *sc = mac->mac_sc; in bwi_memobj_write_4()
246 if (mac->mac_rev >= 5) in bwi_mac_lateattach()
[all …]
/freebsd/sys/dev/bwn/
H A Dif_bwnvar.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2009-2010 Weongyo Jeong <weongyo@freebsd.org>
48 (((phy)->rev >= 2) && ((phy)->rf_ver == 0x2050) && \
49 ((phy)->rf_rev == 8))
51 (((phy)->rev > 1) || ((phy)->gmode))
58 #define BWN_ISOLDFMT(mac) ((mac)->mac_fw.rev <= 351)
65 ((uint16_t)((((uint16_t)tq->tq_index + 1) << 12) | tp->tp_index))
67 ((uint16_t)(((uint16_t)dr->dr_index + 1) << 12) | (uint16_t)slot)
69 (bus_read_2((mac)->mac_sc->sc_mem_res, (o)))
[all …]
/freebsd/sys/dev/usb/wlan/
H A Dif_ural.c2 /*-
22 /*-
87 ((rssi) - (RAL_NOISE_FLOOR + RAL_RSSI_CORR)) : 0)
306 * For dual-band RF, RF registers R1 and R4 also depend on channel number;
319 { 5, 0x08808, 0x00461, 0x00282 },
411 if (uaa->usb_mode != USB_MODE_HOST) in ural_match()
413 if (uaa->info.bConfigIndex != 0) in ural_match()
415 if (uaa->info.bIfaceIndex != RAL_IFACE_INDEX) in ural_match()
426 struct ieee80211com *ic = &sc->sc_ic; in ural_attach()
431 sc->sc_udev = uaa->device; in ural_attach()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5211/
H A Dar5211_reset.c1 /*-
2 * SPDX-License-Identifier: ISC
4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
5 * Copyright (c) 2002-2006 Atheros Communications, Inc.
50 { 1, 0x46, 96 }, /* 2312 -19 */
51 { 1, 0x46, 97 }, /* 2317 -18 */
52 { 1, 0x46, 98 }, /* 2322 -17 */
53 { 1, 0x46, 99 }, /* 2327 -16 */
54 { 1, 0x46, 100 }, /* 2332 -15 */
55 { 1, 0x46, 101 }, /* 2337 -14 */
[all …]
/freebsd/sys/gnu/dev/bwn/phy_n/
H A Dif_bwn_phy_n_core.c23 Boston, MA 02110-1301, USA.
110 uint16_t ncorr[5];
165 return ((mac->mac_phy.phy_n->ipa2g_on && band == BWN_BAND_2G) || in bwn_nphy_ipa()
166 (mac->mac_phy.phy_n->ipa5g_on && band == BWN_BAND_5G)); in bwn_nphy_ipa()
169 /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/RxCoreGetState */
180 /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/ForceRFSeq */
196 BWN_WARNPRINTF(mac->mac_sc, "%s: seq %d > max", __func__, seq); in bwn_nphy_force_rf_sequence()
207 BWN_ERRPRINTF(mac->mac_sc, "RF sequence status timeout\n"); in bwn_nphy_force_rf_sequence()
219 /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/RFCtrlOverrideRev7 */
224 struct bwn_phy *phy = &mac->mac_phy; in bwn_nphy_rf_ctl_override_rev7()
[all …]
/freebsd/sys/dev/ral/
H A Drt2560.c2 /*-
20 /*-
67 ((rssi) > (RT2560_NOISE_FLOOR + (sc)->rssi_corr) ? \
68 ((rssi) - RT2560_NOISE_FLOOR - (sc)->rssi_corr) : 0)
73 if (sc->sc_debug > 0) \
77 if (sc->sc_debug >= (n)) \
205 struct ieee80211com *ic = &sc->sc_ic; in rt2560_attach()
208 sc->sc_dev = dev; in rt2560_attach()
210 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, in rt2560_attach()
213 callout_init_mtx(&sc->watchdog_ch, &sc->sc_mtx, 0); in rt2560_attach()
[all …]

12