mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[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: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
66e8b6c31b
commit
576c7d858f
1 changed files with 3 additions and 0 deletions
|
@ -1035,6 +1035,9 @@ void hci_si_event(struct hci_dev *hdev, int type, int dlen, void *data)
|
||||||
ev->type = type;
|
ev->type = type;
|
||||||
memcpy(ev->data, data, dlen);
|
memcpy(ev->data, data, dlen);
|
||||||
|
|
||||||
|
bt_cb(skb)->incoming = 1;
|
||||||
|
do_gettimeofday(&skb->stamp);
|
||||||
|
|
||||||
skb->pkt_type = HCI_EVENT_PKT;
|
skb->pkt_type = HCI_EVENT_PKT;
|
||||||
skb->dev = (void *) hdev;
|
skb->dev = (void *) hdev;
|
||||||
hci_send_to_sock(hdev, skb);
|
hci_send_to_sock(hdev, skb);
|
||||||
|
|
Loading…
Reference in a new issue