diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-09-08 14:23:21 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-09-09 12:52:12 +0100 |
commit | 91e147213c58c4c841416830122a0e44d69f69ad (patch) | |
tree | 2511b81335a9877577ceca48892b399a86704a99 /src/drivers/net/ncm.c | |
parent | 0cc4c42f0af716bc5a363ad699160926e91a4d35 (diff) | |
download | ipxe-91e147213c58c4c841416830122a0e44d69f69ad.tar.gz |
[ecm] Expose USB vendor/device information to ecm_fetch_mac()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/ncm.c')
-rw-r--r-- | src/drivers/net/ncm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/ncm.c b/src/drivers/net/ncm.c index cc07a4388..1e8088d76 100644 --- a/src/drivers/net/ncm.c +++ b/src/drivers/net/ncm.c @@ -598,7 +598,7 @@ static int ncm_probe ( struct usb_function *func, } /* Fetch MAC address */ - if ( ( rc = ecm_fetch_mac ( usb, ethernet, netdev->hw_addr ) ) != 0 ) { + if ( ( rc = ecm_fetch_mac ( func, ethernet, netdev->hw_addr ) ) != 0 ) { DBGC ( ncm, "NCM %p could not fetch MAC address: %s\n", ncm, strerror ( rc ) ); goto err_fetch_mac; |