diff options
Diffstat (limited to 'src/sba.cpp')
-rw-r--r-- | src/sba.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sba.cpp b/src/sba.cpp index 6aeeb7c..46c1431 100644 --- a/src/sba.cpp +++ b/src/sba.cpp @@ -26,6 +26,7 @@ extern "C" { #include <osmocom/core/talloc.h> +#include <osmocom/gsm/protocol/gsm_04_08.h> } #include <errno.h> @@ -55,6 +56,9 @@ int SBAController::alloc( if (!sba) return -ENOMEM; + if (!gsm48_ta_is_valid(ta)) + return -EINVAL; + for (trx = 0; trx < 8; trx++) { for (ts = 7; ts >= 0; ts--) { pdch = &m_bts.bts_data()->trx[trx].pdch[ts]; |