From 378b638c70c0d8d88907bfb74a660030aa5595cb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 23 Feb 2022 11:31:05 +0100 Subject: [PATCH] mt76: mt7915: fix unused variable with testmode disabled Signed-off-by: Felix Fietkau --- mt7915/mcu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mt7915/mcu.c b/mt7915/mcu.c index b529b53e1..63df27bf5 100644 --- a/mt7915/mcu.c +++ b/mt7915/mcu.c @@ -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