some cleanup for UE on USRP, OPENAIR2=0 flag works again and on USRP, UE TX on USRP still to be added

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6538 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
Raymond Knopp
2015-02-12 16:53:36 +00:00
parent 9ba19119a5
commit 3506f66ad2
2 changed files with 11 additions and 3 deletions
+8 -2
View File
@@ -1725,7 +1725,7 @@ static void get_options (int argc, char **argv) {
int c;
// char line[1000];
// int l;
int k;//i,j,k;
int k,i;//,j,k;
#ifdef USRP
int clock_src;
#endif
@@ -1748,7 +1748,8 @@ static void get_options (int argc, char **argv) {
LONG_OPTION_CALIB_UE_RX_MED,
LONG_OPTION_CALIB_UE_RX_BYP,
LONG_OPTION_DEBUG_UE_PRACH,
LONG_OPTION_NO_L2_CONNECT
LONG_OPTION_NO_L2_CONNECT,
LONG_OPTION_RXGAIN
};
static const struct option long_options[] = {
@@ -1758,6 +1759,7 @@ static void get_options (int argc, char **argv) {
{"calib-ue-rx-byp", required_argument, NULL, LONG_OPTION_CALIB_UE_RX_BYP},
{"debug-ue-prach", no_argument, NULL, LONG_OPTION_DEBUG_UE_PRACH},
{"no-L2-connect", no_argument, NULL, LONG_OPTION_NO_L2_CONNECT},
{"ue_rxgain", required_argument, NULL, LONG_OPTION_RXGAIN},
{NULL, 0, NULL, 0}};
while ((c = getopt_long (argc, argv, "C:dK:g:F:G:qO:m:SUVRM:r:P:s:t:x:",long_options,NULL)) != -1) {
@@ -1792,6 +1794,10 @@ static void get_options (int argc, char **argv) {
case LONG_OPTION_NO_L2_CONNECT:
mode = no_L2_connect;
break;
case LONG_OPTION_RXGAIN:
for (i=0;i<4;i++)
rx_gain[0][i] = atof(optarg);
break;
case 'M':
#ifdef ETHERNET
strcpy(rrh_eNB_ip,optarg);