mt76: mt7663: disable RDD commands
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 2 Apr 2020 13:06:34 +0000 (15:06 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 12 May 2020 17:52:28 +0000 (19:52 +0200)
Disable dfs RDD mcu commands for mt7663 driver since they are not
currently supported by the 7663 firmware

Co-developed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c

index 6b013e8..e889146 100644 (file)
@@ -2047,6 +2047,9 @@ int mt7615_dfs_init_radar_detector(struct mt7615_phy *phy)
        bool ext_phy = phy != &dev->phy;
        int err;
 
+       if (is_mt7663(&dev->mt76))
+               return 0;
+
        if (dev->mt76.region == NL80211_DFS_UNSET) {
                phy->dfs_state = -1;
                if (phy->rdd_state)