diff options
| author | Naman Padhiar <npadhiar@codeaurora.org> | 2019-06-03 15:13:30 +0530 |
|---|---|---|
| committer | Naman Padhiar <npadhiar@codeaurora.org> | 2019-08-04 02:14:34 +0530 |
| commit | 74813038708c51db2d9408bcd772bb5e937650b8 (patch) | |
| tree | ec3e5ce859a98a84723a1b8e2b923b507de96a7a /include | |
| parent | ba309f5e08f4744ca641e4dfe0771fb0926c74de (diff) | |
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 <npadhiar@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/soc/qcom/icnss.h | 4 |
1 files changed, 4 insertions, 0 deletions
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_ */ |
