projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef836a7
)
mt76: mt76x0: remove redundant chandef copy
author
Stanislaw Gruszka
<sgruszka@redhat.com>
Fri, 23 Aug 2019 08:52:16 +0000
(10:52 +0200)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c
b/drivers/net/wireless/mediatek/mt76/mt76x0/phy.c
index 31f988e86d92381e4094bf07d57372de91adf6b9..1d00aa5da95b00fbd1e8acd6106e2cfcaeeb972f 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt76x0/phy.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt76x0/phy.c
@@
-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: