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

Commit acb6a63d authored by sivakanth reddy vaka's avatar sivakanth reddy vaka
Browse files

msm: ipa3: Change the hw version check for tethered stats



Added Changes to support hw tethered stats only when
wdi3 over gsi support is present.

Change-Id: I5ab7cf9772d88f31c36553902e60b090d437bbc8
Signed-off-by: default avatarsivakanth reddy vaka <svaka@codeaurora.org>
parent b318a6e0
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ int ipa_hw_stats_init(void)
		teth_stats_init->prod_mask = (
			IPA_CLIENT_BIT_32(IPA_CLIENT_MHI_PRIME_TETH_PROD) |
			IPA_CLIENT_BIT_32(IPA_CLIENT_USB_PROD));
		if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_5)
		if (ipa3_ctx->ipa_wdi3_over_gsi)
			teth_stats_init->prod_mask |=
			IPA_CLIENT_BIT_32(IPA_CLIENT_WLAN2_PROD);
		else
@@ -57,7 +57,7 @@ int ipa_hw_stats_init(void)
			teth_stats_init->dst_ep_mask[ep_index] =
				IPA_CLIENT_BIT_32(IPA_CLIENT_USB_CONS);

			if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_5)
			if (ipa3_ctx->ipa_wdi3_over_gsi)
				teth_stats_init->dst_ep_mask[ep_index] |=
				IPA_CLIENT_BIT_32(IPA_CLIENT_WLAN2_CONS);
			else
@@ -78,7 +78,7 @@ int ipa_hw_stats_init(void)
			IPA_CLIENT_BIT_32(IPA_CLIENT_Q6_WAN_PROD) |
			IPA_CLIENT_BIT_32(IPA_CLIENT_USB_PROD));

		if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_5)
		if (ipa3_ctx->ipa_wdi3_over_gsi)
			teth_stats_init->prod_mask |=
			IPA_CLIENT_BIT_32(IPA_CLIENT_WLAN2_PROD);
		else
@@ -102,7 +102,7 @@ int ipa_hw_stats_init(void)
			teth_stats_init->dst_ep_mask[ep_index] =
			IPA_CLIENT_BIT_32(IPA_CLIENT_USB_CONS);

			if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_5)
			if (ipa3_ctx->ipa_wdi3_over_gsi)
				teth_stats_init->dst_ep_mask[ep_index] |=
				IPA_CLIENT_BIT_32(IPA_CLIENT_WLAN2_CONS);
			else
@@ -131,7 +131,7 @@ int ipa_hw_stats_init(void)
			teth_stats_init->dst_ep_mask[ep_index] =
				IPA_CLIENT_BIT_32(IPA_CLIENT_USB_CONS);

			if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_5)
			if (ipa3_ctx->ipa_wdi3_over_gsi)
				teth_stats_init->dst_ep_mask[ep_index] |=
				IPA_CLIENT_BIT_32(IPA_CLIENT_WLAN2_CONS);
			else
+3 −3
Original line number Diff line number Diff line
@@ -3441,7 +3441,7 @@ static int rmnet_ipa3_query_tethering_stats_hw(
		}
	}

	if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_5)
	if (ipa3_ctx->ipa_wdi3_over_gsi)
		wlan_client = IPA_CLIENT_WLAN2_CONS;
	else
		wlan_client = IPA_CLIENT_WLAN1_CONS;
@@ -3524,7 +3524,7 @@ static int rmnet_ipa3_query_tethering_stats_hw(
		return rc;
	}

	if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_5)
	if (ipa3_ctx->ipa_wdi3_over_gsi)
		wlan_client = IPA_CLIENT_WLAN2_CONS;
	else
		wlan_client = IPA_CLIENT_WLAN1_CONS;
@@ -3649,7 +3649,7 @@ static int rmnet_ipa3_query_tethering_stats_hw(
	/* query WLAN UL stats */
	memset(con_stats, 0, sizeof(struct ipa_quota_stats_all));

	if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_5)
	if (ipa3_ctx->ipa_wdi3_over_gsi)
		rc = ipa_query_teth_stats(IPA_CLIENT_WLAN2_PROD,
			con_stats, reset);
	else