<p>Matthias Kaehlcke has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/28711">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vpd: Add support for reading BD addreses from the VPD<br><br>Also scan the VPD for Bluetooth device addresses (BD_ADDR). Add them to<br>the tables after Ethernet and WiFi MACs to avoid mismatches on existing<br>systems that may have 'bluetooth_macX' set.<br><br>BUG=b:113114217<br><br>Change-Id: Ib290fba2504f6ed80c3a95e24627ae5922e608af<br>Signed-off-by: Matthias Kaehlcke <mka@chromium.org><br>---<br>M src/vendorcode/google/chromeos/vpd_mac.c<br>1 file changed, 5 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/11/28711/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/vendorcode/google/chromeos/vpd_mac.c b/src/vendorcode/google/chromeos/vpd_mac.c</span><br><span>index e3ef04b..08ca58c 100644</span><br><span>--- a/src/vendorcode/google/chromeos/vpd_mac.c</span><br><span>+++ b/src/vendorcode/google/chromeos/vpd_mac.c</span><br><span>@@ -59,10 +59,12 @@</span><br><span> void lb_table_add_macs_from_vpd(struct lb_header *header)</span><br><span> {</span><br><span>        /*</span><br><span style="color: hsl(0, 100%, 40%);">-       * Mac addresses in the VPD can be stored in two groups, for ethernet</span><br><span style="color: hsl(0, 100%, 40%);">-    * and WiFi, with keys 'ethernet_macX and wifi_macX.</span><br><span style="color: hsl(120, 100%, 40%);">+       * Mac addresses in the VPD can be stored in three groups, for</span><br><span style="color: hsl(120, 100%, 40%);">+         * ethernet, WiFi and Bluetooh, with keys 'ethernet_macX,</span><br><span style="color: hsl(120, 100%, 40%);">+  * wifi_macX and bluetooth_macX</span><br><span>       */</span><br><span style="color: hsl(0, 100%, 40%);">-     const char *mac_addr_key_bases[] = {"ethernet_mac0", "wifi_mac0"};</span><br><span style="color: hsl(120, 100%, 40%);">+        const char *mac_addr_key_bases[] = {"ethernet_mac0", "wifi_mac0",</span><br><span style="color: hsl(120, 100%, 40%);">+                                     "bluetooth_mac0"};</span><br><span>     char mac_addr_key[20]; /* large enough for either key */</span><br><span>     char mac_addr_str[13]; /* 12 symbols and the trailing zero. */</span><br><span>       int i, count;</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/28711">change 28711</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/28711"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ib290fba2504f6ed80c3a95e24627ae5922e608af </div>
<div style="display:none"> Gerrit-Change-Number: 28711 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Matthias Kaehlcke <mka@chromium.org> </div>