srs-enb: adds fapi to the rf supported devices.
Added support to 'fapi' rf device for the SRS eNodeB. Change-Id: I0ac2a7db7c0533dfbc90f2526a7b823110d355c0
This commit is contained in:
parent
f2e9e980ca
commit
d1ca06d9ac
|
@ -44,7 +44,7 @@ def on_register_schemas():
|
|||
schema.register_config_schema('enb', config_schema)
|
||||
|
||||
def rf_type_valid(rf_type_str):
|
||||
return rf_type_str in ('zmq', 'uhd', 'soapy', 'bladerf')
|
||||
return rf_type_str in ('zmq', 'uhd', 'soapy', 'bladerf', 'fapi')
|
||||
|
||||
class srsENB(enb.eNodeB, srslte_common):
|
||||
|
||||
|
@ -371,6 +371,10 @@ class srsENB(enb.eNodeB, srslte_common):
|
|||
|
||||
config.overlay(values, dict(enb=dict(rf_dev_args=rf_dev_args)))
|
||||
|
||||
if self._conf.get('rf_dev_type') == 'fapi':
|
||||
rf_dev_args = ''
|
||||
config.overlay(values, dict(enb=dict(rf_dev_args=rf_dev_args)))
|
||||
|
||||
self.gen_conf = values
|
||||
|
||||
self.gen_conf_file(self.config_file, srsENB.CFGFILE, values)
|
||||
|
|
Loading…
Reference in New Issue