Minor fix (use ETHARP_HWADDR_LEN)

This commit is contained in:
fbernon 2007-08-31 09:02:53 +00:00
parent 6c10282f9a
commit 231d965bcb
2 changed files with 2 additions and 2 deletions

View File

@ -362,7 +362,7 @@ Call these functions in the order of appearance:
{
u8_t i;
for(i = 0; i < 6; i++) netif->hwaddr[i] = some_eth_addr[i];
for(i = 0; i < ETHARP_HWADDR_LEN; i++) netif->hwaddr[i] = some_eth_addr[i];
init_my_eth_device();
return ERR_OK;
}

View File

@ -84,7 +84,7 @@ low_level_init(struct netif *netif)
struct ethernetif *ethernetif = netif->state;
/* set MAC hardware address length */
netif->hwaddr_len = 6;
netif->hwaddr_len = ETHARP_HWADDR_LEN;
/* set MAC hardware address */
netif->hwaddr[0] = ;