mt76: mt7615: fix adding active monitor interfaces
authorFelix Fietkau <nbd@nbd.name>
Sun, 2 Feb 2020 15:12:49 +0000 (16:12 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:06:09 +0000 (10:06 +0100)
Treat them the same as AP iftype internally for MCU commands

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

index 5df9521a654fa35c20905e743a1bbe3f0b04b9a6..f1321fc2f36271733fc704f1c89ae11c7e523fec 100644 (file)
@@ -97,6 +97,7 @@ static int get_omac_idx(enum nl80211_iftype type, u32 mask)
        int i;
 
        switch (type) {
+       case NL80211_IFTYPE_MONITOR:
        case NL80211_IFTYPE_AP:
        case NL80211_IFTYPE_MESH_POINT:
        case NL80211_IFTYPE_ADHOC: