psyke83/android_device_huawei_u8160 — comment on commit aba4f3ef6a2e52a13035629506194a9e99bb5383
File:  line 0
By psyke83:

I'm not sure what you mean by "real" hardware MAC addresses? The value from /sys/module/g_android/parameters/serial_number is the base serial number unique to each device, and the stock rom appears to derive the BT and wifi mac addresses from the base address simply by incrementing it by 1 and 2 bytes, respectively.

I checked a dmesg log from my stock rom, and I can see the usb_serial announced (identical to the sysfs node above), and the wifi address is also listed, simply 1 byte incremented and formatted properly. The value is not the same as yours.

Perhaps there's a better way to do this (e.g., on the stock ROM, the dhd.ko driver appears to be using some ioctl to get the mac address, and I have no idea how BT finds it), but that's not really important anyway :). The only problem is that the script is a bit dumb and will not yield valid addresses when the final two digits are >0xFD.