3f111f2faea58b2aec2d116a2bdc98d8a473416f
Currently in a case where only RX page pool is enabled, when RX page
pool buffers are forwarded by the network stack to the driver for
TX due to IP forwarding, it is resulting in a NULL DMA address mapping.
Since the RX page pool NBUFs have struct sk_buff::pp_recycle flag set,
driver will end up calling dma_sync_single_for_device() for taking
care of the cache ops in the transmit direction. When TX page pool
feature is not enabled, NULL DMA address will be passed to the
dma_sync_single_for_device() API resulting in assert.
Check the status of TX page pool feature before invoking
dma_sync_single_for_device() to fix this issue.
CRs-Fixed: 4145181
Change-Id: I8ddb8f020d9a9d9fe6d8d969a58ecbcad7b52062
(cherry picked from commit cb44c3edd5)
This is CNSS WLAN Host Driver for products starting from iHelium
Description
Languages
C
98.9%
C++
0.7%
Makefile
0.3%
Starlark
0.1%