replace rsl_rlm_cause_strs with rsl_rlm_cause_name()
This commit is contained in:
parent
9eb6d88d64
commit
52b4abdcb3
|
@ -16,9 +16,8 @@ uint8_t rsl_enc_chan_nr(uint8_t type, uint8_t subch, uint8_t timeslot);
|
||||||
/* decode channel number as per Section 9.3.1 */
|
/* decode channel number as per Section 9.3.1 */
|
||||||
int rsl_dec_chan_nr(uint8_t chan_nr, uint8_t *type, uint8_t *subch, uint8_t *timeslot);
|
int rsl_dec_chan_nr(uint8_t chan_nr, uint8_t *type, uint8_t *subch, uint8_t *timeslot);
|
||||||
|
|
||||||
extern const struct value_string rsl_rlm_cause_strs[];
|
|
||||||
|
|
||||||
const char *rsl_err_name(uint8_t err);
|
const char *rsl_err_name(uint8_t err);
|
||||||
|
const char *rsl_rlm_cause_name(uint8_t err);
|
||||||
|
|
||||||
/* Section 3.3.2.3 TS 05.02. I think this looks like a table */
|
/* Section 3.3.2.3 TS 05.02. I think this looks like a table */
|
||||||
int rsl_ccch_conf_to_bs_cc_chans(int ccch_conf);
|
int rsl_ccch_conf_to_bs_cc_chans(int ccch_conf);
|
||||||
|
|
11
src/rsl.c
11
src/rsl.c
|
@ -211,7 +211,12 @@ static const struct value_string rsl_err_vals[] = {
|
||||||
{ 0, NULL }
|
{ 0, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct value_string rsl_rlm_cause_strs[] = {
|
const char *rsl_err_name(uint8_t err)
|
||||||
|
{
|
||||||
|
return get_value_string(rsl_err_vals, err);
|
||||||
|
}
|
||||||
|
|
||||||
|
static const struct value_string rsl_rlm_cause_strs[] = {
|
||||||
{ RLL_CAUSE_T200_EXPIRED, "Timer T200 expired (N200+1) times" },
|
{ RLL_CAUSE_T200_EXPIRED, "Timer T200 expired (N200+1) times" },
|
||||||
{ RLL_CAUSE_REEST_REQ, "Re-establishment request" },
|
{ RLL_CAUSE_REEST_REQ, "Re-establishment request" },
|
||||||
{ RLL_CAUSE_UNSOL_UA_RESP, "Unsolicited UA response" },
|
{ RLL_CAUSE_UNSOL_UA_RESP, "Unsolicited UA response" },
|
||||||
|
@ -229,9 +234,9 @@ const struct value_string rsl_rlm_cause_strs[] = {
|
||||||
{ 0, NULL },
|
{ 0, NULL },
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *rsl_err_name(uint8_t err)
|
const char *rsl_rlm_cause_name(uint8_t err)
|
||||||
{
|
{
|
||||||
return get_value_string(rsl_err_vals, err);
|
return get_value_string(rsl_rlm_cause_strs, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Section 3.3.2.3 TS 05.02. I think this looks like a table */
|
/* Section 3.3.2.3 TS 05.02. I think this looks like a table */
|
||||||
|
|
Loading…
Reference in New Issue