From: Marcel Holtmann Date: Sat, 6 Aug 2005 10:36:54 +0000 (+0200) Subject: [Bluetooth] Add direction and timestamp to stack internal events X-Git-Tag: MMI-PSA29.97-13-9~56406^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=576c7d858f36cab6110b29db7b53964d5132cf30;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 26050d13fb47..46367bd129c3 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -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);