dataipa: adding new xr wlan filter reserve/install API's

changes to enable xr-wdi-opt-dpath and handle wlan filter
reserve/install/remove API's and it cb's accordingly.

Change-Id: I1c11e15d3b2af89318bc29d6afebdf6797cdd039
Signed-off-by: Prasad Arepalli <quic_parepall@quicinc.com>
This commit is contained in:
Prasad Arepalli
2024-01-24 12:36:39 +05:30
committed by Jagadeesh Ponduru
parent 90e8adec6c
commit 554231f83f
3 changed files with 272 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
/*
* Copyright (c) 2018 - 2021, The Linux Foundation. All rights reserved.
*
* Copyright (c) 2021-2023, Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2024, Qualcomm Innovation Center, Inc. All rights reserved.
*/
#ifndef _IPA_WDI3_H_
@@ -447,6 +447,43 @@ int ipa_wdi_opt_dpath_remove_all_filter_req(
struct ipa_wlan_opt_dp_remove_all_filter_req_msg_v01 *req,
struct ipa_wlan_opt_dp_remove_all_filter_resp_msg_v01 *resp);
/**
* ipa_xr_wdi_opt_dpath_rsrv_filter_req - Client should call this function to
* send filter reservation request to wlan
*
*
* @Return 0 on success, negative on failure
*/
int ipa_xr_wdi_opt_dpath_rsrv_filter_req(void);
/**
* ipa_xr_wdi_opt_dpath_add_filter_req - Client should call this function to
* send filter add request to wlan
*
*
* @Return 0 on success, negative on failure
*/
int ipa_xr_wdi_opt_dpath_add_filter_req(struct ipa_wdi_opt_dpath_flt_add_cb_params *req,
u32 stream_id);
/**
* ipa_xr_wdi_opt_dpath_remove_filter_req - Client should call this function to
* send filter remove request to wlan
*
*
* @Return 0 on success, negative on failure
*/
int ipa_xr_wdi_opt_dpath_remove_filter_req(u32 stream_id);
/**
* ipa_xr_wdi_opt_dpath_remove_all_filter_req - Client should call this function to
* send release reservation request to wlan
*
*
* @Return 0 on success, negative on failure
*/
int ipa_xr_wdi_opt_dpath_remove_all_filter_req(void);
/** ipa_get_wdi_version - return wdi version
*
* @Return void
@@ -941,6 +978,27 @@ static int ipa_wdi_opt_dpath_remove_all_filter_req(
return -EPERM;
}
static int ipa_xr_wdi_opt_dpath_rsrv_filter_req(void)
{
return -EPERM;
}
static int ipa_xr_wdi_opt_dpath_add_filter_req(struct ipa_wdi_opt_dpath_flt_add_cb_params *req,
u32 stream_id)
{
return -EPERM;
}
static int ipa_xr_wdi_opt_dpath_remove_filter_req(u32 stream_id)
{
return -EPERM;
}
static int ipa_xr_wdi_opt_dpath_remove_all_filter_req(void)
{
return -EPERM;
}
#endif /* IS_ENABLED(CONFIG_IPA3) */
#endif /* _IPA_WDI3_H_ */