qcacmn: Move TDLS feature code under mcc macro
Create a wrapper API and move TDLS feature code under mcc macro Change-Id: I98a8faf96dc23c6c5486cf30656bcf7facd0ba58 CRs-Fixed: 3360587
This commit is contained in:

committed by
Madan Koyyalamudi

parent
b823977572
commit
0ec15d3777
@@ -2459,6 +2459,32 @@ fail_return:
|
|||||||
return nbuf;
|
return nbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* dp_tdls_tx_comp_free_buff() - Free non std buffer when TDLS flag is set
|
||||||
|
* @soc: Soc handle
|
||||||
|
* @desc: software Tx descriptor to be processed
|
||||||
|
*
|
||||||
|
* Return: 0 if Success
|
||||||
|
*/
|
||||||
|
#ifdef FEATURE_WLAN_TDLS
|
||||||
|
static inline int
|
||||||
|
dp_tdls_tx_comp_free_buff(struct dp_soc *soc, struct dp_tx_desc_s *desc)
|
||||||
|
{
|
||||||
|
/* If it is TDLS mgmt, don't unmap or free the frame */
|
||||||
|
if (desc->flags & DP_TX_DESC_FLAG_TDLS_FRAME) {
|
||||||
|
dp_non_std_htt_tx_comp_free_buff(soc, desc);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
static inline int
|
||||||
|
dp_tdls_tx_comp_free_buff(struct dp_soc *soc, struct dp_tx_desc_s *desc)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dp_tx_comp_free_buf() - Free nbuf associated with the Tx Descriptor
|
* dp_tx_comp_free_buf() - Free nbuf associated with the Tx Descriptor
|
||||||
* @soc: Soc handle
|
* @soc: Soc handle
|
||||||
@@ -2477,11 +2503,8 @@ qdf_nbuf_t dp_tx_comp_free_buf(struct dp_soc *soc, struct dp_tx_desc_s *desc,
|
|||||||
if (!nbuf)
|
if (!nbuf)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* If it is TDLS mgmt, don't unmap or free the frame */
|
if (!dp_tdls_tx_comp_free_buff(soc, desc))
|
||||||
if (desc->flags & DP_TX_DESC_FLAG_TDLS_FRAME) {
|
|
||||||
dp_non_std_htt_tx_comp_free_buff(soc, desc);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
|
|
||||||
/* 0 : MSDU buffer, 1 : MLE */
|
/* 0 : MSDU buffer, 1 : MLE */
|
||||||
if (desc->msdu_ext_desc) {
|
if (desc->msdu_ext_desc) {
|
||||||
|
Reference in New Issue
Block a user