mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7915: fix unused variable with testmode disabled
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-2
@@ -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;
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user