Fixed scan buffer increasing with WEXT
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 5 Feb 2009 10:00:23 +0000 (12:00 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 5 Feb 2009 10:00:23 +0000 (12:00 +0200)
commit42f1ee7d1fae8a67a2a48adfda19f9aafc3fef32
tree1ccf3e828fbf93e09ea4f5396755f75a8129bb84
parent94abc2f11bb13001c0b688af3abda04a57e1fdd4
Fixed scan buffer increasing with WEXT

We can now handle up to 65535 byte result buffer which is the maximum
due to WEXT using 16-bit length field. Previously, this was limited to
32768 bytes in practice even through we tried with 65536 and 131072
buffers which we just truncated into 0 in the 16-bit variable.

This more or less doubles the number of BSSes we can received from scan
results.
hostapd/driver_nl80211.c
src/drivers/driver_nl80211.c
src/drivers/driver_wext.c
wpa_supplicant/ChangeLog