qcacmn: Move HTT usage from core DP
Remove dereferencing of htt_soc structure from dp layer and instead use HTT APIs. Change-Id: I6b796f9b6504c763e6df2cf49b15bf3eecfbdf69 CRs-Fixed: 2483401
This commit is contained in:
@@ -3130,6 +3130,31 @@ int htt_soc_attach_target(void *htt_soc)
|
||||
return htt_h2t_ver_req_msg(soc);
|
||||
}
|
||||
|
||||
void htt_set_htc_handle(struct htt_soc *htt_soc, HTC_HANDLE htc_soc)
|
||||
{
|
||||
htt_soc->htc_soc = htc_soc;
|
||||
}
|
||||
|
||||
HTC_HANDLE htt_get_htc_handle(struct htt_soc *htt_soc)
|
||||
{
|
||||
return htt_soc->htc_soc;
|
||||
}
|
||||
|
||||
struct htt_soc *htt_soc_attach(struct dp_soc *soc, HTC_HANDLE htc_handle)
|
||||
{
|
||||
struct htt_soc *htt_soc = NULL;
|
||||
|
||||
htt_soc = qdf_mem_malloc(sizeof(*htt_soc));
|
||||
if (!htt_soc) {
|
||||
dp_err("HTT attach failed");
|
||||
return NULL;
|
||||
}
|
||||
htt_soc->dp_soc = soc;
|
||||
htt_soc->htc_soc = htc_handle;
|
||||
HTT_TX_MUTEX_INIT(&htt_soc->htt_tx_mutex);
|
||||
|
||||
return htt_soc;
|
||||
}
|
||||
|
||||
#if defined(WDI_EVENT_ENABLE) && !defined(REMOVE_PKT_LOG)
|
||||
/*
|
||||
@@ -3592,8 +3617,6 @@ QDF_STATUS htt_soc_htc_prealloc(struct htt_soc *soc)
|
||||
{
|
||||
int i;
|
||||
|
||||
HTT_TX_MUTEX_INIT(&soc->htt_tx_mutex);
|
||||
|
||||
soc->htt_htc_pkt_freelist = NULL;
|
||||
/* pre-allocate some HTC_PACKET objects */
|
||||
for (i = 0; i < HTT_HTC_PKT_POOL_INIT_SIZE; i++) {
|
||||
|
Reference in New Issue
Block a user