* Virtual wireless network card for mac80211
@ 2007-11-14 12:16 Henning Rogge
2007-11-14 15:08 ` John W. Linville
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Henning Rogge @ 2007-11-14 12:16 UTC (permalink / raw)
To: linux-wireless
Hello,
I'm looking for a way to simulate a ieee802.11 card on a linux system. Is
there an equivalent for tun/tap for the mac80211 layer, so I can just send
the communication with a wireless device back to userspace (and data from
userspace into the wireless stack) ?
Henning Rogge
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Virtual wireless network card for mac80211
2007-11-14 12:16 Virtual wireless network card for mac80211 Henning Rogge
@ 2007-11-14 15:08 ` John W. Linville
2007-11-14 15:20 ` Henning Rogge
2007-11-14 15:27 ` Johannes Berg
2007-11-14 15:22 ` Johannes Berg
2007-11-14 15:59 ` Mike Kershaw
2 siblings, 2 replies; 8+ messages in thread
From: John W. Linville @ 2007-11-14 15:08 UTC (permalink / raw)
To: Henning Rogge; +Cc: linux-wireless
On Wed, Nov 14, 2007 at 01:16:50PM +0100, Henning Rogge wrote:
> I'm looking for a way to simulate a ieee802.11 card on a linux system. Is
> there an equivalent for tun/tap for the mac80211 layer, so I can just send
> the communication with a wireless device back to userspace (and data from
> userspace into the wireless stack) ?
No, but I have been thinking about this as well. It might be a nice
capability to have, so long as the regulatory spectre continues to
discourage some vendors from disclosing information about their
hardware. At least such a scenario seems less grey w.r.t. GPL
compliance.
Still, I would not want to put much effort into a project that
distracts from development of fully open source drivers. But I think
the performance of such a solution would be sub-optimal enough to
discourage full reliance upon it. And the plus of having a userland
binary driver versus no driver at all might make it worthwhile.
What is the situation that makes this interesting to you?
Thanks,
John
--
John W. Linville
linville@tuxdriver.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Virtual wireless network card for mac80211
2007-11-14 15:08 ` John W. Linville
@ 2007-11-14 15:20 ` Henning Rogge
2007-11-14 15:30 ` John W. Linville
2007-11-14 15:27 ` Johannes Berg
1 sibling, 1 reply; 8+ messages in thread
From: Henning Rogge @ 2007-11-14 15:20 UTC (permalink / raw)
To: linux-wireless
Am Mittwoch 14 November 2007 16:08:39 schrieben Sie:
> On Wed, Nov 14, 2007 at 01:16:50PM +0100, Henning Rogge wrote:
> No, but I have been thinking about this as well. It might be a nice
> capability to have, so long as the regulatory spectre continues to
> discourage some vendors from disclosing information about their
> hardware. At least such a scenario seems less grey w.r.t. GPL
> compliance.
>
> Still, I would not want to put much effort into a project that
> distracts from development of fully open source drivers. But I think
> the performance of such a solution would be sub-optimal enough to
> discourage full reliance upon it. And the plus of having a userland
> binary driver versus no driver at all might make it worthwhile.
>
> What is the situation that makes this interesting to you?
I'm not interested in having a binary driver but in simulation of mobile
networks with virtual machines. By placing a virtual driver into the mac80211
layer the sollution would be totally transparent for the clients, even for
applications with Radiotap headers and Libpcap.
A central server would be connected to the userspace parts of the virtual
driver and simulate connections between the VMs.
Henning Rogge
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Virtual wireless network card for mac80211
2007-11-14 12:16 Virtual wireless network card for mac80211 Henning Rogge
2007-11-14 15:08 ` John W. Linville
@ 2007-11-14 15:22 ` Johannes Berg
2007-11-14 15:59 ` Mike Kershaw
2 siblings, 0 replies; 8+ messages in thread
From: Johannes Berg @ 2007-11-14 15:22 UTC (permalink / raw)
To: Henning Rogge; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 462 bytes --]
> I'm looking for a way to simulate a ieee802.11 card on a linux system. Is
> there an equivalent for tun/tap for the mac80211 layer, so I can just send
> the communication with a wireless device back to userspace (and data from
> userspace into the wireless stack) ?
No. I've described this task on
http://kernelnewbies.org/KernelProjects/Mac80211TestDriver and somebody
was interested in writing one, but I never heard back from him.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Virtual wireless network card for mac80211
2007-11-14 15:08 ` John W. Linville
2007-11-14 15:20 ` Henning Rogge
@ 2007-11-14 15:27 ` Johannes Berg
1 sibling, 0 replies; 8+ messages in thread
From: Johannes Berg @ 2007-11-14 15:27 UTC (permalink / raw)
To: John W. Linville; +Cc: Henning Rogge, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 456 bytes --]
> No, but I have been thinking about this as well. It might be a nice
> capability to have, so long as the regulatory spectre continues to
> discourage some vendors from disclosing information about their
> hardware. At least such a scenario seems less grey w.r.t. GPL
> compliance.
This could be doable with a shim driver and uio, but you'd need at least
some DMA engine programming etc. in the kernel. But you want that
anyway.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Virtual wireless network card for mac80211
2007-11-14 15:20 ` Henning Rogge
@ 2007-11-14 15:30 ` John W. Linville
0 siblings, 0 replies; 8+ messages in thread
From: John W. Linville @ 2007-11-14 15:30 UTC (permalink / raw)
To: Henning Rogge; +Cc: linux-wireless
On Wed, Nov 14, 2007 at 04:20:15PM +0100, Henning Rogge wrote:
> Am Mittwoch 14 November 2007 16:08:39 schrieben Sie:
> > What is the situation that makes this interesting to you?
> I'm not interested in having a binary driver but in simulation of mobile
> networks with virtual machines. By placing a virtual driver into the mac80211
> layer the sollution would be totally transparent for the clients, even for
> applications with Radiotap headers and Libpcap.
> A central server would be connected to the userspace parts of the virtual
> driver and simulate connections between the VMs.
Even better -- a completely legitimate use for such a feature. :-)
Such a driver might also serve as a development tool for the mac80211
stack developers, and as a model for how drivers should behave when
interacting with mac80211.
In fact, I think Johannes Berg submitted this to the Kernel Newbies
project suggestions already:
http://kernelnewbies.org/KernelProjects/Mac80211TestDriver
So, any aspiring wireless/kernel hackers out there?
John
--
John W. Linville
linville@tuxdriver.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Virtual wireless network card for mac80211
2007-11-14 12:16 Virtual wireless network card for mac80211 Henning Rogge
2007-11-14 15:08 ` John W. Linville
2007-11-14 15:22 ` Johannes Berg
@ 2007-11-14 15:59 ` Mike Kershaw
2007-11-15 6:46 ` Henning Rogge
2 siblings, 1 reply; 8+ messages in thread
From: Mike Kershaw @ 2007-11-14 15:59 UTC (permalink / raw)
To: Henning Rogge; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]
On Wed, Nov 14, 2007 at 01:16:50PM +0100, Henning Rogge wrote:
> Hello,
>
> I'm looking for a way to simulate a ieee802.11 card on a linux system. Is
> there an equivalent for tun/tap for the mac80211 layer, so I can just send
> the communication with a wireless device back to userspace (and data from
> userspace into the wireless stack) ?
Depending what you're trying to do, I did patches for tuntap that went
in a year or two ago that allow you to set the link type and write
radiotap/80211 frames. Kismet-newcore (it's in branches in svn if you
care) uses this to replicate mangled frames back out to other userspace
programs.
http://svn.kismetwireless.net/code/branch/kismet-newcore/dumpfile_tuntap.cc
If you want something that actually responds to iw* ioctls, etc, then
this probably isn't what you want however.
-m
--
Mike Kershaw/Dragorn <dragorn@kismetwireless.net>
GPG Fingerprint: 3546 89DF 3C9D ED80 3381 A661 D7B2 8822 738B BDB1
"A baby seal walks into a club..."
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Virtual wireless network card for mac80211
2007-11-14 15:59 ` Mike Kershaw
@ 2007-11-15 6:46 ` Henning Rogge
0 siblings, 0 replies; 8+ messages in thread
From: Henning Rogge @ 2007-11-15 6:46 UTC (permalink / raw)
To: Mike Kershaw; +Cc: linux-wireless
Am Mittwoch 14 November 2007 16:59:58 schrieb Mike Kershaw:
> Depending what you're trying to do, I did patches for tuntap that went
> in a year or two ago that allow you to set the link type and write
> radiotap/80211 frames. Kismet-newcore (it's in branches in svn if you
> care) uses this to replicate mangled frames back out to other userspace
> programs.
> http://svn.kismetwireless.net/code/branch/kismet-newcore/dumpfile_tuntap.cc
Okay, that seems to be what I was looking for. It's not as flexible as a full
virtual network card, but it has all features I need, thank you.
(it seems that none of the online documentation I found for tuntap contains
this capability)
Henning
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-11-15 6:47 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-14 12:16 Virtual wireless network card for mac80211 Henning Rogge
2007-11-14 15:08 ` John W. Linville
2007-11-14 15:20 ` Henning Rogge
2007-11-14 15:30 ` John W. Linville
2007-11-14 15:27 ` Johannes Berg
2007-11-14 15:22 ` Johannes Berg
2007-11-14 15:59 ` Mike Kershaw
2007-11-15 6:46 ` Henning Rogge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).