aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/oml.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/oml.c')
-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))