/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00mac.c | 742 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in rt2x00mac_set_antenna() argument 751 if (!tx_ant || (tx_ant & ~3) || !rx_ant || (rx_ant & ~3)) in rt2x00mac_set_antenna() 759 if (ant->flags & ANTENNA_RX_DIVERSITY && rx_ant != 3) in rt2x00mac_set_antenna() 771 if (rx_ant == 3 && def->rx == ANTENNA_SW_DIVERSITY) { in rt2x00mac_set_antenna() 772 rx_ant = ANTENNA_SW_DIVERSITY; in rt2x00mac_set_antenna() 777 setup.rx = rx_ant; in rt2x00mac_set_antenna() 787 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in rt2x00mac_get_antenna() argument 801 *rx_ant = ANTENNA_HW_DIVERSITY; in rt2x00mac_get_antenna() 803 *rx_ant = active->rx; in rt2x00mac_get_antenna()
|
D | rt2x00.h | 1489 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant); 1490 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
|
/drivers/net/wireless/ath/ath5k/ |
D | mac80211-ops.c | 707 ath5k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath5k_set_antenna() argument 711 if (tx_ant == 1 && rx_ant == 1) in ath5k_set_antenna() 713 else if (tx_ant == 2 && rx_ant == 2) in ath5k_set_antenna() 715 else if ((tx_ant & 3) == 3 && (rx_ant & 3) == 3) in ath5k_set_antenna() 724 ath5k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath5k_get_antenna() argument 730 *tx_ant = 1; *rx_ant = 1; break; in ath5k_get_antenna() 732 *tx_ant = 2; *rx_ant = 2; break; in ath5k_get_antenna() 734 *tx_ant = 3; *rx_ant = 3; break; in ath5k_get_antenna()
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | scan.c | 626 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()
|
/drivers/net/wireless/mediatek/mt76/mt76x2/ |
D | pci_main.c | 110 u32 rx_ant) in mt76x2_set_antenna() argument 114 if (!tx_ant || tx_ant > 3 || tx_ant != rx_ant) in mt76x2_set_antenna()
|
/drivers/net/wireless/rsi/ |
D | rsi_91x_mac80211.c | 1589 u32 tx_ant, u32 rx_ant) in rsi_mac80211_set_antenna() argument 1595 if (tx_ant > 1 || rx_ant > 1) { in rsi_mac80211_set_antenna() 1598 tx_ant, rx_ant); in rsi_mac80211_set_antenna() 1605 __func__, tx_ant, rx_ant); in rsi_mac80211_set_antenna() 1640 u32 *tx_ant, u32 *rx_ant) in rsi_mac80211_get_antenna() argument 1648 *rx_ant = 0; in rsi_mac80211_get_antenna()
|
/drivers/net/wireless/marvell/mwifiex/ |
D | cfg80211.c | 1852 mwifiex_cfg80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant) in mwifiex_cfg80211_set_antenna() argument 1859 if (!tx_ant || !rx_ant) in mwifiex_cfg80211_set_antenna() 1866 if (tx_ant != rx_ant) in mwifiex_cfg80211_set_antenna() 1876 rx_ant = RF_ANTENNA_AUTO; in mwifiex_cfg80211_set_antenna() 1883 if ((tx_ant == 0x1 && rx_ant == 0x1)) { in mwifiex_cfg80211_set_antenna() 1908 ant_cfg.rx_ant = rx_ant; in mwifiex_cfg80211_set_antenna() 1915 mwifiex_cfg80211_get_antenna(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant) in mwifiex_cfg80211_get_antenna() argument 1924 *rx_ant = priv->rx_ant; in mwifiex_cfg80211_get_antenna()
|
D | ioctl.h | 331 u32 rx_ant; member
|
D | sta_cmdresp.c | 469 priv->rx_ant = le16_to_cpu(ant_mimo->rx_ant_mode); in mwifiex_ret_rf_antenna() 479 priv->rx_ant = le16_to_cpu(ant_siso->ant_mode); in mwifiex_ret_rf_antenna()
|
D | init.c | 121 priv->rx_ant = 0; in mwifiex_init_priv()
|
D | main.h | 565 u32 rx_ant; member
|
/drivers/net/wireless/ath/ath9k/ |
D | main.c | 2342 static int ath9k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath9k_set_antenna() argument 2348 rx_ant |= tx_ant; in ath9k_set_antenna() 2350 if (!validate_antenna_mask(ah, rx_ant) || !tx_ant) in ath9k_set_antenna() 2353 sc->ant_rx = rx_ant; in ath9k_set_antenna() 2363 ah->rxchainmask = fill_chainmask(ah->caps.rx_chainmask, rx_ant); in ath9k_set_antenna() 2371 static int ath9k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath9k_get_antenna() argument 2376 *rx_ant = sc->ant_rx; in ath9k_get_antenna()
|
D | htc_drv_main.c | 1843 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()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | scan.c | 146 u8 rx_ant; in iwl_mvm_scan_rx_chain() local 148 rx_ant = iwl_mvm_scan_rx_ant(mvm); in iwl_mvm_scan_rx_chain() 149 rx_chain = rx_ant << PHY_RX_CHAIN_VALID_POS; in iwl_mvm_scan_rx_chain() 150 rx_chain |= rx_ant << PHY_RX_CHAIN_FORCE_MIMO_SEL_POS; in iwl_mvm_scan_rx_chain() 151 rx_chain |= rx_ant << PHY_RX_CHAIN_FORCE_SEL_POS; in iwl_mvm_scan_rx_chain()
|
D | mac80211.c | 310 iwl_mvm_op_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in iwl_mvm_op_get_antenna() argument 314 *rx_ant = iwl_mvm_get_valid_rx_ant(mvm); in iwl_mvm_op_get_antenna()
|
/drivers/net/wireless/ath/ath6kl/ |
D | cfg80211.c | 3245 u32 *tx_ant, u32 *rx_ant) in ath6kl_get_antenna() argument 3249 *rx_ant = ar->hw.rx_ant; in ath6kl_get_antenna() 3948 ar->hw.rx_ant = 0x3; in ath6kl_cfg80211_init() 3953 ar->hw.rx_ant = 1; in ath6kl_cfg80211_init() 3957 wiphy->available_antennas_rx = ar->hw.rx_ant; in ath6kl_cfg80211_init()
|
D | core.h | 786 u8 rx_ant; member
|
/drivers/net/wireless/ath/ath11k/ |
D | mac.c | 4115 static int __ath11k_set_antenna(struct ath11k *ar, u32 tx_ant, u32 rx_ant) in __ath11k_set_antenna() argument 4124 if (ath11k_check_chain_mask(ar, rx_ant, false)) in __ath11k_set_antenna() 4128 ar->cfg_rx_chainmask = rx_ant; in __ath11k_set_antenna() 4145 rx_ant, ar->pdev->pdev_id); in __ath11k_set_antenna() 4148 ret, rx_ant); in __ath11k_set_antenna() 4152 ar->num_rx_chains = get_num_chains(rx_ant); in __ath11k_set_antenna() 5048 static int ath11k_mac_op_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath11k_mac_op_get_antenna() argument 5055 *rx_ant = ar->cfg_rx_chainmask; in ath11k_mac_op_get_antenna() 5062 static int ath11k_mac_op_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath11k_mac_op_set_antenna() argument 5068 ret = __ath11k_set_antenna(ar, tx_ant, rx_ant); in ath11k_mac_op_set_antenna()
|
/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | main.c | 987 mt7921_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7921_set_antenna() argument 993 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7921_set_antenna()
|
/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | main.c | 890 mt7915_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7915_set_antenna() argument 897 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7915_set_antenna()
|
/drivers/net/wireless/mediatek/mt76/ |
D | mac80211.c | 1309 int mt76_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in mt76_get_antenna() argument 1316 *rx_ant = phy->antenna_mask; in mt76_get_antenna()
|
D | mt76.h | 1127 int mt76_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
|
/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | main.c | 962 mt7615_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7615_set_antenna() argument 969 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7615_set_antenna()
|
/drivers/net/wireless/intel/iwlegacy/ |
D | 4965-mac.c | 863 u8 rx_ant = il->hw_params.valid_rx_ant; in il4965_request_scan() local 978 rx_ant = il->cfg->scan_rx_antennas[band]; in il4965_request_scan() 988 rx_ant & ((u8) (il->chain_noise_data.active_chains)); in il4965_request_scan() 990 active_chains = rx_ant; in il4965_request_scan() 995 rx_ant = il4965_first_antenna(active_chains); in il4965_request_scan() 1000 rx_chain |= rx_ant << RXON_RX_CHAIN_FORCE_MIMO_SEL_POS; in il4965_request_scan() 1001 rx_chain |= rx_ant << RXON_RX_CHAIN_FORCE_SEL_POS; in il4965_request_scan()
|
/drivers/net/wireless/ath/ath10k/ |
D | mac.c | 4783 static int ath10k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath10k_get_antenna() argument 4790 *rx_ant = ar->cfg_rx_chainmask; in ath10k_get_antenna() 4988 static int __ath10k_set_antenna(struct ath10k *ar, u32 tx_ant, u32 rx_ant) in __ath10k_set_antenna() argument 4996 is_valid_rx_chain_mask = ath10k_check_chain_mask(ar, rx_ant, "rx"); in __ath10k_set_antenna() 5002 ar->cfg_rx_chainmask = rx_ant; in __ath10k_set_antenna() 5017 rx_ant); in __ath10k_set_antenna() 5020 ret, rx_ant); in __ath10k_set_antenna() 5030 static int ath10k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath10k_set_antenna() argument 5036 ret = __ath10k_set_antenna(ar, tx_ant, rx_ant); in ath10k_set_antenna()
|