hostap/wpa_supplicant/dbus
Daniel Kurtz 556522ee09 dbus: Treat '' in SSIDs of Interface.Scan as a request for broadcast scan
This patch changes wpa_supplicant policy for handling '' in SSIDs field of
Interface.SSID DBus message. It treats '' (zero-length) SSID as a request
for a broadcast scan, instead of ignoring it.

This patch updates DBus API .Scan() logic per the test cases listed below:

1) Interface.Scan({'Type':'active', 'Channel':(2412, 20)})
   Request:     Active scan with only '' SSID (1 channel)
   Should be:   1 broadcast ProbeRequest on specified channel
   Previous:    1 broadcast ProbeRequest on specified channel
   This Patch:  1 broadcast ProbeRequest on specified channel

2) Interface.Scan({'Type':'active', 'Channel':(2412, 20), 'SSIDs':['']})
   Request:     Active scan with only '' SSID (1 channel)
   Should be:   1 broadcast ProbeRequest on specified channel
   Previous:    No ProbeRequests; passive scan results for specified channel
   This Patch:  FIXED: 1 broadcast ProbeRequest on specified channel

3) Interface.Scan({'Type':'active', 'Channel':(2412, 20), 'SSIDs':['MySSID']})
   Request:     Active scan with only non-'' SSIDs (1 channel)
   Should be:   1 directed ProbeRequest for each SSID on specified channel,
	no broadcast ProbeRequest
   Previous:    1 directed ProbeRequest for each SSID on specified channel,
	no broadcast ProbeRequest
   This Patch:  1 directed ProbeRequest for each SSID on specified channel,
	no broadcast ProbeRequest

4) Interface.Scan({'Type':'active', 'Channel':(2412, 20), 'SSIDs':['',
	'MySSID']})
   Request:     Active scan with SSIDs, including 1 '' SSID (1 channel)
   Should be:   1 broadcast ProbeRequest, 1 directed ProbeRequest for each
	non-'' SSID on specified channel
   Previous:    1 directed ProbeRequest for each non-'' SSID on specified
	channel
   This Patch:  FIXED: 1 broadcast ProbeRequest, 1 directed ProbeRequest for
	each non-'' SSID on specified channel
2010-10-09 16:27:53 +03:00
..
.gitignore dbus: Clean dbus build files on wpa_supplicant 'make clean' 2009-12-20 20:29:09 +02:00
dbus-wpa_supplicant.conf Move D-Bus related files into their own subdirectory 2009-12-20 20:11:14 +02:00
dbus_common.c dbus: Fix init-failure-detection 2010-01-01 21:30:58 +02:00
dbus_common.h dbus: Share common initialization code for both old and new interface 2009-12-31 00:15:56 +02:00
dbus_common_i.h dbus: Do not deinitialize new D-Bus API if it is not initialized 2009-12-31 21:50:12 +02:00
dbus_dict_helpers.c dbus: Simplify _wpa_dbus_dict_fill_value_from_variant() a bit 2010-01-02 10:59:51 +02:00
dbus_dict_helpers.h dbus: Share the same function for type to type-as-string conversion 2010-01-02 10:45:03 +02:00
dbus_new.c Skip D-Bus signals if the dbus_path is not yet set 2010-05-23 20:23:11 +03:00
dbus_new.h dbus: Change WPA/RSNIE byte array props to dicts 2010-01-16 16:37:37 +02:00
dbus_new_handlers.c dbus: Treat '' in SSIDs of Interface.Scan as a request for broadcast scan 2010-10-09 16:27:53 +03:00
dbus_new_handlers.h dbus: Change WPA/RSNIE byte array props to dicts 2010-01-16 16:37:37 +02:00
dbus_new_handlers_wps.c P2P: Set Device Password ID in WPS M1/M2 per new rules 2010-09-09 07:17:19 -07:00
dbus_new_helpers.c dbus: Fix crash on property change if D-Bus API is disabled 2010-01-06 12:14:35 +02:00
dbus_new_helpers.h dbus: Aggregate PropertiesChanged signals 2010-01-04 17:15:57 +02:00
dbus_new_introspect.c dbus: Remove duplication of object methods/signals/properties 2010-01-03 00:52:30 +02:00
dbus_old.c Skip D-Bus signals if the dbus_path is not yet set 2010-05-23 20:23:11 +03:00
dbus_old.h dbus: Clean up dbus_path/dbus_new_path use 2010-01-01 19:12:31 +02:00
dbus_old_handlers.c dbus: Deauthenticate instead of disassociate on disconnect command 2010-08-18 21:27:30 +03:00
dbus_old_handlers.h dbus: Use BSS table instead of raw scan results in older API 2010-01-02 15:13:25 +02:00
dbus_old_handlers_wps.c P2P: Set Device Password ID in WPS M1/M2 per new rules 2010-09-09 07:17:19 -07:00
fi.epitest.hostap.WPASupplicant.service dbus: Rename .service file to use the service name as the file name 2009-12-20 20:15:40 +02:00
fi.w1.wpa_supplicant1.service dbus: Add missing .service file for the new D-Bus API 2009-12-20 20:14:10 +02:00
Makefile dbus: Move introspection support into a separate file 2010-01-01 14:03:00 +02:00