projects
/
osmocom-bb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ca604b
)
make sure abis_nm <-> osmocom pchan type conversion always works
author
Harald Welte
<laforge@gnumonks.org>
Wed, 29 Jun 2011 16:44:06 +0000
(18:44 +0200)
committer
Harald Welte
<laforge@gnumonks.org>
Wed, 29 Jun 2011 16:44:06 +0000
(18:44 +0200)
src/gsm/abis_nm.c
patch
|
blob
|
history
diff --git
a/src/gsm/abis_nm.c
b/src/gsm/abis_nm.c
index
a82194f
..
b54657d
100644
(file)
--- 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 */
};