[rt2x00-users] reduced transfer speed
Ivo Van Doorn
ivdoorn at gmail.com
Thu May 5 01:04:13 EST 2011
Hi,
> This workaround also works fine in compat-wireless-2011-04-25:
> --- a/drivers/net/wireless/rt2x00/rt2x00usb.c 2011-04-25
> 21:03:06.000000000 +0200
> +++ b/drivers/net/wireless/rt2x00/rt2x00usb.c 2011-05-04
> 13:37:38.000000000 +0200
> @@ -295,7 +295,7 @@
>
> if (!test_and_clear_bit(ENTRY_DATA_PENDING, &entry->flags) ||
> test_bit(ENTRY_DATA_STATUS_PENDING, &entry->flags))
> - return true;
> + return false;
>
> /*
> * USB devices cannot blindly pass the skb->len as the
> @@ -389,7 +389,7 @@
>
> if (test_and_set_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags) ||
> test_bit(ENTRY_DATA_STATUS_PENDING, &entry->flags))
> - return true;
> + return false;
>
> rt2x00lib_dmastart(entry);
>
> @@ -444,7 +444,7 @@
> struct queue_entry_priv_usb_bcn *bcn_priv = entry->priv_data;
>
> if (!test_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags))
> - return true;
> + return false;
>
> usb_kill_urb(entry_priv->urb);
>
> ---
This is the same patch I send for testing purposes to linux-wireless
a few days ago. See this link for the discussion:
http://permalink.gmane.org/gmane.linux.kernel.wireless.general/69049
I was still waiting on the test results, but if you can confirm that this patch
solves the issue, I'll send it upstream immediately.
Thanks,
ivo
More information about the users
mailing list