fw/layer1: Fix missing include in prim_pm.c
[osmocom-bb.git] / src / target / firmware / layer1 / prim_pm.c
index 9bf3921..134bffd 100644 (file)
@@ -45,6 +45,7 @@
 #include <layer1/tdma_sched.h>
 #include <layer1/tpu_window.h>
 #include <layer1/l23_api.h>
+#include <layer1/prim.h>
 
 #include <l1ctl_proto.h>
 
@@ -65,7 +66,6 @@ static int l1s_pm_cmd(uint8_t num_meas,
 
        dsp_api.db_w->d_task_md = num_meas; /* number of measurements */
        dsp_api.ndb->d_fb_mode = 0; /* wideband search */
-       dsp_end_scenario();
 
        /* Tell the RF frontend to set the gain appropriately */
        rffe_set_gain(-85, CAL_DSP_TGT_BB_LVL);
@@ -75,7 +75,6 @@ static int l1s_pm_cmd(uint8_t num_meas,
         * num_meas > 1 */
        l1s_rx_win_ctrl(arfcn, L1_RXWIN_PW, 0);
        //l1s_rx_win_ctrl(arfcn, L1_RXWIN_NB);
-       tpu_end_scenario();
 
        return 0;
 }
@@ -135,9 +134,9 @@ static int l1s_pm_resp(uint8_t num_meas, __unused uint8_t p2,
 }
 
 static const struct tdma_sched_item pm_sched_set[] = {
-       SCHED_ITEM(l1s_pm_cmd, 1, 0),           SCHED_END_FRAME(),
+       SCHED_ITEM_DT(l1s_pm_cmd, 0, 1, 0),     SCHED_END_FRAME(),
                                                SCHED_END_FRAME(),
-       SCHED_ITEM(l1s_pm_resp, 1, 0),          SCHED_END_FRAME(),
+       SCHED_ITEM(l1s_pm_resp, -4, 1, 0),      SCHED_END_FRAME(),
        SCHED_END_SET()
 };