From: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
To: Eliad Peller <eliad@wizery.com>
Cc: <johannes@sipsolutions.net>, <linville@tuxdriver.com>,
<linux-wireless@vger.kernel.org>,
Jouni Malinen <jouni@qca.qualcomm.com>
Subject: Re: [PATCH 2/2] mac80211: Send the management frame at requested rate
Date: Sun, 25 Sep 2011 14:51:26 +0530 [thread overview]
Message-ID: <20110925092124.GA927@vmraj-lnx.users.atheros.com> (raw)
In-Reply-To: <CAB3XZEf0A4fVCrLoCTGy+XndSW412rwTcUyL9tQ6YjoDsYonyA@mail.gmail.com>
On Sun, Sep 25, 2011 at 11:58:47AM +0300, Eliad Peller wrote:
> On Fri, Sep 23, 2011 at 6:12 PM, Rajkumar Manoharan
> <rmanohar@qca.qualcomm.com> wrote:
> > Whenever the scan request or tx_mgmt is requesting not to
> > use CCK rate for managemet frames through
> > NL80211_ATTR_TX_NO_CCK_RATE attribute, then mac80211 should
> > select appropriate least non-CCK rate. This could help to
> > send P2P probes and P2P action frames at non 11b rates
> > without diabling 11b rates globally.
> >
> > Cc: Jouni Malinen <jouni@qca.qualcomm.com>
> > Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
> > ---
> [...]
>
> > +static inline s8
> > +rate_lowest_non_cck_index(struct ieee80211_supported_band *sband,
> > + struct ieee80211_sta *sta)
> > +{
> > + int i;
> > +
> > + for (i = 0; i < sband->n_bitrates; i++) {
> > + struct ieee80211_rate *srate = &sband->bitrates[i];
> > + if ((srate->bitrate == 10) || (srate->bitrate == 20) ||
> > + (srate->bitrate == 55) || (srate->bitrate == 110))
> > + continue;
> > +
> > + if ((i != sband->n_bitrates) &&
> > + rate_supported(sta, sband->band, i))
> > + return i;
>
> the first condition seems redundant (according to the loop condition,
> i < sband->n_bitrates)
Yeah. i missed it ;)
--
Rajkumar
prev parent reply other threads:[~2011-09-25 9:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-23 15:12 [PATCH 1/2] nl80211/cfg80211: Add support to disable CCK rate for management frame Rajkumar Manoharan
2011-09-23 15:12 ` [PATCH 2/2] mac80211: Send the management frame at requested rate Rajkumar Manoharan
2011-09-25 8:58 ` Eliad Peller
2011-09-25 9:21 ` Rajkumar Manoharan [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=20110925092124.GA927@vmraj-lnx.users.atheros.com \
--to=rmanohar@qca.qualcomm.com \
--cc=eliad@wizery.com \
--cc=johannes@sipsolutions.net \
--cc=jouni@qca.qualcomm.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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