summaryrefslogtreecommitdiffstatshomepage
path: root/drivers/wiznet5k/ethernet/wizchip_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/wiznet5k/ethernet/wizchip_conf.c')
-rw-r--r--drivers/wiznet5k/ethernet/wizchip_conf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/wiznet5k/ethernet/wizchip_conf.c b/drivers/wiznet5k/ethernet/wizchip_conf.c
index 87b5427f26..110e284bbc 100644
--- a/drivers/wiznet5k/ethernet/wizchip_conf.c
+++ b/drivers/wiznet5k/ethernet/wizchip_conf.c
@@ -606,6 +606,12 @@ void wizchip_getnetinfo(wiz_NetInfo* pnetinfo)
getGAR(pnetinfo->gw);
getSUBR(pnetinfo->sn);
getSIPR(pnetinfo->ip);
+#if _WIZCHIP_ == 5200 // for W5200 ARP errata
+ pnetinfo->sn[0] = _SUBN_[0];
+ pnetinfo->sn[1] = _SUBN_[1];
+ pnetinfo->sn[2] = _SUBN_[2];
+ pnetinfo->sn[3] = _SUBN_[3];
+#endif
pnetinfo->dns[0]= _DNS_[0];
pnetinfo->dns[1]= _DNS_[1];
pnetinfo->dns[2]= _DNS_[2];