Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1001,1004c1001,1012
- < strcpy(router_mac, get_lan_hwaddr());
- < #if defined(RTCONFIG_QCA) && defined(RTCONFIG_WIRELESSREPEATER)
- < if (nvram_get_int("sw_mode") == SW_MODE_REPEATER && (mac = getStaMAC()) != NULL)
- < strncpy(router_mac, mac, sizeof(router_mac));
- ---
- > #if defined(RTCONFIG_RGMII_BRCM5301X)
- > strcpy(router_mac, nvram_safe_get("et1macaddr"));
- > #else
- > #if defined(RTCONFIG_QCA)
- > #ifdef RTCONFIG_WIRELESSREPEATER
- > if(nvram_get_int("sw_mode")==SW_MODE_REPEATER && (mac=getStaMAC())!=NULL)
- > strlcpy(router_mac, mac, sizeof(router_mac));
- > else
- > #endif
- > strcpy(router_mac, nvram_safe_get("et1macaddr"));
- > #else
- > strcpy(router_mac, nvram_safe_get("et0macaddr"));
- 1005a1014
- > #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement