mirror of
				https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
				synced 2025-11-03 21:43:32 +00:00 
			
		
		
		
	[BSC] Make sure we only enable hopping on BTS that support it
This commit is contained in:
		@@ -2015,8 +2015,15 @@ DEFUN(cfg_ts_hopping,
 | 
			
		||||
      "Disable frequency hopping\n" "Enable frequency hopping\n")
 | 
			
		||||
{
 | 
			
		||||
	struct gsm_bts_trx_ts *ts = vty->index;
 | 
			
		||||
	int enabled = atoi(argv[0]);
 | 
			
		||||
 | 
			
		||||
	ts->hopping.enabled = atoi(argv[0]);
 | 
			
		||||
	if (enabled && !gsm_bts_has_feature(ts->trx->bts, BTS_FEAT_HOPPING)) {
 | 
			
		||||
		vty_out(vty, "BTS model does not support hopping%s",
 | 
			
		||||
			VTY_NEWLINE);
 | 
			
		||||
		return CMD_WARNING;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	ts->hopping.enabled = enabled;
 | 
			
		||||
 | 
			
		||||
	return CMD_SUCCESS;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user