mt76: do not report out-of-range rx nss
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Sat, 19 Jan 2019 15:00:26 +0000 (16:00 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 21 Jan 2019 20:47:58 +0000 (21:47 +0100)
commitf832898dff55f243081697b6e5773f7318c8a344
tree82f40ed2735eaf711a0d8dfffb11ccc2533bdff2
parente7173858c78a981788bde18930d1e16fd5203151
mt76: do not report out-of-range rx nss

Take into account device rx stream in mt76x02_mac_process_rate
in order to not report wrong number of rx spatial stream to mac80211.
The issue has been reported on mt76x0 device which is 1x1:1 however
the hw sometimes reports rx nss equal to 2

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c