* Implemented IsEthernet(), and IsWireless() temporarily, but this will do
for some drivers at least. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39393 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
#include <AutoDeleter.h>
|
#include <AutoDeleter.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <net80211/ieee80211_ioctl.h>
|
# include <net80211/ieee80211_ioctl.h>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -40,6 +40,7 @@ get_80211(const char* name, int32 type, void* data, int32& length)
|
|||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
static status_t
|
static status_t
|
||||||
set_80211(const char* name, int32 type, void* data,
|
set_80211(const char* name, int32 type, void* data,
|
||||||
@@ -76,6 +77,7 @@ set_80211(const char* name, int32 type, T& data, int32 length = 0,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
template<typename T> status_t
|
template<typename T> status_t
|
||||||
do_request(T& request, const char* name, int option)
|
do_request(T& request, const char* name, int option)
|
||||||
{
|
{
|
||||||
@@ -211,6 +213,21 @@ BNetworkDevice::GetHardwareAddress(BNetworkAddress& address)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
BNetworkDevice::IsEthernet()
|
||||||
|
{
|
||||||
|
return !IsWireless();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
BNetworkDevice::IsWireless()
|
||||||
|
{
|
||||||
|
// TODO: fix me!
|
||||||
|
return strstr(Name(), "wifi") != NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
BNetworkDevice::CountScanResults()
|
BNetworkDevice::CountScanResults()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user