wifi: Don't pass empty SSID to gsupplicant

Fix gsupplicant not to include empty entry "SSIDs" in D-Bus message to
wpa_supplicant

To do an active wifi scan on all channels ConnMan calls gsupplicant's
g_supplicant_interface_scan() with empty list of frequencies and empty
list of SSIDs.  gsupplicant used to send an empty entry of "SSIDs" in
this case.  Sending the empty entry "SSIDs" to wpa_supplicant 2.6
triggers an error in wpas_dbus_get_scan_ssids() called from
wpas_dbus_handler_scan().  The function does not expect the empty list
and fails with the error: "wpas_dbus_get_scan_ssids[dbus]: ssids must
be an array of arrays of bytes"
1 file changed