From: Johannes Berg <johannes@sipsolutions.net>
To: Thomas Pedersen <thomas@cozybit.com>
Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com
Subject: Re: [PATCH 1/5] mac80211: give if_mesh a beacon
Date: Fri, 15 Jul 2011 23:00:24 +0200 [thread overview]
Message-ID: <1310763624.4164.29.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <CAG6hwVONFH+vkSasF7AaSaqvHK78wwNtZesi0RSUnuCi17d9Fw@mail.gmail.com> (sfid-20110715_213042_753766_17EB6895)
On Fri, 2011-07-15 at 12:30 -0700, Thomas Pedersen wrote:
> >> + if (ieee80211_vif_is_mesh(&sdata->vif))
> >> + rcu_assign_pointer(sdata->u.mesh.beacon, new);
> The ifdef is already in ieee80211_vif_is_mesh()
Yeah but sdata->u.mesh doesn't exist without mesh configured.
> > what's + 400? You can't really think the TIM IE is that long?
>
> No, but you're right, that number is pretty arbitrary. Maximum length
> of mesh IEs currently (Mesh ID + Mesh Conf + Mesh Awake) is only 47.
> Since mesh IEs have to be added during beacon time, might it make
> sense to track the needed length in the if_mesh?
Maybe just add a comment what's included in the 400?
> > Also ... since you'll need PS support eventually anyway, maybe you
> > should refactor "struct ieee80211_if_ap" into something AP-specific
> > (currently only VLANs) and the rest, and then use "the rest" in mesh as
> > well to make all this code more unified.
>
> I like this approach much better. Are you suggesting just factoring
> out the PS data, or taking it further and creating a generic "if which
> beacons"?
Well, I don't think "iface which beacons" is really what we need here --
IBSS sends beacons as well but we don't really have PS support there and
it'd be different anyway. But on the other hand, if you also factor out
the beacon pointer, you can embed that into both. Like I said, I think
from struct ..._if_ap you only have the vlan list that you don't want?
johannes
next prev parent reply other threads:[~2011-07-15 21:00 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-13 23:45 [PATCH 0/5] mac80211: mesh beaconing Thomas Pedersen
2011-07-13 23:45 ` [PATCH 1/5] mac80211: give if_mesh a beacon Thomas Pedersen
2011-07-14 9:50 ` Johannes Berg
2011-07-15 9:45 ` Johannes Berg
2011-07-15 18:36 ` Thomas Pedersen
2011-07-15 18:41 ` Johannes Berg
2011-07-15 9:54 ` Johannes Berg
2011-07-15 19:30 ` Thomas Pedersen
2011-07-15 21:00 ` Johannes Berg [this message]
2011-07-17 17:36 ` Thomas Pedersen
2011-07-18 7:34 ` Johannes Berg
2011-07-13 23:45 ` [PATCH 2/5] mac80211: correct mesh beacon head Thomas Pedersen
2011-07-15 9:57 ` Johannes Berg
2011-07-15 18:44 ` Thomas Pedersen
2011-07-15 21:00 ` Johannes Berg
2011-07-13 23:45 ` [PATCH 3/5] mac80211: Ext. Supported Rates go in mesh beacon tail Thomas Pedersen
2011-07-15 9:58 ` Johannes Berg
2011-07-15 19:31 ` Thomas Pedersen
2011-07-13 23:45 ` [PATCH 4/5] mac80211: move RSN IE to tail of mesh beacon Thomas Pedersen
2011-07-14 9:51 ` Johannes Berg
2011-07-15 0:50 ` [PATCH v2 " Thomas Pedersen
2011-07-15 9:07 ` Johannes Berg
2011-07-15 18:49 ` Thomas Pedersen
2011-07-13 23:45 ` [PATCH 5/5] mac80211: mesh beacon includes TIM IE Thomas Pedersen
2011-07-14 6:25 ` Jouni Malinen
2011-07-14 20:16 ` Thomas Pedersen
2011-07-15 10:00 ` Johannes Berg
2011-07-18 14:11 ` Javier Cardona
2011-07-18 15:07 ` Johannes Berg
2011-07-14 9:52 ` Johannes Berg
2011-07-14 19:20 ` Thomas Pedersen
2011-07-15 10:50 ` [PATCH 0/5] mac80211: mesh beaconing Max Filippov
2011-07-15 18:17 ` Thomas Pedersen
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=1310763624.4164.29.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=thomas@cozybit.com \
/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;
as well as URLs for NNTP newsgroup(s).