commit | 5b9fba9a8ba00165b8eae5040198f92cd0aa87d0 | [log] [tgz] |
---|---|---|
author | Samuel Tan <samueltan@chromium.org> | Tue Nov 04 14:42:02 2014 -0800 |
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | Tue Nov 11 01:40:08 2014 +0000 |
tree | c4d843221404faabccef3556f74d8417939f5fa2 | |
parent | 96bdaecf58097e1cc54c5459e3c165de25c82134 [diff] |
shill: allow set_wake_on_wifi to set WakeOnWiFiFeaturesEnabled Modify crosh set_wake_on_wifi script to set the WakeOnWiFiFeaturesEnabled property of the wireless NIC. This property was previously a boolean belonging to the Manager DBus API, but now belongs to the Device DBus API and can take one of four possible string values (as of CL:226334). These changes to the set_wake_on_wifi script allow this property to be set conveniently via crosh. BUG=chromium:427613 TEST=Manual testing as follows: 1) Build a test image on samus and boot into it. 2) Conenct samus to an AP. Ensure that ethernet is not connected. 3) Run the following command in crosh: set_wake_on_wifi 4) Verify that the following response is received in response: "Current Wake on WiFi features enabled : ssid" 5) Run the following command: dbus-send --system --print-reply --dest=org.chromium.flimflam \ / org.chromium.flimflam.Manager.AddWakeOnPacketConnection \ string:"1.1.1.1" 6) Verify that the following error is received in response: "Error org.chromium.flimflam.Error.Failure: Wake on Packet \ feature disabled, so do nothing" 7) Run the following command in crosh: set_wake_on_wifi packet 8) Repeat step 5. 9) Verify that no error is received in response to step 8. 10) Run the following command in crosh: set_wake_on_wifi blahblah 11) Verify that the following error is received in response: "Unknown option: blahblah" Change-Id: I13ab3a66207da1fd5d03a9c738b57fd89352b205 Reviewed-on: https://chromium-review.googlesource.com/227447 Tested-by: Samuel Tan <samueltan@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Samuel Tan <samueltan@chromium.org> Commit-Queue: Samuel Tan <samueltan@chromium.org>