qcacmn: IPA changes to support SDX+Pine

IPA changes to support SDX+Pine.

Change-Id: I66ad2a2c3e2f142c54df3e35c867ee827ac1d687
CRs-Fixed: 3079952
This commit is contained in:
Himanshu Batra
2021-09-30 12:25:18 +05:30
committed by Madan Koyyalamudi
szülő db8e2c1604
commit 78fb9d70d7
14 fájl változott, egészen pontosan 342 új sor hozzáadva és 109 régi sor törölve

Fájl megtekintése

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2018, 2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -27,24 +28,14 @@
#ifdef IPA_OFFLOAD
#include "wlan_ipa_public_struct.h"
/**
* target_if_ipa_register_tx_ops() - Register IPA component TX OPS
* @ipa_tx_op: IPA if transmit op
* @tx_ops: pointer to tx_ops structure
*
* Return: None
* Return: QDF_STATUS
*/
void target_if_ipa_register_tx_ops(ipa_uc_offload_control_req *ipa_tx_op);
/**
* target_if_ipa_register_intrabss_ops() - Register IPA component INTRABSS OPS
* @ipa_intrabss_op: IPA if intrabss transmit op
*
* Return: None
*/
void
target_if_ipa_register_intrabss_ops(ipa_intrabss_control_req *ipa_intrabss_op);
QDF_STATUS
target_if_ipa_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops);
#endif /* IPA_OFFLOAD */
#endif /* _TARGET_IF_IPA_H_ */

Fájl megtekintése

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2018, 2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -44,14 +45,7 @@ target_if_ipa_uc_offload_control_req(struct wlan_objmgr_psoc *psoc,
get_wmi_unified_hdl_from_psoc(psoc), req);
}
void target_if_ipa_register_tx_ops(ipa_uc_offload_control_req *ipa_tx_op)
{
*ipa_tx_op = target_if_ipa_uc_offload_control_req;
}
/**
* target_if_ipa_intrabss_control_req() - send IPA intrabss control to FW
* @psoc: pointer to PSOC object
* @req: IPA intra bss enable/disable control param
*
* Return: QDF_STATUS_SUCCESS on success
@@ -69,14 +63,27 @@ target_if_ipa_intrabss_control_req(struct wlan_objmgr_psoc *psoc,
return QDF_STATUS_E_FAILURE;
param.vdev_id = req->vdev_id;
param.param_id = WMI_VDEV_PARAM_INTRA_BSS_FWD;
param.param_id = wmi_vdev_param_intra_bss_fwd;
param.param_value = req->enable;
return wmi_unified_vdev_set_param_send(wmi_handle, &param);
}
void
target_if_ipa_register_intrabss_ops(ipa_intrabss_control_req *ipa_intrabss_op)
QDF_STATUS
target_if_ipa_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)
{
*ipa_intrabss_op = target_if_ipa_intrabss_control_req;
struct wlan_lmac_if_ipa_tx_ops *ipa_ops;
if (!tx_ops) {
target_if_err("tx ops is NULL!");
return QDF_STATUS_E_INVAL;
}
ipa_ops = &tx_ops->ipa_ops;
ipa_ops->ipa_uc_offload_control_req =
target_if_ipa_uc_offload_control_req;
ipa_ops->ipa_intrabss_control_req = target_if_ipa_intrabss_control_req;
return QDF_STATUS_SUCCESS;
}