ensure RF_ARFCN is part of l1ctl messages sent to host
[osmocom-bb.git] / src / target / firmware / layer1 / l23_api.c
index 5d7fe7e..292ae7e 100644 (file)
@@ -77,7 +77,8 @@ static enum mframe_task chan_nr2mf_task(uint8_t chan_nr)
        return 0;
 }
 
-struct msgb *l1_create_l2_msg(int msg_type, uint32_t fn, uint16_t snr)
+struct msgb *l1_create_l2_msg(int msg_type, uint32_t fn, uint16_t snr,
+                             uint16_t arfcn)
 {
        struct l1ctl_info_dl *dl;
        struct msgb *msg;
@@ -96,6 +97,7 @@ struct msgb *l1_create_l2_msg(int msg_type, uint32_t fn, uint16_t snr)
        /* FIXME: we may want to compute T1/T2/T3 in L23 */
        gsm_fn2gsmtime(&dl->time, fn);
        dl->snr[0] = snr;
+       dl->band_arfcn = arfcn;
 
        return msg;
 }