[RESEND PATCH] Dont exceed scan ssid max size advertised by driver

Jouni Malinen j at w1.fi
Sun Jul 3 13:32:37 PDT 2016

On Thu, Jun 30, 2016 at 03:26:07PM -0700, Roshan Pius wrote:
> Currently |wpa_set_scan_ssids| fully exhausts
> |wpa_driver_scan_params.ssid| list when hidden network ID's
> 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|.

Thanks, applied. Though, I replaced the max_ssids == 1 check with a
check that matches the comment (i.e., max_ssids > 1 and reversed values)
to avoid any potential issues with max_ssids == 0.
Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list