qcacld-3.0: Add macro protection for throughput level checking in rx cbk

Add macro protection for throughput level checking in rx callback.

Change-Id: I43c4a0cabb770b6ef9538b90e07fd218b40f743b
CRs-Fixed: 2522061
This commit is contained in:
Hangtian Zhu 2019-09-12 10:47:42 +08:00 • committed by nshrivas
commit 2b2adde18f
2 changed files with 9 additions and 0 deletions

View file

@ -331,7 +331,14 @@ void wlan_hdd_classify_pkt(struct sk_buff *skb);
#ifdef WLAN_FEATURE_DP_BUS_BANDWIDTH
void hdd_reset_tcp_delack(struct hdd_context *hdd_ctx);
#ifdef RX_PERFORMANCE
bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx);
#else
static inline bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx)
{
return false;
}
#endif
#define HDD_MSM_CFG(msm_cfg) msm_cfg
#else
static inline void hdd_reset_tcp_delack(struct hdd_context *hdd_ctx) {}

View file

@ -2859,6 +2859,7 @@ void hdd_reset_tcp_delack(struct hdd_context *hdd_ctx)
*
* Return: True if vote level is high
*/
#ifdef RX_PERFORMANCE
bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx)
{
if (hdd_ctx->cur_vote_level < PLD_BUS_WIDTH_MEDIUM)
@ -2867,6 +2868,7 @@ bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx)
return true;
}
#endif
#endif
#ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
/**