From: Ben Hutchings <ben@decadent.org.uk>
To: Stefan Lippers-Hollmann <s.L-H@gmx.de>
Cc: linux-wireless <linux-wireless@vger.kernel.org>, 656813@bugs.debian.org
Subject: Re: [PATCH 1/2] ipw2200: Fix order of device registration
Date: Sun, 22 Jan 2012 04:18:11 +0000 [thread overview]
Message-ID: <1327205891.8004.105.camel@deadeye> (raw)
In-Reply-To: <201201220432.34482.s.L-H@gmx.de>
[-- Attachment #1: Type: text/plain, Size: 2497 bytes --]
On Sun, 2012-01-22 at 04:32 +0100, Stefan Lippers-Hollmann wrote:
> Hi
>
> On Sunday 22 January 2012, Ben Hutchings wrote:
> > Currently cfg80211 fails to create a "phy80211" symlink in sysfs from
> > the net device to the wiphy device. The latter needs to be registered
> > first.
> >
> > Compile-tested only.
> >
> > Reported-by: Cesare Leonardi <celeonar@gmail.com>
> > Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
> > ---
> > drivers/net/wireless/ipw2x00/ipw2200.c | 23 ++++++++++++-----------
> > 1 files changed, 12 insertions(+), 11 deletions(-)
>
> I've tested this patch on my ipw2200 (inside an Acer TravelMate 292LMi).
> While the original
[...]
> is almost cosmetic, without any apparent ill-effects, applying that
> patch to kernel 3.2.1 (not exactly Debian's - e.g. I need acerhk/
> dritek to disable rfkill for that card, but it should be close enough)
> results in this trace:
>
> [ 5.708938] libipw: 802.11 data/management/control stack, git-1.1.13
> [ 5.708942] libipw: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
> […]
> [ 5.785178] ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.2.2kmprq
> [ 5.785184] ipw2200: Copyright(c) 2003-2006 Intel Corporation
> [ 5.785323] ipw2200 0000:02:02.0: power state changed by ACPI to D0
> [ 5.785330] ipw2200 0000:02:02.0: power state changed by ACPI to D0
> [ 5.785344] ipw2200 0000:02:02.0: PCI INT A -> Link[LNKC] -> GSI 10 (level, low) -> IRQ 10
> [ 5.785370] ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
> [ 5.785416] ------------[ cut here ]------------
> [ 5.785435] WARNING: at /tmp/buildd/linux-aptosid-3.2/debian/build/source_i386_none/net/wireless/core.c:562 wiphy_register+0x45/0x38d [cfg80211]()
[...]
Which is:
if (!have_band) {
WARN_ON(1);
return -EINVAL;
}
and have_band is set if any element of wiphy->bands[] is non-NULL.
ipw_wdev_init() clearly does initialise wiphy->bands... except that it
seems to depend on the regulatory area having been determined already,
which I suppose must be done during the callback from netdev
registration (ipw_net_init()). Judging by the comment about this in
ipw2100.c, it's probably important that initialisation is done in this
order.
So maybe cfg80211 should instead tolerate registration in this order?
Ben.
--
Ben Hutchings
Knowledge is power. France is bacon.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2012-01-22 4:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-22 3:09 [PATCH 1/2] ipw2200: Fix order of device registration Ben Hutchings
2012-01-22 3:11 ` [PATCH 2/2] ipw2100: " Ben Hutchings
2012-01-22 3:32 ` [PATCH 1/2] ipw2200: " Stefan Lippers-Hollmann
2012-01-22 4:18 ` Ben Hutchings [this message]
2012-01-23 11:05 ` Stanislaw Gruszka
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=1327205891.8004.105.camel@deadeye \
--to=ben@decadent.org.uk \
--cc=656813@bugs.debian.org \
--cc=linux-wireless@vger.kernel.org \
--cc=s.L-H@gmx.de \
/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