ath6kl: implement ath6kl_cfg80211_suspend()
This is in preparation for cutpower suspend feature. HIF layer makes the decision based on information provided by cfg80211 and what hardware actually supports. Then it calls ath6kl_cfg80211_suspend() to enable the chosen mode. Functionality should be the same, this is just preparation for more suspend modes (cutpower and wow). Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
@@ -757,19 +757,14 @@ static int ath6kl_sdio_suspend(struct ath6kl *ar)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ath6kl_deep_sleep_enable(ar);
|
||||
ath6kl_cfg80211_suspend(ar, ATH6KL_CFG_SUSPEND_DEEPSLEEP);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ath6kl_sdio_resume(struct ath6kl *ar)
|
||||
{
|
||||
if (ar->wmi->pwr_mode != ar->wmi->saved_pwr_mode) {
|
||||
if (ath6kl_wmi_powermode_cmd(ar->wmi, 0,
|
||||
ar->wmi->saved_pwr_mode) != 0)
|
||||
ath6kl_warn("ath6kl_sdio_resume: "
|
||||
"wmi_powermode_cmd failed\n");
|
||||
}
|
||||
ath6kl_cfg80211_resume(ar);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user