rtl8187: Add termination packet to prevent stall
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 23 Jan 2009 17:46:32 +0000 (11:46 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 23 Jan 2009 20:38:36 +0000 (15:38 -0500)
The RTL8187 and RTL8187B devices can stall unless an explicit termination
packet is sent.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl818x/rtl8187_dev.c

index 6ad6bac37706e595e55879ada1de127690b29127..22bc07ef2f3784f70d3588d0a481993dde08a9b8 100644 (file)
@@ -273,6 +273,7 @@ static int rtl8187_tx(struct ieee80211_hw *dev, struct sk_buff *skb)
 
        usb_fill_bulk_urb(urb, priv->udev, usb_sndbulkpipe(priv->udev, ep),
                          buf, skb->len, rtl8187_tx_cb, skb);
+       urb->transfer_flags |= URB_ZERO_PACKET;
        usb_anchor_urb(urb, &priv->anchored);
        rc = usb_submit_urb(urb, GFP_ATOMIC);
        if (rc < 0) {