From 74813038708c51db2d9408bcd772bb5e937650b8 Mon Sep 17 00:00:00 2001 From: Naman Padhiar Date: Mon, 3 Jun 2019 15:13:30 +0530 Subject: icnss: Synchronize idle shutdown and restart If WLAN interface is not brought up for certain amount of time after it is created, idle shutdown will happen to power off WLAN device. Idle restart will happen to power up WLAN device if WLAN is needed by user again. Add the support in platform driver. Change-Id: I63e85c7de20536fc4146e05146e72537095025e5 Signed-off-by: Naman Padhiar --- include/soc/qcom/icnss.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/soc') diff --git a/include/soc/qcom/icnss.h b/include/soc/qcom/icnss.h index 4de4cd5e89dc..716e28054e60 100644 --- a/include/soc/qcom/icnss.h +++ b/include/soc/qcom/icnss.h @@ -56,6 +56,8 @@ struct icnss_driver_ops { int (*suspend_noirq)(struct device *dev); int (*resume_noirq)(struct device *dev); int (*uevent)(struct device *dev, struct icnss_uevent_data *uevent); + int (*idle_shutdown)(struct device *dev); + int (*idle_restart)(struct device *dev); }; @@ -159,4 +161,6 @@ extern u8 *icnss_get_wlan_mac_address(struct device *dev, uint32_t *num); extern int icnss_trigger_recovery(struct device *dev); extern void icnss_block_shutdown(bool status); extern bool icnss_is_pdr(void); +extern int icnss_idle_restart(struct device *dev); +extern int icnss_idle_shutdown(struct device *dev); #endif /* _ICNSS_WLAN_H_ */ -- cgit v1.2.3