Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. 1001,1004c1001,1012
  2. < strcpy(router_mac, get_lan_hwaddr());
  3. < #if defined(RTCONFIG_QCA) && defined(RTCONFIG_WIRELESSREPEATER)
  4. < if (nvram_get_int("sw_mode") == SW_MODE_REPEATER && (mac = getStaMAC()) != NULL)
  5. < strncpy(router_mac, mac, sizeof(router_mac));
  6. ---
  7. > #if defined(RTCONFIG_RGMII_BRCM5301X)
  8. > strcpy(router_mac, nvram_safe_get("et1macaddr"));
  9. > #else
  10. > #if defined(RTCONFIG_QCA)
  11. > #ifdef RTCONFIG_WIRELESSREPEATER
  12. > if(nvram_get_int("sw_mode")==SW_MODE_REPEATER && (mac=getStaMAC())!=NULL)
  13. > strlcpy(router_mac, mac, sizeof(router_mac));
  14. > else
  15. > #endif
  16. > strcpy(router_mac, nvram_safe_get("et1macaddr"));
  17. > #else
  18. > strcpy(router_mac, nvram_safe_get("et0macaddr"));
  19. 1005a1014
  20. > #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement