mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[undi] Use current (rather than permanent) link-layer address
Requested-by: Savitha Hiriyannaia <Savitha.Hiriyannaiah@emulex.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -539,6 +539,7 @@ int undinet_probe ( struct undi_device *undi ) {
|
|||||||
&undi_info, sizeof ( undi_info ) ) ) != 0 )
|
&undi_info, sizeof ( undi_info ) ) ) != 0 )
|
||||||
goto err_undi_get_information;
|
goto err_undi_get_information;
|
||||||
memcpy ( netdev->hw_addr, undi_info.PermNodeAddress, ETH_ALEN );
|
memcpy ( netdev->hw_addr, undi_info.PermNodeAddress, ETH_ALEN );
|
||||||
|
memcpy ( netdev->ll_addr, undi_info.CurrentNodeAddress, ETH_ALEN );
|
||||||
undinic->irq = undi_info.IntNumber;
|
undinic->irq = undi_info.IntNumber;
|
||||||
if ( undinic->irq > IRQ_MAX ) {
|
if ( undinic->irq > IRQ_MAX ) {
|
||||||
DBGC ( undinic, "UNDINIC %p has invalid IRQ %d\n",
|
DBGC ( undinic, "UNDINIC %p has invalid IRQ %d\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user