osmo-trx: Fix random filler command line option.
Filler types was of "bool" type, which prevented it from taking values greter
than 1. And RAND filler type has integer value of 2, which was casted to 1 on
assigning, which led to a normal filler table being used instead of the RAND
one.
diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp
index b121e48..3f562ba 100644
--- a/Transceiver52M/osmo-trx.cpp
+++ b/Transceiver52M/osmo-trx.cpp
@@ -67,7 +67,7 @@
unsigned chans;
unsigned rtsc;
bool extref;
- bool filler;
+ Transceiver::FillerType filler;
bool diversity;
double offset;
};
@@ -160,8 +160,18 @@
config->chans = 2;
refstr = config->extref ? "Enabled" : "Disabled";
- fillstr = config->filler ? "Enabled" : "Disabled";
divstr = config->diversity ? "Enabled" : "Disabled";
+ switch (config->filler) {
+ case Transceiver::FILLER_DUMMY:
+ fillstr = "Dummy bursts";
+ break;
+ case Transceiver::FILLER_ZERO:
+ fillstr = "Disabled";
+ break;
+ case Transceiver::FILLER_RAND:
+ fillstr = "Normal busrts with random payload";
+ break;
+ }
std::ostringstream ost("");
ost << "Config Settings" << std::endl;