Skip to content
Snippets Groups Projects
Select Git revision
  • 2a93c580428d10724116b0d2d1238e2745715a14
  • 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.
    • Nils Schneider's avatar
      2a93c580
      mesh-batadv-core: introduce 11s mesh, refactor wireless config · 2a93c580
      Nils Schneider authored
      This is a site.conf-breaking change in regard to the wireless config.
      Make sure to read http://gluon.readthedocs.org/en/latest/user/site.html
      and update your site.conf accordingly!
      
      Support for 802.11s mesh interfaces has been added. Gluon now supports
      three interface types: ap, ibss and mesh. All of them are now optional
      and may be configured independently in site.conf.
      
      A sample site.conf may look like this:
      
          wifi24 = {
                  channel = 1,
                  htmode = 'HT40+',
                  ap = {
                          ssid = 'luebeck.freifunk.net',
                  },
                  ibss = {
                          ssid = '02:d1:11:37:fc:38',
                          bssid = '02:d1:11:37:fc:38',
                          mcast_rate = 12000,
                  },
                  mesh = {
                          id = 'ffhl-mesh',
                          mcast_rate = 12000,
                  },
          },
      2a93c580
      History
      mesh-batadv-core: introduce 11s mesh, refactor wireless config
      Nils Schneider authored
      This is a site.conf-breaking change in regard to the wireless config.
      Make sure to read http://gluon.readthedocs.org/en/latest/user/site.html
      and update your site.conf accordingly!
      
      Support for 802.11s mesh interfaces has been added. Gluon now supports
      three interface types: ap, ibss and mesh. All of them are now optional
      and may be configured independently in site.conf.
      
      A sample site.conf may look like this:
      
          wifi24 = {
                  channel = 1,
                  htmode = 'HT40+',
                  ap = {
                          ssid = 'luebeck.freifunk.net',
                  },
                  ibss = {
                          ssid = '02:d1:11:37:fc:38',
                          bssid = '02:d1:11:37:fc:38',
                          mcast_rate = 12000,
                  },
                  mesh = {
                          id = 'ffhl-mesh',
                          mcast_rate = 12000,
                  },
          },
    check_site.lua 936 B
    need_string('regdom')
    
    for _, config in ipairs({'wifi24', 'wifi5'}) do
       need_number(config .. '.channel')
       need_string(config .. '.htmode')
    
       if need_table(config .. '.ap', nil, false) then
          need_string(config .. '.ap.ssid')
          need_boolean(config .. '.ap.disabled', false)
       end
    
       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_number(config .. '.ibss.mcast_rate', 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_number(config .. '.mesh.mcast_rate', false)
          need_boolean(config .. '.mesh.disabled', false)
       end
    end
    
    need_boolean('mesh_on_wan', false)
    need_boolean('mesh_on_lan', false)