From 4fe622cf9c1beb0ba2aa3b492bf7e2b4d1cd4f73 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 4 Oct 2012 18:13:19 +0200 Subject: OML: TA is a 8bit value, not 16bit ... as jolly correctly pointed out. --- src/common/oml.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/common') diff --git a/src/common/oml.c b/src/common/oml.c index 00994a2f..f47b51c6 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -456,10 +456,8 @@ static int oml_rx_set_bts_attr(struct gsm_bts *bts, struct msgb *msg) } /* 9.4.31 Maximum Timing Advance */ - if (TLVP_PRESENT(&tp, NM_ATT_MAX_TA)) { - uint16_t *fn = (uint16_t *) TLVP_VAL(&tp, NM_ATT_MAX_TA); - btsb->max_ta = ntohs(*fn); - } + if (TLVP_PRESENT(&tp, NM_ATT_MAX_TA)) + btsb->max_ta = *TLVP_VAL(&tp, NM_ATT_MAX_TA); /* 9.4.39 Overload Period */ if (TLVP_PRESENT(&tp, NM_ATT_OVERL_PERIOD)) -- cgit v1.2.3