aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-08 17:49:24 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-08 17:49:24 +0800
commitdedb7ce3fef7a14c52c62c22acdc043016f2563d (patch)
tree1c0cc8eea6182d3b5a58683f879109672d90cd1c
parent52280693657631037bf2e628853f6eaf379a314d (diff)
mtp: Ignore the spare bits as of Q.701 6.2
The sender is supposed to set them to 0 and we are asked to ignore them. Apparently something called SIF is enabled on the sender side.
-rw-r--r--src/mtp_layer3.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mtp_layer3.c b/src/mtp_layer3.c
index 0f753c4..7182320 100644
--- a/src/mtp_layer3.c
+++ b/src/mtp_layer3.c
@@ -291,9 +291,9 @@ static int mtp_link_sign_msg(struct mtp_link *link, struct mtp_level_3_hdr *hdr,
struct msgb *msg;
struct mtp_level_3_cmn *cmn;
- if (hdr->spare != 0 || hdr->ni != MTP_NI_NATION_NET || l3_len < 1) {
- LOGP(DINP, LOGL_ERROR, "Unhandled data (%d, %d, %d)\n",
- hdr->spare, hdr->ni, l3_len);
+ if (hdr->ni != MTP_NI_NATION_NET || l3_len < 1) {
+ LOGP(DINP, LOGL_ERROR, "Unhandled data (ni: %d len: %d)\n",
+ hdr->ni, l3_len);
return -1;
}
@@ -334,9 +334,9 @@ static int mtp_link_regular_msg(struct mtp_link *link, struct mtp_level_3_hdr *h
struct msgb *out;
struct mtp_level_3_mng *mng;
- if (hdr->spare != 0 || hdr->ni != MTP_NI_NATION_NET || l3_len < 2) {
- LOGP(DINP, LOGL_ERROR, "Unhandled data (%d, %d, %d)\n",
- hdr->spare, hdr->ni, l3_len);
+ if (hdr->ni != MTP_NI_NATION_NET || l3_len < 1) {
+ LOGP(DINP, LOGL_ERROR, "Unhandled data (ni: %d len: %d)\n",
+ hdr->ni, l3_len);
return -1;
}