提交 74037028 编写于 作者: J Jan-Christoph Tebbe 提交者: Tom Rini

mach-snapdragon: Fix overwriting last digit of serial number

When generating the MAC address based on the boards serial number
the last digit was overwritten with the null termination. That way
boards with serial numbers close to each other would use the same
MAC address.
Signed-off-by: NJan-Christoph Tebbe <Jan-Christoph.Tebbe@ithinx.io>
上级 9d15d1d1
......@@ -41,7 +41,7 @@ void msm_generate_mac_addr(u8 *mac)
int i;
char sn[9];
snprintf(sn, 8, "%08x", msm_board_serial());
snprintf(sn, 9, "%08x", msm_board_serial());
/* fill in the mac with serialno, use locally adminstrated pool */
mac[0] = 0x02;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册