diff options
author | Minh-Quang Nguyen <minh-quang.nguyen@nutaq.com> | 2016-06-09 15:01:01 -0400 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-06-15 09:44:51 +0000 |
commit | d0d2c9217a909c1455dfabb26cd3e678493490d9 (patch) | |
tree | 7a909ab29b6f50d53f6fe91bd2c4ed0c8bbd6fac | |
parent | 7158c2ed082eaca6063a501e490e8d3c3b181560 (diff) |
LC15: Bring back DSP trace argument
Change-Id: I822651d9ba4959ce5885a2c0362f1ea583b724da
-rw-r--r-- | src/osmo-bts-litecell15/l1_if.c | 6 | ||||
-rw-r--r-- | src/osmo-bts-litecell15/main.c | 9 |
2 files changed, 13 insertions, 2 deletions
diff --git a/src/osmo-bts-litecell15/l1_if.c b/src/osmo-bts-litecell15/l1_if.c index 54fd2d38..6d4fc55f 100644 --- a/src/osmo-bts-litecell15/l1_if.c +++ b/src/osmo-bts-litecell15/l1_if.c @@ -67,6 +67,8 @@ #include "misc/lc15bts_bid.h" #include "utils.h" +extern unsigned int dsp_trace; + struct wait_l1_conf { struct llist_head list; /* internal linked list */ struct osmo_timer_list timer; /* timer for L1 timeout */ @@ -1397,6 +1399,10 @@ int bts_model_phy_link_open(struct phy_link *plink) return -EIO; } + + struct lc15l1_hdl *fl1h = pinst->u.lc15.hdl; + fl1h->dsp_trace_f = dsp_trace; + l1if_reset(pinst->u.lc15.hdl); phy_link_state_set(plink, PHY_LINK_CONNECTED); diff --git a/src/osmo-bts-litecell15/main.c b/src/osmo-bts-litecell15/main.c index ef132f87..2aaacd3c 100644 --- a/src/osmo-bts-litecell15/main.c +++ b/src/osmo-bts-litecell15/main.c @@ -60,6 +60,8 @@ #include "oml_router.h" #include "misc/lc15bts_bid.h" +unsigned int dsp_trace = 0x00000000; + int bts_model_init(struct gsm_bts *bts) { struct gsm_bts_trx *trx; @@ -133,8 +135,8 @@ void bts_update_status(enum bts_global_status which, int on) void bts_model_print_help() { printf( " -w --hw-version Print the targeted HW Version\n" - " -M --pcu-direct Force PCU to access message queue for " - "PDCH dchannel directly\n" + " -M --pcu-direct Force PCU to access message queue for PDCH dchannel directly\n" + " -p --dsp-trace Set DSP trace flags\n" ); } @@ -180,6 +182,9 @@ int bts_model_handle_options(int argc, char **argv) break; switch (c) { + case 'p': + dsp_trace = strtoul(optarg, NULL, 16); + break; case 'M': pcu_direct = 1; break; |