diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-09-22 18:40:25 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-09-23 14:07:53 +0200 |
commit | 2e90e0f756a6bdcb6679acd4ca678803be90ce09 (patch) | |
tree | 5119b27d3fc85e5f44f4a94357f18b11f18aa6d0 /src/common/oml.c | |
parent | 130e2e59c65aba55a2402ad8c09afc00a7c1c14a (diff) |
Avoid sending Load Indications when BTS is not RSL-connected
Change-Id: I97e8dd7dd58ee2ec90c3a38d45dfd944db44c412
Diffstat (limited to 'src/common/oml.c')
-rw-r--r-- | src/common/oml.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/oml.c b/src/common/oml.c index d2cf8770..f841853f 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -670,7 +670,10 @@ static int oml_rx_set_bts_attr(struct gsm_bts *bts, struct msgb *msg) /* 9.4.11 CCCH Load Indication Period */ if (TLVP_PRES_LEN(&tp, NM_ATT_CCCH_L_I_P, 1)) { bts->load.ccch.load_ind_period = *TLVP_VAL(&tp, NM_ATT_CCCH_L_I_P); - load_timer_start(bts); + if (load_timer_is_running(bts)) { + load_timer_stop(bts); + load_timer_start(bts); + } } /* 9.4.44 RACH Busy Threshold */ |