Skip to content

Commit 8ab64a9

Browse files
fix(t8030): set fake bluetooth mac address
1 parent c81f6a7 commit 8ab64a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hw/arm/apple-silicon/t8030.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,6 +2051,13 @@ static void t8030_create_misc(AppleT8030MachineState *t8030)
20512051
// setting 0 results in defaulting to 2400000
20522052
apple_dt_set_prop_u32(child, "transport-speed", 2400000);
20532053

2054+
apple_dt_set_prop(child, "local-mac-address", 6,
2055+
(const uint8_t[]){ 0xDE, 0xAD, 0xBE, 0xEF, 0x42, 0x42 });
2056+
2057+
child = apple_dt_get_node(t8030->device_tree, "chosen");
2058+
apple_dt_set_prop(child, "mac-address-bluetooth0", 6,
2059+
(const uint8_t[]){ 0xDE, 0xAD, 0xBE, 0xEF, 0x42, 0x42 });
2060+
20542061
// child = apple_dt_get_node(armio, "wlan");
20552062
// assert_nonnull(child);
20562063
}

0 commit comments

Comments
 (0)