On Tue, 2012-11-27 at 23:09 -0800, Daniel Gimpelevich wrote: > On Wed, 2012-11-28 at 07:53 +0100, John Crispin wrote: > > On 28/11/12 02:47, Daniel Gimpelevich wrote: > > > This corrects a few oversights in mach-netgear.c, adds a diag.sh with > > > per-board conditionals, in line with the uci-defaults "leds" file, fixes > > > the Netgear eth0 MAC address detection, and provides a mechanism for the > > > DSL driver to have a preset MAC address. > > > > > > Signed-off-by: Daniel Gimpelevich<dan...@gimpelevich.san-francisco.ca.us> snip > > + if ((substr = strstr(saved_command_line, "ethaddr=")) != > saved_command_line) > + substr = strstr(saved_command_line, " ethaddr="); > + esiset = (substr != NULL && sscanf(substr, " > ethaddr=%2hhx:%2hhx:%2hhx:%2hhx:%2hhx:%2hhx", esi, esi + 1, esi + 2, esi + 3, > esi + 4, esi + 5) == 6); > /* create devices */ > for ( port_num = 0; port_num < ATM_PORT_NUMBER; port_num++ ) { > #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) > @@ -4647,6 +4652,12 @@ > g_atm_priv_data.port[port_num].dev->ci_range.vci_bits = 16; > g_atm_priv_data.port[port_num].dev->link_rate = > g_atm_priv_data.port[port_num].tx_max_cell_rate; > g_atm_priv_data.port[port_num].dev->dev_data = (void*)port_num; > + if (esiset) { > + if (!++(esi[5])) > + if (!++(esi[4])) > + esi[3]++; > + memcpy(g_atm_priv_data.port[port_num].dev->esi, esi, 6); > + } > } > }
This will affect all lantiq atm boards? I specify an ethernet MAC via the command line, but I don't necessarily want it in the atm. Conor _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel