Fix sched_scan for max-num-of-scan_ssid=1 networks
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 17 Apr 2012 13:51:09 +0000 (16:51 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 17 Apr 2012 13:51:09 +0000 (16:51 +0300)
commitb55aca4672f0cf683bade290e51364e104f94c7e
tree9d316cbbfc65ce2956eb9b8438bd6151eeced1b0
parent7d21a223f1544641436b1f8e04eecceada267027
Fix sched_scan for max-num-of-scan_ssid=1 networks

When the network configuration includes exactly the number of
scan_ssid=1 networks as the driver supports for scan_sched and no
networks need wildcard SSID scan, there is no need to use sched_scan
timeout. Check this condition and optimize this case to avoid the extra
sched_scan start/stop operations.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/scan.c