diff --git a/openair2/LAYER2/MAC/eNB_scheduler.c b/openair2/LAYER2/MAC/eNB_scheduler.c index e71af7788ebe1c7e45d30a109da33b69b323ea2e..64c6533b5653a7a2c7cf37a28927be471fce5a11 100644 --- a/openair2/LAYER2/MAC/eNB_scheduler.c +++ b/openair2/LAYER2/MAC/eNB_scheduler.c @@ -110,8 +110,9 @@ void eNB_dlsch_ulsch_scheduler(module_id_t module_idP,uint8_t cooperation_flag, mbsfn_status[CC_id]=0; } // refresh UE list based on UEs dropped by PHY in previous subframe - for (i=UE_list->head;i>=0;i=UE_list->next[i]) { + for (i=UE_list->head;i>=0;i=i=next_i) { LOG_D(MAC,"UE %d: rnti %x (%p)\n",i,UE_RNTI(module_idP,i),mac_xface->get_eNB_UE_stats(module_idP,0,UE_RNTI(module_idP,i))); + next_i= UE_list->next[i]; if (mac_xface->get_eNB_UE_stats(module_idP,0,UE_RNTI(module_idP,i))==NULL) mac_remove_ue(module_idP,i,frameP); } diff --git a/openair2/UTIL/OTG/OTGplot b/openair2/UTIL/OTG/OTGplot index 8dc720a7098267fa5684558e61a6b5a2faaf3fb2..1c276adb78039a75910a62de603e7730bce76620 100755 --- a/openair2/UTIL/OTG/OTGplot +++ b/openair2/UTIL/OTG/OTGplot @@ -35,7 +35,7 @@ endwhile labels=[labels; strcat("-@;",s,";") ]; # add the last string (Aggregate-Flow) if nargin>1 - mask=intersection(str2num(arg_list{2}),1:size(labels,1)); + mask=intersect(str2num(arg_list{2}),1:size(labels,1)); else mask=1:size(labels,1); endif @@ -48,8 +48,8 @@ endif # read data data=fscanf(f,"%f",[size(labels,1)+1,Inf])'; -temp=split(strrep(inputf,"\\","/"),"/"); -outputf=split(deblank(temp(size(temp,1),:)),"."); +temp=char(strsplit(strrep(inputf,"\\","/"),"/")); +outputf=char(strsplit(deblank(temp(size(temp,1),:)),".")); ylbl=outputf(1,:); #ylbl(1,1)=toupper(ylbl(1,1));