qcacmn: Create vdev rsp wakelock api in target if

Currently, wakelock apis are in wma. Create vdev resp wakelock apis
in target_if. Plan is to remove it latter from wma.

Change-Id: Ib410ee2404751544db2f291b466ff0d6ff248e8f
CRs-Fixed: 2441245
This commit is contained in:
sandeep puligilla
2019-04-12 16:07:24 -07:00
committed by nshrivas
parent 2529ae1c8a
commit 370e41c760
7 changed files with 372 additions and 1 deletions

View File

@@ -511,6 +511,22 @@ struct vdev_mlme_ops {
struct vdev_mlme_obj *vdev_mlme);
};
#ifdef FEATURE_VDEV_RSP_WAKELOCK
/**
* struct wlan_vdev_wakelock - vdev wake lock sub structure
* @start_wakelock: wakelock for vdev start
* @stop_wakelock: wakelock for vdev stop
* @delete_wakelock: wakelock for vdev delete
* @wmi_cmd_rsp_runtime_lock: run time lock
*/
struct vdev_mlme_wakelock {
qdf_wake_lock_t start_wakelock;
qdf_wake_lock_t stop_wakelock;
qdf_wake_lock_t delete_wakelock;
qdf_runtime_lock_t wmi_cmd_rsp_runtime_lock;
};
#endif
/**
* struct vdev_mlme_obj - VDEV MLME component object
* @proto: VDEV MLME proto substructure
@@ -522,6 +538,7 @@ struct vdev_mlme_ops {
* @ops: VDEV MLME callback table
* @ext_vdev_ptr: VDEV MLME legacy pointer
* @vdev_rt: VDEV response timer
* @vdev_wakelock: vdev wakelock sub structure
*/
struct vdev_mlme_obj {
struct vdev_mlme_proto proto;
@@ -535,6 +552,9 @@ struct vdev_mlme_obj {
struct vdev_mlme_ops *ops;
void *ext_vdev_ptr;
struct vdev_response_timer vdev_rt;
#ifdef FEATURE_VDEV_RSP_WAKELOCK
struct vdev_mlme_wakelock vdev_wakelock;
#endif
};
/**