aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-follower/cec-processing.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-02-28 14:14:31 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2017-02-28 14:14:31 +0100
commit646bb9c368a8b65cdea6d934c9022067541d13a9 (patch)
treeb55e6d28cbd678e4426887f9755285f3cf3ef683 /utils/cec-follower/cec-processing.cpp
parent1a5954c991a4ba5483bec6bdee708f25345de025 (diff)
cec-follower: don't Feature Abort msgs from Unregistered
Messages transmitted by logical address 0xf ('Unregistered') should not receive a 'Feature Abort' reply. Since that would become a broadcast message and 'Feature Abort' is always a directed message. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/cec-follower/cec-processing.cpp')
-rw-r--r--utils/cec-follower/cec-processing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/cec-follower/cec-processing.cpp b/utils/cec-follower/cec-processing.cpp
index d26deec5..98dbf70b 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -204,7 +204,7 @@ static void reply_feature_abort(struct node *node, struct cec_msg *msg, __u8 rea
__u8 opcode = cec_msg_opcode(msg);
__u64 ts_now = get_ts();
- if (cec_msg_is_broadcast(msg))
+ if (cec_msg_is_broadcast(msg) || cec_msg_initiator(msg) == CEC_LOG_ADDR_UNREGISTERED)
return;
if (reason == CEC_OP_ABORT_UNRECOGNIZED_OP) {
la_info[la].feature_aborted[opcode].count++;

Privacy Policy