Split init and config USRP device. It seems to have solved the stop/restart RAU without stopping the RRU
This commit is contained in:
@@ -134,6 +134,9 @@ int load_lib(openair0_device *device, openair0_config_t *openair0_cfg, eth_param
|
||||
return ret;
|
||||
}
|
||||
|
||||
int openair0_check_device_loaded(){
|
||||
return dlopen(OAI_RF_LIBNAME, RTLD_NOLOAD);
|
||||
}
|
||||
|
||||
|
||||
int openair0_device_load(openair0_device *device, openair0_config_t *openair0_cfg) {
|
||||
|
||||
@@ -283,6 +283,10 @@ struct openair0_device_t {
|
||||
/* !brief ETH params set by application */
|
||||
eth_params_t *eth_params;
|
||||
|
||||
/* !brief Indicates if device already initialized */
|
||||
int is_init;
|
||||
|
||||
|
||||
/*!brief Can be used by driver to hold internal structure*/
|
||||
void *priv;
|
||||
|
||||
@@ -293,6 +297,13 @@ struct openair0_device_t {
|
||||
*/
|
||||
int (*trx_start_func)(openair0_device *device);
|
||||
|
||||
/*! \brief Called to configure the device
|
||||
@param device pointer to the device structure specific to the RF hardware target
|
||||
*/
|
||||
|
||||
|
||||
int (*trx_config_func)(openair0_device* device, openair0_config_t *openair0_cfg);
|
||||
|
||||
/*! \brief Called to send a request message between RAU-RRU on control port
|
||||
@param device pointer to the device structure specific to the RF hardware target
|
||||
@param msg pointer to the message structure passed between RAU-RRU
|
||||
|
||||
Reference in New Issue
Block a user