1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
6 #include <linux/slab.h>
7 +#include <linux/etherdevice.h>
8 #include <asm/unaligned.h>
11 @@ -434,8 +435,16 @@ static int ath9k_hw_init_macaddr(struct
12 common->macaddr[2 * i] = eeval >> 8;
13 common->macaddr[2 * i + 1] = eeval & 0xff;
15 - if (sum == 0 || sum == 0xffff * 3)
16 - return -EADDRNOTAVAIL;
17 + if (!is_valid_ether_addr(common->macaddr)) {
19 + "eeprom contains invalid mac address: %pM\n",
22 + random_ether_addr(common->macaddr);
24 + "random mac address will be used: %pM\n",