mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-03 21:43:32 +00:00 
			
		
		
		
	oml: Another band aid for reliable BTS init...
Sometimes the operative change for the NSE is getting nacked, this might be due that we send it before we get the OPSTART ACK for this object class. Send it from the CELL availability as a workaround. This init code needs to be changed to make these dependencies work more reliable.
This commit is contained in:
		@@ -469,8 +469,6 @@ int nm_state_event(enum nm_evt evt, u_int8_t obj_class, void *obj,
 | 
			
		||||
						  sizeof(nanobts_attr_nse));
 | 
			
		||||
			abis_nm_opstart(bts, obj_class, bts->bts_nr,
 | 
			
		||||
					0xff, 0xff);
 | 
			
		||||
			abis_nm_chg_adm_state(bts, obj_class, bts->bts_nr,
 | 
			
		||||
					      0xff, 0xff, NM_STATE_UNLOCKED);
 | 
			
		||||
		}
 | 
			
		||||
		break;
 | 
			
		||||
	case NM_OC_GPRS_CELL:
 | 
			
		||||
@@ -485,6 +483,8 @@ int nm_state_event(enum nm_evt evt, u_int8_t obj_class, void *obj,
 | 
			
		||||
					0, 0xff);
 | 
			
		||||
			abis_nm_chg_adm_state(bts, obj_class, bts->bts_nr,
 | 
			
		||||
					      0, 0xff, NM_STATE_UNLOCKED);
 | 
			
		||||
			abis_nm_chg_adm_state(bts, NM_OC_GPRS_NSE, bts->bts_nr,
 | 
			
		||||
					      0xff, 0xff, NM_STATE_UNLOCKED);
 | 
			
		||||
		}
 | 
			
		||||
		break;
 | 
			
		||||
	case NM_OC_GPRS_NSVC:
 | 
			
		||||
 
 | 
			
		||||
@@ -607,7 +607,7 @@ static int ipaccess_fd_cb(struct bsc_fd *bfd, unsigned int what)
 | 
			
		||||
struct e1inp_driver ipaccess_driver = {
 | 
			
		||||
	.name = "ip.access",
 | 
			
		||||
	.want_write = ts_want_write,
 | 
			
		||||
	.default_delay = 100000,
 | 
			
		||||
	.default_delay = 0,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
/* callback of the OML listening filedescriptor */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user