Add support for multi-SSID scan requests
authorJouni Malinen <j@w1.fi>
Sat, 14 Feb 2009 18:59:26 +0000 (20:59 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 14 Feb 2009 18:59:26 +0000 (20:59 +0200)
commite76baaac0c8359ba2e463521db1164f340bd37b6
tree4362fb50d6d4dfc46e98dd206e03da2949225740
parentf55b218a5cba43529f44e1e3dedeb12f837630b9
Add support for multi-SSID scan requests

If the driver reports support for more than one SSID per scan request,
optimize scan_ssid=1 operations in ap_scan=1 mode. This speeds up
scanning whenever scan_ssid=1 is used since the broadcast SSID can be
included in every scan request and if driver supports more than two
SSIDs in the scan request, the benefits are even larger when multiple
networks have been configured with ap_scan=1.

This is also cleaning up wpa_supplicant_scan() function by moving code
around so that the SSID list is not processed unnecessarily if the
operation mode does not need this.
wpa_supplicant/scan.c