qcacmn: Move monitor related fields from soc/pdev to mon_soc/mon_pdev
PATCH[6/7]: This patch consists following changes: -Move monitor related pdev variables to struct dp_mon_pdev -Move monitor relted soc variables to struct dp_mon_soc -Move cookie to monitor link desc va to monitor file -Add APIs to access monitor related variables -Add dummy APIs to build without monitor support. Change-Id: I032a480b1383d061f984cee3ba6b10ac7a0ff350 CRs-Fixed: 2983781
Este commit está contenido en:

cometido por
Madan Koyyalamudi

padre
c4796962ca
commit
53fe7000ba
@@ -1081,40 +1081,6 @@ void *dp_rx_cookie_2_link_desc_va(struct dp_soc *soc,
|
||||
return link_desc_va;
|
||||
}
|
||||
|
||||
/**
|
||||
* dp_rx_cookie_2_mon_link_desc_va() - Converts cookie to a virtual address of
|
||||
* the MSDU Link Descriptor
|
||||
* @pdev: core txrx pdev context
|
||||
* @buf_info: buf_info includes cookie that used to lookup virtual address of
|
||||
* link descriptor. Normally this is just an index into a per pdev array.
|
||||
*
|
||||
* This is the VA of the link descriptor in monitor mode destination ring,
|
||||
* that HAL layer later uses to retrieve the list of MSDU's for a given MPDU.
|
||||
*
|
||||
* Return: void *: Virtual Address of the Rx descriptor
|
||||
*/
|
||||
static inline
|
||||
void *dp_rx_cookie_2_mon_link_desc_va(struct dp_pdev *pdev,
|
||||
struct hal_buf_info *buf_info,
|
||||
int mac_id)
|
||||
{
|
||||
void *link_desc_va;
|
||||
struct qdf_mem_multi_page_t *pages;
|
||||
uint16_t page_id = LINK_DESC_COOKIE_PAGE_ID(buf_info->sw_cookie);
|
||||
|
||||
pages = &pdev->soc->mon_link_desc_pages[mac_id];
|
||||
if (!pages)
|
||||
return NULL;
|
||||
|
||||
if (qdf_unlikely(page_id >= pages->num_pages))
|
||||
return NULL;
|
||||
|
||||
link_desc_va = pages->dma_pages[page_id].page_v_addr_start +
|
||||
(buf_info->paddr - pages->dma_pages[page_id].page_p_addr);
|
||||
|
||||
return link_desc_va;
|
||||
}
|
||||
|
||||
#ifndef QCA_HOST_MODE_WIFI_DISABLED
|
||||
/*
|
||||
* dp_rx_intrabss_fwd() - API for intrabss fwd. For EAPOL
|
||||
|
Referencia en una nueva incidencia
Block a user