Change in osmo-bts[master]: l1sap: fix to_gsmtap(): include Uplink RSSI in GSMTAP packets

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Mon Jan 4 16:21:30 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/21935 )


Change subject: l1sap: fix to_gsmtap(): include Uplink RSSI in GSMTAP packets
......................................................................

l1sap: fix to_gsmtap(): include Uplink RSSI in GSMTAP packets

Change-Id: Ic48283fa76b682aee151a94ef7274ac96545e087
---
M src/common/l1sap.c
1 file changed, 5 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/35/21935/1

diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 33d10a5..6d0e3bf 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -502,6 +502,7 @@
 	uint8_t chan_type = 0, tn = 0, ss = 0;
 	uint32_t fn;
 	uint16_t uplink = GSMTAP_ARFCN_F_UPLINK;
+	int8_t signal_dbm;
 	int rc;
 
 	if (!gsmtap)
@@ -520,10 +521,12 @@
 		else
 			rc = gsmtap_ph_data(l1sap, &chan_type, &ss, fn, &data,
 					    &len, num_agch(trx, "GSMTAP"));
+		signal_dbm = l1sap->u.data.rssi;
 		break;
 	case OSMO_PRIM(PRIM_PH_RACH, PRIM_OP_INDICATION):
 		rc = gsmtap_ph_rach(l1sap, &chan_type, &tn, &ss, &fn, &data,
 			&len);
+		signal_dbm = l1sap->u.rach_ind.rssi;
 		break;
 	default:
 		rc = -ENOTSUP;
@@ -547,8 +550,8 @@
 	if (is_fill_frame(chan_type, data, len))
 		return 0;
 
-	gsmtap_send(gsmtap, trx->arfcn | uplink, tn, chan_type, ss, fn, 0, 0,
-		data, len);
+	gsmtap_send(gsmtap, trx->arfcn | uplink, tn, chan_type, ss, fn,
+		    signal_dbm, 0, data, len);
 
 	return 0;
 }

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/21935
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ic48283fa76b682aee151a94ef7274ac96545e087
Gerrit-Change-Number: 21935
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210104/9e9c7cc2/attachment.htm>


More information about the gerrit-log mailing list