mt76: mt76x0: remove redundant chandef copy
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 23 Aug 2019 08:52:16 +0000 (10:52 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 5 Sep 2019 16:14:11 +0000 (18:14 +0200)
We set dev->mt76.chandef in mt76_set_channel() already.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/phy.c

index 31f988e86d92381e4094bf07d57372de91adf6b9..1d00aa5da95b00fbd1e8acd6106e2cfcaeeb972f 100644 (file)
@@ -944,7 +944,6 @@ int mt76x0_phy_set_channel(struct mt76x02_dev *dev,
        freq1 = chandef->center_freq1;
        channel = chandef->chan->hw_value;
        rf_bw_band = (channel <= 14) ? RF_G_BAND : RF_A_BAND;
-       dev->mt76.chandef = *chandef;
 
        switch (chandef->width) {
        case NL80211_CHAN_WIDTH_40: