commit | bf74a67a6dec2f438e6826a3f39c4e1100d1f016 | [log] [tgz] |
---|---|---|
author | Gary Morain <gmorain@chromium.org> | Mon Jul 30 16:27:19 2012 -0700 |
committer | Gerrit <chrome-bot@google.com> | Mon Jul 30 20:32:15 2012 -0700 |
tree | e4fb46efa320b26fd35e7beea587d5efcd9e07d1 | |
parent | 446639208c7678fd0ef452caf8ce63b6596d25e2 [diff] |
shill: Use real MAC address for cellular devices. Read the MAC address for cellular devices from the kernel at the time of device creation instead of using the MAC address from the RTNL link-add message. The MAC address in the link-add message for usb-based devices may not be consistent from one reboot to another. The MAC address is used in the shill profile's entry for the device, and so if the MAC address changes from one reboot to another, ChromeOS does not use the existing entry in the profile but instead creates another, with input from the user. BUG=chromium-os:33006 TEST=Run all unit tests. Test with Gobi 2k (which exhibits the problem of 33006), Gobi 3k, and E362. Change-Id: I2147139c2f33a0ee9909516933e500cefb7dc2bc Reviewed-on: https://gerrit.chromium.org/gerrit/28738 Reviewed-by: Paul Stewart <pstew@chromium.org> Reviewed-by: mukesh agrawal <quiche@chromium.org> Commit-Ready: Gary Morain <gmorain@chromium.org> Tested-by: Gary Morain <gmorain@chromium.org>