Skip to content

Commit

Permalink
mt76: mt7915: fix unused variable with testmode disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Feb 23, 2022
1 parent c67df0d commit 378b638
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mt7915/mcu.c
Expand Up @@ -2771,7 +2771,6 @@ int mt7915_mcu_set_chan_info(struct mt7915_phy *phy, int cmd)
struct mt7915_dev *dev = phy->dev;
struct cfg80211_chan_def *chandef = &phy->mt76->chandef;
int freq1 = chandef->center_freq1;
bool ext_phy = phy != &dev->phy;
struct {
u8 control_ch;
u8 center_ch;
Expand Down Expand Up @@ -2807,7 +2806,7 @@ int mt7915_mcu_set_chan_info(struct mt7915_phy *phy, int cmd)
req.tx_streams_num = fls(phy->mt76->test.tx_antenna_mask);
req.rx_streams = phy->mt76->test.tx_antenna_mask;

if (ext_phy)
if (phy != &dev->phy)
req.rx_streams >>= dev->chainshift;
}
#endif
Expand Down

0 comments on commit 378b638

Please sign in to comment.