qcacmn: Replace void pointers with appropriate/common structure types
Void pointer usage may lead to memory corruption due to wrong pointer is typecasted. Hence define structure for all, and modules internally typecasting based on their type Change-Id: I6271ed8aa3f94254fd85f41962f23ea36895154e CRs-Fixed: 2182452
This commit is contained in:
@@ -101,7 +101,7 @@ QDF_STATUS target_if_ftm_cmd_send(struct wlan_objmgr_pdev *pdev,
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
handle = GET_WMI_HDL_FROM_PDEV(pdev);
|
||||
handle = get_wmi_unified_hdl_from_pdev(pdev);
|
||||
if (!handle) {
|
||||
target_if_err("null handle");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
@@ -126,7 +126,7 @@ QDF_STATUS target_if_ftm_attach(struct wlan_objmgr_psoc *psoc)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
handle = GET_WMI_HDL_FROM_PSOC(psoc);
|
||||
handle = get_wmi_unified_hdl_from_psoc(psoc);
|
||||
if (!handle) {
|
||||
target_if_err("null handle");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
@@ -154,7 +154,7 @@ QDF_STATUS target_if_ftm_detach(struct wlan_objmgr_psoc *psoc)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
handle = GET_WMI_HDL_FROM_PSOC(psoc);
|
||||
handle = get_wmi_unified_hdl_from_psoc(psoc);
|
||||
if (!handle) {
|
||||
target_if_err("null handle");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
Reference in New Issue
Block a user