struct bt_message_message_iterator_inactivity *inactivity = (void *) msg;
BT_ASSERT_PRE_DEV_NON_NULL(msg, "Message");
- BT_ASSERT_PRE_DEV_MSG_IS_TYPE(msg,
+ BT_ASSERT_PRE_DEV_MSG_HAS_TYPE(msg,
BT_MESSAGE_TYPE_MESSAGE_ITERATOR_INACTIVITY);
return inactivity->cs;
}