aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/rsl.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-12-11 13:13:28 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2017-12-11 13:28:34 +0100
commit4848c2c4450e15360de5e4b27dc41c757ffc57ae (patch)
treea47c2dc50eee33ab7dae447963e478d2e5d51405 /src/common/rsl.c
parent33942ed156413fc0cf69df0fbefccab95d08984d (diff)
Fix malformed Resource Indication packet
Wireshark was showing a Malformed packet alert, and further ivnestigation showed that "Resource Information" TLV was missing in the packet. See GSM 08.58 sections 8.6.1 and 9.3.21 for more information. Indicating interference level is not yet implemented, but at least now we avoid sending a malformed packet. Patch has been validated against a running setup with wireshark in my local PC. Related: OS#2735 Change-Id: Ie97170811aaf8a089febfa20380ab48ea174056a
Diffstat (limited to 'src/common/rsl.c')
-rw-r--r--src/common/rsl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index 60f964e5..88e240ac 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -252,6 +252,7 @@ int rsl_tx_rf_res(struct gsm_bts_trx *trx)
if (!nmsg)
return -ENOMEM;
// FIXME: add interference levels of TRX
+ msgb_tlv_put(nmsg, RSL_IE_RESOURCE_INFO, 0, NULL);
rsl_trx_push_hdr(nmsg, RSL_MT_RF_RES_IND);
nmsg->trx = trx;