From: Johannes Berg <johannes@sipsolutions.net>
To: Ashok Nagarajan <ashok@cozybit.com>
Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com,
javier@cozybit.com, thomas@cozybit.com,
devel@lists.open80211s.org
Subject: Re: [PATCH V2 2/2] {nl,cfg,mac}80211: Allow user to configure basic rates when joining
Date: Wed, 18 Jul 2012 08:58:36 +0200 [thread overview]
Message-ID: <1342594716.5310.8.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1342586570-522-2-git-send-email-ashok@cozybit.com> (sfid-20120718_064259_657115_0F889420)
On Tue, 2012-07-17 at 21:42 -0700, Ashok Nagarajan wrote:
> Reviewed-by: Thomas Pedersen <thomas@cozybit.com>
I'd have expected better from you, Thomas :-P
> * @mcast_rate: multicat rate for Mesh Node [6Mbps is the default for 802.11a]
> + * @basic_rates: bitmap of basic rates to use when creating the mesh
> *
> * These parameters are fixed when the mesh is created.
> */
> @@ -932,6 +933,7 @@ struct mesh_setup {
> bool is_authenticated;
> bool is_secure;
> int mcast_rate[IEEE80211_NUM_BANDS];
> + u32 basic_rates;
This doesn't make sense. Why give mcast rate for both bands, but basic
rates only for one band?
> + if (!setup->basic_rates) {
> + setup->basic_rates = ieee80211_mandatory_rates(
> + rdev->wiphy.bands[setup->channel->band],
> + setup->channel->band);
> +
> + }
No need for braces nor the extra blank line.
> + if (info->attrs[NL80211_ATTR_BSS_BASIC_RATES] &&
> + !WARN_ON(!wdev->preset_chan)) {
WARN_ON? Really? That doesn't seem right. Also, doesn't the mesh allow
joining with a channel given to the join function, so that preset_chan
will be NULL here?
johannes
next prev parent reply other threads:[~2012-07-18 6:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-18 4:42 [PATCH V2 1/2] {cfg,mac}80211: utility function for calculating mandatory rates Ashok Nagarajan
2012-07-18 4:42 ` [PATCH V2 2/2] {nl,cfg,mac}80211: Allow user to configure basic rates when joining Ashok Nagarajan
2012-07-18 6:58 ` Johannes Berg [this message]
2012-07-18 6:55 ` [PATCH V2 1/2] {cfg,mac}80211: utility function for calculating mandatory rates Johannes Berg
2012-07-19 18:41 ` Ashok Nagarajan
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=1342594716.5310.8.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=ashok@cozybit.com \
--cc=devel@lists.open80211s.org \
--cc=javier@cozybit.com \
--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).