[qca-nss-drv] Attach HAL ops according to target information
To enable single binary supporting multiple HAL, the nss_hal layer
must be compiled for all supported platforms and pick the correct
one with device tree information.
Change-Id: I48f0ed50c87ab8c6696f96129d41c36dacd3bf47
Signed-off-by: Stephen Wang <wstephen@codeaurora.org>
diff --git a/nss_freq.c b/nss_freq.c
index 4e1d1e1..e05b835 100644
--- a/nss_freq.c
+++ b/nss_freq.c
@@ -107,7 +107,7 @@
return NSS_TX_FAILURE;
}
- nss_hal_send_interrupt(nss_ctx->nmap, nss_ctx->h2n_desc_rings[NSS_IF_CMD_QUEUE].desc_ring.int_bit, NSS_REGS_H2N_INTR_STATUS_DATA_COMMAND_QUEUE);
+ nss_hal_send_interrupt(nss_ctx, NSS_H2N_INTR_DATA_COMMAND_QUEUE);
return NSS_TX_SUCCESS;
}