qcacmn: Converged datapath APIs (set 1.1)

Add below changes:
1) Add peer handling functions.
2) Bring in the APIs under else(#else) part of compile time flags
   QCA_SUPPORT_TXRX_LOCAL_PEER_ID, QCA_COMPUTE_TX_DELAY and
   QCA_SUPPORT_TX_THROTTLE.

Change-Id: I08b101702a7d0d870e9fab9b8a3cc7cc19d3464f
CRs-Fixed: 993414
This commit is contained in:
Manjunathappa Prakash
2016-03-01 03:21:55 -08:00
committed by Vishwajith Upendra
parent 9c222b15b0
commit a22c2169fb
3 changed files with 27 additions and 2 deletions

View File

@@ -33,8 +33,21 @@
#ifndef _CDP_TXRX_TX_THROTTLE_H_
#define _CDP_TXRX_TX_THROTTLE_H_
#if defined(QCA_SUPPORT_TX_THROTTLE)
void ol_tx_throttle_init_period(struct ol_txrx_pdev_t *pdev, int period);
void ol_tx_throttle_set_level(struct ol_txrx_pdev_t *pdev, int level);
#else
static inline void ol_tx_throttle_set_level(struct ol_txrx_pdev_t *pdev,
int level)
{
/* no-op */
}
static inline void ol_tx_throttle_init_period(struct ol_txrx_pdev_t *pdev,
int period)
{
/* no-op */
}
#endif
#endif /* _CDP_TXRX_TX_THROTTLE_H_ */