mt76: mt7615: do not always reset the dfs state setting the channel
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 3 Apr 2020 19:01:56 +0000 (21:01 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 12 May 2020 17:52:30 +0000 (19:52 +0200)
commitfdb786cce0ef3615dcbb30d8baf06a1d4cb7a344
treefc9ba01af02d71fb97726936855a18b42da1b53f
parent044883e37ddad04690e57f037e9eae48287e2613
mt76: mt7615: do not always reset the dfs state setting the channel

mac80211/hostapd runs mt7615_set_channel with the same channel
parameters sending multiple rdd commands overwriting the previous ones.
This behaviour is causing tpt issues on dfs channels.
Fix the issue checking new channel freq/width with the running one.

Fixes: 5dabdf71e94e ("mt76: mt7615: add multiple wiphy support to the dfs support code")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/main.c