* [PATCH v2] Allow deepsleep_suspend function when wlan interface down
@ 2012-04-13 13:09 Ming Jiang
2012-04-16 6:14 ` Kalle Valo
0 siblings, 1 reply; 3+ messages in thread
From: Ming Jiang @ 2012-04-13 13:09 UTC (permalink / raw)
To: kvalo, ath6kl-devel, linux-wireless; +Cc: Ming Jiang
ath6kl: after wlan interface down. WLAN_ENABLED flags will be cleared.
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
Signed-off-by: Ming Jiang <mjiang@qca.qualcomm.com>
---
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 90420ee..c9fbfac 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -2154,8 +2154,10 @@ static int ath6kl_cfg80211_deepsleep_suspend(struct ath6kl *ar)
if (!vif)
return -EIO;
- if (!ath6kl_cfg80211_ready(vif))
+ if (!test_bit(WMI_READY, &ar->flag)) {
+ ath6kl_err("deepsleep failed as wmi is not ready\n");
return -EIO;
+ }
ath6kl_cfg80211_stop_all(ar);
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH v2] Allow deepsleep_suspend function when wlan interface down
@ 2012-04-13 13:05 Ming Jiang
0 siblings, 0 replies; 3+ messages in thread
From: Ming Jiang @ 2012-04-13 13:05 UTC (permalink / raw)
To: kvalo, ath6kl-devel, linux-wireless; +Cc: Ming Jiang
ath6kl: after wlan interface down. WLAN_ENABLED flags will be cleared.
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
Signed-off-by: Ming Jiang <mjiang@qca.qualcomm.com>
---
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 90420ee..c9fbfac 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -2154,8 +2154,10 @@ static int ath6kl_cfg80211_deepsleep_suspend(struct ath6kl *ar)
if (!vif)
return -EIO;
- if (!ath6kl_cfg80211_ready(vif))
+ if (!test_bit(WMI_READY, &ar->flag)) {
+ ath6kl_err("deepsleep failed as wmi is not ready\n");
return -EIO;
+ }
ath6kl_cfg80211_stop_all(ar);
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-16 6:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-13 13:09 [PATCH v2] Allow deepsleep_suspend function when wlan interface down Ming Jiang
2012-04-16 6:14 ` Kalle Valo
-- strict thread matches above, loose matches on Subject: below --
2012-04-13 13:05 Ming Jiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).