qcacld-3.0: Setup CDP interface for flushing RX queue

Refactor flush rx queue function call based on soc by adding an
interface to CDP funtion indirection table.

Change-Id: I2d05acd023baf156c5b0752447d76d0e9e92ff53
CRs-fixed: 2023399
diff --git a/core/dp/ol/inc/ol_txrx_osif_api.h b/core/dp/ol/inc/ol_txrx_osif_api.h
index a5f41b0..64dcdab 100644
--- a/core/dp/ol/inc/ol_txrx_osif_api.h
+++ b/core/dp/ol/inc/ol_txrx_osif_api.h
@@ -89,11 +89,4 @@
 
 void ol_txrx_flush_rx_frames(struct ol_txrx_peer_t *peer,
 			     bool drop);
-/**
- * ol_txrx_flush_cache_rx_queue() - flush cache rx queue frame
- *
- * Return: None
- */
-void ol_txrx_flush_cache_rx_queue(void);
-
 #endif /* _OL_TXRX_OSIF_API__H_ */
diff --git a/core/dp/txrx/ol_txrx.c b/core/dp/txrx/ol_txrx.c
index a324dd3..ff1ef22 100644
--- a/core/dp/txrx/ol_txrx.c
+++ b/core/dp/txrx/ol_txrx.c
@@ -2275,7 +2275,7 @@
 	qdf_atomic_dec(&peer->flush_in_progress);
 }
 
-void ol_txrx_flush_cache_rx_queue(void)
+static void ol_txrx_flush_cache_rx_queue(void)
 {
 	uint8_t sta_id;
 	struct ol_txrx_peer_t *peer;
@@ -5316,6 +5316,7 @@
 	.txrx_mgmt_tx_cb_set = ol_txrx_mgmt_tx_cb_set,
 	.txrx_data_tx_cb_set = ol_txrx_data_tx_cb_set,
 	.txrx_get_tx_pending = ol_txrx_get_tx_pending,
+	.flush_cache_rx_queue = ol_txrx_flush_cache_rx_queue,
 	.txrx_fw_stats_get = ol_txrx_fw_stats_get
 	/* TODO: Add other functions */
 };