Author: rmilecki Date: 2015-09-07 18:43:29 +0200 (Mon, 07 Sep 2015) New Revision: 46806
Modified: trunk/target/linux/brcm47xx/patches-4.1/820-wgt634u-nvram-fix.patch Log: brcm47xx: fix reading WGT634U CFE variables with 4.1 This ports fix from r46584 to the 4.1. Signed-off-by: Rafa?\197?\130 Mi?\197?\130ecki <[email protected]> Modified: trunk/target/linux/brcm47xx/patches-4.1/820-wgt634u-nvram-fix.patch =================================================================== --- trunk/target/linux/brcm47xx/patches-4.1/820-wgt634u-nvram-fix.patch 2015-09-07 16:29:21 UTC (rev 46805) +++ trunk/target/linux/brcm47xx/patches-4.1/820-wgt634u-nvram-fix.patch 2015-09-07 16:43:29 UTC (rev 46806) @@ -279,9 +279,9 @@ /* TODO: when nvram is on nand flash check for bad blocks first. */ off = FLASH_MIN; while (off <= lim) { -@@ -186,6 +208,13 @@ int bcm47xx_nvram_getenv(const char *nam - return err; - } +@@ -180,6 +202,13 @@ int bcm47xx_nvram_getenv(const char *nam + if (!name) + return -EINVAL; + if (cfe_env) { + value = cfe_env_get(nvram_buf, name); @@ -290,6 +290,6 @@ + return snprintf(val, val_len, "%s", value); + } + - /* Look for name=value and return value */ - var = &nvram_buf[sizeof(struct nvram_header)]; - end = nvram_buf + sizeof(nvram_buf); + if (!nvram_len) { + err = nvram_init(); + if (err) _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
