* 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:
parent
4f1ec5b242
commit
223cae9fe6
@ -13,7 +13,7 @@
|
||||
#include <AutoDeleter.h>
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
static status_t
|
||||
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
|
||||
|
||||
|
||||
template<typename T> status_t
|
||||
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
|
||||
BNetworkDevice::CountScanResults()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user