Home
last modified time | relevance | path

Searched refs:tx_ant (Results 1 – 25 of 45) sorted by relevance

12

/linux/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Dpci_main.c102 static int mt76x2_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, in mt76x2_set_antenna() argument
107 if (!tx_ant || tx_ant > 3 || tx_ant != rx_ant) in mt76x2_set_antenna()
112 dev->mphy.chainmask = (tx_ant == 3) ? 0x202 : 0x101; in mt76x2_set_antenna()
113 dev->mphy.antenna_mask = tx_ant; in mt76x2_set_antenna()
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00mac.c743 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in rt2x00mac_set_antenna() argument
752 if (!tx_ant || (tx_ant & ~3) || !rx_ant || (rx_ant & ~3)) in rt2x00mac_set_antenna()
758 if (ant->flags & ANTENNA_TX_DIVERSITY && tx_ant != 3) in rt2x00mac_set_antenna()
767 if (tx_ant == 3 && def->tx == ANTENNA_SW_DIVERSITY) { in rt2x00mac_set_antenna()
768 tx_ant = ANTENNA_SW_DIVERSITY; in rt2x00mac_set_antenna()
777 setup.tx = tx_ant; in rt2x00mac_set_antenna()
788 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in rt2x00mac_get_antenna() argument
797 *tx_ant = ANTENNA_HW_DIVERSITY; in rt2x00mac_get_antenna()
799 *tx_ant = active->tx; in rt2x00mac_get_antenna()
H A Drt2x00.h1492 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant);
1493 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
/linux/drivers/net/wireless/ath/ath5k/
H A Dmac80211-ops.c707 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()
H A Dphy.c2297 u8 def_ant, tx_ant; in ath5k_hw_set_antenna_mode() local
2313 tx_ant = 0; in ath5k_hw_set_antenna_mode()
2322 tx_ant = 1; in ath5k_hw_set_antenna_mode()
2331 tx_ant = 2; in ath5k_hw_set_antenna_mode()
2340 tx_ant = 0; in ath5k_hw_set_antenna_mode()
2348 tx_ant = 1; /* variable */ in ath5k_hw_set_antenna_mode()
2356 tx_ant = 1; /* variable */ in ath5k_hw_set_antenna_mode()
2365 tx_ant = 2; in ath5k_hw_set_antenna_mode()
2376 ah->ah_tx_ant = tx_ant; in ath5k_hw_set_antenna_mode()
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmain.c988 mt7615_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7615_set_antenna() argument
995 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7615_set_antenna()
998 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant) in mt7615_set_antenna()
999 tx_ant = BIT(ffs(tx_ant) - 1) - 1; in mt7615_set_antenna()
1003 phy->mt76->antenna_mask = tx_ant; in mt7615_set_antenna()
1006 tx_ant <<= 2; in mt7615_set_antenna()
1008 tx_ant <<= 1; in mt7615_set_antenna()
1010 phy->mt76->chainmask = tx_ant; in mt7615_set_antenna()
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmain.c958 mt7996_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7996_set_antenna() argument
965 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7996_set_antenna()
968 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant) in mt7996_set_antenna()
969 tx_ant = BIT(ffs(tx_ant) - 1) - 1; in mt7996_set_antenna()
973 phy->mt76->antenna_mask = tx_ant; in mt7996_set_antenna()
976 if (hweight8(tx_ant) == max_nss && band_idx < MT_BAND2) in mt7996_set_antenna()
979 else if (hweight8(tx_ant) == max_nss) in mt7996_set_antenna()
982 phy->mt76->chainmask = tx_ant << shift; in mt7996_set_antenna()
H A Dmcu.c1505 u8 tx_ant = hweight8(phy->mt76->antenna_mask) - 1; in mt7996_mcu_sta_bfer_vht() local
1518 bf->nrow = min_t(u8, min_t(u8, snd_dim, sts), tx_ant); in mt7996_mcu_sta_bfer_vht()
1525 bf->nrow = tx_ant; in mt7996_mcu_sta_bfer_vht()
1659 int tx_ant = hweight16(phy->mt76->chainmask) - 1; in mt7996_mcu_sta_bfer_tlv() local
1698 bf->ibf_nrow = tx_ant; in mt7996_mcu_sta_bfer_tlv()
1705 if (ebf && bf->nrow != tx_ant) in mt7996_mcu_sta_bfer_tlv()
1706 bf->mem_20m = matrix[tx_ant][bf->ncol]; in mt7996_mcu_sta_bfer_tlv()
1730 int tx_ant = hweight8(phy->mt76->antenna_mask) - 1; in mt7996_mcu_sta_bfee_tlv() local
1757 bfee->fb_identity_matrix = (nrow == 1 && tx_ant == 2); in mt7996_mcu_sta_bfee_tlv()
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dmain.c1071 mt7921_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7921_set_antenna() argument
1077 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7921_set_antenna()
1080 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant) in mt7921_set_antenna()
1085 phy->mt76->antenna_mask = tx_ant; in mt7921_set_antenna()
1086 phy->mt76->chainmask = tx_ant; in mt7921_set_antenna()
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dtestmode.h63 u8 tx_ant; member
H A Dmain.c1056 mt7915_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7915_set_antenna() argument
1064 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7915_set_antenna()
1069 phy->mt76->antenna_mask = tx_ant; in mt7915_set_antenna()
1073 band && hweight8(tx_ant) == max_nss) in mt7915_set_antenna()
1076 phy->mt76->chainmask = tx_ant << (chainshift * band); in mt7915_set_antenna()
H A Dmcu.c1106 u8 tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfer_vht() local
1119 bf->nrow = min_t(u8, min_t(u8, snd_dim, sts), tx_ant); in mt7915_mcu_sta_bfer_vht()
1126 bf->nrow = tx_ant; in mt7915_mcu_sta_bfer_vht()
1201 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfer_tlv() local
1238 bf->ibf_nrow = tx_ant; in mt7915_mcu_sta_bfer_tlv()
1245 if (ebf && bf->nrow != tx_ant) in mt7915_mcu_sta_bfer_tlv()
1246 bf->mem_20m = matrix[tx_ant][bf->ncol]; in mt7915_mcu_sta_bfer_tlv()
1270 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfee_tlv() local
1297 bfee->fb_identity_matrix = (nrow == 1 && tx_ant == 2); in mt7915_mcu_sta_bfee_tlv()
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dmain.c1426 mt7925_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7925_set_antenna() argument
1432 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7925_set_antenna()
1435 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant) in mt7925_set_antenna()
1436 tx_ant = BIT(ffs(tx_ant) - 1) - 1; in mt7925_set_antenna()
1440 phy->mt76->antenna_mask = tx_ant; in mt7925_set_antenna()
1441 phy->mt76->chainmask = tx_ant; in mt7925_set_antenna()
/linux/drivers/net/wireless/rsi/
H A Drsi_91x_mac80211.c1592 u32 tx_ant, u32 rx_ant) in rsi_mac80211_set_antenna() argument
1598 if (tx_ant > 1 || rx_ant > 1) { in rsi_mac80211_set_antenna()
1601 tx_ant, rx_ant); in rsi_mac80211_set_antenna()
1608 __func__, tx_ant, rx_ant); in rsi_mac80211_set_antenna()
1612 antenna = tx_ant ? ANTENNA_SEL_UFL : ANTENNA_SEL_INT; in rsi_mac80211_set_antenna()
1618 tx_ant ? "UFL" : "INT"); in rsi_mac80211_set_antenna()
1643 u32 *tx_ant, u32 *rx_ant) in rsi_mac80211_get_antenna() argument
1650 *tx_ant = (common->ant_in_use == ANTENNA_SEL_UFL) ? 1 : 0; in rsi_mac80211_get_antenna()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dnvm.c222 u8 tx_ant = mvm->fw->valid_tx_ant; in iwl_parse_nvm_sections() local
275 tx_ant &= mvm->set_tx_ant; in iwl_parse_nvm_sections()
282 tx_ant, rx_ant); in iwl_parse_nvm_sections()
H A Dmvm.h1916 u8 tx_ant = mvm->fw->valid_tx_ant; in iwl_mvm_get_valid_tx_ant() local
1919 tx_ant &= mvm->nvm_data->valid_tx_ant; in iwl_mvm_get_valid_tx_ant()
1922 tx_ant &= mvm->set_tx_ant; in iwl_mvm_get_valid_tx_ant()
1924 return tx_ant; in iwl_mvm_get_valid_tx_ant()
2882 int iwl_mvm_op_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
2883 int iwl_mvm_op_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant);
H A Dsta.h450 u8 tx_ant; member
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-nvm-parse.c1451 const struct iwl_fw *fw, u8 tx_ant, u8 rx_ant) in iwl_parse_mei_nvm_data() argument
1478 if (tx_ant) in iwl_parse_mei_nvm_data()
1479 tx_chains &= tx_ant; in iwl_parse_mei_nvm_data()
2081 u8 tx_ant; in iwl_get_nvm() local
2171 tx_ant = nvm->valid_tx_ant & fw->valid_tx_ant; in iwl_get_nvm()
2175 tx_ant &= set_tx_ant; in iwl_get_nvm()
2179 iwl_init_sbands(trans, nvm, channel_profile, tx_ant, rx_ant, in iwl_get_nvm()
/linux/drivers/net/wireless/realtek/rtw89/
H A Dmac80211.c1142 int rtw89_ops_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in rtw89_ops_set_antenna() argument
1148 if (tx_ant != rx_ant || hweight32(tx_ant) != 1) in rtw89_ops_set_antenna()
1155 hal->antenna_tx = tx_ant; in rtw89_ops_set_antenna()
1165 int rtw89_ops_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in rtw89_ops_get_antenna() argument
1170 *tx_ant = hal->antenna_tx; in rtw89_ops_get_antenna()
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dcfg80211.c1942 mwifiex_cfg80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant) in mwifiex_cfg80211_set_antenna() argument
1949 if (!tx_ant || !rx_ant) in mwifiex_cfg80211_set_antenna()
1956 if (tx_ant != rx_ant) in mwifiex_cfg80211_set_antenna()
1959 if ((tx_ant & (tx_ant - 1)) && in mwifiex_cfg80211_set_antenna()
1960 (tx_ant != BIT(adapter->number_of_antenna) - 1)) in mwifiex_cfg80211_set_antenna()
1963 if ((tx_ant == BIT(adapter->number_of_antenna) - 1) && in mwifiex_cfg80211_set_antenna()
1965 tx_ant = RF_ANTENNA_AUTO; in mwifiex_cfg80211_set_antenna()
1973 if ((tx_ant == 0x1 && rx_ant == 0x1)) { in mwifiex_cfg80211_set_antenna()
1997 ant_cfg.tx_ant = tx_ant; in mwifiex_cfg80211_set_antenna()
2005 mwifiex_cfg80211_get_antenna(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant) in mwifiex_cfg80211_get_antenna() argument
[all …]
H A Dioctl.h323 u32 tx_ant; member
H A Dsta_cmdresp.c456 priv->tx_ant = le16_to_cpu(ant_mimo->tx_ant_mode); in mwifiex_ret_rf_antenna()
466 priv->tx_ant = le16_to_cpu(ant_siso->ant_mode); in mwifiex_ret_rf_antenna()
/linux/net/wireless/
H A Drdev-ops.h859 u32 tx_ant, u32 rx_ant) in rdev_set_antenna() argument
862 trace_rdev_set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna()
863 ret = rdev->ops->set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna()
869 u32 *tx_ant, u32 *rx_ant) in rdev_get_antenna() argument
873 ret = rdev->ops->get_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_get_antenna()
877 trace_rdev_return_int_tx_rx(&rdev->wiphy, ret, *tx_ant, in rdev_get_antenna()
/linux/drivers/net/wireless/ath/ath9k/
H A Dmain.c2341 static int ath9k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath9k_set_antenna() argument
2347 rx_ant |= tx_ant; in ath9k_set_antenna()
2349 if (!validate_antenna_mask(ah, rx_ant) || !tx_ant) in ath9k_set_antenna()
2353 sc->ant_tx = tx_ant; in ath9k_set_antenna()
2364 ah->txchainmask = fill_chainmask(ah->caps.tx_chainmask, tx_ant); in ath9k_set_antenna()
2370 static int ath9k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath9k_get_antenna() argument
2374 *tx_ant = sc->ant_tx; in ath9k_get_antenna()
/linux/drivers/net/wireless/ath/ath6kl/
H A Dcfg80211.c3245 u32 *tx_ant, u32 *rx_ant) in ath6kl_get_antenna() argument
3248 *tx_ant = ar->hw.tx_ant; in ath6kl_get_antenna()
3948 ar->hw.tx_ant = 0x3; /* mask, 2 antenna */ in ath6kl_cfg80211_init()
3953 ar->hw.tx_ant = 1; in ath6kl_cfg80211_init()
3957 wiphy->available_antennas_tx = ar->hw.tx_ant; in ath6kl_cfg80211_init()

12