Revert "lapdm: Append RSL_IE_OSMO_ABS_FRAME_NUMBER to RSLms msgs towards upper layers"

This reverts commit d981794113efef3cc1195cde82043c5c66937b11.

osmo-bts is forwarding the msgbs as they come from lapdm to the RSL on
the wire, which means we end up sending the osmocom-specific IEs on the
wire, something which was not envisioned when adding this IE.

Change-Id: I0ab0d5b545b4862e72eb1842edd07ca2e4955311
Related: OS#6142
diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c
index c259824..e96e218 100644
--- a/src/gsm/lapdm.c
+++ b/src/gsm/lapdm.c
@@ -503,7 +503,7 @@
 	int transparent = rsl_is_transparent(msg_type);
 
 	/* Add the RSL + RLL header */
-	rsl_rll_push_l3_with_fn(msg, msg_type, mctx->chan_nr, mctx->link_id, transparent, mctx->fn);
+	rsl_rll_push_l3(msg, msg_type, mctx->chan_nr, mctx->link_id, transparent);
 
 	/* send off the RSLms message to L3 */
 	return rslms_sendmsg(msg, mctx->dl->entity);
@@ -513,14 +513,10 @@
 static int send_rslms_rll_l3_ui(struct lapdm_msg_ctx *mctx, struct msgb *msg)
 {
 	uint8_t l3_len = msg->tail - (uint8_t *)msgb_l3(msg);
-	uint32_t fn_be;
 
 	/* Add the RSL + RLL header */
 	msgb_tv16_push(msg, RSL_IE_L3_INFO, l3_len);
 
-	osmo_store32be(mctx->fn, &fn_be);
-	msgb_tlv_push(msg, RSL_IE_OSMO_ABS_FRAME_NUMBER, 4, (uint8_t *)&fn_be);
-
 	/* Add two non-standard IEs carrying MS power and TA values for B4 (SACCH) */
 	if (mctx->lapdm_fmt == LAPDm_FMT_B4) {
 		msgb_tv_push(msg, RSL_IE_MS_POWER, mctx->tx_power_ind);
@@ -537,12 +533,8 @@
 {
 	struct msgb *msg;
 	int transparent = rsl_is_transparent(msg_type);
-	uint32_t fn_be;
 
 	msg = rsl_rll_simple(msg_type, mctx->chan_nr, mctx->link_id, transparent);
-	/* Add FN to the end to keep backward compat: */
-	osmo_store32be(mctx->fn, &fn_be);
-	msgb_tlv_put(msg, RSL_IE_OSMO_ABS_FRAME_NUMBER, 4, (uint8_t *)&fn_be);
 
 	/* send off the RSLms message to L3 */
 	return rslms_sendmsg(msg, mctx->dl->entity);
@@ -551,15 +543,10 @@
 static int rsl_rll_error(uint8_t cause, struct lapdm_msg_ctx *mctx)
 {
 	struct msgb *msg;
-	uint32_t fn_be;
 
 	LOGDL(&mctx->dl->dl, LOGL_NOTICE, "sending MDL-ERROR-IND %d\n", cause);
 	msg = rsl_rll_simple(RSL_MT_ERROR_IND, mctx->chan_nr, mctx->link_id, 0);
 	msgb_tlv_put(msg, RSL_IE_RLM_CAUSE, 1, &cause);
-	/* Add FN to the end to keep backward compat: */
-	osmo_store32be(mctx->fn, &fn_be);
-	msgb_tlv_put(msg, RSL_IE_OSMO_ABS_FRAME_NUMBER, 4, (uint8_t *)&fn_be);
-
 	return rslms_sendmsg(msg, mctx->dl->entity);
 }