diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2009-01-23 11:46:32 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-02 08:28:10 -0800 |
commit | b98b56e302366e2a84c09812a67ca30eacb9792d (patch) | |
tree | b6c4cde888ca6c465bb9e131a288356e1fa23119 | |
parent | 1f57f8e071a434dc65eb5692e92abd21b69a8356 (diff) | |
download | lwn-b98b56e302366e2a84c09812a67ca30eacb9792d.tar.gz lwn-b98b56e302366e2a84c09812a67ca30eacb9792d.zip |
rtl8187: Add termination packet to prevent stall
commit 2fcbab044a3faf4d4a6e269148dd1f188303b206 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/net/wireless/rtl8187_dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtl8187_dev.c b/drivers/net/wireless/rtl8187_dev.c index 1640096a7f86..ef84732627cd 100644 --- a/drivers/net/wireless/rtl8187_dev.c +++ b/drivers/net/wireless/rtl8187_dev.c @@ -263,6 +263,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; rc = usb_submit_urb(urb, GFP_ATOMIC); if (rc < 0) { usb_free_urb(urb); |