Browse Source

Blacklist some models, because they don't support DFS

Michael Schwarz 5 years ago
parent
commit
401eafe77a
1 changed files with 17 additions and 0 deletions
  1. 17 0
      scripts/buildModels.py

+ 17 - 0
scripts/buildModels.py

@@ -35,6 +35,20 @@ VENDORS = {
     'zyxel' : 'Zyxel'
 }
 
+BLACKLIST_MODELS = [
+    'cpe510-v1.0',
+    'cpe510-v1.1',
+    'cpe520-v1.1',
+    'bullet-m5',
+    'nanostation-m5',
+    'nanostation-m5-xw',
+    'nanostation-loco-m5',
+    'nanostation-loco-m5-xw',
+    'rocket-m5',
+    'rocket-m5-ti',
+    'rocket-m5-xw'
+]
+
 def longestPrefixKeyMatch(string, dictionary):
     maxlen = 0
     retval = None
@@ -67,6 +81,9 @@ def findFiles(directory):
                 if n: 
                     model = n.group(1)
 
+            if model in BLACKLIST_MODELS:
+                continue
+
             has_factory = False
             if os.path.isfile(factory + PREFIX + "-" + imageversion + "-" + firmware + "." + imagetype):
                 has_factory = True