hw.c (7731b8bc94e599c9a79e428f3359ff2c34b7576a) | hw.c (6c1f0a1ffb7c2b0501521b9fc1f53b4109f1791b) |
---|---|
1/* 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 482 unchanged lines hidden (view full) --- 491 } 492 493 if (is_valid_ether_addr(common->macaddr)) 494 return; 495 496 ath_err(common, "eeprom contains invalid mac address: %pM\n", 497 common->macaddr); 498 | 1/* 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 482 unchanged lines hidden (view full) --- 491 } 492 493 if (is_valid_ether_addr(common->macaddr)) 494 return; 495 496 ath_err(common, "eeprom contains invalid mac address: %pM\n", 497 common->macaddr); 498 |
499 random_ether_addr(common->macaddr); | 499 eth_random_addr(common->macaddr); |
500 ath_err(common, "random mac address will be used: %pM\n", 501 common->macaddr); 502 503 return; 504} 505 506static int ath9k_hw_post_init(struct ath_hw *ah) 507{ --- 2863 unchanged lines hidden --- | 500 ath_err(common, "random mac address will be used: %pM\n", 501 common->macaddr); 502 503 return; 504} 505 506static int ath9k_hw_post_init(struct ath_hw *ah) 507{ --- 2863 unchanged lines hidden --- |