mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt76x0: remove redundant chandef copy
We set dev->mt76.chandef in mt76_set_channel() already. Signed-off-by: Stanislaw Gruszka <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
0167bfa7b2
commit
1d2acd5639
@@ -952,7 +952,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:
|
||||
|
||||
Reference in New Issue
Block a user