summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-08-26 04:10:35 +0200
committerPatrick McHardy <kaber@trash.net>2010-08-26 04:10:35 +0200
commit626ad52a0f180bf1886dd5d568a6236975a6a6f6 (patch)
treef64d7d23370c026af38e63cbd76a3f5f07af6395 /src
parentab287ce143887c28a2326c1cdfb6c09177749464 (diff)
sfmt: log invalid IEs on TX
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src')
-rw-r--r--src/s_msg.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/s_msg.c b/src/s_msg.c
index 06d1ca4..fb5e905 100644
--- a/src/s_msg.c
+++ b/src/s_msg.c
@@ -2190,7 +2190,7 @@ static const struct dect_ie_handler {
.size = sizeof(struct dect_ie_mms_extended_header),
},
[DECT_IE_TIME_DATE] = {
- .name = "TIME-DATA",
+ .name = "TIME-DATE",
.size = sizeof(struct dect_ie_time_date),
.parse = dect_sfmt_parse_time_date,
.build = dect_sfmt_build_time_date,
@@ -2655,8 +2655,11 @@ __dect_build_sfmt_ie(const struct dect_handle *dh,
struct dect_msg_buf *mb,
const struct dect_ie_common *ie)
{
- if (dect_tx_status(dh, desc) == DECT_SFMT_IE_NONE)
+ if (dect_tx_status(dh, desc) == DECT_SFMT_IE_NONE) {
+ sfmt_debug(" IE <%s> id: %x not allowed\n",
+ dect_ie_handlers[desc->type].name, desc->type);
return DECT_SFMT_INVALID_IE;
+ }
return dect_build_sfmt_ie(dh, desc->type, mb, ie);
}