|
@@ -54,8 +54,8 @@ QDF_STATUS pmo_deinit(void);
|
|
|
*
|
|
|
* Return QDF_STATUS status in case of success else return error
|
|
|
*/
|
|
|
-QDF_STATUS pmo_psoc_object_created_notification(
|
|
|
- struct wlan_objmgr_psoc *psoc, void *arg);
|
|
|
+QDF_STATUS pmo_psoc_object_created_notification(struct wlan_objmgr_psoc *psoc,
|
|
|
+ void *arg);
|
|
|
|
|
|
/**
|
|
|
* pmo_psoc_object_destroyed_notification(): pmo psoc delete handler
|
|
@@ -66,8 +66,8 @@ QDF_STATUS pmo_psoc_object_created_notification(
|
|
|
*
|
|
|
* Return QDF_STATUS status in case of success else return error
|
|
|
*/
|
|
|
-QDF_STATUS pmo_psoc_object_destroyed_notification(
|
|
|
- struct wlan_objmgr_psoc *psoc, void *arg);
|
|
|
+QDF_STATUS pmo_psoc_object_destroyed_notification(struct wlan_objmgr_psoc *psoc,
|
|
|
+ void *arg);
|
|
|
|
|
|
/**
|
|
|
* pmo_vdev_object_created_notification(): pmo vdev create handler
|
|
@@ -78,8 +78,8 @@ QDF_STATUS pmo_psoc_object_destroyed_notification(
|
|
|
*
|
|
|
* Return QDF_STATUS status in case of success else return error
|
|
|
*/
|
|
|
-QDF_STATUS pmo_vdev_object_created_notification(
|
|
|
- struct wlan_objmgr_vdev *vdev, void *arg);
|
|
|
+QDF_STATUS pmo_vdev_object_created_notification(struct wlan_objmgr_vdev *vdev,
|
|
|
+ void *arg);
|
|
|
|
|
|
/**
|
|
|
* pmo_vdev_ready() - handles vdev ready in firmware event
|
|
@@ -102,8 +102,8 @@ QDF_STATUS pmo_vdev_ready(struct wlan_objmgr_vdev *vdev);
|
|
|
*
|
|
|
* Return QDF_STATUS status in case of success else return error
|
|
|
*/
|
|
|
-QDF_STATUS pmo_vdev_object_destroyed_notification(
|
|
|
- struct wlan_objmgr_vdev *vdev, void *arg);
|
|
|
+QDF_STATUS pmo_vdev_object_destroyed_notification(struct wlan_objmgr_vdev *vdev,
|
|
|
+ void *arg);
|
|
|
|
|
|
/**
|
|
|
* pmo_register_suspend_handler(): register suspend handler for components
|
|
@@ -113,10 +113,9 @@ QDF_STATUS pmo_vdev_object_destroyed_notification(
|
|
|
*
|
|
|
* Return QDF_STATUS status -in case of success else return error
|
|
|
*/
|
|
|
-QDF_STATUS pmo_register_suspend_handler(
|
|
|
- enum wlan_umac_comp_id id,
|
|
|
- pmo_psoc_suspend_handler handler,
|
|
|
- void *arg);
|
|
|
+QDF_STATUS pmo_register_suspend_handler(enum wlan_umac_comp_id id,
|
|
|
+ pmo_psoc_suspend_handler handler,
|
|
|
+ void *arg);
|
|
|
|
|
|
/**
|
|
|
* pmo_unregister_suspend_handler():unregister suspend handler for components
|
|
@@ -125,9 +124,8 @@ QDF_STATUS pmo_register_suspend_handler(
|
|
|
*
|
|
|
* Return QDF_STATUS status -in case of success else return error
|
|
|
*/
|
|
|
-QDF_STATUS pmo_unregister_suspend_handler(
|
|
|
- enum wlan_umac_comp_id id,
|
|
|
- pmo_psoc_suspend_handler handler);
|
|
|
+QDF_STATUS pmo_unregister_suspend_handler(enum wlan_umac_comp_id id,
|
|
|
+ pmo_psoc_suspend_handler handler);
|
|
|
|
|
|
/**
|
|
|
* pmo_register_resume_handler(): API to register resume handler for components
|
|
@@ -137,10 +135,9 @@ QDF_STATUS pmo_unregister_suspend_handler(
|
|
|
*
|
|
|
* Return QDF_STATUS status - in case of success else return error
|
|
|
*/
|
|
|
-QDF_STATUS pmo_register_resume_handler(
|
|
|
- enum wlan_umac_comp_id id,
|
|
|
- pmo_psoc_resume_handler handler,
|
|
|
- void *arg);
|
|
|
+QDF_STATUS pmo_register_resume_handler(enum wlan_umac_comp_id id,
|
|
|
+ pmo_psoc_resume_handler handler,
|
|
|
+ void *arg);
|
|
|
|
|
|
/**
|
|
|
* pmo_unregister_resume_handler(): unregister resume handler for components
|
|
@@ -149,9 +146,8 @@ QDF_STATUS pmo_register_resume_handler(
|
|
|
*
|
|
|
* Return QDF_STATUS status - in case of success else return error
|
|
|
*/
|
|
|
-QDF_STATUS pmo_unregister_resume_handler(
|
|
|
- enum wlan_umac_comp_id id,
|
|
|
- pmo_psoc_resume_handler handler);
|
|
|
+QDF_STATUS pmo_unregister_resume_handler(enum wlan_umac_comp_id id,
|
|
|
+ pmo_psoc_resume_handler handler);
|
|
|
|
|
|
/**
|
|
|
* pmo_suspend_all_components(): API to suspend all component
|
|
@@ -161,7 +157,7 @@ QDF_STATUS pmo_unregister_resume_handler(
|
|
|
* Return QDF_STATUS status - in case of success else return error
|
|
|
*/
|
|
|
QDF_STATUS pmo_suspend_all_components(struct wlan_objmgr_psoc *psoc,
|
|
|
- enum qdf_suspend_type suspend_type);
|
|
|
+ enum qdf_suspend_type suspend_type);
|
|
|
|
|
|
/**
|
|
|
* pmo_resume_all_components(): API to resume all component
|
|
@@ -171,7 +167,7 @@ QDF_STATUS pmo_suspend_all_components(struct wlan_objmgr_psoc *psoc,
|
|
|
* Return QDF_STATUS status - in case of success else return error
|
|
|
*/
|
|
|
QDF_STATUS pmo_resume_all_components(struct wlan_objmgr_psoc *psoc,
|
|
|
- enum qdf_suspend_type suspend_type);
|
|
|
+ enum qdf_suspend_type suspend_type);
|
|
|
|
|
|
/**
|
|
|
* pmo_register_pause_bitmap_notifier(): API to register pause bitmap notifier
|
|
@@ -180,20 +176,17 @@ QDF_STATUS pmo_resume_all_components(struct wlan_objmgr_psoc *psoc,
|
|
|
*
|
|
|
* Return QDF_STATUS status - in case of success else return error
|
|
|
*/
|
|
|
-QDF_STATUS pmo_register_pause_bitmap_notifier(
|
|
|
- struct wlan_objmgr_psoc *psoc,
|
|
|
- pmo_notify_pause_bitmap handler);
|
|
|
+QDF_STATUS pmo_register_pause_bitmap_notifier(struct wlan_objmgr_psoc *psoc,
|
|
|
+ pmo_notify_pause_bitmap handler);
|
|
|
|
|
|
/**
|
|
|
- * pmo_unregister_pause_bitmap_notifier(): API to unregister pause bitmap notifier
|
|
|
+ * pmo_unregister_pause_bitmap_notifier(): API to unregister pause bitmap
|
|
|
+ * notifier
|
|
|
* @psoc: objmgr psoc handle
|
|
|
- * @handler: pause bitmap updated notifier
|
|
|
*
|
|
|
* Return QDF_STATUS status - in case of success else return error
|
|
|
*/
|
|
|
-QDF_STATUS pmo_unregister_pause_bitmap_notifier(
|
|
|
- struct wlan_objmgr_psoc *psoc,
|
|
|
- pmo_notify_pause_bitmap handler);
|
|
|
+QDF_STATUS pmo_unregister_pause_bitmap_notifier(struct wlan_objmgr_psoc *psoc);
|
|
|
|
|
|
/**
|
|
|
* pmo_register_get_pause_bitmap(): API to get register pause bitmap notifier
|
|
@@ -203,17 +196,16 @@ QDF_STATUS pmo_unregister_pause_bitmap_notifier(
|
|
|
* Return QDF_STATUS status - in case of success else return error
|
|
|
*/
|
|
|
QDF_STATUS pmo_register_get_pause_bitmap(struct wlan_objmgr_psoc *psoc,
|
|
|
- pmo_get_pause_bitmap handler);
|
|
|
+ pmo_get_pause_bitmap handler);
|
|
|
|
|
|
/**
|
|
|
- * pmo_unregister_get_pause_bitmap(): API to unregister get pause bitmap callback
|
|
|
+ * pmo_unregister_get_pause_bitmap(): API to unregister get pause bitmap
|
|
|
+ * callback
|
|
|
* @psoc: objmgr psoc handle
|
|
|
- * @handler: pause bitmap updated notifier
|
|
|
*
|
|
|
* Return QDF_STATUS status - in case of success else return error
|
|
|
*/
|
|
|
-QDF_STATUS pmo_unregister_get_pause_bitmap(struct wlan_objmgr_psoc *psoc,
|
|
|
- pmo_get_pause_bitmap handler);
|
|
|
+QDF_STATUS pmo_unregister_get_pause_bitmap(struct wlan_objmgr_psoc *psoc);
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -225,20 +217,40 @@ QDF_STATUS pmo_unregister_get_pause_bitmap(struct wlan_objmgr_psoc *psoc,
|
|
|
* Return QDF_STATUS status - in case of success else return error
|
|
|
*/
|
|
|
QDF_STATUS pmo_register_is_device_in_low_pwr_mode(struct wlan_objmgr_psoc *psoc,
|
|
|
- pmo_is_device_in_low_pwr_mode handler);
|
|
|
+ pmo_is_device_in_low_pwr_mode handler);
|
|
|
|
|
|
/**
|
|
|
* pmo_unregister_is_device_in_low_pwr_mode(): API to unregister device power
|
|
|
* save check notifier.
|
|
|
* @psoc: objmgr psoc handle
|
|
|
- * @handler: device power save check notifier
|
|
|
*
|
|
|
* Return QDF_STATUS status - in case of success else return error
|
|
|
*/
|
|
|
-QDF_STATUS pmo_unregister_is_device_in_low_pwr_mode(
|
|
|
- struct wlan_objmgr_psoc *psoc,
|
|
|
- pmo_is_device_in_low_pwr_mode handler);
|
|
|
-#else
|
|
|
+QDF_STATUS
|
|
|
+pmo_unregister_is_device_in_low_pwr_mode(struct wlan_objmgr_psoc *psoc);
|
|
|
+
|
|
|
+/**
|
|
|
+ * pmo_register_get_cfg_int_callback(): API to register callback for getting
|
|
|
+ * cfg integer from mlme
|
|
|
+ * @psoc: objmgr psoc handle
|
|
|
+ * @handler: get cfg integer callback notifier
|
|
|
+ *
|
|
|
+ * Return QDF_STATUS status - in case of success else return error
|
|
|
+ */
|
|
|
+QDF_STATUS pmo_register_get_cfg_int_callback(struct wlan_objmgr_psoc *psoc,
|
|
|
+ pmo_get_cfg_int handler);
|
|
|
+
|
|
|
+/**
|
|
|
+ * pmo_unregister_get_cfg_int_callback(): API to unregister callback that gets
|
|
|
+ * cfg integer from mlme
|
|
|
+ * @psoc: objmgr psoc handle
|
|
|
+ *
|
|
|
+ * Return QDF_STATUS status - in case of success else return error
|
|
|
+ */
|
|
|
+QDF_STATUS pmo_unregister_get_cfg_int_callback(struct wlan_objmgr_psoc *psoc);
|
|
|
+
|
|
|
+#else /* WLAN_POWER_MANAGEMENT_OFFLOAD */
|
|
|
+
|
|
|
static inline QDF_STATUS pmo_init(void)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
@@ -250,22 +262,19 @@ static inline QDF_STATUS pmo_deinit(void)
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_psoc_object_created_notification(
|
|
|
- struct wlan_objmgr_psoc *psoc, void *arg)
|
|
|
+pmo_psoc_object_created_notification(struct wlan_objmgr_psoc *psoc, void *arg)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_psoc_object_destroyed_notification(
|
|
|
- struct wlan_objmgr_psoc *psoc, void *arg)
|
|
|
+pmo_psoc_object_destroyed_notification(struct wlan_objmgr_psoc *psoc, void *arg)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_vdev_object_created_notification(
|
|
|
- struct wlan_objmgr_vdev *vdev, void *arg)
|
|
|
+pmo_vdev_object_created_notification(struct wlan_objmgr_vdev *vdev, void *arg)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
@@ -277,106 +286,103 @@ pmo_vdev_ready(struct wlan_objmgr_vdev *vdev)
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_vdev_object_destroyed_notification(
|
|
|
- struct wlan_objmgr_vdev *vdev, void *arg)
|
|
|
+pmo_vdev_object_destroyed_notification(struct wlan_objmgr_vdev *vdev, void *arg)
|
|
|
+{
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+pmo_register_suspend_handler(enum wlan_umac_comp_id id,
|
|
|
+ pmo_psoc_suspend_handler handler,
|
|
|
+ void *arg)
|
|
|
+{
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
+}
|
|
|
+
|
|
|
+static inline QDF_STATUS
|
|
|
+pmo_unregister_suspend_handler(enum wlan_umac_comp_id id,
|
|
|
+ pmo_psoc_suspend_handler handler)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_register_suspend_handler(
|
|
|
- enum wlan_umac_comp_id id,
|
|
|
- pmo_psoc_suspend_handler handler,
|
|
|
- void *arg)
|
|
|
+pmo_register_resume_handler(enum wlan_umac_comp_id id,
|
|
|
+ pmo_psoc_resume_handler handler,
|
|
|
+ void *arg)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_unregister_suspend_handler(
|
|
|
- enum wlan_umac_comp_id id,
|
|
|
- pmo_psoc_suspend_handler handler)
|
|
|
+pmo_unregister_resume_handler(enum wlan_umac_comp_id id,
|
|
|
+ pmo_psoc_resume_handler handler)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_register_resume_handler(
|
|
|
- enum wlan_umac_comp_id id,
|
|
|
- pmo_psoc_resume_handler handler,
|
|
|
- void *arg)
|
|
|
+pmo_suspend_all_components(struct wlan_objmgr_psoc *psoc,
|
|
|
+ enum qdf_suspend_type suspend_type)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_unregister_resume_handler(
|
|
|
- enum wlan_umac_comp_id id,
|
|
|
- pmo_psoc_resume_handler handler)
|
|
|
+pmo_resume_all_components(struct wlan_objmgr_psoc *psoc,
|
|
|
+ enum qdf_suspend_type suspend_type)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_suspend_all_components(
|
|
|
- struct wlan_objmgr_psoc *psoc,
|
|
|
- enum qdf_suspend_type suspend_type)
|
|
|
+pmo_register_pause_bitmap_notifier(struct wlan_objmgr_psoc *psoc,
|
|
|
+ pmo_notify_pause_bitmap handler)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_resume_all_components(
|
|
|
- struct wlan_objmgr_psoc *psoc,
|
|
|
- enum qdf_suspend_type suspend_type)
|
|
|
+pmo_unregister_pause_bitmap_notifier(struct wlan_objmgr_psoc *psoc)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_register_pause_bitmap_notifier(
|
|
|
- struct wlan_objmgr_psoc *psoc,
|
|
|
- pmo_notify_pause_bitmap handler)
|
|
|
+pmo_register_get_pause_bitmap(struct wlan_objmgr_psoc *psoc,
|
|
|
+ pmo_get_pause_bitmap handler)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_unregister_pause_bitmap_notifier(
|
|
|
- struct wlan_objmgr_psoc *psoc,
|
|
|
- pmo_notify_pause_bitmap handler)
|
|
|
+pmo_unregister_get_pause_bitmap(struct wlan_objmgr_psoc *psoc)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_register_get_pause_bitmap(
|
|
|
- struct wlan_objmgr_psoc *psoc,
|
|
|
- pmo_get_pause_bitmap handler)
|
|
|
+pmo_register_is_device_in_low_pwr_mode(struct wlan_objmgr_psoc *psoc,
|
|
|
+ pmo_is_device_in_low_pwr_mode handler)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_unregister_get_pause_bitmap(
|
|
|
- struct wlan_objmgr_psoc *psoc,
|
|
|
- pmo_get_pause_bitmap handler)
|
|
|
+pmo_unregister_is_device_in_low_pwr_mode(struct wlan_objmgr_psoc *psoc)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_register_is_device_in_low_pwr_mode(
|
|
|
- struct wlan_objmgr_psoc *psoc,
|
|
|
- pmo_is_device_in_low_pwr_mode handler)
|
|
|
+pmo_register_get_cfg_int_callback(struct wlan_objmgr_psoc *psoc,
|
|
|
+ pmo_get_cfg_int handler)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
static inline QDF_STATUS
|
|
|
-pmo_unregister_is_device_in_low_pwr_mode(
|
|
|
- struct wlan_objmgr_psoc *psoc,
|
|
|
- pmo_is_device_in_low_pwr_mode handler)
|
|
|
+pmo_unregister_get_cfg_int_callback(struct wlan_objmgr_psoc *psoc)
|
|
|
{
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|