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

Commit 65b526a1 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

mt76: mt76x02: skip station tx status for non-sta wcid entries



Fixes a crash that could occur if a frame is sent to a station, but the
station's wcid was not used (e.g. for software encrypted mgmt tx)

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 1a4846fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -450,7 +450,7 @@ void mt76x02_send_tx_status(struct mt76x02_dev *dev,
	if (stat->wcid < ARRAY_SIZE(dev->mt76.wcid))
		wcid = rcu_dereference(dev->mt76.wcid[stat->wcid]);

	if (wcid) {
	if (wcid && wcid->sta) {
		void *priv;

		priv = msta = container_of(wcid, struct mt76x02_sta, wcid);