sunxi: Ensure that the NIC specific bytes of the mac are not all 0
authorHans de Goede <hdegoede@redhat.com>
Wed, 27 Jul 2016 15:58:06 +0000 (17:58 +0200)
committerHans de Goede <hdegoede@redhat.com>
Sun, 31 Jul 2016 19:45:34 +0000 (21:45 +0200)
commit97322c3e074d49b1e2c6d98c7e69e5da3093636f
tree1a2e1c8c2a33723df510175405ef8bce3712fc88
parent3e5e274aed347cfcbf7cb7772fcd51d513f59402
sunxi: Ensure that the NIC specific bytes of the mac are not all 0

On 2 of my H3 boards bytes 13-15 of the SID are all 0 leading to
the NIC specific bytes of the mac all being 0, which leads to the
boards not getting an ipv6 address from the dhcp server.

This commits adds a check to ensure this does not happen.

Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Corentin LABBE <clabbe.montjoie@gmail.com>
Cc: Amit Singh Tomar <amittomer25@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
board/sunxi/board.c