mirror of https://github.com/PentHertz/srsLTE.git
Adding device name into NBIoT cell search
This commit is contained in:
parent
0b5ebbea0e
commit
199c6076e8
|
@ -1,14 +1,14 @@
|
|||
/*
|
||||
* Copyright 2013-2020 Software Radio Systems Limited
|
||||
/**
|
||||
* Copyright 2013-2022 Software Radio Systems Limited
|
||||
*
|
||||
* This file is part of srsLTE.
|
||||
* This file is part of srsRAN.
|
||||
*
|
||||
* srsLTE is free software: you can redistribute it and/or modify
|
||||
* srsRAN is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* srsLTE is distributed in the hope that it will be useful,
|
||||
* srsRAN is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
|
@ -66,9 +66,9 @@ struct cells {
|
|||
};
|
||||
struct cells results[1024];
|
||||
|
||||
float rf_gain = 70.0;
|
||||
char* rf_args = "";
|
||||
bool scan_raster_offset = false;
|
||||
float rf_gain = 70.0;
|
||||
char* rf_args = "";
|
||||
char* rf_dev = "";
|
||||
|
||||
void usage(char* prog)
|
||||
{
|
||||
|
@ -93,6 +93,9 @@ void parse_args(int argc, char** argv)
|
|||
case 'b':
|
||||
band = (int)strtol(argv[optind], NULL, 10);
|
||||
break;
|
||||
case 'd':
|
||||
rf_dev = argv[optind];
|
||||
break;
|
||||
case 's':
|
||||
earfcn_start = (int)strtol(argv[optind], NULL, 10);
|
||||
break;
|
||||
|
@ -169,8 +172,9 @@ int main(int argc, char** argv)
|
|||
parse_args(argc, argv);
|
||||
|
||||
printf("Opening RF device...\n");
|
||||
if (srsran_rf_open(&rf, rf_args)) {
|
||||
fprintf(stderr, "Error opening rf\n");
|
||||
|
||||
if (srsran_rf_open_devname(&rf, rf_dev, rf_args, 1)) {
|
||||
ERROR("Error opening rf");
|
||||
exit(-1);
|
||||
}
|
||||
if (!cell_detect_config.init_agc) {
|
||||
|
|
Loading…
Reference in New Issue