• Felix Fietkau's avatar
    mt76: mt7603: fix input validation issues for powersave-filtered frames · d55aa5e1
    Felix Fietkau authored
    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>
    d55aa5e1
dma.c 5.62 KB