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

Commit 8713437f authored by Hrishikesh Vidwans's avatar Hrishikesh Vidwans
Browse files

wil6210: update vr profile defaults



This patch sets agg_wsize to 16 when VR profile is set,
and resets it to default value when VR profile is disabled.

Change-Id: I5ed18f7f8c361d771d656985d710376aa1d41e08
Signed-off-by: default avatarHrishikesh Vidwans <hvidwans@codeaurora.org>
parent 4bd3d726
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: ISC
/*
 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc.
 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/moduleparam.h>
@@ -22,6 +22,7 @@
#define WIL_BOARD_FILE_MAX_NAMELEN 128
#define WIL6210_ITR_VR_RX_MAX_BURST_DURATION (5) /* usec */
#define WIL6210_VR_TX_RING_ORDER 10
#define WIL6210_VR_AGG_WSIZE 16

bool debug_fw; /* = false; */
module_param(debug_fw, bool, 0444);
@@ -1596,6 +1597,7 @@ int wil_vr_update_profile(struct wil6210_priv *wil, u8 profile)
		drop_if_ring_full = false;
		wil->rx_max_burst_duration =
			WIL6210_ITR_RX_MAX_BURST_DURATION_DEFAULT;
		agg_wsize = 0;

		return 0;
	}
@@ -1609,6 +1611,7 @@ int wil_vr_update_profile(struct wil6210_priv *wil, u8 profile)
	tx_ring_order = WIL6210_VR_TX_RING_ORDER;
	drop_if_ring_full = true;
	wil->rx_max_burst_duration = WIL6210_ITR_VR_RX_MAX_BURST_DURATION;
	agg_wsize = WIL6210_VR_AGG_WSIZE;

	return 0;
}