Fix mac addresses I accidentally zero'd

This commit is contained in:
Kevin Lange 2014-05-14 00:13:36 -07:00
parent e9c05fa216
commit ff2cf9ee72

View File

@ -369,6 +369,9 @@ DEFINE_SHELL_FUNCTION(rtl, "rtl8139 experiments") {
rx_wait = list_create();
fprintf(tty, "Determining mac address...\n");
for (int i = 0; i < 6; ++i) {
mac[i] = inports(rtl_iobase + RTL_PORT_MAC + i);
}
fprintf(tty, "%2x:%2x:%2x:%2x:%2x:%2x\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);