Author: axeld Date: 2010-12-09 01:07:26 +0100 (Thu, 09 Dec 2010) New Revision: 39780 Changeset: http://dev.haiku-os.org/changeset/39780 Modified: haiku/trunk/src/tests/kits/net/wlan_test.cpp Log: * Now you can specify the network via MAC address as well using the new BNetworkAddress link address parser. Modified: haiku/trunk/src/tests/kits/net/wlan_test.cpp =================================================================== --- haiku/trunk/src/tests/kits/net/wlan_test.cpp 2010-12-09 00:06:45 UTC (rev 39779) +++ haiku/trunk/src/tests/kits/net/wlan_test.cpp 2010-12-09 00:07:26 UTC (rev 39780) @@ -74,7 +74,12 @@ 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));