From 15650678574fdf725a6bca8eaebf698987cf5847 Mon Sep 17 00:00:00 2001 From: Krunal Soni Date: Tue, 14 Nov 2017 15:42:01 -0800 Subject: [PATCH] qcacld-3.0: Remove unused structure while sending probe resp template While sending probe response template down to firmware, driver populates some items in data-structure which is not getting used. Remove those unused items and send only what is needed. CRs-Fixed: 2148056 Change-Id: I1878f523f0f88c354854dfdb75e60e66c4ecb0e8 --- core/wma/src/wma_mgmt.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c index 227d7550a811..f34899d2d311 100644 --- a/core/wma/src/wma_mgmt.c +++ b/core/wma/src/wma_mgmt.c @@ -2351,15 +2351,12 @@ static int wmi_unified_probe_rsp_tmpl_send(tp_wma_handle wma, uint8_t vdev_id, tpSendProbeRespParams probe_rsp_info) { - uint8_t *frm; uint64_t adjusted_tsf_le; struct ieee80211_frame *wh; struct wmi_probe_resp_params params; WMA_LOGD(FL("Send probe response template for vdev %d"), vdev_id); - frm = probe_rsp_info->pProbeRespTemplate; - /* * Make the TSF offset negative so probe response in the same * staggered batch have the same TSF. @@ -2367,19 +2364,14 @@ static int wmi_unified_probe_rsp_tmpl_send(tp_wma_handle wma, adjusted_tsf_le = cpu_to_le64(0ULL - wma->interfaces[vdev_id].tsfadjust); /* Update the timstamp in the probe response buffer with adjusted TSF */ - wh = (struct ieee80211_frame *)frm; + wh = (struct ieee80211_frame *)probe_rsp_info->pProbeRespTemplate; A_MEMCPY(&wh[1], &adjusted_tsf_le, sizeof(adjusted_tsf_le)); - params.pProbeRespTemplate = probe_rsp_info->pProbeRespTemplate; - params.probeRespTemplateLen = probe_rsp_info->probeRespTemplateLen; - qdf_mem_copy(params.bssId, probe_rsp_info->bssId, - IEEE80211_ADDR_LEN); - qdf_mem_copy(params.ucProxyProbeReqValidIEBmap, - probe_rsp_info->ucProxyProbeReqValidIEBmap, - 8 * sizeof(uint32_t)); + params.prb_rsp_template_len = probe_rsp_info->probeRespTemplateLen; + params.prb_rsp_template_frm = probe_rsp_info->pProbeRespTemplate; return wmi_unified_probe_rsp_tmpl_send_cmd(wma->wmi_handle, vdev_id, - ¶ms, frm); + ¶ms); } /**