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

Commit 67acad5f authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by John W. Linville
Browse files

iwlwifi: fix ack health for WiFi/BT combo devices



Combo devices have TX statistics on different place, because
struct statistics_rx_bt and struct statistics_rx have different
size. User proper values on combo devices instead of random data.

Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Acked-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f266526d
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -1419,8 +1419,13 @@ bool iwl_good_ack_health(struct iwl_priv *priv, struct iwl_rx_packet *pkt)
	if (priv->_agn.agg_tids_count)
	if (priv->_agn.agg_tids_count)
		return true;
		return true;


	if (iwl_bt_statistics(priv)) {
		cur = &pkt->u.stats_bt.tx;
		old = &priv->_agn.statistics_bt.tx;
	} else {
		cur = &pkt->u.stats.tx;
		cur = &pkt->u.stats.tx;
		old = &priv->_agn.statistics.tx;
		old = &priv->_agn.statistics.tx;
	}


	actual_delta = le32_to_cpu(cur->actual_ack_cnt) -
	actual_delta = le32_to_cpu(cur->actual_ack_cnt) -
		       le32_to_cpu(old->actual_ack_cnt);
		       le32_to_cpu(old->actual_ack_cnt);