diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-06-20 19:20:42 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-06-20 19:20:42 +0200 |
commit | 3660a25d3c59ba5b498f71d27d9118dd5de9697b (patch) | |
tree | ff2076c920ab97026e74395eb1761e7944c2d03e | |
parent | 281ea8049815e715bbb0a4b54c0cdda376c1d245 (diff) |
[layer1] Fix RACH completion (don't use FB completion callback)
-rw-r--r-- | src/target/firmware/include/layer1/sync.h | 1 | ||||
-rw-r--r-- | src/target/firmware/layer1/prim_rach.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/target/firmware/include/layer1/sync.h b/src/target/firmware/include/layer1/sync.h index 4c055d20..12b5b504 100644 --- a/src/target/firmware/include/layer1/sync.h +++ b/src/target/firmware/include/layer1/sync.h @@ -30,6 +30,7 @@ enum l1s_chan { enum l1_compl { L1_COMPL_FB, + L1_COMPL_RACH, }; typedef void l1_compl_cb(enum l1_compl c); diff --git a/src/target/firmware/layer1/prim_rach.c b/src/target/firmware/layer1/prim_rach.c index 306e8885..b8fcaaec 100644 --- a/src/target/firmware/layer1/prim_rach.c +++ b/src/target/firmware/layer1/prim_rach.c @@ -91,7 +91,7 @@ static int l1s_tx_rach_resp(__unused uint8_t p1, __unused uint8_t burst_id, * the RACH burst was transmitted to the BTS */ last_rach.fn = l1s.current_time.fn - 1; last_rach.band_arfcn = l1s.serving_cell.arfcn; - l1s_compl_sched(L1_COMPL_FB); + l1s_compl_sched(L1_COMPL_RACH); return 0; } @@ -128,5 +128,5 @@ void l1a_rach_req(uint8_t fn51, uint8_t ra) l1a_unlock_sync(); memset(&last_rach, 0, sizeof(last_rach)); - l1s.completion[L1_COMPL_FB] = &l1a_rach_compl; + l1s.completion[L1_COMPL_RACH] = &l1a_rach_compl; } |