brcm47xx: add a new version of the nvram rewrite patch
[librecmc/librecmc.git] / target / linux / brcm47xx / patches-3.6 / 210-b44_phy_fix.patch
index a7929bb420a3934525e347497fc88f5c2d6106c1..4fb93195ae0b1c88ca1420d05b9818c30486f1f0 100644 (file)
@@ -15,7 +15,7 @@
 +              bp->phy_addr = B44_PHY_ADDR_NO_PHY;
 +      } else {
 +              /* WL-HDD */
-+              if (nvram_getenv("hardware_version", buf, sizeof(buf)) >= 0 &&
++              if (bcm47xx_nvram_getenv("hardware_version", buf, sizeof(buf)) >= 0 &&
 +                  !strncmp(buf, "WL300-", strlen("WL300-"))) {
 +                      if (sdev->bus->sprom.et0phyaddr == 0 &&
 +                          sdev->bus->sprom.et1phyaddr == 1)