tree 0a1241104c7a52323425a3f6930163340e2d0829
parent 66e8b6c31b9254243afaac8af4135e84e11dd38e
author Marcel Holtmann <[EMAIL PROTECTED]> Sat, 06 Aug 2005 12:36:54 +0200
committer Marcel Holtmann <[EMAIL PROTECTED]> Sat, 06 Aug 2005 12:36:54 +0200

[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 <[EMAIL PROTECTED]>

 net/bluetooth/hci_event.c |    3 +++
 1 files changed, 3 insertions(+)

diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -1035,6 +1035,9 @@ void hci_si_event(struct hci_dev *hdev, 
        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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to