Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 187617c5 authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by Felix Fietkau
Browse files

mt76: mt76x0: remove redundant chandef copy



We set dev->mt76.chandef in mt76_set_channel() already.

Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent ef836a71
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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: