mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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:
parent
e8946af19c
commit
2b2adde18f
2 changed files with 9 additions and 0 deletions
|
|
@ -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) {}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue