switch (skb->pkt_type) { 
switch (bt_cb(skb)->pkt_type) { 
static int bpa10x_send_frame(struct sk_buff *skb){	struct hci_dev *hdev = (struct hci_dev *) skb->dev;	struct bpa10x_data *data;	BT_DBG("hdev %p skb %p type %d len %d", hdev, skb, skb->pkt_type, skb->len);	if (!hdev) {		BT_ERR("Frame for unknown HCI device");		return -ENODEV;	}	if (!test_bit(HCI_RUNNING, &hdev->flags))		return -EBUSY;	data = hdev->driver_data;	/* Prepend skb with frame type */	memcpy(skb_push(skb, 1), &(skb->pkt_type), 1);	switch (skb->pkt_type) {	case HCI_COMMAND_PKT:		hdev->stat.cmd_tx++;		skb_queue_tail(&data->cmd_queue, skb);		break;	case HCI_ACLDATA_PKT:		hdev->stat.acl_tx++;		skb_queue_tail(&data->tx_queue, skb);		break;	case HCI_SCODATA_PKT:		hdev->stat.sco_tx++;		skb_queue_tail(&data->tx_queue, skb);		break;	};	read_lock(&data->lock);	bpa10x_wakeup(data);	read_unlock(&data->lock);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/0d48d93947dd9ea21c5cdc76a8581b06a4a39281/bpa10x.c/clean/drivers/bluetooth/bpa10x.c