Home
last modified time | relevance | path

Searched refs:txrate (Results 1 – 25 of 55) sorted by relevance

123

/Linux-v4.19/drivers/net/wireless/mediatek/mt76/mt76x0/
Dmac.c21 mt76_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate, in mt76_mac_process_tx_rate() argument
26 txrate->idx = 0; in mt76_mac_process_tx_rate()
27 txrate->flags = 0; in mt76_mac_process_tx_rate()
28 txrate->count = 1; in mt76_mac_process_tx_rate()
35 txrate->idx = idx; in mt76_mac_process_tx_rate()
41 txrate->idx = idx; in mt76_mac_process_tx_rate()
44 txrate->flags |= IEEE80211_TX_RC_GREEN_FIELD; in mt76_mac_process_tx_rate()
47 txrate->flags |= IEEE80211_TX_RC_MCS; in mt76_mac_process_tx_rate()
48 txrate->idx = idx; in mt76_mac_process_tx_rate()
51 txrate->flags |= IEEE80211_TX_RC_VHT_MCS; in mt76_mac_process_tx_rate()
[all …]
/Linux-v4.19/drivers/net/wireless/ath/carl9170/
Dtx.c707 struct ieee80211_tx_info *info, struct ieee80211_tx_rate *txrate, in carl9170_tx_rate_tpc_chains() argument
714 idx = txrate->idx; in carl9170_tx_rate_tpc_chains()
718 if (txrate->flags & IEEE80211_TX_RC_MCS) { in carl9170_tx_rate_tpc_chains()
719 if (txrate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) { in carl9170_tx_rate_tpc_chains()
734 *phyrate = txrate->idx; in carl9170_tx_rate_tpc_chains()
755 if (!(txrate->flags & IEEE80211_TX_RC_MCS) && in carl9170_tx_rate_tpc_chains()
766 struct ieee80211_tx_info *info, struct ieee80211_tx_rate *txrate) in carl9170_tx_physet() argument
773 if (txrate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) in carl9170_tx_physet()
777 if (txrate->flags & IEEE80211_TX_RC_DUP_DATA) in carl9170_tx_physet()
781 if (txrate->flags & IEEE80211_TX_RC_SHORT_GI) in carl9170_tx_physet()
[all …]
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dmt76x2_mac_common.c82 mt76x2_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate, in mt76x2_mac_process_tx_rate() argument
87 txrate->idx = 0; in mt76x2_mac_process_tx_rate()
88 txrate->flags = 0; in mt76x2_mac_process_tx_rate()
89 txrate->count = 1; in mt76x2_mac_process_tx_rate()
96 txrate->idx = idx; in mt76x2_mac_process_tx_rate()
102 txrate->idx = idx; in mt76x2_mac_process_tx_rate()
105 txrate->flags |= IEEE80211_TX_RC_GREEN_FIELD; in mt76x2_mac_process_tx_rate()
108 txrate->flags |= IEEE80211_TX_RC_MCS; in mt76x2_mac_process_tx_rate()
109 txrate->idx = idx; in mt76x2_mac_process_tx_rate()
112 txrate->flags |= IEEE80211_TX_RC_VHT_MCS; in mt76x2_mac_process_tx_rate()
[all …]
/Linux-v4.19/drivers/net/wireless/mediatek/mt7601u/
Dmac.c36 mt76_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate) in mt76_mac_process_tx_rate() argument
40 txrate->idx = 0; in mt76_mac_process_tx_rate()
41 txrate->flags = 0; in mt76_mac_process_tx_rate()
42 txrate->count = 1; in mt76_mac_process_tx_rate()
46 txrate->idx = idx + 4; in mt76_mac_process_tx_rate()
52 txrate->idx = idx; in mt76_mac_process_tx_rate()
55 txrate->flags |= IEEE80211_TX_RC_GREEN_FIELD; in mt76_mac_process_tx_rate()
58 txrate->flags |= IEEE80211_TX_RC_MCS; in mt76_mac_process_tx_rate()
59 txrate->idx = idx; in mt76_mac_process_tx_rate()
67 txrate->flags |= IEEE80211_TX_RC_40_MHZ_WIDTH; in mt76_mac_process_tx_rate()
[all …]
/Linux-v4.19/drivers/net/wireless/ath/ath10k/
Dhtt_rx.c2512 struct rate_info txrate; in ath10k_update_per_peer_tx_stats() local
2516 txrate.flags = ATH10K_HW_PREAMBLE(peer_stats->ratecode); in ath10k_update_per_peer_tx_stats()
2517 txrate.bw = ATH10K_HW_BW(peer_stats->flags); in ath10k_update_per_peer_tx_stats()
2518 txrate.nss = ATH10K_HW_NSS(peer_stats->ratecode); in ath10k_update_per_peer_tx_stats()
2519 txrate.mcs = ATH10K_HW_MCS_RATE(peer_stats->ratecode); in ath10k_update_per_peer_tx_stats()
2522 if (txrate.flags == WMI_RATE_PREAMBLE_VHT && txrate.mcs > 9) { in ath10k_update_per_peer_tx_stats()
2523 ath10k_warn(ar, "Invalid VHT mcs %hhd peer stats", txrate.mcs); in ath10k_update_per_peer_tx_stats()
2527 if (txrate.flags == WMI_RATE_PREAMBLE_HT && in ath10k_update_per_peer_tx_stats()
2528 (txrate.mcs > 7 || txrate.nss < 1)) { in ath10k_update_per_peer_tx_stats()
2530 txrate.mcs, txrate.nss); in ath10k_update_per_peer_tx_stats()
[all …]
Dmac.c7796 if (!arsta->txrate.legacy && !arsta->txrate.nss) in ath10k_sta_statistics()
7799 if (arsta->txrate.legacy) { in ath10k_sta_statistics()
7800 sinfo->txrate.legacy = arsta->txrate.legacy; in ath10k_sta_statistics()
7802 sinfo->txrate.mcs = arsta->txrate.mcs; in ath10k_sta_statistics()
7803 sinfo->txrate.nss = arsta->txrate.nss; in ath10k_sta_statistics()
7804 sinfo->txrate.bw = arsta->txrate.bw; in ath10k_sta_statistics()
7806 sinfo->txrate.flags = arsta->txrate.flags; in ath10k_sta_statistics()
/Linux-v4.19/drivers/net/wireless/ralink/rt2x00/
Drt2x00queue.c240 struct ieee80211_tx_rate *txrate = &tx_info->control.rates[0]; in rt2x00queue_create_tx_descriptor_plcp() local
293 if (txrate->flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) in rt2x00queue_create_tx_descriptor_plcp()
305 struct ieee80211_tx_rate *txrate = &tx_info->control.rates[0]; in rt2x00queue_create_tx_descriptor_ht() local
320 if (txrate->flags & IEEE80211_TX_RC_MCS) { in rt2x00queue_create_tx_descriptor_ht()
321 txdesc->u.ht.mcs = txrate->idx; in rt2x00queue_create_tx_descriptor_ht()
332 if (txrate->flags & IEEE80211_TX_RC_USE_SHORT_PREAMBLE) in rt2x00queue_create_tx_descriptor_ht()
367 if (txrate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH || in rt2x00queue_create_tx_descriptor_ht()
368 txrate->flags & IEEE80211_TX_RC_DUP_DATA) in rt2x00queue_create_tx_descriptor_ht()
370 if (txrate->flags & IEEE80211_TX_RC_SHORT_GI) in rt2x00queue_create_tx_descriptor_ht()
398 struct ieee80211_tx_rate *txrate = &tx_info->control.rates[0]; in rt2x00queue_create_tx_descriptor() local
[all …]
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dampdu.c525 struct ieee80211_tx_rate *txrate = tx_info->status.rates; in brcms_c_ampdu_add_frame() local
573 if (txrate[0].count <= ampdu->rr_retry_limit_tid[tid]) { in brcms_c_ampdu_add_frame()
574 txrate[0].count++; in brcms_c_ampdu_add_frame()
577 txrate[1].count++; in brcms_c_ampdu_add_frame()
633 struct ieee80211_tx_rate *txrate; in brcms_c_ampdu_finalize() local
684 txrate = tx_info->status.rates; in brcms_c_ampdu_finalize()
706 fbr = txrate[1].count > 0; in brcms_c_ampdu_finalize()
826 struct ieee80211_tx_rate *txrate = tx_info->status.rates; in brcms_c_ampdu_rate_status() local
831 txrate[i].idx = -1; in brcms_c_ampdu_rate_status()
832 txrate[i].count = 0; in brcms_c_ampdu_rate_status()
Dmain.c848 struct ieee80211_tx_rate *txrate; in brcms_c_dotxstatus() local
953 txrate = tx_info->status.rates; in brcms_c_dotxstatus()
954 if (txrate[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) in brcms_c_dotxstatus()
961 if ((tx_frame_count > fbl) && (txrate[1].idx >= 0)) { in brcms_c_dotxstatus()
966 txrate[0].count = fbl; in brcms_c_dotxstatus()
967 txrate[1].count = tx_frame_count - fbl; in brcms_c_dotxstatus()
973 txrate[0].count = tx_frame_count; in brcms_c_dotxstatus()
978 txrate[1].idx = -1; in brcms_c_dotxstatus()
979 txrate[1].count = 0; in brcms_c_dotxstatus()
984 txrate[i].idx = -1; in brcms_c_dotxstatus()
[all …]
/Linux-v4.19/drivers/staging/rtl8192u/
Dr819xU_cmdpkt.c439 priv->stats.txrate.cck[i] += ptxrate->cck[i]; in cmpk_handle_tx_rate_history()
443 priv->stats.txrate.ofdm[i] += ptxrate->ofdm[i]; in cmpk_handle_tx_rate_history()
446 priv->stats.txrate.ht_mcs[j][i] += ptxrate->ht_mcs[j][i]; in cmpk_handle_tx_rate_history()
/Linux-v4.19/drivers/net/wireless/broadcom/b43/
Dxmit.c272 struct ieee80211_rate *txrate; in b43_generate_txhdr() local
277 txrate = ieee80211_get_tx_rate(dev->wl->hw, info); in b43_generate_txhdr()
278 rate = txrate ? txrate->hw_value : B43_CCK_RATE_1MB; in b43_generate_txhdr()
280 fbrate = ieee80211_get_alt_retry_rate(dev->wl->hw, info, 0) ? : txrate; in b43_generate_txhdr()
/Linux-v4.19/drivers/staging/wlan-ng/
Dprism2sta.c380 qualmsg->txrate.data = hw->txrate; in prism2sta_mlmerequest()
1964 hw->txrate = 10; in prism2sta_commsqual_defer()
1967 hw->txrate = 20; in prism2sta_commsqual_defer()
1970 hw->txrate = 55; in prism2sta_commsqual_defer()
1973 hw->txrate = 110; in prism2sta_commsqual_defer()
Dp80211metastruct.h214 struct p80211item_uint32 txrate; member
Dcfg80211.c270 sinfo->txrate.legacy = quality.txrate.data; in prism2_get_station()
/Linux-v4.19/sound/soc/fsl/
Dfsl_spdif.c97 u32 txrate[SPDIF_TXRATE_MAX]; member
451 spdif_priv->txrate[rate], sample_rate); in spdif_set_sample_rate()
1135 spdif_priv->txrate[index] = arate; in fsl_spdif_txclk_caldiv()
1146 spdif_priv->txrate[index] = arate; in fsl_spdif_txclk_caldiv()
1156 spdif_priv->txrate[index] = arate; in fsl_spdif_txclk_caldiv()
1208 rate[index], spdif_priv->txrate[index]); in fsl_spdif_probe_txclk()
/Linux-v4.19/drivers/net/wireless/ath/ath9k/
Dwmi.h21 __be32 txrate; member
/Linux-v4.19/drivers/net/wireless/atmel/
Dat76c50x-usb.c1371 priv->txrate == TX_RATE_1MBIT ? "1MBit" : priv->txrate == in at76_startup_device()
1372 TX_RATE_2MBIT ? "2MBit" : priv->txrate == in at76_startup_device()
1373 TX_RATE_5_5MBIT ? "5.5MBit" : priv->txrate == in at76_startup_device()
1374 TX_RATE_11MBIT ? "11MBit" : priv->txrate == in at76_startup_device()
1406 ccfg->auto_rate_fallback = (priv->txrate == TX_RATE_AUTO ? 1 : 0); in at76_startup_device()
1450 priv->txrate == TX_RATE_AUTO ? 1 : 0); in at76_startup_device()
2351 priv->txrate = TX_RATE_AUTO; in at76_init_new_device()
Dat76c50x-usb.h412 int txrate; /* 0,1,2,3 = 1,2,5.5,11 Mbps, 4 is auto */ member
/Linux-v4.19/drivers/net/wireless/ath/ath6kl/
Dcfg80211.c1832 sinfo->txrate.legacy = rate / 100; in ath6kl_get_station()
1835 sinfo->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath6kl_get_station()
1836 sinfo->txrate.mcs = mcs - 1; in ath6kl_get_station()
1838 sinfo->txrate.mcs = mcs; in ath6kl_get_station()
1841 sinfo->txrate.flags |= RATE_INFO_FLAGS_MCS; in ath6kl_get_station()
1842 sinfo->txrate.bw = RATE_INFO_BW_20; in ath6kl_get_station()
1845 sinfo->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath6kl_get_station()
1846 sinfo->txrate.mcs = mcs - 1; in ath6kl_get_station()
1848 sinfo->txrate.mcs = mcs; in ath6kl_get_station()
1851 sinfo->txrate.bw = RATE_INFO_BW_40; in ath6kl_get_station()
[all …]
/Linux-v4.19/net/mac80211/
Dethtool.c121 cfg80211_calculate_bitrate(&sinfo.txrate); in ieee80211_get_stats()
/Linux-v4.19/drivers/net/wireless/zydas/zd1211rw/
Dzd_mac.c870 struct ieee80211_rate *txrate; in fill_ctrlset() local
884 txrate = ieee80211_get_tx_rate(mac->hw, info); in fill_ctrlset()
886 cs->modulation = txrate->hw_value; in fill_ctrlset()
888 cs->modulation = txrate->hw_value_short; in fill_ctrlset()
/Linux-v4.19/drivers/net/wireless/
Dmac80211_hwsim.c861 struct ieee80211_rate *txrate = ieee80211_get_tx_rate(hw, info); in mac80211_hwsim_monitor_rx() local
863 if (WARN_ON(!txrate)) in mac80211_hwsim_monitor_rx()
883 hdr->rt_rate = txrate->bitrate / 5; in mac80211_hwsim_monitor_rx()
886 if (txrate->flags & IEEE80211_RATE_ERP_G) in mac80211_hwsim_monitor_rx()
1431 struct ieee80211_rate *txrate; in mac80211_hwsim_tx() local
1435 txrate = ieee80211_get_tx_rate(hw, txi); in mac80211_hwsim_tx()
1439 24 * 8 * 10 / txrate->bitrate); in mac80211_hwsim_tx()
1566 struct ieee80211_rate *txrate; in mac80211_hwsim_beacon_tx() local
1586 txrate = ieee80211_get_tx_rate(hw, info); in mac80211_hwsim_beacon_tx()
1593 24 * 8 * 10 / txrate->bitrate); in mac80211_hwsim_beacon_tx()
/Linux-v4.19/drivers/net/wireless/intersil/hostap/
Dhostap_wlan.h151 __le16 txrate; /* HFA384X_RATES_* */ member
156 __le16 txrate; member
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/
Dbase.c1207 struct ieee80211_rate *txrate; in _rtl_get_tx_hw_rate() local
1224 txrate = ieee80211_get_tx_rate(hw, info); in _rtl_get_tx_hw_rate()
1226 if (txrate) in _rtl_get_tx_hw_rate()
1227 hw_value = txrate->hw_value; in _rtl_get_tx_hw_rate()
/Linux-v4.19/drivers/staging/rtlwifi/
Dbase.c1183 struct ieee80211_rate *txrate; in _rtl_get_tx_hw_rate() local
1200 txrate = ieee80211_get_tx_rate(hw, info); in _rtl_get_tx_hw_rate()
1202 if (txrate) in _rtl_get_tx_hw_rate()
1203 hw_value = txrate->hw_value; in _rtl_get_tx_hw_rate()

123