Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Issue 3543011: Treat '' in SSIDs param of DBus Scan as a request for Broadcast scan. (Closed)

Created:
10 years, 2 months ago by Daniel Kurtz
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Treat '' 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 {}. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -13 lines) Patch
M wpa_supplicant/dbus/dbus_new_handlers.c View 1 2 1 chunk +17 lines, -13 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Paul Stewart
LGTM. Please upstream this change to the hostap list (if you haven't already, subscribe to ...
10 years, 2 months ago (2010-10-06 16:49:59 UTC) #1
Daniel Kurtz
10 years, 2 months ago (2010-10-06 17:23:22 UTC) #2
Sam Leffler
http://codereview.chromium.org/3543011/diff/1/2 File wpa_supplicant/dbus/dbus_new_handlers.c (right): http://codereview.chromium.org/3543011/diff/1/2#newcode1000 wpa_supplicant/dbus/dbus_new_handlers.c:1000: ssid = os_malloc(len); I find this a bit awkward; ...
10 years, 2 months ago (2010-10-06 17:29:29 UTC) #3
Daniel Kurtz
http://codereview.chromium.org/3543011/diff/1/2 File wpa_supplicant/dbus/dbus_new_handlers.c (right): http://codereview.chromium.org/3543011/diff/1/2#newcode1000 wpa_supplicant/dbus/dbus_new_handlers.c:1000: ssid = os_malloc(len); On 2010/10/06 17:29:30, Sam Leffler wrote: ...
10 years, 2 months ago (2010-10-06 18:10:36 UTC) #4
Sam Leffler
10 years, 2 months ago (2010-10-06 18:25:46 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698