+ /*
+ * Set packet's properties. This can fail so it happens before
+ * creating the notification below. We freeze it after we know
+ * this function succeeds.
+ */
+ if (unlikely(!packet->props_are_set)) {
+ ret = bt_packet_set_properties(packet);
+ if (ret) {
+ BT_LIB_LOGE("Cannot update packet's properties: "
+ "%![prev-packet-]+a", packet);
+ goto error;
+ }
+ }
+