osmo-bts-{trx,virtual}: set rc on error in bts_model_l1sap_down()
Change-Id: If3016bae9d03a9972c04b748fc9efab56a412e0e Related: OS#1572
This commit is contained in:
parent
69bca44a84
commit
fa109255ac
|
@ -420,6 +420,7 @@ int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap)
|
|||
if ((chan_nr & 0xE0) == 0x80) {
|
||||
LOGPLCHAN(lchan, DL1C, LOGL_ERROR, "Cannot activate"
|
||||
" channel %s\n", rsl_chan_nr_str(chan_nr));
|
||||
rc = -EPERM;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -480,6 +481,7 @@ int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap)
|
|||
if ((chan_nr & 0xE0) == 0x80) {
|
||||
LOGPLCHAN(lchan, DL1C, LOGL_ERROR, "Cannot deactivate"
|
||||
" channel %s\n", rsl_chan_nr_str(chan_nr));
|
||||
rc = -EPERM;
|
||||
break;
|
||||
}
|
||||
/* clear ECU state (if any) */
|
||||
|
|
|
@ -375,6 +375,7 @@ int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap)
|
|||
if ((chan_nr & 0xE0) == 0x80) {
|
||||
LOGPLCHAN(lchan, DL1C, LOGL_ERROR, "Cannot activate"
|
||||
" channel %s\n", rsl_chan_nr_str(chan_nr));
|
||||
rc = -EPERM;
|
||||
break;
|
||||
}
|
||||
/* activate dedicated channel */
|
||||
|
@ -420,6 +421,7 @@ int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap)
|
|||
if ((chan_nr & 0xE0) == 0x80) {
|
||||
LOGPLCHAN(lchan, DL1C, LOGL_ERROR, "Cannot deactivate"
|
||||
" channel %s\n", rsl_chan_nr_str(chan_nr));
|
||||
rc = -EPERM;
|
||||
break;
|
||||
}
|
||||
/* deactivate associated channel */
|
||||
|
|
Loading…
Reference in New Issue