efhq 发自我的手机18610461647
> 在 2014年6月24日,下午9:01,John Crispin <j...@phrozen.org> 写道: > > Hi, > >> On 22/06/2014 22:20, Forest Crossman wrote: >> diff --git a/target/linux/ar71xx/files/arch/mips/ath79/nvram.c >> b/target/linux/ar71xx/files/arch/mips/ath79/nvram.c index >> 43911b8..41c3542 100644 --- >> a/target/linux/ar71xx/files/arch/mips/ath79/nvram.c +++ >> b/target/linux/ar71xx/files/arch/mips/ath79/nvram.c @@ -16,6 >> +16,21 @@ >> >> #include "nvram.h" >> >> +char *ath79_nvram_sanitize_mac(char *input) +{ + int i,j; + char >> *output=input; + for (i = 0, j = 0; i<strlen(input); i++,j++) + { >> + if (input[i]!='\"') + output[j]=input[i]; + else + >> j--; + } >> + output[j]=0; + return output; +} + char >> *ath79_nvram_find_var(const char *name, const char *buf, unsigned >> buf_len) { unsigned len = strlen(name); > > this loop is a bit weird. ca you tell us in what way the mac is broken > on your board ? > > John > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel