From: Johannes Berg <johannes@sipsolutions.net>
To: Holger Schurig <h.schurig@mn-solutions.de>
Cc: libertas-dev@lists.infradead.org,
linux-wireless <linux-wireless@vger.kernel.org>,
Dan Williams <dcbw@redhat.com>
Subject: Re: [RFC] libertas: first stab at cfg80211 support
Date: Mon, 28 Sep 2009 16:57:37 +0200 [thread overview]
Message-ID: <1254149857.3151.5.camel@johannes.local> (raw)
In-Reply-To: <200909281654.08859.h.schurig@mn-solutions.de>
[-- Attachment #1: Type: text/plain, Size: 1794 bytes --]
On Mon, 2009-09-28 at 16:54 +0200, Holger Schurig wrote:
> Yes, it has three netdevs, but they aren't all setup at
> card-initialization time.
>
>
> Some details: "struct private" contains:
>
> struct net_device *dev;
> struct net_device *mesh_dev; /* Virtual device */
> struct net_device *rtap_net_dev;
>
> The old code did have an
>
> dev = alloc_etherdev(sizeof(struct lbs_private));"
>
> and the other two netdevs got initialized at some other location:
>
> * priv->lbs_add_mesh() in lbs_add_mesh()
> via "alloc_netdev(0, "msh%d", ether_setup)". And lbs_add_mesh()
> is called only when the hardware supports this.
> * rtap_net_dev is created in lbs_add_rtap() and again I haven't
> change the creation of this thingy.
>
> Please note that when I'm using the card in station mode, both
> mesh_dev and rtap_net_dev are NULL. My firmware doesn't have
> mesh code, and only when I set the card into monitor mode will
> the rtap_net_dev created.
>
>
> I kept this behavior for now: at initialzation I call:
>
> wdev = lbs_wdev_alloc(sizeof(struct lbs_private), dmdev);
> wdev->xyz = initialization;
> ...
> dev = alloc_netdev()
>
>
> For me it's not clear if I should create wdev's for mesh_dev and
> rtap_net_dev as well. However, I'm not able to check the mesh
> code anyway: my firmware doesn't support this. And for
> rtap_net_dev I'm not sure if this shouldn't be handled
> differently in a cfg80211 scenario, e.g. via
> lbs_cfg80211_change_iface().
Interesting.
> A hint of what I should then would be most welcome :-)
It might make sense to support adding interfaces with nl80211, since
apparently it has mesh and monitor interfaces.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2009-09-28 14:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-28 11:21 [RFC] libertas: first stab at cfg80211 support Holger Schurig
2009-09-28 13:31 ` Johannes Berg
2009-09-28 14:54 ` Holger Schurig
2009-09-28 14:57 ` Johannes Berg [this message]
2009-09-28 15:07 ` Holger Schurig
2009-09-28 15:24 ` Holger Schurig
2009-10-01 18:23 ` Dan Williams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1254149857.3151.5.camel@johannes.local \
--to=johannes@sipsolutions.net \
--cc=dcbw@redhat.com \
--cc=h.schurig@mn-solutions.de \
--cc=libertas-dev@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox