Skip to content
Snippets Groups Projects
Select Git revision
  • 3fc9154d1dce2d873d26e3a4d88252d1ec7a38b0
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
41 results

check_site.lua

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    check_site.lua 1.24 KiB
    for _, config in ipairs({'wifi24', 'wifi5'}) do
      local rates = {1000, 2000, 5500, 6000, 9000, 11000, 12000, 18000, 24000, 36000, 48000, 54000}
      rates = need_array_of(config .. '.supported_rates', rates, false) or rates
    
      if need_table(config .. '.ibss', nil, false) then
        need_string(config .. '.ibss.ssid')
        need_string_match(config .. '.ibss.bssid', '^%x[02468aAcCeE]:%x%x:%x%x:%x%x:%x%x:%x%x$')
        need_one_of(config .. '.ibss.mcast_rate', rates, false)
        need_number(config .. '.ibss.vlan', false)
        need_boolean(config .. '.ibss.disabled', false)
      end
    
      if need_table(config .. '.mesh', nil, false) then
        need_string(config .. '.mesh.id')
        need_one_of(config .. '.mesh.mcast_rate', rates, false)
        need_boolean(config .. '.mesh.disabled', false)
      end
    end
    
    need_boolean('mesh_on_wan', false)
    need_boolean('mesh_on_lan', false)
    
    if need_table('mesh', nil, false) and  need_table('mesh.batman_adv', nil, false) then
      need_number('mesh.batman_adv.gw_sel_class', false)
    end
    
    need_string_match('next_node.mac', '^%x[02468aAcCeE]:%x%x:%x%x:%x%x:%x%x:%x%x$')
    
    if need_string_match('next_node.ip4', '^%d+.%d+.%d+.%d+$', false) then
      need_string_match('prefix4', '^%d+.%d+.%d+.%d+/%d+$')
    end
    
    need_string_match('next_node.ip6', '^[%x:]+$', false)