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

Commit 8f5a0cbe authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wil6210: fix invalid sta statistics update"

parents 9b12b813 4048b186
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1150,7 +1150,7 @@ int wil_tx_sring_handler(struct wil6210_priv *wil,
	/* Total number of completed descriptors in all descriptor rings */
	int desc_cnt = 0;
	int cid;
	struct wil_net_stats *stats = NULL;
	struct wil_net_stats *stats;
	struct wil_tx_enhanced_desc *_d;
	unsigned int ring_id;
	unsigned int num_descs;
@@ -1200,8 +1200,7 @@ int wil_tx_sring_handler(struct wil6210_priv *wil,
		ndev = vif_to_ndev(vif);

		cid = wil->ring2cid_tid[ring_id][0];
		if (cid < WIL6210_MAX_CID)
			stats = &wil->sta[cid].stats;
		stats = (cid < WIL6210_MAX_CID ? &wil->sta[cid].stats : NULL);

		wil_dbg_txrx(wil,
			     "tx_status: completed desc_ring (%d), num_descs (%d)\n",