qcacmn: Datapath init-deinit changes
Do a logical split of dp_soc_attach and dp_pdev_attach into Allocation and initialization and dp_soc_detach and dp_pdev_detach into de-initialization and free routines Change-Id: I23bdca0ca86db42a4d0b2554cd60d99bb207a647
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
e4a31a803d
commit
1f3652debc
@@ -490,7 +490,7 @@ htt_htc_pkt_free(struct htt_soc *soc, struct dp_htt_htc_pkt *pkt)
|
||||
* htt_htc_pkt_pool_free() - Free HTC packet pool
|
||||
* @htt_soc: HTT SOC handle
|
||||
*/
|
||||
static void
|
||||
void
|
||||
htt_htc_pkt_pool_free(struct htt_soc *soc)
|
||||
{
|
||||
struct dp_htt_htc_pkt_union *pkt, *next;
|
||||
@@ -3925,9 +3925,10 @@ struct htt_soc *htt_soc_attach(struct dp_soc *soc, HTC_HANDLE htc_handle)
|
||||
}
|
||||
if (i != MAX_PDEV_CNT) {
|
||||
for (j = 0; j < i; j++) {
|
||||
qdf_mem_free(htt_soc->pdevid_tt[i].umac_ttt);
|
||||
qdf_mem_free(htt_soc->pdevid_tt[i].lmac_ttt);
|
||||
qdf_mem_free(htt_soc->pdevid_tt[j].umac_ttt);
|
||||
qdf_mem_free(htt_soc->pdevid_tt[j].lmac_ttt);
|
||||
}
|
||||
qdf_mem_free(htt_soc);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user