From: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: <linville@tuxdriver.com>, <linux-wireless@vger.kernel.org>,
Sachin Ahuja <sahuja@codeaurora.org>,
"Luis R. Rodriguez" <mcgrof@do-not-panic.com>
Subject: Re: [PATCH v2] cfg80211: avoid restoring the regulatory during disconnect
Date: Tue, 13 May 2014 00:06:00 +0530 [thread overview]
Message-ID: <20140512183558.GA25030@qca.qualcomm.com> (raw)
In-Reply-To: <20140512172136.GA9468@qca.qualcomm.com>
On Mon, May 12, 2014 at 10:51:37PM +0530, Rajkumar Manoharan wrote:
> On Mon, May 12, 2014 at 04:00:03PM +0200, Johannes Berg wrote:
> > On Fri, 2014-05-09 at 15:58 +0530, Rajkumar Manoharan wrote:
> >
> > > +static bool cfg80211_is_all_countryie_ignore(void)
> > > +{
> > > + struct cfg80211_registered_device *rdev;
> > > + struct wireless_dev *wdev;
> > > +
> > > + list_for_each_entry(rdev, &cfg80211_rdev_list, list) {
> > > + list_for_each_entry(wdev, &rdev->wdev_list, list) {
> > > + wdev_lock(wdev);
> > > + if (!(wdev->wiphy->regulatory_flags &
> > > + REGULATORY_COUNTRY_IE_IGNORE)) {
> > > + wdev_unlock(wdev);
> >
> > The locking here seems completely pointless.
> >
> locking is handled in same way of cfg80211_is_all_idle. Still
> want to remove locks?
>
> > Also, maybe you can do something about the long lines, maybe with a
> > temporary variable?
> >
sorry for the noise. sent v3 patch.
-Rajkumar
prev parent reply other threads:[~2014-05-12 18:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-09 10:28 [PATCH v2] cfg80211: avoid restoring the regulatory during disconnect Rajkumar Manoharan
2014-05-12 14:00 ` Johannes Berg
2014-05-12 17:21 ` Rajkumar Manoharan
2014-05-12 18:36 ` 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=20140512183558.GA25030@qca.qualcomm.com \
--to=rmanohar@qti.qualcomm.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=mcgrof@do-not-panic.com \
--cc=sahuja@codeaurora.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.