dect
/
libdect
Archived
13
0
Fork 0

sfmt: log invalid IEs on TX

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2010-08-26 04:10:35 +02:00
parent ab287ce143
commit 626ad52a0f
1 changed files with 5 additions and 2 deletions

View File

@ -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);
}