diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c index b71756ab0394..950061155f0b --- a/drivers/staging/wlan-ng/hfa384x_usb.c +++ b/drivers/staging/wlan-ng/hfa384x_usb.c @@ -342,6 +342,7 @@ static int submit_rx_urb(struct hfa384x *hw, gfp_t memflags) result = -ENOLINK; if (!hw->wlandev->hwremoved && !test_bit(WORK_RX_HALT, &hw->usb_flags)) { + printk("[%d] skb %#llx. %s, %d\n", raw_smp_processor_id(), skb, __func__, __LINE__); result = usb_submit_urb(&hw->rx_urb, memflags); /* Check whether we need to reset the RX pipe */ @@ -349,13 +350,16 @@ static int submit_rx_urb(struct hfa384x *hw, gfp_t memflags) netdev_warn(hw->wlandev->netdev, "%s rx pipe stalled: requesting reset\n", hw->wlandev->netdev->name); - if (!test_and_set_bit(WORK_RX_HALT, &hw->usb_flags)) + if (!test_and_set_bit(WORK_RX_HALT, &hw->usb_flags)) { + printk("[%d] skb %#llx. %s, %d\n", raw_smp_processor_id(), skb, __func__, __LINE__); schedule_work(&hw->usb_work); + } } } /* Don't leak memory if anything should go wrong */ if (result != 0) { + printk("[%d] skb %#llx. %s, %d\n", raw_smp_processor_id(), skb, __func__, __LINE__); dev_kfree_skb(skb); hw->rx_urb_skb = NULL; } @@ -2932,6 +2936,7 @@ static void hfa384x_usbin_callback(struct urb *urb) goto exit; skb = hw->rx_urb_skb; + printk("[%d] skb %#llx. %s, %d\n", raw_smp_processor_id(), skb, __func__, __LINE__); if (!skb || (skb->data != urb->transfer_buffer)) { WARN_ON(1); return; @@ -3004,6 +3009,7 @@ static void hfa384x_usbin_callback(struct urb *urb) if (action != ABORT) { /* Repost the RX URB */ result = submit_rx_urb(hw, GFP_ATOMIC); + printk("[%d] skb %#llx. %s, %d\n", raw_smp_processor_id(), skb, __func__, __LINE__); if (result != 0) { netdev_err(hw->wlandev->netdev, @@ -3024,6 +3030,7 @@ static void hfa384x_usbin_callback(struct urb *urb) } else { skb_put(skb, sizeof(*usbin)); hfa384x_usbin_rx(wlandev, skb); + printk("[%d] skb %#llx. %s, %d\n", raw_smp_processor_id(), skb, __func__, __LINE__); skb = NULL; } } @@ -3370,7 +3377,7 @@ static void hfa384x_int_rxmonitor(struct wlandevice *wlandev, if (skblen > (sizeof(struct p80211_caphdr) + WLAN_HDR_A4_LEN + WLAN_DATA_MAXLEN + WLAN_CRC_LEN)) { - pr_debug("overlen frm: len=%zd\n", + printk("overlen frm: len=%zd\n", skblen - sizeof(struct p80211_caphdr)); } @@ -3378,6 +3385,8 @@ static void hfa384x_int_rxmonitor(struct wlandevice *wlandev, if (!skb) return; + printk("[%d] skb %#llx datalen %d. %s, %d\n", raw_smp_processor_id(), skb, datalen, __func__, __LINE__); + /* only prepend the prism header if in the right mode */ if ((wlandev->netdev->type == ARPHRD_IEEE80211_PRISM) && (hw->sniffhdr != 0)) {