Home
last modified time | relevance | path

Searched +full:rates +full:- +full:mcs (Results 1 – 25 of 108) sorted by relevance

12345

/freebsd/sys/dev/ath/ath_rate/sample/
H A Dsample.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
17 * 3. Neither the names of the above-listed copyright holders nor the names
86 * in "Bit-rate Selection in Wireless Networks"
87 * (http://www.pdos.lcs.mit.edu/papers/jbicket-ms.ps)
89 * SampleRate chooses the bit-rate it predicts will provide the most
90 * throughput based on estimates of the expected per-packet
91 * transmission time for each bit-rate. SampleRate periodically sends
92 * packets at bit-rates other than the current one to estimate when
93 * another bit-rate will provide better performance. SampleRate
[all …]
/freebsd/sys/gnu/dev/bwn/phy_n/
H A Dif_bwn_phy_n_ppr.c22 Boston, MA 02110-1301, USA.
84 for (i = 0, entry = &(ppr)->__all_rates[i]; \
92 /* Compile-time PPR check */ in bwn_ppr_clear()
142 struct bwn_softc *sc = mac->mac_sc; in bwn_ppr_load_max_from_sprom()
144 struct bwn_ppr_rates *rates = &ppr->rates; in bwn_ppr_load_max_from_sprom() local
145 struct bwn_phy *phy = &mac->mac_phy; in bwn_ppr_load_max_from_sprom()
159 BWN_ERRPRINTF(mac->mac_sc, in bwn_ppr_load_max_from_sprom()
166 error = bhnd_nvram_getvar_uint16(sc->sc_dev, BHND_NVAR_CDDPO, &cddpo); in bwn_ppr_load_max_from_sprom()
168 BWN_ERRPRINTF(mac->mac_sc, "NVRAM variable %s unreadable: %d\n", in bwn_ppr_load_max_from_sprom()
173 error = bhnd_nvram_getvar_uint16(sc->sc_dev, BHND_NVAR_STBCPO, &stbcpo); in bwn_ppr_load_max_from_sprom()
[all …]
/freebsd/sys/net80211/
H A Dieee80211_vht.c1 /*-
27 * IEEE 802.11ac-2013 protocol support.
86 ieee80211_note(ni->ni_vap, "%s: called; fc=0x%.2x/0x%.2x", in vht_recv_action_placeholder()
87 __func__, wh->i_fc[0], wh->i_fc[1]); in vht_recv_action_placeholder()
98 ieee80211_note(ni->ni_vap, "%s: called; category=%d, action=%d", in vht_send_action_placeholder()
138 struct ieee80211com *ic = vap->iv_ic; in ieee80211_vht_vattach()
143 vap->iv_vht_cap.vht_cap_info = ic->ic_vht_cap.vht_cap_info; in ieee80211_vht_vattach()
144 vap->iv_vhtextcaps = ic->ic_vhtextcaps; in ieee80211_vht_vattach()
147 vap->iv_vht_flags = in ieee80211_vht_vattach()
151 if (IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_IS_160MHZ(vap->iv_vht_cap.vht_cap_info)) in ieee80211_vht_vattach()
[all …]
H A Dieee80211_amrr.c3 /*-
22 /*-
27 * INRIA Sophia - Projet Planete
28 * http://www-sop.inria.fr/rapports/sophia/RR-5208.html
57 ((amn)->amn_retrycnt < (amn)->amn_txcnt / 10)
59 ((amn)->amn_retrycnt > (amn)->amn_txcnt / 3)
61 ((amn)->amn_txcnt > 10)
103 struct ieee80211_amrr *amrr = vap->iv_rs; in amrr_setinterval()
110 amrr->amrr_interval = msecs_to_ticks(msecs); in amrr_setinterval()
118 KASSERT(vap->iv_rs == NULL, ("%s called multiple times", __func__)); in amrr_init()
[all …]
H A Dieee80211_phy.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting
30 * IEEE 802.11 PHY-related support.
306 for (i = 0; i < nitems(rt->rateCodeToIndex); i++) in ieee80211_setup_ratetable()
307 rt->rateCodeToIndex[i] = (uint8_t) -1; in ieee80211_setup_ratetable()
308 for (i = 0; i < rt->rateCount; i++) { in ieee80211_setup_ratetable()
309 uint8_t code = rt->info[i].dot11Rate; in ieee80211_setup_ratetable()
310 uint8_t cix = rt->info[i].ctlRateIndex; in ieee80211_setup_ratetable()
311 uint8_t ctl_rate = rt->info[cix].dot11Rate; in ieee80211_setup_ratetable()
[all …]
H A Dieee80211_node.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
69 CTASSERT((IEEE80211_NODE_HASHSIZE & (IEEE80211_NODE_HASHSIZE-1)) == 0);
75 ((_vap)->iv_aid_bitmap[IEEE80211_AID(b) / 32] |= \
78 ((_vap)->iv_aid_bitmap[IEEE80211_AID(b) / 32] &= \
81 ((_vap)->iv_aid_bitmap[IEEE80211_AID(b) / 32] & (1 << (IEEE80211_AID(b) % 32)))
117 /* XXX really want maxlen enforced per-sta */ in ieee80211_node_attach()
118 ieee80211_ageq_init(&ic->ic_stageq, ic->ic_max_keyix * 8, in ieee80211_node_attach()
120 ieee80211_node_table_init(ic, &ic->ic_sta, "station", in ieee80211_node_attach()
[all …]
H A D_ieee80211.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
53 * PHY mode; this is not really a mode as multi-mode devices
100 IEEE80211_PROT_RTSCTS = 2, /* RTS-CTS */
113 IEEE80211_AUTH_SHARED = 2, /* shared-key */
115 IEEE80211_AUTH_AUTO = 4, /* auto-select/accept */
177 #define IEEE80211_CHAN_DYN 0x00000400 /* Dynamic CCK-OFDM channel */
242 (((_c)->ic_flags & IEEE80211_CHAN_FHSS) == IEEE80211_CHAN_FHSS)
244 (((_c)->ic_flags & IEEE80211_CHAN_A) == IEEE80211_CHAN_A)
[all …]
H A Dieee80211_phy.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting
33 * IEEE 802.11 PHY-related definitions.
57 * For drivers that don't implement per-VAP slot time
59 * between VAPs to program a single radio) - return
63 ((ic->ic_flags & IEEE80211_F_SHSLOT) ? \
67 * For drivers that implement per-VAP slot time; look
68 * at the per-VAP flags to determine whether this VAP
72 ((vap->iv_flags & IEEE80211_F_SHSLOT) ? \
[all …]
H A Dieee80211_ht.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2007-2008 Sam Leffler, Errno Consulting
53 { 13, 14, 27, 30 }, /* MCS 0 */
54 { 26, 29, 54, 60 }, /* MCS 1 */
55 { 39, 43, 81, 90 }, /* MCS 2 */
56 { 52, 58, 108, 120 }, /* MCS 3 */
57 { 78, 87, 162, 180 }, /* MCS 4 */
58 { 104, 116, 216, 240 }, /* MCS 5 */
59 { 117, 130, 243, 270 }, /* MCS 6 */
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-802_11.c27 #include "netdissect-stdinc.h"
123 { CTRL_PS_POLL, "Power Save-Poll" },
124 { CTRL_RTS, "Request-To-Send" },
125 { CTRL_CTS, "Clear-To-Send" },
127 { CTRL_CF_END, "CF-End" },
128 { CTRL_END_ACK, "CF-End+CF-Ack" },
151 * bits - CF-Ack, CF-Poll, Null (means the frame doesn't actually have
205 uint8_t text[254]; /* 1-253 + 1 for null */
279 struct rates_t rates; member
407 if (p.rates.length != 0) { \
[all …]
/freebsd/sys/contrib/dev/iwlwifi/fw/api/
H A Drs.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2012-2014, 2018-2022, 2024-2025 Intel Corporation
14 * enum iwl_tlc_mng_cfg_flags - options for TLC config flags
21 * for BPSK (MCS 0) with 1 spatial
24 * for BPSK (MCS 0) with 2 spatial
38 * enum iwl_tlc_mng_cfg_cw - channel width options
54 * enum iwl_tlc_mng_cfg_chains - possible chains
64 * enum iwl_tlc_mng_cfg_mode - supported modes
84 * enum iwl_tlc_mng_ht_rates - HT/VHT/HE rates
122 * enum IWL_TLC_MCS_PER_BW - mcs index per BW
[all …]
H A Dmac.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2012-2014, 2018-2022, 2024-2025 Intel Corporation
11 * AUX indices follows - 1 for non-CDB, 2 for CDB.
31 * enum iwl_mac_protection_flags - MAC context flags
50 * enum iwl_mac_types - Supported MAC types
54 * @FW_MAC_TYPE_PIBSS: Pseudo-IBSS
78 * enum iwl_tsf_id - TSF hw timer ID
94 * struct iwl_mac_data_ap - configuration data for AP MAC context
117 * struct iwl_mac_data_ibss - configuration data for IBSS MAC context
133 * enum iwl_mac_data_policy - policy of the data path for this MAC
[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/
H A Dmt76x02_mac.c1 // 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 …]
H A Deeprom.c1 // SPDX-License-Identifier: ISC
10 #include <linux/nvmem-consumer.h>
18 struct device_node *np = dev->dev->of_node; in mt76_get_of_eeprom_data()
22 data = of_get_property(np, "mediatek,eeprom-data", &size); in mt76_get_of_eeprom_data()
24 return -ENOENT; in mt76_get_of_eeprom_data()
27 return -EINVAL; in mt76_get_of_eeprom_data()
38 return -ENOENT; in mt76_get_of_data_from_mtd()
40 struct device_node *np = dev->dev->of_node; in mt76_get_of_data_from_mtd()
49 list = of_get_property(np, "mediatek,mtd-eeprom", &size); in mt76_get_of_data_from_mtd()
51 return -ENOENT; in mt76_get_of_data_from_mtd()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/mld/
H A Dtlc.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (C) 2024-2025 Intel Corporation
18 switch (link_sta->bandwidth) { in iwl_mld_fw_bw_from_sta_bw()
40 struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in iwl_mld_get_tlc_cmd_flags()
41 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; in iwl_mld_get_tlc_cmd_flags()
42 struct ieee80211_sta_he_cap *he_cap = &link_sta->he_cap; in iwl_mld_get_tlc_cmd_flags()
43 bool has_vht = vht_cap->vht_supported; in iwl_mld_get_tlc_cmd_flags()
47 if (mld->cfg->ht_params.stbc && in iwl_mld_get_tlc_cmd_flags()
49 if (he_cap->has_he && he_cap->he_cap_elem.phy_cap_info[2] & in iwl_mld_get_tlc_cmd_flags()
52 else if (vht_cap->cap & IEEE80211_VHT_CAP_RXSTBC_MASK) in iwl_mld_get_tlc_cmd_flags()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dieee802_11_vht.c3 * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>
27 struct hostapd_hw_modes *mode = hapd->iface->current_mode; in hostapd_eid_vht_capabilities()
30 if (!mode || is_6ghz_op_class(hapd->iconf->op_class)) in hostapd_eid_vht_capabilities()
33 if (mode->mode == HOSTAPD_MODE_IEEE80211G && hapd->conf->vendor_vht && in hostapd_eid_vht_capabilities()
34 mode->vht_capab == 0 && hapd->iface->hw_features) { in hostapd_eid_vht_capabilities()
37 for (i = 0; i < hapd->iface->num_hw_features; i++) { in hostapd_eid_vht_capabilities()
38 if (hapd->iface->hw_features[i].mode == in hostapd_eid_vht_capabilities()
40 mode = &hapd->iface->hw_features[i]; in hostapd_eid_vht_capabilities()
51 cap->vht_capabilities_info = host_to_le32( in hostapd_eid_vht_capabilities()
52 hapd->iface->conf->vht_capab); in hostapd_eid_vht_capabilities()
[all …]
H A Dbeacon.c3 * Copyright (c) 2002-2004, Instant802 Networks, Inc.
4 * Copyright (c) 2005-2006, Devicescape Software, Inc.
5 * Copyright (c) 2008-2012, Jouni Malinen <j@w1.fi>
46 if (hapd->conf->bss_load_test_set) { in hostapd_eid_bss_load()
49 os_memcpy(eid, hapd->conf->bss_load_test, 5); in hostapd_eid_bss_load()
54 if (hapd->conf->bss_load_update_period) { in hostapd_eid_bss_load()
57 WPA_PUT_LE16(eid, hapd->num_sta); in hostapd_eid_bss_load()
59 *eid++ = hapd->iface->channel_utilization; in hostapd_eid_bss_load()
71 if (hapd->iface->current_mode == NULL || in ieee802_11_erp_info()
72 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in ieee802_11_erp_info()
[all …]
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_phy.c41 /* MCS RATE CODES - first and last */
67 8, /* number of rates */
84 8, /* number of rates */
101 8, /* number of rates */
118 8, /* number of rates */
135 4, /* number of rates */
149 * rates in increasing order e.g. 5.5, 11, 6, 9.
154 12, /* number of rates */
163 /* Hardware workaround - remove rates 6, 9 from rate ctrl */
177 13, /* number of rates */
[all …]
/freebsd/sys/dev/rtwn/rtl8812a/
H A Dr12a_chan.c1 /*-
67 /* Write per-MCS Tx power. */ in r12a_write_txpower_ht()
78 if (sc->ntxchains >= 2) { in r12a_write_txpower_ht()
91 /* TODO: HT MCS 16 -> 31 */ in r12a_write_txpower_ht()
99 /* 1SS, MCS 0..3 */ in r12a_write_txpower_vht()
106 /* 1SS, MCS 4..7 */ in r12a_write_txpower_vht()
113 /* 1SS, MCS 8,9 ; 2SS MCS0, 1 */ in r12a_write_txpower_vht()
114 if (sc->ntxchains == 1) { in r12a_write_txpower_vht()
128 /* 2SS MCS 2..5 */ in r12a_write_txpower_vht()
129 if (sc->ntxchains > 1) { in r12a_write_txpower_vht()
[all …]
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_nl80211_capa.c2 * Driver interaction with Linux nl80211/cfg80211 - Capabilities
3 * Copyright (c) 2002-2015, Jouni Malinen <j@w1.fi>
5 * Copyright (c) 2009-2010, Atheros Communications
17 #include "common/qca-vendor.h"
18 #include "common/qca-vendor-attr.h"
117 info->capa->flags |= WPA_DRIVER_FLAGS_AP; in wiphy_info_supported_iftypes()
120 info->capa->flags |= WPA_DRIVER_FLAGS_MESH; in wiphy_info_supported_iftypes()
123 info->capa->flags |= WPA_DRIVER_FLAGS_IBSS; in wiphy_info_supported_iftypes()
126 info->capa->flags |= in wiphy_info_supported_iftypes()
130 info->p2p_go_supported = 1; in wiphy_info_supported_iftypes()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Drs-fw.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
4 * Copyright (C) 2018-2025 Intel Corporation
7 #include "fw-api.h"
9 #include "iwl-op-mode.h"
14 switch (link_sta->bandwidth) { in rs_fw_bw_from_sta_bw()
43 struct ieee80211_sta_ht_cap *ht_cap = &link_sta->ht_cap; in rs_fw_sgi_cw_support()
44 struct ieee80211_sta_vht_cap *vht_cap = &link_sta->vht_cap; in rs_fw_sgi_cw_support()
45 struct ieee80211_sta_he_cap *he_cap = &link_sta->he_cap; in rs_fw_sgi_cw_support()
48 if (he_cap->has_he) in rs_fw_sgi_cw_support()
51 if (ht_cap->cap & IEEE80211_HT_CAP_SGI_20) in rs_fw_sgi_cw_support()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dhtt_rx.c1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2005-2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc.
34 hash_for_each_possible(ar->htt.rx_ring.skb_table, rxcb, hlist, paddr) in ath10k_htt_rx_find_skb_paddr()
35 if (rxcb->paddr == paddr) in ath10k_htt_rx_find_skb_paddr()
49 if (htt->rx_ring.in_ord_rx) { in ath10k_htt_rx_ring_free()
50 hash_for_each_safe(htt->rx_ring.skb_table, i, n, rxcb, hlist) { in ath10k_htt_rx_ring_free()
52 dma_unmap_single(htt->ar->dev, rxcb->paddr, in ath10k_htt_rx_ring_free()
53 skb->len + skb_tailroom(skb), in ath10k_htt_rx_ring_free()
55 hash_del(&rxcb->hlist); in ath10k_htt_rx_ring_free()
[all …]
/freebsd/sys/dev/ath/
H A Dif_ath_tx_ht.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
109 (ATH_AGGR_MINPLEN - (_len) - ATH_AGGR_DELIM_SZ) : 0) >> 2)
111 #define PADBYTES(_len) ((4 - ((_len) % 4)) % 4)
170 #define NUM_SYMBOLS_PER_USEC_HALFGI(_usec) (((_usec*5)-4)/18)
178 { 104, 216 }, // 3: 16-QAM 1/2
179 { 156, 324 }, // 4: 16-QAM 3/4
180 { 208, 432 }, // 5: 64-QAM 2/3
181 { 234, 486 }, // 6: 64-QAM 3/4
182 { 260, 540 }, // 7: 64-QAM 5/6
[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 …]

12345