mt76: mt7615: fix throughput regression on DFS channels
[linux-2.6-microblaze.git] / drivers / net / wireless / mediatek / mt76 / mt7615 / main.c
index 277c22a..28bc76c 100644 (file)
@@ -282,26 +282,6 @@ static void mt7615_remove_interface(struct ieee80211_hw *hw,
        mt76_packet_id_flush(&dev->mt76, &mvif->sta.wcid);
 }
 
-static void mt7615_init_dfs_state(struct mt7615_phy *phy)
-{
-       struct mt76_phy *mphy = phy->mt76;
-       struct ieee80211_hw *hw = mphy->hw;
-       struct cfg80211_chan_def *chandef = &hw->conf.chandef;
-
-       if (hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)
-               return;
-
-       if (!(chandef->chan->flags & IEEE80211_CHAN_RADAR) &&
-           !(mphy->chandef.chan->flags & IEEE80211_CHAN_RADAR))
-               return;
-
-       if (mphy->chandef.chan->center_freq == chandef->chan->center_freq &&
-           mphy->chandef.width == chandef->width)
-               return;
-
-       phy->dfs_state = -1;
-}
-
 int mt7615_set_channel(struct mt7615_phy *phy)
 {
        struct mt7615_dev *dev = phy->dev;
@@ -314,7 +294,6 @@ int mt7615_set_channel(struct mt7615_phy *phy)
 
        set_bit(MT76_RESET, &phy->mt76->state);
 
-       mt7615_init_dfs_state(phy);
        mt76_set_channel(phy->mt76);
 
        if (is_mt7615(&dev->mt76) && dev->flash_eeprom) {