projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed compiling issues when enabling GSM MS side support.
[lcr.git]
/
ie.cpp
diff --git
a/ie.cpp
b/ie.cpp
index
ddb6c1b
..
7509440
100644
(file)
--- a/
ie.cpp
+++ b/
ie.cpp
@@
-711,13
+711,15
@@
void Pdss1::enc_ie_channel_id(struct l3_msg *l3m, int exclusive, int channel)
add_layer3_ie(l3m, p[0], p[1], p+2);
} else {
/* PRI */
add_layer3_ie(l3m, p[0], p[1], p+2);
} else {
/* PRI */
- if (channel == CHANNEL_NO) /* no channel */
- return; /* IE not present */
- if (channel == CHANNEL_ANY) /* any channel */ {
+ if (channel == CHANNEL_NO || channel == CHANNEL_ANY) {
+ if (channel == CHANNEL_NO)
+ channel = 0;
+ else
+ channel = 3;
l = 1;
p[0] = IE_CHANNEL_ID;
p[1] = l;
l = 1;
p[0] = IE_CHANNEL_ID;
p[1] = l;
- p[2] = 0x80 + 0x20 +
0x03
;
+ p[2] = 0x80 + 0x20 +
channel
;
add_layer3_ie(l3m, p[0], p[1], p+2);
return; /* end */
}
add_layer3_ie(l3m, p[0], p[1], p+2);
return; /* end */
}
@@
-1096,7
+1098,7
@@
void Pdss1::dec_ie_redir_nr(struct l3_msg *l3m, int *type, int *plan, int *prese
*reason = -1;
*number = '\0';
*reason = -1;
*number = '\0';
- unsigned char *p = l3m->redirect_nr;
+ unsigned char *p = l3m->redirect
ing
_nr;
if (!p)
return;
if (p[0] < 1) {
if (!p)
return;
if (p[0] < 1) {
@@
-1179,7
+1181,7
@@
void Pdss1::dec_ie_redir_dn(struct l3_msg *l3m, int *type, int *plan, int *prese
*present = -1;
*number = '\0';
*present = -1;
*number = '\0';
- unsigned char *p = l3m->redirect
_dn
;
+ unsigned char *p = l3m->redirect
ion_nr
;
if (!p)
return;
if (p[0] < 1) {
if (!p)
return;
if (p[0] < 1) {