summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/trxcon.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-03-11 04:18:06 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-03-11 15:03:35 +0700
commit5eae19098ac6e0563d3e176818ca6a6a4fb8656a (patch)
tree36587959a3e121141f4a08fd4f49123cd8af7920 /src/host/trxcon/trxcon.c
parent4cf722364bdafd90d12984531e4ec8c8548d6579 (diff)
trxcon/scheduler: transmit dummy frames on CBTX lchans
If at the moment of transmission there are no frames in TX buffer, then either a dummy LAPDm frame (0x01, 0x03, 0x01, 0x2b ...) or a silence frame (depending on a codec in use) shall be transmitted. This is required for proper measurements on the BTS side. Change-Id: Ie590990f2274ea476678f6b2079f90eeadab6501
Diffstat (limited to 'src/host/trxcon/trxcon.c')
-rw-r--r--src/host/trxcon/trxcon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index 55422403..43c98a5c 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -28,6 +28,7 @@
#include <getopt.h>
#include <unistd.h>
#include <signal.h>
+#include <time.h>
#include <arpa/inet.h>
@@ -293,6 +294,9 @@ int main(int argc, char **argv)
}
}
+ /* Initialize pseudo-random generator */
+ srand(time(NULL));
+
while (!app_data.quit)
osmo_select_main(0);