diff options
author | Ming Jiang <mjiang@qca.qualcomm.com> | 2012-04-13 09:09:25 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-04-16 02:13:39 -0400 |
commit | 48f27587aad1e1630104672b9e20d9d721ea8718 (patch) | |
tree | 2e436a25a24831dbcefb52077db3c19fd5f7eabe /drivers/net/wireless/ath/ath6kl | |
parent | 08c6100967103a26f4cf58b404205747733a8018 (diff) |
ath6kl: allow deepsleep_suspend function when wlan interface down
Aafter wlan interface is down WLAN_ENABLED flags will be cleared and
deepsleep_suspend function will be blocked in this senario. This patch
allows deepsleep_suspend function when wlan interface down by removed
the WLAN_ENABLED flag checking.
kvalo: fix commit log
Signed-off-by: Ming Jiang <mjiang@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/cfg80211.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index fffae8768bc7..c5e90d30c672 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c | |||
@@ -2196,8 +2196,10 @@ static int ath6kl_cfg80211_deepsleep_suspend(struct ath6kl *ar) | |||
2196 | if (!vif) | 2196 | if (!vif) |
2197 | return -EIO; | 2197 | return -EIO; |
2198 | 2198 | ||
2199 | if (!ath6kl_cfg80211_ready(vif)) | 2199 | if (!test_bit(WMI_READY, &ar->flag)) { |
2200 | ath6kl_err("deepsleep failed as wmi is not ready\n"); | ||
2200 | return -EIO; | 2201 | return -EIO; |
2202 | } | ||
2201 | 2203 | ||
2202 | ath6kl_cfg80211_stop_all(ar); | 2204 | ath6kl_cfg80211_stop_all(ar); |
2203 | 2205 | ||