diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2021-01-04 21:00:06 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-01-26 22:07:48 +0300 |
commit | b9027e0816ebbced1248924beffc28f0146c0e72 (patch) | |
tree | ee84b3c98ad060b26f42827b5c427307d8facd24 /drivers/net/wireless/mediatek/mt76/mt7915/testmode.c | |
parent | a782f8bfdd46a6028dee41b99a990534737ad997 (diff) | |
download | linux-b9027e0816ebbced1248924beffc28f0146c0e72.tar.xz |
mt76: move chainmask in mt76_phy
Move chainmask from driver phy to mt76_phy since it is used by all
drivers. This is a preliminary patch to create a common mcu library used
by mt7615 and mt7921 drivers
Co-developed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7915/testmode.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7915/testmode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/testmode.c b/drivers/net/wireless/mediatek/mt76/mt7915/testmode.c index b58c91ea3fa5..06353de2e762 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/testmode.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/testmode.c @@ -316,7 +316,7 @@ mt7915_tm_set_params(struct mt76_phy *mphy, struct nlattr **tb, td->state == MT76_TM_STATE_OFF) return 0; - if (td->tx_antenna_mask & ~phy->chainmask) + if (td->tx_antenna_mask & ~mphy->chainmask) return -EINVAL; for (i = 0; i < ARRAY_SIZE(tm_change_map); i++) { |