mt76: mt76x0: remove redundant chandef copy
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>
This commit is contained in:
parent
ef836a71ae
commit
187617c55c
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user