diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-04-07 10:07:58 +0800 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-04-07 07:35:41 +0200 |
commit | bb1ff4727386c72d60c15564ac7aa0bdf1ad7a01 (patch) | |
tree | 981ae080957542f6cccc248c370d3b02fbba62cc /src/target/firmware/layer1/sync.c | |
parent | 52ba855271ff4e363fe3ef2fbd283afd770ea36b (diff) |
layer1: cosmetic cleanup
Diffstat (limited to 'src/target/firmware/layer1/sync.c')
-rw-r--r-- | src/target/firmware/layer1/sync.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/target/firmware/layer1/sync.c b/src/target/firmware/layer1/sync.c index b6742579..9d1e1201 100644 --- a/src/target/firmware/layer1/sync.c +++ b/src/target/firmware/layer1/sync.c @@ -511,19 +511,17 @@ static int l1s_fbdet_resp(__unused uint8_t p1, uint8_t attempt, } } + /* We found a frequency burst, reset everything and start next task */ + l1s_reset_hw(); + tdma_sched_reset(); + if (dsp_api.frame_ctr > 500 && l1s.fb.mode == 0) { - /* Don't synchronize_tdma() yet, it does probably not work - * reliable due to the TPU reset) */ - l1s_reset_hw(); - tdma_sched_reset(); /* We've done more than 500 rounds of FB detection, so * the AGC should be synchronized and we switch to the * more narrow FB detection mode 1 */ l1s.fb.mode = 1; - } else { - /* We found a frequency burst, reset everything and start next task */ - l1s_reset_hw(); - tdma_sched_reset(); + /* Don't synchronize_tdma() yet, it does probably not work + * reliable due to the TPU reset) */ } #if 1 |