Browse Source

Merge "qca-wifi: Replace void * tgt_if_handle with abstract type"

Linux Build Service Account 6 years ago
parent
commit
7cec258273

+ 1 - 1
target_if/cfr/src/target_if_cfr_wifi2_0.c

@@ -239,7 +239,7 @@ cfr_wifi2_0_init_pdev(struct wlan_objmgr_psoc *psoc,
 		return QDF_STATUS_E_FAILURE;
 
 	target_type = target_if_cfr_get_target_type(psoc);
-	tgt_hdl = (struct target_psoc_info *)wlan_psoc_get_tgt_if_handle(psoc);
+	tgt_hdl = wlan_psoc_get_tgt_if_handle(psoc);
 
 	if (tgt_hdl)
 		info = (&(tgt_hdl->info));

+ 2 - 2
umac/dfs/core/src/misc/dfs_zero_cac.c

@@ -2322,7 +2322,7 @@ void dfs_set_precac_enable(struct wlan_dfs *dfs, uint32_t value)
 	tx_ops = &psoc->soc_cb.tx_ops.target_tx_ops;
 	target_type = lmac_get_target_type(dfs->dfs_pdev_obj);
 
-	tgt_hdl = (struct target_psoc_info *)wlan_psoc_get_tgt_if_handle(psoc);
+	tgt_hdl = wlan_psoc_get_tgt_if_handle(psoc);
 	if (!tgt_hdl) {
 		dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "target_psoc_info is null");
 		return;
@@ -2424,7 +2424,7 @@ uint32_t dfs_get_precac_enable(struct wlan_dfs *dfs)
 		retval = 0;
 	}
 
-	tgt_hdl = (struct target_psoc_info *)wlan_psoc_get_tgt_if_handle(psoc);
+	tgt_hdl = wlan_psoc_get_tgt_if_handle(psoc);
 
 	info = (struct tgt_info *)(&tgt_hdl->info);
 	if (!tgt_hdl) {