diff options
| author | Krunal Soni <ksoni@codeaurora.org> | 2016-04-22 18:43:20 -0700 |
|---|---|---|
| committer | Vishwajith Upendra <vishwaji@codeaurora.org> | 2016-04-27 17:00:22 -0700 |
| commit | ab793347f67cf4b716a022a151f7cc3ea6ea2f84 (patch) | |
| tree | f7056ba5167a63246cb6ca81fb7198cffc3ea173 | |
| parent | eda6d7ec5077f0dab7b7914f40dfd89a7d2cd2de (diff) | |
qcacld-3.0: Fix incorrect mac addr size while doing mem copy
There are few instance where accidently mac address size got set
to some incorrect value.
Supply correct mac address size macro to resolve the issue.
CRs-Fixed: 1007399
Change-Id: I0bdd7ac0c241d1e22b003576c370b0ce2333a0dd
| -rw-r--r-- | core/wma/src/wma_features.c | 2 | ||||
| -rw-r--r-- | core/wma/src/wma_mgmt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c index 23312de758f2..e43515e04b49 100644 --- a/core/wma/src/wma_features.c +++ b/core/wma/src/wma_features.c @@ -5949,7 +5949,7 @@ QDF_STATUS wma_set_tdls_offchan_mode(WMA_HANDLE handle, params.oper_class = chan_switch_params->oper_class; params.is_responder = chan_switch_params->is_responder; qdf_mem_copy(params.peer_mac_addr, chan_switch_params->peer_mac_addr, - WMI_ETH_LEN); + IEEE80211_ADDR_LEN); ret = wmi_unified_set_tdls_offchan_mode_cmd(wma_handle->wmi_handle, ¶ms); diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c index e9fe6441471c..e7a0ca05d3ab 100644 --- a/core/wma/src/wma_mgmt.c +++ b/core/wma/src/wma_mgmt.c @@ -1986,7 +1986,7 @@ static int wmi_unified_probe_rsp_tmpl_send(tp_wma_handle wma, params.pProbeRespTemplate = probe_rsp_info->pProbeRespTemplate; params.probeRespTemplateLen = probe_rsp_info->probeRespTemplateLen; qdf_mem_copy(params.bssId, probe_rsp_info->bssId, - WMI_ETH_LEN); + IEEE80211_ADDR_LEN); qdf_mem_copy(params.ucProxyProbeReqValidIEBmap, probe_rsp_info->ucProxyProbeReqValidIEBmap, 8 * sizeof(uint32_t)); |
