diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-10-04 18:13:19 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-10-04 18:13:19 +0200 |
commit | 4fe622cf9c1beb0ba2aa3b492bf7e2b4d1cd4f73 (patch) | |
tree | dac4077a3017ccef42bb0c651e4df19c38efbf14 | |
parent | 4168d885cf7183e09a98590799ad26fb2f162d13 (diff) |
OML: TA is a 8bit value, not 16bit
... as jolly correctly pointed out.
-rw-r--r-- | src/common/oml.c | 6 |
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)) |