4 #include <linux/rtnetlink.h>
5 #include <linux/time.h>
7 +#include <linux/device.h>
8 +#include <linux/ath5k_platform.h>
9 #include <asm/uaccess.h>
11 #include "if_ethersubr.h" /* for ETHER_IS_MULTICAST */
12 @@ -587,6 +589,10 @@ ath_attach(u_int16_t devid, struct net_d
14 int autocreatemode = -1;
17 + struct ath5k_platform_data *pdata;
18 + struct pci_dev *pdev;
23 @@ -648,6 +654,13 @@ ath_attach(u_int16_t devid, struct net_d
28 + /* set MAC from ath_platform_data */
29 + pdev = (struct pci_dev *)sc->sc_bdev;
30 + pdata = pdev->dev.platform_data;
31 + if (pdata && pdata->macaddr)
32 + ath_hal_setmac(ah, pdata->macaddr);
34 /* WAR for AR7100 PCI bug */
35 #if defined(CONFIG_ATHEROS_AR71XX) || defined(CONFIG_ATH79)
36 if ((ar_device(sc->devid) >= 5210) && (ar_device(sc->devid) < 5416)) {