1 --- a/ath/if_ath.c 2010-07-13 22:58:23.000000000 +0200
2 +++ b/ath/if_ath.c 2010-07-13 23:03:20.000000000 +0200
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 */
14 int autocreatemode = -1;
17 + struct ath5k_platform_data *pdata;
18 + struct pci_dev *pdev;
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 #ifdef CONFIG_ATHEROS_AR71XX
36 if ((ar_device(sc->devid) >= 5210) && (ar_device(sc->devid) < 5416)) {