mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-11 19:05:09 +07:00
ath6kl: Move ath6kl_cfg80211_stop() call specific to deep sleep and cut pwr
ath6kl_cfg80211_stop() call is not applicable for WOW mode. Hence moving this call to deep sleep and cut pwr specific cases. Signed-off-by: Raja Mani <rmani@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
parent
dd6c0c63b4
commit
524441e3a7
@ -1759,10 +1759,11 @@ int ath6kl_cfg80211_suspend(struct ath6kl *ar,
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ath6kl_cfg80211_stop(ar);
|
|
||||||
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case ATH6KL_CFG_SUSPEND_DEEPSLEEP:
|
case ATH6KL_CFG_SUSPEND_DEEPSLEEP:
|
||||||
|
|
||||||
|
ath6kl_cfg80211_stop(ar);
|
||||||
|
|
||||||
/* save the current power mode before enabling power save */
|
/* save the current power mode before enabling power save */
|
||||||
ar->wmi->saved_pwr_mode = ar->wmi->pwr_mode;
|
ar->wmi->saved_pwr_mode = ar->wmi->pwr_mode;
|
||||||
|
|
||||||
@ -1777,6 +1778,9 @@ int ath6kl_cfg80211_suspend(struct ath6kl *ar,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ATH6KL_CFG_SUSPEND_CUTPOWER:
|
case ATH6KL_CFG_SUSPEND_CUTPOWER:
|
||||||
|
|
||||||
|
ath6kl_cfg80211_stop(ar);
|
||||||
|
|
||||||
if (ar->state == ATH6KL_STATE_OFF) {
|
if (ar->state == ATH6KL_STATE_OFF) {
|
||||||
ath6kl_dbg(ATH6KL_DBG_SUSPEND,
|
ath6kl_dbg(ATH6KL_DBG_SUSPEND,
|
||||||
"suspend hw off, no action for cutpower\n");
|
"suspend hw off, no action for cutpower\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user