]> Git Repo - J-linux.git/commitdiff
mt76: mt7915: fix MESH ifdef block
authorRandy Dunlap <[email protected]>
Fri, 18 Dec 2020 17:32:02 +0000 (09:32 -0800)
committerKalle Valo <[email protected]>
Sun, 20 Dec 2020 12:14:46 +0000 (14:14 +0200)
Fix a build error when CONFIG_MAC80211_MESH is not enabled:

../drivers/net/wireless/mediatek/mt76/mt7915/init.c:47:2: error: expected expression before '}' token
  }, {
  ^

Fixes: af901eb4ab80 ("mt76: mt7915: get rid of dbdc debugfs knob")
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Shayne Chen <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Lorenzo Bianconi <[email protected]>
Cc: Felix Fietkau <[email protected]>
Cc: [email protected]
Cc: Kalle Valo <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
drivers/net/wireless/mediatek/mt76/mt7915/init.c

index ed4635bd151a2deb6fb072a86388c56c97044915..102a8f14c22d4f20ce0126e70311fe10aa9ce419 100644 (file)
@@ -40,9 +40,9 @@ static const struct ieee80211_iface_limit if_limits[] = {
                .types = BIT(NL80211_IFTYPE_ADHOC)
        }, {
                .max = 16,
-               .types = BIT(NL80211_IFTYPE_AP) |
+               .types = BIT(NL80211_IFTYPE_AP)
 #ifdef CONFIG_MAC80211_MESH
-                        BIT(NL80211_IFTYPE_MESH_POINT)
+                        BIT(NL80211_IFTYPE_MESH_POINT)
 #endif
        }, {
                .max = MT7915_MAX_INTERFACES,
This page took 0.052115 seconds and 4 git commands to generate.