Skip to content

Commit

Permalink
[Bluetooth] Add direction and timestamp to stack internal events
Browse files Browse the repository at this point in the history
This patch changes the direction to incoming and adds the timestamp
to all stack internal events.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Marcel Holtmann committed Aug 6, 2005
1 parent 66e8b6c commit 576c7d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/bluetooth/hci_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 576c7d8

Please sign in to comment.