Commit eaa9d0fc authored by Navid Nikaein's avatar Navid Nikaein

fix for MAC UE_list->next[i] when next element does not exist, fix for OTGplot warning

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6818 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 6fc46b66
......@@ -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);
}
......
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment