Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
7b243afc
Commit
7b243afc
authored
Jul 24, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Jul 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsiproxy.sys: Detect wireless interface type on Linux.
parent
ad3a0b76
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
0 deletions
+29
-0
configure
configure
+6
-0
configure.ac
configure.ac
+1
-0
ndis.c
dlls/nsiproxy.sys/ndis.c
+19
-0
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
7b243afc
...
...
@@ -7975,6 +7975,12 @@ then :
printf
"%s
\n
"
"#define HAVE_LINUX_UCDROM_H 1"
>>
confdefs.h
fi
ac_fn_c_check_header_compile
"
$LINENO
"
"linux/wireless.h"
"ac_cv_header_linux_wireless_h"
"
$ac_includes_default
"
if
test
"x
$ac_cv_header_linux_wireless_h
"
=
xyes
then
:
printf
"%s
\n
"
"#define HAVE_LINUX_WIRELESS_H 1"
>>
confdefs.h
fi
ac_fn_c_check_header_compile
"
$LINENO
"
"lwp.h"
"ac_cv_header_lwp_h"
"
$ac_includes_default
"
if
test
"x
$ac_cv_header_lwp_h
"
=
xyes
then
:
...
...
configure.ac
View file @
7b243afc
...
...
@@ -423,6 +423,7 @@ AC_CHECK_HEADERS(\
linux/serial.h \
linux/types.h \
linux/ucdrom.h \
linux/wireless.h \
lwp.h \
mach-o/loader.h \
mach/mach.h \
...
...
dlls/nsiproxy.sys/ndis.c
View file @
7b243afc
...
...
@@ -62,6 +62,10 @@
#include <net/if_types.h>
#endif
#ifdef HAVE_LINUX_WIRELESS_H
#include <linux/wireless.h>
#endif
#include <pthread.h>
#define NONAMELESSUNION
...
...
@@ -173,6 +177,21 @@ static NTSTATUS if_get_physical( const char *name, UINT *type, IF_PHYSICAL_ADDRE
if
(
*
type
==
MIB_IF_TYPE_OTHER
&&
!
ioctl
(
fd
,
SIOCGIFFLAGS
,
&
ifr
)
&&
ifr
.
ifr_flags
&
IFF_POINTOPOINT
)
*
type
=
MIB_IF_TYPE_PPP
;
#ifdef HAVE_LINUX_WIRELESS_H
if
(
*
type
==
MIB_IF_TYPE_ETHERNET
)
{
struct
iwreq
pwrq
;
memset
(
&
pwrq
,
0
,
sizeof
(
pwrq
)
);
memcpy
(
pwrq
.
ifr_name
,
name
,
size
);
if
(
ioctl
(
fd
,
SIOCGIWNAME
,
&
pwrq
)
!=
-
1
)
{
TRACE
(
"iface %s, wireless protocol %s.
\n
"
,
debugstr_a
(
name
),
debugstr_a
(
pwrq
.
u
.
name
)
);
*
type
=
IF_TYPE_IEEE80211
;
}
}
#endif
err:
close
(
fd
);
return
ret
;
...
...
include/config.h.in
View file @
7b243afc
...
...
@@ -195,6 +195,9 @@
/* Define to 1 if you have the <linux/videodev2.h> header file. */
#undef HAVE_LINUX_VIDEODEV2_H
/* Define to 1 if you have the <linux/wireless.h> header file. */
#undef HAVE_LINUX_WIRELESS_H
/* Define to 1 if you have the <lwp.h> header file. */
#undef HAVE_LWP_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment