hci_sock.c (6c566dd5a1253f73458ce6ba6cf3830e9d38c132) | hci_sock.c (e875ff84079b9e7d3ce24b97e3396230d41044d4) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 265 unchanged lines hidden (view full) --- 274 opcode = cpu_to_le16(HCI_MON_ACL_TX_PKT); 275 break; 276 case HCI_SCODATA_PKT: 277 if (bt_cb(skb)->incoming) 278 opcode = cpu_to_le16(HCI_MON_SCO_RX_PKT); 279 else 280 opcode = cpu_to_le16(HCI_MON_SCO_TX_PKT); 281 break; | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 265 unchanged lines hidden (view full) --- 274 opcode = cpu_to_le16(HCI_MON_ACL_TX_PKT); 275 break; 276 case HCI_SCODATA_PKT: 277 if (bt_cb(skb)->incoming) 278 opcode = cpu_to_le16(HCI_MON_SCO_RX_PKT); 279 else 280 opcode = cpu_to_le16(HCI_MON_SCO_TX_PKT); 281 break; |
282 case HCI_DIAG_PKT: 283 opcode = cpu_to_le16(HCI_MON_VENDOR_DIAG); 284 break; |
|
282 default: 283 return; 284 } 285 286 /* Create a private copy with headroom */ 287 skb_copy = __pskb_copy_fclone(skb, HCI_MON_HDR_SIZE, GFP_ATOMIC, true); 288 if (!skb_copy) 289 return; --- 1223 unchanged lines hidden --- | 285 default: 286 return; 287 } 288 289 /* Create a private copy with headroom */ 290 skb_copy = __pskb_copy_fclone(skb, HCI_MON_HDR_SIZE, GFP_ATOMIC, true); 291 if (!skb_copy) 292 return; --- 1223 unchanged lines hidden --- |