From: Johannes Berg <johannes@sipsolutions.net>
To: Arend Van Spriel <arend.vanspriel@broadcom.com>,
linux-wireless@vger.kernel.org
Cc: kirtika@google.com
Subject: Re: [PATCH] mac80211: reject/clear user rate mask if not usable
Date: Wed, 08 Mar 2017 14:18:59 +0100 [thread overview]
Message-ID: <1488979139.31187.4.camel@sipsolutions.net> (raw)
In-Reply-To: <9f80f983-ca51-ae55-163e-311d86d1edbe@broadcom.com> (sfid-20170308_141746_676397_982CDD5A)
On Wed, 2017-03-08 at 14:17 +0100, Arend Van Spriel wrote:
>
> > +void ieee80211_check_rate_mask(struct ieee80211_sub_if_data
> > *sdata)
> > +{
> > + struct ieee80211_local *local = sdata->local;
> > + struct ieee80211_supported_band *sband;
> > + u32 user_mask, basic_rates = sdata-
> > >vif.bss_conf.basic_rates;
> > + enum nl80211_band band;
> > +
> > + if (WARN_ON(!sdata->vif.bss_conf.chandef.chan))
> > + return;
> > +
> > + if (WARN_ON_ONCE(!basic_rates))
> > + return;
> > +
> > + band = sdata->vif.bss_conf.chandef.chan->band;
> > + user_mask = sdata->rc_rateidx_mask[band];
> > + sband = local->hw.wiphy->bands[band];
> > +
> > + basic_rates = sdata->vif.bss_conf.basic_rates;
>
> basic_rates has already been initialized (and checked) above so this
> is
> redundant.
Huh, yeah, good catch - will fix.
johannes
prev parent reply other threads:[~2017-03-08 13:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 10:20 [PATCH] mac80211: reject/clear user rate mask if not usable Johannes Berg
2017-03-08 13:17 ` Arend Van Spriel
2017-03-08 13:18 ` Johannes Berg [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=1488979139.31187.4.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=arend.vanspriel@broadcom.com \
--cc=kirtika@google.com \
--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;
as well as URLs for NNTP newsgroup(s).