OSDN Git Service

mt76: mt76x02: only override control->sta on sw-encrypted tx
authorFelix Fietkau <nbd@nbd.name>
Thu, 25 Oct 2018 15:40:06 +0000 (17:40 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:21:42 +0000 (12:21 +0100)
commit59b55d066ff625f8613c563bd2ed705bce412fa8
treec1a3af1480f7f56c96c1487d7c4234fd5f6585d5
parent65b526a108264aeac769ec82cf33e5f966c9a1df
mt76: mt76x02: only override control->sta on sw-encrypted tx

control->sta is set to NULL early when encryption is turned on for the
station and info->control.hw_key is not set.
This code is missing a check for the 802.11 header protected flag, otherwise
it resets the station for other frames, e.g. client probing frames.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c