All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Marco Porsch <marco.porsch@etit.tu-chemnitz.de>
Cc: linux-wireless@vger.kernel.org
Subject: Re: broadcast buffer / TIM map in mesh mode
Date: Tue, 02 Oct 2012 08:46:11 +0200	[thread overview]
Message-ID: <1349160371.10698.7.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <5069ED50.4050307@etit.tu-chemnitz.de> (sfid-20121001_214401_534723_29DE8446)

Hi Marco,

> I am working on a mesh powersave implementation. One requirement for 
> that is to buffer broadcasts, set the TIM map and count powersave 
> neighbors. All of these routines are currently bound to the AP-specific 
> ieee80211_if_ap structure.
> Do you have any recommendations how to properly implement this for mesh 
> interfaces?
> 
> a) allocate/free ieee80211_if_ap in 
> iface.c:ieee80211_do_open/ieee80211_do_stop and bind to sdata->bss pointer?
> b) include ieee80211_if_ap into ieee80211_if_mesh structure and use 
> sdata->bss?
> c) completely different?

I don't think a) or b) are appropriate since the if_ap structure
contains a number of fields that you won't use or need. I would
therefore suggest to split out the PS related fields of that structure
into a substructure that you embed in both if_ap and if_mesh, and in the
code you could then pass a pointer to that structure to the powersave
handling functions.

Please do a separate patch to separate it out though, not just one huge
patch to do both mesh & the splitting up :)


> Also, what is the purpose of the sdata->bss pointer? It seems to be used 
> at times and not at others.

The sdata->bss pointer should be used in *most* cases, it's a link to
the "AP data" for the AP interface (where it just points to itself) and
any AP_VLAN interface (where it points to the master AP interface)


  reply	other threads:[~2012-10-02  6:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-01 19:21 broadcast buffer / TIM map in mesh mode Marco Porsch
2012-10-02  6:46 ` Johannes Berg [this message]
2012-10-02 22:38   ` [RFC] mac80211: make powersave independent of interface type Marco Porsch

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=1349160371.10698.7.camel@jlt4.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=marco.porsch@etit.tu-chemnitz.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.