BNetworkDevice.GetHardwareAddress() was broken.

* Copy&paste error, apparently.
This commit is contained in:
Axel Dörfler
2015-03-27 13:08:43 +01:00
parent 54c34be74b
commit d5dd8637bb
+2 -2
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2010, Axel Dörfler, [email protected]. * Copyright 2010-2015, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
@@ -623,7 +623,7 @@ status_t
BNetworkDevice::GetHardwareAddress(BNetworkAddress& address) BNetworkDevice::GetHardwareAddress(BNetworkAddress& address)
{ {
ifreq request; ifreq request;
status_t status = do_request(request, Name(), SIOCSIFMEDIA); status_t status = do_request(request, Name(), SIOCGIFADDR);
if (status != B_OK) if (status != B_OK)
return status; return status;