struct sk_buff *nskb = bcsp_prepare_pkt(bcsp, skb->data, skb->len, skb->pkt_type); 
struct sk_buff *nskb = bcsp_prepare_pkt(bcsp, skb->data, skb->len, bt_cb(skb)->pkt_type); 
static struct sk_buff *bcsp_dequeue(struct hci_uart *hu){	struct bcsp_struct *bcsp = hu->priv;	unsigned long flags;	struct sk_buff *skb;		/* First of all, check for unreliable messages in the queue,	   since they have priority */	if ((skb = skb_dequeue(&bcsp->unrel)) != NULL) {		struct sk_buff *nskb = bcsp_prepare_pkt(bcsp, skb->data, skb->len, skb->pkt_type);		if (nskb) {			kfree_skb(skb);			return nskb;		} else {			skb_queue_head(&bcsp->unrel, skb);			BT_ERR("Could not dequeue pkt because alloc_skb failed");		}	}	/* Now, try to send a reliable pkt. We can only send a	   reliable packet if the number of packets sent but not yet ack'ed	   is < than the winsize */	spin_lock_irqsave(&bcsp->unack.lock, flags);	if (bcsp->unack.qlen < BCSP_TXWINSIZE && (skb = skb_dequeue(&bcsp->rel)) != NULL) {		struct sk_buff *nskb = bcsp_prepare_pkt(bcsp, skb->data, skb->len, skb->pkt_type);		if (nskb) {			__skb_queue_tail(&bcsp->unack, skb);			mod_timer(&bcsp->tbcsp, jiffies + HZ / 4);			spin_unlock_irqrestore(&bcsp->unack.lock, flags);			return nskb;		} else {			skb_queue_head(&bcsp->rel, skb);			BT_ERR("Could not dequeue pkt because alloc_skb failed");		}	}	spin_unlock_irqrestore(&bcsp->unack.lock, flags);	/* We could not send a reliable packet, either because there are	   none or because there are too many unack'ed pkts. Did we receive	   any packets we have not acknowledged yet ? */	if (bcsp->txack_req) {		/* if so, craft an empty ACK pkt and send it on BCSP unreliable		   channel 0 */		struct sk_buff *nskb = bcsp_prepare_pkt(bcsp, NULL, 0, BCSP_ACK_PKT);		return nskb;	}	/* We have nothing to send */	return NULL;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/0d48d93947dd9ea21c5cdc76a8581b06a4a39281/hci_bcsp.c/buggy/drivers/bluetooth/hci_bcsp.c