All of lore.kernel.org
 help / color / mirror / Atom feed
From: Seth Forshee <seth.forshee@canonical.com>
To: Johannes Berg <johannes@sipsolutions.net>,
	"John W. Linville" <linville@tuxdriver.com>
Cc: Arend van Spriel <arend@broadcom.com>,
	Josh Boyer <jwboyer@redhat.com>,
	Brett Rudley <brudley@broadcom.com>,
	Roland Vossen <rvossen@broadcom.com>,
	linux-wireless@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: assert_cfg80211_lock warning with Linux v3.5-8833-g2d53492
Date: Wed, 1 Aug 2012 12:56:28 -0500	[thread overview]
Message-ID: <20120801175628.GD22963@thinkpad-t410> (raw)
In-Reply-To: <1343841285.4638.10.camel@jlt3.sipsolutions.net>

On Wed, Aug 01, 2012 at 07:14:45PM +0200, Johannes Berg wrote:
> On Wed, 2012-08-01 at 11:19 -0500, Seth Forshee wrote:
> > On Wed, Aug 01, 2012 at 05:53:58PM +0200, Johannes Berg wrote:
> > > On Wed, 2012-08-01 at 17:51 +0200, Arend van Spriel wrote:
> > > > On 08/01/2012 05:38 PM, Arend van Spriel wrote:
> > > > >> brcmsmac needs to hold cfg80211_mutex before calling freq_reg_info...
> > > > >> > 
> > > > >> > It looks like those calls were added in mid-June.
> > > > >> > 
> > > > > I think mid-june sounds about right. We never observed the warning when
> > > > > changes to use regulatory infrastructure were tested/reviewed. Should
> > > > > this precondition be mentioned in cfg80211.h?
> > > > > 
> > > > > Gr. AvS
> > > > 
> > > > Diving in further it seems brcmsmac can not grab the cfg80211_mutex. So
> > > > another solution is needed.
> > > 
> > > Yeah I was going to say -- how can it possibly access that? It seems
> > > that in some patch the API got broken, it should be taking the lock or
> > > whatever ... I'll leave it to Luis to sort out though :-P
> > 
> > In other drivers freq_reg_info only seems to get used by the regulatory
> > notifiers, which get called with the lock held. brcmsmac is wanting to
> > know whether or not OFDM is allowed when setting the channel though, and
> > I didn't find that information anywhere outside the regulatory
> > information. If there's another way then calling freq_reg_info() could
> > be avoided. Or maybe we could add an OFDM flag to the channel
> > information?
> 
> Seems reasonable to add the flags (or some of them) to the channel
> flags, yeah.

Great, I'll work something up.

Seth

  reply	other threads:[~2012-08-01 17:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-01 13:12 assert_cfg80211_lock warning with Linux v3.5-8833-g2d53492 Josh Boyer
2012-08-01 13:12 ` Josh Boyer
2012-08-01 14:18 ` John W. Linville
2012-08-01 14:18   ` John W. Linville
2012-08-01 15:38   ` Arend van Spriel
2012-08-01 15:38     ` Arend van Spriel
2012-08-01 15:51     ` Arend van Spriel
2012-08-01 15:52       ` John W. Linville
2012-08-01 16:40         ` Arend van Spriel
2012-08-01 16:40           ` Arend van Spriel
2012-08-01 15:53       ` Johannes Berg
2012-08-01 15:53         ` Johannes Berg
2012-08-01 16:19         ` Seth Forshee
2012-08-01 17:14           ` Johannes Berg
2012-08-01 17:56             ` Seth Forshee [this message]
2012-08-01 17:24         ` Arend van Spriel
2012-08-01 17:24           ` Arend van Spriel
2012-08-01 19:28           ` Arend van Spriel
2012-08-01 19:28             ` Arend van Spriel

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=20120801175628.GD22963@thinkpad-t410 \
    --to=seth.forshee@canonical.com \
    --cc=arend@broadcom.com \
    --cc=brudley@broadcom.com \
    --cc=johannes@sipsolutions.net \
    --cc=jwboyer@redhat.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=netdev@vger.kernel.org \
    --cc=rvossen@broadcom.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 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.