host/mobile: Enable frq_refef & hand over now that libosmocore is updated
authorSylvain Munaut <tnt@246tNt.com>
Fri, 17 Sep 2010 12:46:39 +0000 (14:46 +0200)
committerSylvain Munaut <tnt@246tNt.com>
Fri, 17 Sep 2010 12:46:39 +0000 (14:46 +0200)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
src/host/layer23/src/mobile/gsm48_rr.c

index e2418cc..674f7ea 100644 (file)
@@ -3317,8 +3317,6 @@ static int gsm48_rr_rx_chan_rel(struct osmocom_ms *ms, struct msgb *msg)
 /* 9.1.13 FREQUENCY REDEFINITION is received */
 static int gsm48_rr_rx_frq_redef(struct osmocom_ms *ms, struct msgb *msg)
 {
-#warning disabled, until added to libosmocore
-#if 0
        struct gsm48_rrlayer *rr = &ms->rrlayer;
        struct gsm48_frq_redef *fr = msgb_l3(msg);
        int mob_al_len = msgb_l3len(msg) - sizeof(*fr);
@@ -3392,7 +3390,6 @@ static int gsm48_rr_rx_frq_redef(struct osmocom_ms *ms, struct msgb *msg)
 
        rr->cd_now.start = 0;
 
-#endif
        return 0;
 }
 
@@ -3833,8 +3830,6 @@ static int gsm48_rr_rx_ass_cmd(struct osmocom_ms *ms, struct msgb *msg)
 /* 9.1.16 sending HANDOVER COMPLETE */
 static int gsm48_rr_tx_hando_cpl(struct osmocom_ms *ms, uint8_t cause)
 {
-#warning disabled, until added to libosmocore
-#if 0
        struct msgb *nmsg;
        struct gsm48_hdr *gh;
        struct gsm48_ho_cpl *hc;
@@ -3856,14 +3851,11 @@ static int gsm48_rr_tx_hando_cpl(struct osmocom_ms *ms, uint8_t cause)
        // FIXME: mobile observed time
 
        return gsm48_send_rsl(ms, RSL_MT_DATA_REQ, nmsg);
-#endif
 }
 
 /* 9.1.4 sending HANDOVER FAILURE */
 static int gsm48_rr_tx_hando_fail(struct osmocom_ms *ms, uint8_t cause)
 {
-#warning disabled, until added to libosmocore
-#if 0
        struct msgb *nmsg;
        struct gsm48_hdr *gh;
        struct gsm48_ho_fail *hf;
@@ -3883,7 +3875,6 @@ static int gsm48_rr_tx_hando_fail(struct osmocom_ms *ms, uint8_t cause)
        hf->rr_cause = cause;
 
        return gsm48_send_rsl(ms, RSL_MT_DATA_REQ, nmsg);
-#endif
 }
 
 /* receiving HANDOVER COMMAND message (9.1.15) */