Home
last modified time | relevance | path

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

1234

/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/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 Intel Corporation
12 * enum iwl_tlc_mng_cfg_flags - options for TLC config flags
19 * for BPSK (MCS 0) with 1 spatial
22 * for BPSK (MCS
234 char mcs[IWL_MAX_MCS_DISPLAY_SIZE]; global() member
[all...]
H A Dmac.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2012-2014, 2018-2022, 2024 Intel Corporation
11 * AUX indices follows - 1 for non-CDB, 2 for CDB.
31 * enum iwl_mac_protection_flags - MA
[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 ---
[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 struct device_node *np = dev->dev->of_node; in mt76_get_of_epprom_from_mtd()
47 list = of_get_property(np, "mediatek,mtd-eeprom", &size); in mt76_get_of_epprom_from_mtd()
49 return -ENOENT; in mt76_get_of_epprom_from_mtd()
53 return -ENOENT; in mt76_get_of_epprom_from_mtd()
[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 …]
H A Dieee802_11_he.c3 * Copyright (c) 2016-2017, Qualcomm Atheros, Inc.
73 cap_len = sizeof(*cap) - sizeof(cap->optional); in ieee80211_invalid_he_cap_size()
77 cap_len += ieee80211_he_mcs_set_size(cap->he_phy_capab_info); in ieee80211_invalid_he_cap_size()
83 cap->he_phy_capab_info); in ieee80211_invalid_he_cap_size()
93 struct hostapd_hw_modes *mode = hapd->iface->current_mode; in hostapd_eid_he_capab()
101 ie_size = sizeof(*cap) - sizeof(cap->optional); in hostapd_eid_he_capab()
102 ppet_size = ieee80211_he_ppet_size(mode->he_capab[opmode].ppet[0], in hostapd_eid_he_capab()
103 mode->he_capab[opmode].phy_cap); in hostapd_eid_he_capab()
105 switch (hapd->iface->conf->he_oper_chwidth) { in hostapd_eid_he_capab()
133 os_memcpy(cap->he_mac_capab_info, mode->he_capab[opmode].mac_cap, in hostapd_eid_he_capab()
[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/net80211/
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_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
56 ((amn)->amn_retrycnt < (amn)->amn_txcnt / 10)
58 ((amn)->amn_retrycnt > (amn)->amn_txcnt / 3)
60 ((amn)->amn_txcn
[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_proto.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting
108 * IEEE Std 802.11-2012, pp. 442-445 Table 8-36.
143 return ("4-Way handshake timeout"); in ieee80211_reason_to_string()
147 return ("element in 4-Way handshake different from " in ieee80211_reason_to_string()
165 return ("unspecified (QoS-related)"); in ieee80211_reason_to_string()
259 ic_printf(ni->ni_ic, "missing ic_raw_xmit callback, drop frame\n"); in null_raw_xmit()
270 hdrlen = ic->ic_headroom in ieee80211_proto_attach()
276 //ic->ic_protmode = IEEE80211_PROT_CTSONLY; in ieee80211_proto_attach()
[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-2024 Intel Corporation
7 #include "fw-api.h"
9 #include "iwl-op-mode.h"
14 switch (link_sta->bandwidt in rs_fw_bw_from_sta_bw()
178 rs_fw_he_ieee80211_mcs_to_rs_mcs(u16 mcs) rs_fw_he_ieee80211_mcs_to_rs_mcs() argument
[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/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 …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddp_tx.c1 // SPDX-License-Identifier: BSD-3-Clause-Clear
3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
19 struct ath11k_base *ab = arvif->ar->ab; in ath11k_dp_tx_get_encap_type()
21 if (test_bit(ATH11K_FLAG_RAW_MODE, &ab->dev_flags)) in ath11k_dp_tx_get_encap_type()
24 if (tx_info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP) in ath11k_dp_tx_get_encap_type()
32 struct ieee80211_hdr *hdr = (void *)skb->data; in ath11k_dp_tx_encap_nwifi()
35 if (!ieee80211_is_data_qos(hdr->frame_control)) in ath11k_dp_tx_encap_nwifi()
39 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()
43 skb->data, qos_ctl - (u8 *)skb->data); in ath11k_dp_tx_encap_nwifi()
[all …]
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)
388 /* As default, it is OFDM rates */ in ath11k_mac_hw_ratecode_to_legacy_rate()
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()
[all …]

1234