From 9cd0c75bb140483e8a8d91d763f7d1ee982e23e0 Mon Sep 17 00:00:00 2001 From: Rachit Kankane Date: Tue, 31 Jul 2018 16:26:38 +0530 Subject: [PATCH] qcacmn: Featurize P2P Listen Offload P2P Listen offload is not a requirement for Genoa, hence featurize P2P listen offload code to save memory foot-print for Genoa. Change-Id: I3c32b4ee2b37421e49acee4bd20d36e7a8a3bf77 CRs-Fixed: 2304555 --- wmi_unified_api.c | 8 +++++--- wmi_unified_tlv.c | 10 +++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/wmi_unified_api.c b/wmi_unified_api.c index a84d30782d..28e5ac0eb6 100644 --- a/wmi_unified_api.c +++ b/wmi_unified_api.c @@ -1032,7 +1032,7 @@ QDF_STATUS wmi_unified_set_p2pgo_noa_req_cmd(void *wmi_hdl, return QDF_STATUS_E_FAILURE; } -#ifdef CONVERGED_P2P_ENABLE +#ifdef FEATURE_P2P_LISTEN_OFFLOAD /** * wmi_unified_p2p_lo_start_cmd() - send p2p lo start request to fw * @wmi_hdl: wmi handle @@ -1073,13 +1073,13 @@ QDF_STATUS wmi_unified_p2p_lo_stop_cmd(void *wmi_hdl, uint8_t vdev_id) return QDF_STATUS_E_INVAL; } - if (wmi_handle->ops->send_p2p_lo_start_cmd) + if (wmi_handle->ops->send_p2p_lo_stop_cmd) return wmi_handle->ops->send_p2p_lo_stop_cmd(wmi_handle, vdev_id); return QDF_STATUS_E_FAILURE; } -#endif /* End of CONVERGED_P2P_ENABLE */ +#endif /* End of FEATURE_P2P_LISTEN_OFFLOAD*/ /** * wmi_get_temperature() - get pdev temperature req @@ -5791,6 +5791,7 @@ QDF_STATUS wmi_extract_swba_noa_info(void *wmi_hdl, void *evt_buf, } #ifdef CONVERGED_P2P_ENABLE +#ifdef FEATURE_P2P_LISTEN_OFFLOAD /** * wmi_extract_p2p_lo_stop_ev_param() - extract p2p lo stop param from event * @wmi_handle: wmi handle @@ -5815,6 +5816,7 @@ QDF_STATUS wmi_extract_p2p_lo_stop_ev_param(void *wmi_hdl, void *evt_buf, return QDF_STATUS_E_FAILURE; } +#endif /** * wmi_extract_p2p_noa_ev_param() - extract p2p noa param from event diff --git a/wmi_unified_tlv.c b/wmi_unified_tlv.c index 5598b3af8a..18e5bfcd87 100644 --- a/wmi_unified_tlv.c +++ b/wmi_unified_tlv.c @@ -3704,7 +3704,7 @@ end: return status; } -#ifdef CONVERGED_P2P_ENABLE +#ifdef FEATURE_P2P_LISTEN_OFFLOAD /** * send_p2p_lo_start_cmd_tlv() - send p2p lo start request to fw * @wmi_handle: wmi handle @@ -3845,7 +3845,7 @@ static QDF_STATUS send_p2p_lo_stop_cmd_tlv(wmi_unified_t wmi_handle, return QDF_STATUS_SUCCESS; } -#endif /* End of CONVERGED_P2P_ENABLE */ +#endif /* End of FEATURE_P2P_LISTEN_OFFLOAD */ /** * send_get_temperature_cmd_tlv() - get pdev temperature req @@ -18549,6 +18549,7 @@ static QDF_STATUS extract_p2p_noa_ev_param_tlv( return QDF_STATUS_SUCCESS; } +#ifdef FEATURE_P2P_LISTEN_OFFLOAD /** * extract_p2p_lo_stop_ev_param_tlv() - extract p2p lo stop * information from event @@ -18585,6 +18586,7 @@ static QDF_STATUS extract_p2p_lo_stop_ev_param_tlv( return QDF_STATUS_SUCCESS; } +#endif #endif /* End of CONVERGED_P2P_ENABLE */ /** @@ -21959,7 +21961,7 @@ struct wmi_ops tlv_ops = { .send_get_temperature_cmd = send_get_temperature_cmd_tlv, .send_set_p2pgo_oppps_req_cmd = send_set_p2pgo_oppps_req_cmd_tlv, .send_set_p2pgo_noa_req_cmd = send_set_p2pgo_noa_req_cmd_tlv, -#ifdef CONVERGED_P2P_ENABLE +#ifdef FEATURE_P2P_LISTEN_OFFLOAD .send_p2p_lo_start_cmd = send_p2p_lo_start_cmd_tlv, .send_p2p_lo_stop_cmd = send_p2p_lo_stop_cmd_tlv, #endif @@ -22244,8 +22246,10 @@ struct wmi_ops tlv_ops = { .extract_swba_noa_info = extract_swba_noa_info_tlv, #ifdef CONVERGED_P2P_ENABLE .extract_p2p_noa_ev_param = extract_p2p_noa_ev_param_tlv, +#ifdef FEATURE_P2P_LISTEN_OFFLOAD .extract_p2p_lo_stop_ev_param = extract_p2p_lo_stop_ev_param_tlv, +#endif #endif .extract_offchan_data_tx_compl_param = extract_offchan_data_tx_compl_param_tlv,