Skip to content
Commit d55aa5e1 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

mt76: mt7603: fix input validation issues for powersave-filtered frames



Before extracting the tid out of the packet, check if it was qos-data.
Only accept tid values 0-7
Also, avoid accepting the hardware queue as skb queue mapping, it could
lead to an overrun. Instead, derive the hardware queue from the tid number,
in order to avoid issues with packets being filtered multiple times.
This also fixes a mismatch between hardware and software queue indexes.

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent c99dc3c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment