Lines Matching defs:tx_ant
955 mt7996_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant)
962 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss)
965 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant)
966 tx_ant = BIT(ffs(tx_ant) - 1) - 1;
970 phy->mt76->antenna_mask = tx_ant;
973 if (hweight8(tx_ant) == max_nss && band_idx < MT_BAND2)
976 else if (hweight8(tx_ant) == max_nss)
979 phy->mt76->chainmask = tx_ant << shift;