mt76: mt7615: fix incorrect settings in mesh mode
authorRyder Lee <ryder.lee@mediatek.com>
Thu, 13 Jun 2019 07:13:30 +0000 (15:13 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 27 Jun 2019 10:58:13 +0000 (12:58 +0200)
Fix wrong settings that will drop packets due to hardware's RX table
searching flow.

Fixes: f072c7ba2150 ("mt76: mt7615: enable support for mesh")
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c

index f3dd76f..90a6211 100644 (file)
@@ -970,7 +970,7 @@ int mt7615_mcu_add_wtbl(struct mt7615_dev *dev, struct ieee80211_vif *vif,
                .rx_wtbl = {
                        .tag = cpu_to_le16(WTBL_RX),
                        .len = cpu_to_le16(sizeof(struct wtbl_rx)),
-                       .rca1 = vif->type == NL80211_IFTYPE_STATION,
+                       .rca1 = vif->type != NL80211_IFTYPE_AP,
                        .rca2 = 1,
                        .rv = 1,
                },