Home
last modified time | relevance | path

Searched refs:rx_ant (Results 1 – 25 of 32) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/
Drt2x00mac.c732 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in rt2x00mac_set_antenna() argument
741 if (!tx_ant || (tx_ant & ~3) || !rx_ant || (rx_ant & ~3)) in rt2x00mac_set_antenna()
749 if (ant->flags & ANTENNA_RX_DIVERSITY && rx_ant != 3) in rt2x00mac_set_antenna()
761 if (rx_ant == 3 && def->rx == ANTENNA_SW_DIVERSITY) { in rt2x00mac_set_antenna()
762 rx_ant = ANTENNA_SW_DIVERSITY; in rt2x00mac_set_antenna()
767 setup.rx = rx_ant; in rt2x00mac_set_antenna()
777 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in rt2x00mac_get_antenna() argument
791 *rx_ant = ANTENNA_HW_DIVERSITY; in rt2x00mac_get_antenna()
793 *rx_ant = active->rx; in rt2x00mac_get_antenna()
Drt2x00.h1479 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant);
1480 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/
Dmac80211-ops.c706 ath5k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath5k_set_antenna() argument
710 if (tx_ant == 1 && rx_ant == 1) in ath5k_set_antenna()
712 else if (tx_ant == 2 && rx_ant == 2) in ath5k_set_antenna()
714 else if ((tx_ant & 3) == 3 && (rx_ant & 3) == 3) in ath5k_set_antenna()
723 ath5k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath5k_get_antenna() argument
729 *tx_ant = 1; *rx_ant = 1; break; in ath5k_get_antenna()
731 *tx_ant = 2; *rx_ant = 2; break; in ath5k_get_antenna()
733 *tx_ant = 3; *rx_ant = 3; break; in ath5k_get_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Dscan.c626 u8 rx_ant = priv->nvm_data->valid_rx_ant; in iwlagn_request_scan() local
817 active_chains = rx_ant & in iwlagn_request_scan()
820 active_chains = rx_ant; in iwlagn_request_scan()
825 rx_ant = first_antenna(active_chains); in iwlagn_request_scan()
831 rx_ant = first_antenna(rx_ant); in iwlagn_request_scan()
837 rx_chain |= rx_ant << RXON_RX_CHAIN_FORCE_MIMO_SEL_POS; in iwlagn_request_scan()
838 rx_chain |= rx_ant << RXON_RX_CHAIN_FORCE_SEL_POS; in iwlagn_request_scan()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
Dpci_main.c110 u32 rx_ant) in mt76x2_set_antenna() argument
114 if (!tx_ant || tx_ant > 3 || tx_ant != rx_ant) in mt76x2_set_antenna()
/kernel/linux/linux-5.10/net/mac80211/
Dtrace.h1177 TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret),
1179 TP_ARGS(local, tx_ant, rx_ant, ret),
1184 __field(u32, rx_ant)
1191 __entry->rx_ant = rx_ant;
1197 LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret
1202 TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret),
1204 TP_ARGS(local, tx_ant, rx_ant, ret),
1209 __field(u32, rx_ant)
1216 __entry->rx_ant = rx_ant;
1222 LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret
Ddriver-ops.h655 u32 tx_ant, u32 rx_ant) in drv_set_antenna() argument
660 ret = local->ops->set_antenna(&local->hw, tx_ant, rx_ant); in drv_set_antenna()
661 trace_drv_set_antenna(local, tx_ant, rx_ant, ret); in drv_set_antenna()
666 u32 *tx_ant, u32 *rx_ant) in drv_get_antenna() argument
671 ret = local->ops->get_antenna(&local->hw, tx_ant, rx_ant); in drv_get_antenna()
672 trace_drv_get_antenna(local, *tx_ant, *rx_ant, ret); in drv_get_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/rsi/
Drsi_91x_mac80211.c1572 u32 tx_ant, u32 rx_ant) in rsi_mac80211_set_antenna() argument
1578 if (tx_ant > 1 || rx_ant > 1) { in rsi_mac80211_set_antenna()
1581 tx_ant, rx_ant); in rsi_mac80211_set_antenna()
1588 __func__, tx_ant, rx_ant); in rsi_mac80211_set_antenna()
1623 u32 *tx_ant, u32 *rx_ant) in rsi_mac80211_get_antenna() argument
1631 *rx_ant = 0; in rsi_mac80211_get_antenna()
/kernel/linux/linux-5.10/net/wireless/
Drdev-ops.h839 u32 tx_ant, u32 rx_ant) in rdev_set_antenna() argument
842 trace_rdev_set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna()
843 ret = rdev->ops->set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna()
849 u32 *tx_ant, u32 *rx_ant) in rdev_get_antenna() argument
853 ret = rdev->ops->get_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_get_antenna()
858 *rx_ant); in rdev_get_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
Dcfg80211.c1848 mwifiex_cfg80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant) in mwifiex_cfg80211_set_antenna() argument
1855 if (!tx_ant || !rx_ant) in mwifiex_cfg80211_set_antenna()
1862 if (tx_ant != rx_ant) in mwifiex_cfg80211_set_antenna()
1872 rx_ant = RF_ANTENNA_AUTO; in mwifiex_cfg80211_set_antenna()
1879 if ((tx_ant == 0x1 && rx_ant == 0x1)) { in mwifiex_cfg80211_set_antenna()
1904 ant_cfg.rx_ant = rx_ant; in mwifiex_cfg80211_set_antenna()
1911 mwifiex_cfg80211_get_antenna(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant) in mwifiex_cfg80211_get_antenna() argument
1920 *rx_ant = priv->rx_ant; in mwifiex_cfg80211_get_antenna()
Dioctl.h330 u32 rx_ant; member
Dsta_cmdresp.c468 priv->rx_ant = le16_to_cpu(ant_mimo->rx_ant_mode); in mwifiex_ret_rf_antenna()
478 priv->rx_ant = le16_to_cpu(ant_siso->ant_mode); in mwifiex_ret_rf_antenna()
Dinit.c121 priv->rx_ant = 0; in mwifiex_init_priv()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Dmain.c2346 static int ath9k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath9k_set_antenna() argument
2352 rx_ant |= tx_ant; in ath9k_set_antenna()
2354 if (!validate_antenna_mask(ah, rx_ant) || !tx_ant) in ath9k_set_antenna()
2357 sc->ant_rx = rx_ant; in ath9k_set_antenna()
2367 ah->rxchainmask = fill_chainmask(ah->caps.rx_chainmask, rx_ant); in ath9k_set_antenna()
2375 static int ath9k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath9k_get_antenna() argument
2380 *rx_ant = sc->ant_rx; in ath9k_get_antenna()
Dhtc_drv_main.c1843 u32 *rx_ant) in ath9k_htc_get_antenna() argument
1849 *rx_ant = pBase->rxMask; in ath9k_htc_get_antenna()
1852 *rx_ant = 0; in ath9k_htc_get_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dscan.c196 u8 rx_ant; in iwl_mvm_scan_rx_chain() local
198 rx_ant = iwl_mvm_scan_rx_ant(mvm); in iwl_mvm_scan_rx_chain()
199 rx_chain = rx_ant << PHY_RX_CHAIN_VALID_POS; in iwl_mvm_scan_rx_chain()
200 rx_chain |= rx_ant << PHY_RX_CHAIN_FORCE_MIMO_SEL_POS; in iwl_mvm_scan_rx_chain()
201 rx_chain |= rx_ant << PHY_RX_CHAIN_FORCE_SEL_POS; in iwl_mvm_scan_rx_chain()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
Dmain.c734 mt7915_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7915_set_antenna() argument
741 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7915_set_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dmac.c3841 static int __ath11k_set_antenna(struct ath11k *ar, u32 tx_ant, u32 rx_ant) in __ath11k_set_antenna() argument
3850 if (ath11k_check_chain_mask(ar, rx_ant, false)) in __ath11k_set_antenna()
3854 ar->cfg_rx_chainmask = rx_ant; in __ath11k_set_antenna()
3871 rx_ant, ar->pdev->pdev_id); in __ath11k_set_antenna()
3874 ret, rx_ant); in __ath11k_set_antenna()
3878 ar->num_rx_chains = get_num_chains(rx_ant); in __ath11k_set_antenna()
4755 static int ath11k_mac_op_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath11k_mac_op_get_antenna() argument
4762 *rx_ant = ar->cfg_rx_chainmask; in ath11k_mac_op_get_antenna()
4769 static int ath11k_mac_op_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath11k_mac_op_set_antenna() argument
4775 ret = __ath11k_set_antenna(ar, tx_ant, rx_ant); in ath11k_mac_op_set_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/
Dcfg80211.c3244 u32 *tx_ant, u32 *rx_ant) in ath6kl_get_antenna() argument
3248 *rx_ant = ar->hw.rx_ant; in ath6kl_get_antenna()
3946 ar->hw.rx_ant = 0x3; in ath6kl_cfg80211_init()
3951 ar->hw.rx_ant = 1; in ath6kl_cfg80211_init()
3955 wiphy->available_antennas_rx = ar->hw.rx_ant; in ath6kl_cfg80211_init()
Dcore.h786 u8 rx_ant; member
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dmac80211.c1193 int mt76_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in mt76_get_antenna() argument
1200 *rx_ant = phy->antenna_mask; in mt76_get_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Dmain.c921 mt7615_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7615_set_antenna() argument
928 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7615_set_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/
D4965-mac.c862 u8 rx_ant = il->hw_params.valid_rx_ant; in il4965_request_scan() local
977 rx_ant = il->cfg->scan_rx_antennas[band]; in il4965_request_scan()
987 rx_ant & ((u8) (il->chain_noise_data.active_chains)); in il4965_request_scan()
989 active_chains = rx_ant; in il4965_request_scan()
994 rx_ant = il4965_first_antenna(active_chains); in il4965_request_scan()
999 rx_chain |= rx_ant << RXON_RX_CHAIN_FORCE_MIMO_SEL_POS; in il4965_request_scan()
1000 rx_chain |= rx_ant << RXON_RX_CHAIN_FORCE_SEL_POS; in il4965_request_scan()
/kernel/linux/linux-5.10/include/net/
Dmac80211.h4049 int (*set_antenna)(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant);
4050 int (*get_antenna)(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dmac.c4606 static int ath10k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath10k_get_antenna() argument
4613 *rx_ant = ar->cfg_rx_chainmask; in ath10k_get_antenna()
4811 static int __ath10k_set_antenna(struct ath10k *ar, u32 tx_ant, u32 rx_ant) in __ath10k_set_antenna() argument
4819 is_valid_rx_chain_mask = ath10k_check_chain_mask(ar, rx_ant, "rx"); in __ath10k_set_antenna()
4825 ar->cfg_rx_chainmask = rx_ant; in __ath10k_set_antenna()
4840 rx_ant); in __ath10k_set_antenna()
4843 ret, rx_ant); in __ath10k_set_antenna()
4853 static int ath10k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath10k_set_antenna() argument
4859 ret = __ath10k_set_antenna(ar, tx_ant, rx_ant); in ath10k_set_antenna()

12