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

Commit 5e8bc5bb authored by Ashok Vuyyuru's avatar Ashok Vuyyuru
Browse files

msm: ipa4: Don't query wigig client tethering stats for all targets



Add changes to query wigig pipe tethering stats only
if IPA_CLIENT_WIGIG_PROD client supported, otherwise
ignore query wigig pipe stats.

Change-Id: I656ec832336672399752090d885873256bfae232
Signed-off-by: default avatarAshok Vuyyuru <avuyyuru@codeaurora.org>
parent 88ba2367
Loading
Loading
Loading
Loading
+34 −28
Original line number Diff line number Diff line
@@ -3589,9 +3589,12 @@ static int rmnet_ipa3_query_tethering_stats_hw(
	data->ipv6_tx_bytes +=
		con_stats->client[index].num_ipv6_bytes;

	if (ipa3_get_ep_mapping(IPA_CLIENT_WIGIG_PROD) !=
			IPA_EP_NOT_ALLOCATED) {
		/* query WIGIG UL stats */
		memset(con_stats, 0, sizeof(struct ipa_quota_stats_all));
	rc = ipa_query_teth_stats(IPA_CLIENT_WIGIG_PROD, con_stats, reset);
		rc = ipa_query_teth_stats(IPA_CLIENT_WIGIG_PROD, con_stats,
									reset);
		if (rc) {
			IPAERR("IPA_CLIENT_WIGIG_PROD query failed %d\n", rc);
			kfree(con_stats);
@@ -3618,6 +3621,9 @@ static int rmnet_ipa3_query_tethering_stats_hw(
			con_stats->client[index].num_ipv4_bytes;
		data->ipv6_tx_bytes +=
			con_stats->client[index].num_ipv6_bytes;
	} else {
		IPAWANDBG("IPA_CLIENT_WIGIG_PROD client not supported\n");
	}

	IPAWANDBG("v4_tx_p(%lu) v6_tx_p(%lu) v4_tx_b(%lu) v6_tx_b(%lu)\n",
		(unsigned long) data->ipv4_tx_packets,