atmel.c (942baad211336efefb93a8369478888ab845c450) | atmel.c (708884e7f7f3adb00ddb32d1c1a772d30bf86747) |
---|---|
1/*** -*- linux-c -*- ********************************************************** 2 3 Driver for Atmel at76c502 at76c504 and at76c506 wireless cards. 4 5 Copyright 2000-2001 ATMEL Corporation. 6 Copyright 2003-2004 Simon Kelley. 7 8 This code was developed from version 2.1.1 of the Atmel drivers, --- 3716 unchanged lines hidden (view full) --- 3725 } 3726 3727 if (rc) { 3728 if (dev->dev_addr[0] == 0xFF) { 3729 static const u8 default_mac[] = { 3730 0x00, 0x04, 0x25, 0x00, 0x00, 0x00 3731 }; 3732 printk(KERN_ALERT "%s: *** Invalid MAC address. UPGRADE Firmware ****\n", dev->name); | 1/*** -*- linux-c -*- ********************************************************** 2 3 Driver for Atmel at76c502 at76c504 and at76c506 wireless cards. 4 5 Copyright 2000-2001 ATMEL Corporation. 6 Copyright 2003-2004 Simon Kelley. 7 8 This code was developed from version 2.1.1 of the Atmel drivers, --- 3716 unchanged lines hidden (view full) --- 3725 } 3726 3727 if (rc) { 3728 if (dev->dev_addr[0] == 0xFF) { 3729 static const u8 default_mac[] = { 3730 0x00, 0x04, 0x25, 0x00, 0x00, 0x00 3731 }; 3732 printk(KERN_ALERT "%s: *** Invalid MAC address. UPGRADE Firmware ****\n", dev->name); |
3733 memcpy(dev->dev_addr, default_mac, ETH_ALEN); | 3733 eth_hw_addr_set(dev, default_mac); |
3734 } 3735 } 3736 3737 return rc; 3738} 3739 3740/* Move the encyption information on the MIB structure. 3741 This routine is for the pre-WPA firmware: later firmware has --- 782 unchanged lines hidden --- | 3734 } 3735 } 3736 3737 return rc; 3738} 3739 3740/* Move the encyption information on the MIB structure. 3741 This routine is for the pre-WPA firmware: later firmware has --- 782 unchanged lines hidden --- |