diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2012-07-20 16:47:56 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-07-21 13:18:45 +0200 |
commit | 1ddb183736bad257b8e774c0d0ab1ff8f628b442 (patch) | |
tree | 16b5e64b54547a9081a277117cd1194643681d09 /src/common/pcu_sock.c | |
parent | c2d3e45571e75610a40669f0fa0efed7b6e65946 (diff) |
Enable direct access to PDTCH queue of DSP by PCU
Use "-P -M" to enable PCU and direct access.
Diffstat (limited to 'src/common/pcu_sock.c')
-rw-r--r-- | src/common/pcu_sock.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c index 28cc527d..1bf8cd60 100644 --- a/src/common/pcu_sock.c +++ b/src/common/pcu_sock.c @@ -41,7 +41,10 @@ #include <osmo-bts/signal.h> #include <osmo-bts/bts_model.h> +uint32_t trx_get_hlayer1(struct gsm_bts_trx *trx); + extern struct gsm_network bts_gsmnet; +extern int pcu_direct; static int avail_lai = 0, avail_nse = 0, avail_cell = 0, avail_nsvc[2] = {0, 0}; static const char *sapi_string[] = { @@ -128,6 +131,9 @@ int pcu_tx_info_ind(void) } else LOGP(DPCU, LOGL_INFO, "BTS is down\n"); + if (pcu_direct) + info_ind->flags |= PCU_IF_FLAG_SYSMO; + /* RAI */ info_ind->mcc = net->mcc; info_ind->mnc = net->mnc; @@ -201,6 +207,7 @@ int pcu_tx_info_ind(void) break; info_ind->trx[i].pdch_mask = 0; info_ind->trx[i].arfcn = trx->arfcn; + info_ind->trx[i].hlayer1 = trx_get_hlayer1(trx); for (j = 0; j < 8; j++) { ts = &trx->ts[j]; if (ts->mo.nm_state.operational == NM_OPSTATE_ENABLED |