From c9761e828d56d9be12257a9e2421cd0379aadcec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 9 Dec 2010 00:07:26 +0000 Subject: [PATCH] * Now you can specify the network via MAC address as well using the new BNetworkAddress link address parser. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39780 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/net/wlan_test.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tests/kits/net/wlan_test.cpp b/src/tests/kits/net/wlan_test.cpp index 7949b70c00..aad1dc4199 100644 --- a/src/tests/kits/net/wlan_test.cpp +++ b/src/tests/kits/net/wlan_test.cpp @@ -74,7 +74,12 @@ main(int argc, char** argv) if (argc == 4) { // list the named entry wireless_network network; - status_t status = device.GetNetwork(argv[3], network); + BNetworkAddress link; + status_t status = link.SetTo(AF_LINK, argv[3]); + if (status == B_OK) + status = device.GetNetwork(link, network); + else + status = device.GetNetwork(argv[3], network); if (status != B_OK) { fprintf(stderr, "getting network failed: %s\n", strerror(status));