aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-10-04 18:13:19 +0200
committerHarald Welte <laforge@gnumonks.org>2012-10-04 18:13:19 +0200
commit4fe622cf9c1beb0ba2aa3b492bf7e2b4d1cd4f73 (patch)
treedac4077a3017ccef42bb0c651e4df19c38efbf14 /src/common
parent4168d885cf7183e09a98590799ad26fb2f162d13 (diff)
OML: TA is a 8bit value, not 16bit
... as jolly correctly pointed out.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/oml.c6
1 files changed, 2 insertions, 4 deletions
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))