DescriptionTreat '' in SSIDs param of DBus Scan as a request for Broadcast scan.
This changes wpa_supplicant policy for handling '' in SSIDs field of Interface.SSID DBus message.
Change-Id: I359611ed516303de9a4a6ecabdca6a6be7c05e32
BUG=chromium-os:3623
TEST=MatFunc and SecMat for regression.
For specific Tests, use WiFi sniffer (wireshark).
On dbus:
Method: Scan
Interface: fi.w1.wpa_supplicant1.Interface.Scan
Path: /fi/w1/wpa_supplicant1/Interfaces/1
Results after both this and patch 3607008:
1) Request: Passive scan (all channels)
Should be: No ProbeRequests; Passive Scan results for all channels
Previous: 1 ProbeRequest on all channels for both broadcast SSID and selected network (scan_ssid=1)
3607008: 1 ProbeRequest on all channels for both broadcast SSID and selected network (scan_ssid=1)
+This Patch: 1 ProbeRequest on all channels for both broadcast SSID and selected network (scan_ssid=1)
2) Request: Passive scan (1 channel)
Should be: No ProbeRequests; Passive Scan results for 1 channel (plus overlapping channels)
Previous: 1 broadcast ProbeRequest on specified channel
3607008: No ProbeRequests; Passive Scan results for 1 channel (plus overlapping channels)
+This Patch: No ProbeRequests; Passive Scan results for 1 channel (plus overlapping channels)
3) Request: Active scan with no SSIDs (all channels)
Should be: 1 broadcast ProbeRequest on all channels
Previous: No ProbeRequests; passive scan results for all channels
3607008: 1 broadcast ProbeRequest on all channels
+This Patch: 1 broadcast ProbeRequest on all channels
4) Request: Active scan with no SSIDs (1 channel)
Should be: 1 broadcast ProbeRequest on specified channel
Previous: No ProbeRequests; Passive scan results for specified channel (plus overlapping channels)
3607008: 1 broadcast ProbeRequest on specified channel
+This Patch: 1 broadcast ProbeRequest on specified channel
5) 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
3607008: No ProbeRequests; passive scan results for specified channel
+This Patch: FIXED: 1 broadcast ProbeRequest on specified channel
6) 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
3607008: 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
7) 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
3607008: 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
Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=d878c91
Patch Set 1 #
Total comments: 2
Patch Set 2 : Remove dependency on esoteric malloc(0)/memcpy(NULL, NULL, 0) behavior. #Patch Set 3 : Move bigger clause to top of if () {} else {}. #Messages
Total messages: 5 (0 generated)
|