Searched refs:tx_ant (Results 1 – 9 of 9) sorted by relevance
/drivers/net/wireless/rt2x00/ |
D | rt2x00mac.c | 762 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in rt2x00mac_set_antenna() argument 771 if (!tx_ant || (tx_ant & ~3) || !rx_ant || (rx_ant & ~3)) in rt2x00mac_set_antenna() 777 if (ant->flags & ANTENNA_TX_DIVERSITY && tx_ant != 3) in rt2x00mac_set_antenna() 786 if (tx_ant == 3 && def->tx == ANTENNA_SW_DIVERSITY) { in rt2x00mac_set_antenna() 787 tx_ant = ANTENNA_SW_DIVERSITY; in rt2x00mac_set_antenna() 796 setup.tx = tx_ant; in rt2x00mac_set_antenna() 805 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in rt2x00mac_get_antenna() argument 814 *tx_ant = ANTENNA_HW_DIVERSITY; in rt2x00mac_get_antenna() 816 *tx_ant = active->tx; in rt2x00mac_get_antenna()
|
D | rt2x00.h | 1377 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant); 1378 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
|
/drivers/net/wireless/ath/ath5k/ |
D | mac80211-ops.c | 715 ath5k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath5k_set_antenna() argument 719 if (tx_ant == 1 && rx_ant == 1) in ath5k_set_antenna() 721 else if (tx_ant == 2 && rx_ant == 2) in ath5k_set_antenna() 723 else if ((tx_ant & 3) == 3 && (rx_ant & 3) == 3) in ath5k_set_antenna() 732 ath5k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath5k_get_antenna() argument 738 *tx_ant = 1; *rx_ant = 1; break; in ath5k_get_antenna() 740 *tx_ant = 2; *rx_ant = 2; break; in ath5k_get_antenna() 742 *tx_ant = 3; *rx_ant = 3; break; in ath5k_get_antenna()
|
D | phy.c | 2304 u8 def_ant, tx_ant; in ath5k_hw_set_antenna_mode() local 2320 tx_ant = 0; in ath5k_hw_set_antenna_mode() 2329 tx_ant = 1; in ath5k_hw_set_antenna_mode() 2338 tx_ant = 2; in ath5k_hw_set_antenna_mode() 2347 tx_ant = 0; in ath5k_hw_set_antenna_mode() 2355 tx_ant = 1; /* variable */ in ath5k_hw_set_antenna_mode() 2363 tx_ant = 1; /* variable */ in ath5k_hw_set_antenna_mode() 2372 tx_ant = 2; in ath5k_hw_set_antenna_mode() 2383 ah->ah_tx_ant = tx_ant; in ath5k_hw_set_antenna_mode()
|
/drivers/net/wireless/iwlwifi/mvm/ |
D | scan.c | 115 u32 tx_ant; in iwl_mvm_scan_rate_n_flags() local 120 tx_ant = BIT(mvm->scan_last_antenna_idx) << RATE_MCS_ANT_POS; in iwl_mvm_scan_rate_n_flags() 124 tx_ant); in iwl_mvm_scan_rate_n_flags() 126 return cpu_to_le32(IWL_RATE_6M_PLCP | tx_ant); in iwl_mvm_scan_rate_n_flags()
|
/drivers/net/wireless/mwifiex/ |
D | cfg80211.c | 1235 mwifiex_cfg80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant) in mwifiex_cfg80211_set_antenna() argument 1242 if (!tx_ant || !rx_ant) in mwifiex_cfg80211_set_antenna() 1249 if (tx_ant != rx_ant) in mwifiex_cfg80211_set_antenna() 1252 if ((tx_ant & (tx_ant - 1)) && in mwifiex_cfg80211_set_antenna() 1253 (tx_ant != BIT(adapter->number_of_antenna) - 1)) in mwifiex_cfg80211_set_antenna() 1256 if ((tx_ant == BIT(adapter->number_of_antenna) - 1) && in mwifiex_cfg80211_set_antenna() 1258 tx_ant = RF_ANTENNA_AUTO; in mwifiex_cfg80211_set_antenna() 1263 ant_cfg.tx_ant = tx_ant; in mwifiex_cfg80211_set_antenna()
|
D | ioctl.h | 295 u32 tx_ant; member
|
D | sta_cmd.c | 300 ant_mimo->tx_ant_mode = cpu_to_le16((u16)ant_cfg->tx_ant); in mwifiex_cmd_rf_antenna() 307 ant_siso->ant_mode = cpu_to_le16((u16)ant_cfg->tx_ant); in mwifiex_cmd_rf_antenna()
|
/drivers/net/wireless/ath/ath9k/ |
D | main.c | 1949 static int ath9k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath9k_set_antenna() argument 1955 rx_ant |= tx_ant; in ath9k_set_antenna() 1957 if (!validate_antenna_mask(ah, rx_ant) || !tx_ant) in ath9k_set_antenna() 1961 sc->ant_tx = tx_ant; in ath9k_set_antenna() 1972 ah->txchainmask = fill_chainmask(ah->caps.tx_chainmask, tx_ant); in ath9k_set_antenna() 1978 static int ath9k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath9k_get_antenna() argument 1982 *tx_ant = sc->ant_tx; in ath9k_get_antenna()
|