From: Bob Copeland <me@bobcopeland.com>
To: devel@lists.open80211s.org
Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org
Subject: Re: [RFCv3 1/5] {nl, cfg, mac}80211: set beacon interval and DTIM period on mesh join
Date: Fri, 7 Dec 2012 17:33:43 -0500 [thread overview]
Message-ID: <20121207223343.GD535@localhost> (raw)
In-Reply-To: <1354918443-3076-2-git-send-email-marco@cozybit.com>
On Fri, Dec 07, 2012 at 02:13:59PM -0800, Marco Porsch wrote:
> + if (info->attrs[NL80211_ATTR_BEACON_INTERVAL]) {
> + setup.beacon_interval =
> + nla_get_u32(info->attrs[NL80211_ATTR_BEACON_INTERVAL]);
> + if (setup.beacon_interval < 10 || setup.beacon_interval > 10000)
> + return -EINVAL;
> + }
> +
> + if (info->attrs[NL80211_ATTR_DTIM_PERIOD]) {
> + setup.dtim_period =
> + nla_get_u32(info->attrs[NL80211_ATTR_DTIM_PERIOD]);
> + if (setup.dtim_period < 1 || setup.dtim_period > 100)
> + return -EINVAL;
> + }
Indentation looks kind of messed up there, two tabs instead of one?
--
Bob Copeland %% www.bobcopeland.com
next prev parent reply other threads:[~2012-12-07 22:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-07 22:13 [RFCv3 0/5] mesh power save - basics Marco Porsch
2012-12-07 22:13 ` [RFCv3 1/5] {nl,cfg,mac}80211: set beacon interval and DTIM period on mesh join Marco Porsch
2012-12-07 22:33 ` Bob Copeland [this message]
2012-12-07 22:14 ` [RFCv3 2/5] cfg80211: mesh power mode primitives Marco Porsch
2012-12-07 22:14 ` [RFCv3 3/5] mac80211: move add_tim to subfunction Marco Porsch
2012-12-07 22:14 ` [RFCv3 4/5] mac80211: mesh power save basics Marco Porsch
2012-12-07 22:41 ` Bob Copeland
2012-12-07 22:45 ` Marco Porsch
2012-12-07 22:14 ` [RFCv3 5/5] nl80211: allow userspace to access mesh power mode parameters Marco Porsch
2012-12-11 19:52 ` Johannes Berg
2012-12-11 19:53 ` [RFCv3 0/5] mesh power save - basics Johannes Berg
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=20121207223343.GD535@localhost \
--to=me@bobcopeland.com \
--cc=devel@lists.open80211s.org \
--cc=johannes@sipsolutions.net \
--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 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.