Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b63ec888 authored by Yu Tian's avatar Yu Tian Committed by Gerrit - the friendly Code Review server
Browse files

qcacld-3.0: revert TDLS pkt statistics changes

TDLS pkts statistics API cost 10% CPU cycle of whole RX
thread. It's optimized in another change from TDLS team to
remove excessive lock/unlock. So original change is not needed.

Change-Id: Ica1dd6bf8a94a4bef6045b07228bd547aeda3a00
CRs-Fixed: 2930306
parent c4b7b367
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -428,7 +428,14 @@ void hdd_reset_tcp_delack(struct hdd_context *hdd_ctx);
 * Return: None
 */
void hdd_reset_tcp_adv_win_scale(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) {}
+2 −0
Original line number Diff line number Diff line
@@ -3312,6 +3312,7 @@ void hdd_reset_tcp_adv_win_scale(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)
@@ -3320,6 +3321,7 @@ bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx)
		return true;
}
#endif
#endif

#ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
/**