]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
wcn36xx: remove powersaving for wcn3620
authorAndy Green <andy.green@linaro.org>
Mon, 12 Jan 2015 14:08:45 +0000 (22:08 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 14 Mar 2018 02:42:09 +0000 (02:42 +0000)
WCN3620 powersaving mode is not stable.  Disable it if we're
on a wcn3620 chip type.

Signed-off-by: Andy Green <andy.green@linaro.org>
drivers/net/wireless/ath/wcn36xx/main.c

index 58024a9529793e770398c32bd25a06f2f29cc38e..03bcb980f32ea55c0b7748447bde566034478f5c 100644 (file)
@@ -940,6 +940,10 @@ static int wcn36xx_init_ieee80211(struct wcn36xx *wcn)
        ieee80211_hw_set(wcn->hw, SIGNAL_DBM);
        ieee80211_hw_set(wcn->hw, HAS_RATE_CONTROL);
 
+       /* 3620 powersaving currently unstable */
+       if (wcn->chip_version == WCN36XX_CHIP_3620)
+               wcn->hw->flags &= ~IEEE80211_HW_SUPPORTS_PS;
+
        wcn->hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
                BIT(NL80211_IFTYPE_AP) |
                BIT(NL80211_IFTYPE_ADHOC) |