From 37ce7097c7d597c20163cccf505e51ad992127b1 Mon Sep 17 00:00:00 2001 From: Venkateswara Swamy Bandaru Date: Thu, 9 Aug 2018 17:00:30 +0530 Subject: [PATCH] qcacmn: Add static compilation option to enable DP polling Add static compilation option to enable DP polling irrespective of HIF polling is enabled or not. Change-Id: I64544a8f1a6f56eba9ddbf200c9157a165e68e9d CRs-Fixed: 2292401 --- dp/wifi3.0/dp_main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 7571d090e4ed..91502023d14c 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -1263,6 +1263,12 @@ static QDF_STATUS dp_soc_interrupt_attach_wrapper(void *txrx_soc) } } #else +#if defined(DP_INTR_POLL_BASED) && DP_INTR_POLL_BASED +static QDF_STATUS dp_soc_interrupt_attach_wrapper(void *txrx_soc) +{ + return dp_soc_attach_poll(txrx_soc); +} +#else static QDF_STATUS dp_soc_interrupt_attach_wrapper(void *txrx_soc) { struct dp_soc *soc = (struct dp_soc *)txrx_soc; @@ -1273,6 +1279,7 @@ static QDF_STATUS dp_soc_interrupt_attach_wrapper(void *txrx_soc) return dp_soc_interrupt_attach(txrx_soc); } #endif +#endif static void dp_soc_interrupt_map_calculate_integrated(struct dp_soc *soc, int intr_ctx_num, int *irq_id_map, int *num_irq_r)