[rt2x00-users] [PATCH] Decrease association time for USB devices
Ivo Van Doorn
ivdoorn at gmail.com
Wed Apr 13 04:58:00 EST 2011
Hi,
On Tue, Apr 12, 2011 at 3:26 PM, Gertjan van Wingerde
<gwingerde at gmail.com> wrote:
> On Mon, Apr 11, 2011 at 2:46 PM, Ivo van Doorn <ivdoorn at gmail.com> wrote:
>> When powersaving is enabled, assocaition times are very high
>> (for WPA2 networks, the time can easily be around the 3 seconds).
>>
>> This is caused, because the flushing of the queues takes
>> too much time. Without the flushing callback mac80211 assumes
>> a timeout of 100ms while scanning. Limit all flush waiting
>> loops to the same maximum.
>>
>> We can apply this maximum by passing the drop status to the
>> driver, which makes sure the driver performs extra actions
>> during the waiting for the queue to become empty.
>>
>> After these changes, association times fall within the
>> healthy range of ~0.6 seconds with powersaving enabled.
>> The difference between association time between powersaving
>> enabled and disabled is now only ~0.1 second (which can also
>> be due to the measuring method).
>>
>> Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>
>
> I have one consideration for improvement below, but do not feel
> strongly about it.
It was mostly laziness that I hadn't done that yet. :)
I've updated the patch, to add the function to rt2x00pci now as well.
> Whatever you choose, you can add my:
>
> Acked-by: Gertjan van Wingerde <gwingerde at gmail.com>
Thanks,
Ivo
More information about the users
mailing list