diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-06-29 18:44:06 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-06-29 18:44:06 +0200 |
commit | 7721a77eafcfffbfcc2d8027dd4134bb9a9cc2b9 (patch) | |
tree | c8dd01a67e9d2d26e19c0f791aa27f8eda70483d | |
parent | 7ca604bcd3d635143236458dfeba97829d07b321 (diff) |
make sure abis_nm <-> osmocom pchan type conversion always works
-rw-r--r-- | src/gsm/abis_nm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c index a82194fd..b54657d6 100644 --- a/src/gsm/abis_nm.c +++ b/src/gsm/abis_nm.c @@ -399,6 +399,7 @@ void abis_nm_debugp_foh(int ss, struct abis_om_fom_hdr *foh) } static const enum abis_nm_chan_comb chcomb4pchan[] = { + [GSM_PCHAN_NONE] = 0xff, [GSM_PCHAN_CCCH] = NM_CHANC_mainBCCH, [GSM_PCHAN_CCCH_SDCCH4] = NM_CHANC_BCCHComb, [GSM_PCHAN_TCH_F] = NM_CHANC_TCHFull, @@ -406,6 +407,7 @@ static const enum abis_nm_chan_comb chcomb4pchan[] = { [GSM_PCHAN_SDCCH8_SACCH8C] = NM_CHANC_SDCCH, [GSM_PCHAN_PDCH] = NM_CHANC_IPAC_PDCH, [GSM_PCHAN_TCH_F_PDCH] = NM_CHANC_IPAC_TCHFull_PDCH, + [GSM_PCHAN_UNKNOWN] = 0xff, /* FIXME: bounds check */ }; |