commit | 56cd167db0e1049a6946446b95f150fa8a3e59cd | [log] [tgz] |
---|---|---|
author | Samuel Tan <samueltan@chromium.org> | Tue Feb 10 18:42:44 2015 -0800 |
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | Wed Feb 11 06:00:25 2015 +0000 |
tree | 10dc4e625c4cd323130f4bd21721f26e6fca22d9 | |
parent | 83d625655edbc7c35fc436b8b8fe744886d0aae1 [diff] |
shill: check correct data structure size in AddWakeOnPacketConnection Check the size of |wake_on_packet_connections_| instead of |wake_on_wifi_triggers_| in WakeOnWiFi::AddWakeOnPacketConnection to determine if the max number of wake patterns have already been registered. BUG=chromium:457526 TEST=Compile shill and run unit tests using: P2_TEST_FILTER="shill::*" FEATURES="test" USE="wake_on_wifi clang asan" \ emerge-samus shill P2_TEST_FILTER="shill::*" FEATURES="test" USE="-wake_on_wifi clang asan" \ emerge-samus shill Change-Id: Iaf7cd7e80df618130ced86b703fce83b1aba4b15 Reviewed-on: https://chromium-review.googlesource.com/248433 Trybot-Ready: Samuel Tan <samueltan@chromium.org> Tested-by: Samuel Tan <samueltan@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Samuel Tan <samueltan@chromium.org>