summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_memory.h
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>2010-12-21 22:44:05 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-12-22 15:43:30 -0500
commitbfe3850b0cfca6ba64395e2705d9a51cd044f374 (patch)
treef7a0a8c14ae3a55ba42d3361aa8d038ec1630870 /include/drm/drm_memory.h
parentab72efdf107e5b0e0a05efb8f24cc6c598ae31ea (diff)
rndis_wlan: scanning, workaround device returning incorrect bssid-list item count.
Sometimes device returns wrong number of items in bssid-list. Appears that some specific beacons trigger this problem and leads to very poor scanning results. Workaround by ignoring num_items received from device and walkthrough full bssid-list buffer. v2: Fix buffer range checks and reading next item length. Old code read behind buffer on last item but didn't use those values as 'count' would also reach zero. Also fix resizing of buffer if device has larger buffer, old code assumed that BSSID-list OID would return same buffer size when it really can return yet another new larger length. Tested-by: Luís Picciochi <Pitxyoki@gmail.com> Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/drm/drm_memory.h')
0 files changed, 0 insertions, 0 deletions