qcacmn: Remove dependency on WMA layer for green AP component
Remove dependency on WMA layer for green AP component by registering green AP events through target_if layer. Change-Id: I8fe9079c6ba6b23cd5f1d98a7d1b333fde31f19b CRs-Fixed: 2178143
这个提交包含在:
@@ -43,6 +43,20 @@ struct wlan_green_ap_egap_params {
|
||||
uint32_t egap_feature_flags;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wlan_green_ap_egap_status_info - enhance green ap params
|
||||
* @status: egap status
|
||||
* @mac_id: mac id
|
||||
* @tx_chainmask: tx chainmask
|
||||
* @rx_chainmask: rx chainmask
|
||||
*/
|
||||
struct wlan_green_ap_egap_status_info {
|
||||
uint32_t status;
|
||||
uint32_t mac_id;
|
||||
uint32_t tx_chainmask;
|
||||
uint32_t rx_chainmask;
|
||||
};
|
||||
|
||||
/**
|
||||
* wlan_green_ap_init() - initialize green ap component
|
||||
*
|
||||
|
@@ -61,19 +61,6 @@ QDF_STATUS ucfg_green_ap_update_user_config(
|
||||
*/
|
||||
QDF_STATUS ucfg_green_ap_enable_egap(struct wlan_objmgr_pdev *pdev);
|
||||
|
||||
/**
|
||||
* ucfg_green_ap_target_config() - Handle Green AP target configuration
|
||||
* @pdev: pdev pointer
|
||||
* @fw_egap_support: fw egap support
|
||||
*
|
||||
* This API stores the fw enhanced green AP support capability
|
||||
* in green ap ctx.
|
||||
*
|
||||
* Return: Success or Failure
|
||||
*/
|
||||
QDF_STATUS ucfg_green_ap_target_config(struct wlan_objmgr_pdev *pdev,
|
||||
bool fw_egap_support);
|
||||
|
||||
/**
|
||||
* ucfg_green_ap_set_ps_config() - Set ps value
|
||||
* @pdev: pdev pointer
|
||||
|
@@ -86,30 +86,6 @@ QDF_STATUS ucfg_green_ap_enable_egap(struct wlan_objmgr_pdev *pdev)
|
||||
return green_ap_tx_ops->enable_egap(pdev, &green_ap_ctx->egap_params);
|
||||
}
|
||||
|
||||
QDF_STATUS ucfg_green_ap_target_config(struct wlan_objmgr_pdev *pdev,
|
||||
bool fw_egap_support)
|
||||
{
|
||||
struct wlan_pdev_green_ap_ctx *green_ap_ctx;
|
||||
|
||||
if (!pdev) {
|
||||
green_ap_err("pdev context passed is NULL");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
green_ap_ctx = wlan_objmgr_pdev_get_comp_private_obj(
|
||||
pdev, WLAN_UMAC_COMP_GREEN_AP);
|
||||
if (!green_ap_ctx) {
|
||||
green_ap_err("green ap context obtained is NULL");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
qdf_spin_lock_bh(&green_ap_ctx->lock);
|
||||
green_ap_ctx->egap_params.fw_egap_support = fw_egap_support;
|
||||
qdf_spin_unlock_bh(&green_ap_ctx->lock);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
QDF_STATUS ucfg_green_ap_set_ps_config(struct wlan_objmgr_pdev *pdev,
|
||||
uint8_t value)
|
||||
{
|
||||
|
在新工单中引用
屏蔽一个用户