skb->pkt_type = HCI_COMMAND_PKT; 
bt_cb(skb)->pkt_type = HCI_COMMAND_PKT; 
int hci_send_cmd(struct hci_dev *hdev, __u16 ogf, __u16 ocf, __u32 plen, void *param){	int len = HCI_COMMAND_HDR_SIZE + plen;	struct hci_command_hdr *hdr;	struct sk_buff *skb;	BT_DBG("%s ogf 0x%x ocf 0x%x plen %d", hdev->name, ogf, ocf, plen);	skb = bt_skb_alloc(len, GFP_ATOMIC);	if (!skb) {		BT_ERR("%s Can't allocate memory for HCI command", hdev->name);		return -ENOMEM;	}	hdr = (struct hci_command_hdr *) skb_put(skb, HCI_COMMAND_HDR_SIZE);	hdr->opcode = __cpu_to_le16(hci_opcode_pack(ogf, ocf));	hdr->plen   = plen;	if (plen)		memcpy(skb_put(skb, plen), param, plen);	BT_DBG("skb len %d", skb->len);	skb->pkt_type = HCI_COMMAND_PKT;	skb->dev = (void *) hdev;	skb_queue_tail(&hdev->cmd_q, skb);	hci_sched_cmd(hdev);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/0d48d93947dd9ea21c5cdc76a8581b06a4a39281/hci_core.c/clean/net/bluetooth/hci_core.c