Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 576c7d85 authored by Marcel Holtmann's avatar Marcel Holtmann
Browse files

[Bluetooth] Add direction and timestamp to stack internal events



This patch changes the direction to incoming and adds the timestamp
to all stack internal events.

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 66e8b6c3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1035,6 +1035,9 @@ void hci_si_event(struct hci_dev *hdev, int type, int dlen, void *data)
	ev->type = type;
	memcpy(ev->data, data, dlen);

	bt_cb(skb)->incoming = 1;
	do_gettimeofday(&skb->stamp);

	skb->pkt_type = HCI_EVENT_PKT;
	skb->dev = (void *) hdev;
	hci_send_to_sock(hdev, skb);