code: func Setup(c config.Config) error {
  	dwellTime := lorawan.DwellTimeNoLimit
  	if c.NetworkServer.Band.DwellTime400ms {
  		dwellTime = lorawan.DwellTime400ms
  	}
  	bandConfig, err := loraband.GetConfig(c.NetworkServer.Band.Name, c.NetworkServer.Band.RepeaterCompatible, dwellTime)
  	if err != nil {
  		return errors.Wrap(err, "get band config error")
  	}
  	for _, c := range config.C.NetworkServer.NetworkSettings.ExtraChannels {
  		if err := bandConfig.AddChannel(c.Frequency, c.MinDR, c.MaxDR); err != nil {
  			return errors.Wrap(err, "add channel error")
  		}
  	}
  	band = bandConfig
  	return nil
  }
docs: // Setup sets up the band with the given configuration.