#include <linux/config.h>
#include <linux/module.h>
-#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/sched.h>
/* This is a rewrite of pkt_avail in ABCSP */
static struct sk_buff *bcsp_dequeue(struct hci_uart *hu)
{
- struct bcsp_struct *bcsp = (struct bcsp_struct *) hu->priv;
+ struct bcsp_struct *bcsp = hu->priv;
unsigned long flags;
struct sk_buff *skb;
static void bcsp_timed_event(unsigned long arg)
{
struct hci_uart *hu = (struct hci_uart *) arg;
- struct bcsp_struct *bcsp = (struct bcsp_struct *) hu->priv;
+ struct bcsp_struct *bcsp = hu->priv;
struct sk_buff *skb;
unsigned long flags;
- BT_ERR("Timeout, retransmitting %u pkts", bcsp->unack.qlen);
+ BT_DBG("hu %p retransmitting %u pkts", hu, bcsp->unack.qlen);
+
spin_lock_irqsave(&bcsp->unack.lock, flags);
while ((skb = __skb_dequeue_tail(&bcsp->unack)) != NULL) {