[OpenWrt-Devel] [PATCH v2 1/3] ar71xx: add kernel support for the EnGenius ESR900
John Crispin
john at phrozen.org
Tue Jun 24 09:01:55 EDT 2014
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 at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list