From: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>
To: ext Johannes Berg <johannes@sipsolutions.net>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] iw: Configure basic rates when joining ibss network
Date: Tue, 15 Jun 2010 11:50:05 +0300 [thread overview]
Message-ID: <1276591805.4314.28.camel@paavo-desktop> (raw)
In-Reply-To: <1276586335.3648.3.camel@jlt3.sipsolutions.net>
On Tue, 2010-06-15 at 09:18 +0200, ext Johannes Berg wrote:
> On Tue, 2010-06-15 at 09:24 +0300, Teemu Paasikivi wrote:
>
> > @@ -41,6 +46,31 @@ static int join_ibss(struct nl80211_state *state,
> > argc--;
> > }
> >
> > + /* basic rates */
> > + if (argc > 1 && strcmp(argv[0], "basic-rates") == 0) {
> > + argv++;
> > + argc--;
> > +
> > + value = strtok_r(argv[0], ",", &sptr);
> > +
> > + while (value && n_rates < NL80211_MAX_SUPP_RATES) {
> > + rate = atof(value);
>
> should that use strtod() to check you didn't give "1a,2b,6c,11d"?
>
Sure, it can be used. I think I'll change it to use that. I was just
wondering that how much the values given by the user should/could be
checked here.
> johannes
>
Br,
Teemu
prev parent reply other threads:[~2010-06-15 8:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-15 6:24 [PATCH] iw: Configure basic rates when joining ibss network Teemu Paasikivi
2010-06-15 7:18 ` Johannes Berg
2010-06-15 8:50 ` Teemu Paasikivi [this message]
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=1276591805.4314.28.camel@paavo-desktop \
--to=ext-teemu.3.paasikivi@nokia.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox