wpa_supplicant: Save prev_sched_ssid only if needed
authorDavid Spinadel <david.spinadel@intel.com>
Sun, 10 Mar 2013 15:32:03 +0000 (17:32 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 10 Mar 2013 15:32:03 +0000 (17:32 +0200)
commit7ed52f678bffecd0891562035a50a69a1251b788
treecfa48922f89e92ba5f24bca109810d3d02dd0fef
parenta09fc1ccf882ad4f300e38448734fd4d5400b532
wpa_supplicant: Save prev_sched_ssid only if needed

If the whole ssid list was scanned, don't save the prev scheduled ssid
since we are going to start from beginning. Thos avoids starting sched
scan from prev_sched_ssid after scanning the full list, in case of
adding a network to ssid during scheduled scan.

Signed-hostap: David Spinadel <david.spinadel@intel.com>
wpa_supplicant/scan.c