Do not exceed scan ssid max size advertised by driver
authorRoshan Pius <rpius@google.com>
Thu, 30 Jun 2016 22:26:07 +0000 (15:26 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 3 Jul 2016 16:13:42 +0000 (19:13 +0300)
commitef60f643ec50a3746b47aede5ae9f52410c7aa8e
tree3b2822b57da5359ca01533bf147b878084e1f483
parent1c96988bc27a77143dd217c32d815f2e17c5af69
Do not exceed scan ssid max size advertised by driver

Previously, wpa_set_scan_ssids() fully exhausted
wpa_driver_scan_params.ssid list when hidden network IDs are provided
via the control interface. This results in us exceeding the max size for
the list advertised by the driver when we add the "wildcard" scan SSID
entry. So, ensure that we leave space for one more scan SSID entry in
the list when we exit out of wpa_set_scan_ssids().

Signed-off-by: Roshan Pius <rpius@google.com>
wpa_supplicant/scan.c