libbsc: Release the RF channel if BTS thinks it's still in use
The Nokia metrosite BTS seem to keep the channels open indefinitely. If osmo-nitb is restarted while one of the channel was still active and tries to activate that channel again the bts would return a CHANNEL ACTIVATE NACK with "Radio channel already activated". This accumulated over the restarts so soon enough no more channels were available. This patch sends a release request to the bts so the channel becomes available again.
This commit is contained in:
parent
513da17732
commit
7ddc318687
|
@ -863,6 +863,9 @@ static int rsl_rx_chan_act_nack(struct msgb *msg)
|
|||
TLVP_LEN(&tp, RSL_IE_CAUSE));
|
||||
if (*cause != RSL_ERR_RCH_ALR_ACTV_ALLOC)
|
||||
rsl_lchan_set_state(msg->lchan, LCHAN_S_NONE);
|
||||
else
|
||||
rsl_rf_chan_release(msg->lchan, 1);
|
||||
|
||||
} else
|
||||
rsl_lchan_set_state(msg->lchan, LCHAN_S_NONE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue