|
@@ -112,16 +112,7 @@ static void low_level_init(struct netif *netif)
|
|
|
|
|
|
/* set netif MAC hardware address length */
|
|
|
netif->hwaddr_len = ETHARP_HWADDR_LEN;
|
|
|
-
|
|
|
- /* set netif MAC hardware address */
|
|
|
-#ifdef BT6702_SERVICE
|
|
|
- netif->hwaddr[0] = MAC[0];
|
|
|
- netif->hwaddr[1] = MAC[1];
|
|
|
- netif->hwaddr[2] = MAC[2];
|
|
|
- netif->hwaddr[3] = MAC[3];
|
|
|
- netif->hwaddr[4] = MAC[4];
|
|
|
- netif->hwaddr[5] = MAC[5];
|
|
|
-#else
|
|
|
+
|
|
|
SETTINGS_GetMac(mac);
|
|
|
|
|
|
netif->hwaddr[0] = mac[0];
|
|
@@ -130,7 +121,6 @@ static void low_level_init(struct netif *netif)
|
|
|
netif->hwaddr[3] = mac[3];
|
|
|
netif->hwaddr[4] = mac[4];
|
|
|
netif->hwaddr[5] = mac[5];
|
|
|
-#endif
|
|
|
|
|
|
/* set netif maximum transfer unit */
|
|
|
netif->mtu = 1500;
|