Commit e1972588 authored by villa's avatar villa

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4131 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent c0b5b3a7
...@@ -52,13 +52,14 @@ void _parseOptions(options_t *opts, int argc, char ** argv) { ...@@ -52,13 +52,14 @@ void _parseOptions(options_t *opts, int argc, char ** argv) {
{"r", required_argument, 0, 'r'}, {"r", required_argument, 0, 'r'},
{"p", required_argument, 0, 'p'}, {"p", required_argument, 0, 'p'},
{"Q", required_argument, 0, 'Q'}, {"Q", required_argument, 0, 'Q'},
{"O", required_argument, 0, 'O'},
{0, 0, 0, 0} {0, 0, 0, 0}
}; };
int option_index = 0; int option_index = 0;
while ((c = getopt_long (argc, argv, "hs:S:T:n:xdt:y:z:I:j:N:o:g:faib:r:R:w:c:em:A:Dp:B:k:Q:",long_options, &option_index)) != -1) while ((c = getopt_long (argc, argv, "hs:S:T:n:xdt:y:z:I:j:N:o:g:faib:r:R:w:c:em:A:Dp:B:k:Q:O:",long_options, &option_index)) != -1)
{ {
//printf("%c %s\n",c,optarg); //printf("%c %s\n",c,optarg);
switch (c) switch (c)
...@@ -89,7 +90,7 @@ void _parseOptions(options_t *opts, int argc, char ** argv) { ...@@ -89,7 +90,7 @@ void _parseOptions(options_t *opts, int argc, char ** argv) {
opts->dual_stream_UE=1; opts->dual_stream_UE=1;
sprintf(opts->parameters,"%s -D",opts->parameters); sprintf(opts->parameters,"%s -D",opts->parameters);
break; break;
case 'e': case 'e':
opts->dci_flag=1; opts->dci_flag=1;
sprintf(opts->parameters,"%s -d",opts->parameters); sprintf(opts->parameters,"%s -d",opts->parameters);
break; break;
...@@ -109,6 +110,10 @@ void _parseOptions(options_t *opts, int argc, char ** argv) { ...@@ -109,6 +110,10 @@ void _parseOptions(options_t *opts, int argc, char ** argv) {
case 'Q': case 'Q':
opts->ratio=atoi(optarg); opts->ratio=atoi(optarg);
break; break;
case 'O':
opts->nprb1=atoi(optarg);
opts->search_prb2=1;
break;
case 'T': case 'T':
opts->snr_step=atof(optarg); opts->snr_step=atof(optarg);
sprintf(opts->parameters,"%s -T%f",opts->parameters,opts->snr_step); sprintf(opts->parameters,"%s -T%f",opts->parameters,opts->snr_step);
......
...@@ -54,7 +54,7 @@ typedef struct { ...@@ -54,7 +54,7 @@ typedef struct {
int num_layers; int num_layers;
u16 n_rnti; u16 n_rnti;
///Modulation and code scheme ///Modulation and code scheme
u8 mcs; u8 mcs,mcs2;
u8 pilot1,pilot2,pilot3; u8 pilot1,pilot2,pilot3;
...@@ -97,7 +97,9 @@ typedef struct { ...@@ -97,7 +97,9 @@ typedef struct {
u8 p_b; u8 p_b;
s8 d_offset; s8 d_offset;
int ratio; int ratio;
u32 nprb1, nprb2;
int prob_flag; int prob_flag;
int search_prb2;
char power[50]; char power[50];
......
This diff is collapsed.
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