linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bisected: 2.6.28-rc broke my iwl4965 wireless
@ 2008-10-26  5:22 Arjan van de Ven
  2008-10-27 16:38 ` Luis R. Rodriguez
  0 siblings, 1 reply; 4+ messages in thread
From: Arjan van de Ven @ 2008-10-26  5:22 UTC (permalink / raw)
  To: linux-kernel, netdev, Luis R. Rodriguez, torvalds, Rafael J. Wysocki

[resend, first version got corrupted]

2.6.28-rc1 broke my (intel 4965) wireless, and I've bisected it down to
the commit below..... something's fishy with this...


b2e1b30290539b344cbaff0d9da38012e03aa347 is first bad commit
commit b2e1b30290539b344cbaff0d9da38012e03aa347
Author: Luis R. Rodriguez <lrodriguez@atheros.com>
Date:   Tue Sep 9 23:19:48 2008 -0700

    cfg80211: Add new wireless regulatory infrastructure
    
    This adds the new wireless regulatory infrastructure. The
    main motiviation behind this was to centralize regulatory
    code as each driver was implementing their own regulatory solution,
    and to replace the initial centralized code we have where:
    
    * only 3 regulatory domains are supported: US, JP and EU
    * regulatory domains can only be changed through module parameter
    * all rules were built statically in the kernel
    
    We now have support for regulatory domains for many countries
    and regulatory domains are now queried through a userspace agent
    through udev allowing distributions to update regulatory rules
    without updating the kernel.
    
    Each driver can regulatory_hint() a regulatory domain
    based on either their EEPROM mapped regulatory domain value to a
    respective ISO/IEC 3166-1 country code or pass an internally built
    regulatory domain. We also add support to let the user set the
    regulatory domain through userspace in case of faulty EEPROMs to
    further help compliance.
  
    Support for world roaming will be added soon for cards capable of
    this.
    
    For more information see:
    
    http://wireless.kernel.org/en/developers/Regulatory/CRDA
    
    For now we leave an option to enable the old module parameter,
    ieee80211_regdom, and to build the 3 old regdomains statically
    (US, JP and EU). This option is CONFIG_WIRELESS_OLD_REGULATORY.
    These old static definitions and the module parameter is being
    scheduled for removal for 2.6.29. Note that if you use this
    you won't make use of a world regulatory domain as its pointless.
    If you leave this option enabled and if CRDA is present and you
    use US or JP we will try to ask CRDA to update us a regulatory
    domain for us.
    
    Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>

-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bisected: 2.6.28-rc broke my iwl4965 wireless
  2008-10-26  5:22 bisected: 2.6.28-rc broke my iwl4965 wireless Arjan van de Ven
@ 2008-10-27 16:38 ` Luis R. Rodriguez
  2008-10-27 16:41   ` Johannes Berg
  2008-10-27 17:33   ` Arjan van de Ven
  0 siblings, 2 replies; 4+ messages in thread
From: Luis R. Rodriguez @ 2008-10-27 16:38 UTC (permalink / raw)
  To: Arjan van de Ven
  Cc: linux-kernel, netdev, Luis Rodriguez, torvalds,
	Rafael J. Wysocki, linux-wireless

On Sat, Oct 25, 2008 at 10:22:08PM -0700, Arjan van de Ven wrote:
> [resend, first version got corrupted]
> 
> 2.6.28-rc1 broke my (intel 4965) wireless, and I've bisected it down to
> the commit below..... something's fishy with this...
> 
> 
> b2e1b30290539b344cbaff0d9da38012e03aa347 is first bad commit
> commit b2e1b30290539b344cbaff0d9da38012e03aa347
> Author: Luis R. Rodriguez <lrodriguez@atheros.com>
> Date:   Tue Sep 9 23:19:48 2008 -0700
> 
>     cfg80211: Add new wireless regulatory infrastructure
> 
>     This adds the new wireless regulatory infrastructure. The
>     main motiviation behind this was to centralize regulatory
>     code as each driver was implementing their own regulatory solution,
>     and to replace the initial centralized code we have where:
> 
>     * only 3 regulatory domains are supported: US, JP and EU
>     * regulatory domains can only be changed through module parameter
>     * all rules were built statically in the kernel
> 
>     We now have support for regulatory domains for many countries
>     and regulatory domains are now queried through a userspace agent
>     through udev allowing distributions to update regulatory rules
>     without updating the kernel.
> 
>     Each driver can regulatory_hint() a regulatory domain
>     based on either their EEPROM mapped regulatory domain value to a
>     respective ISO/IEC 3166-1 country code or pass an internally built
>     regulatory domain. We also add support to let the user set the
>     regulatory domain through userspace in case of faulty EEPROMs to
>     further help compliance.
> 
>     Support for world roaming will be added soon for cards capable of
>     this.
> 
>     For more information see:
> 
>     http://wireless.kernel.org/en/developers/Regulatory/CRDA
> 
>     For now we leave an option to enable the old module parameter,
>     ieee80211_regdom, and to build the 3 old regdomains statically
>     (US, JP and EU). This option is CONFIG_WIRELESS_OLD_REGULATORY.
>     These old static definitions and the module parameter is being
>     scheduled for removal for 2.6.29. Note that if you use this
>     you won't make use of a world regulatory domain as its pointless.
>     If you leave this option enabled and if CRDA is present and you
>     use US or JP we will try to ask CRDA to update us a regulatory
>     domain for us.
> 
>     Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
>     Signed-off-by: John W. Linville <linville@tuxdriver.com>

Arjan,

so newer kernels require CRDA and iw to set regulatory domain,
otherwise only the world regulatory domain is set so if your AP
is not in the world regulatory domain it won't connect. To enable
the other channels you need CRDA and iw installed.

http://wireless.kernel.org/en/developers/Regulatory/CRDA
http://wireless.kernel.org/en/users/Documentation/iw

Drivers can also hint to CRDA as per the API a country and in those cases
only CRDA is required, however right now only zd1211rw is using this
hint, work on the other drivers is in progress so for now calling iw
for your country is required. What is expected is in the future
wpa_supplicant will carry a country config element and it hints it.

Additionally if the old behaviour is desired for now (until distributions
catch up and add CRDA) CONFIG_WIRELESS_OLD_REGULATORY can be enabled
and you'll get the old behaviour of defaulting to country "US".

Please let me know if there are any issues.

  Luis

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bisected: 2.6.28-rc broke my iwl4965 wireless
  2008-10-27 16:38 ` Luis R. Rodriguez
@ 2008-10-27 16:41   ` Johannes Berg
  2008-10-27 17:33   ` Arjan van de Ven
  1 sibling, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2008-10-27 16:41 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Arjan van de Ven, linux-kernel, netdev, Luis Rodriguez, torvalds,
	Rafael J. Wysocki, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 839 bytes --]

On Mon, 2008-10-27 at 09:38 -0700, Luis R. Rodriguez wrote:

> > 2.6.28-rc1 broke my (intel 4965) wireless, and I've bisected it down to
> > the commit below..... something's fishy with this...

> Additionally if the old behaviour is desired for now (until distributions
> catch up and add CRDA) CONFIG_WIRELESS_OLD_REGULATORY can be enabled
> and you'll get the old behaviour of defaulting to country "US".

Luis, Arjan's bug is actually indicative of a driver bug, he told me
that he actually runs into driver message like "cannot set TX power
while scanning", and it's fixed by setting WIRELESS_OLD_REGULATORY for
some reason. Arjan, do you still have the actual messages you get when
it fails? That's a separate bug we should address, rather than relying
on it not happening with the old regulatory setting.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: bisected: 2.6.28-rc broke my iwl4965 wireless
  2008-10-27 16:38 ` Luis R. Rodriguez
  2008-10-27 16:41   ` Johannes Berg
@ 2008-10-27 17:33   ` Arjan van de Ven
  1 sibling, 0 replies; 4+ messages in thread
From: Arjan van de Ven @ 2008-10-27 17:33 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: linux-kernel, netdev, Luis Rodriguez, torvalds,
	Rafael J. Wysocki, linux-wireless

On Mon, 27 Oct 2008 09:38:12 -0700
"Luis R. Rodriguez" <lrodriguez@atheros.com> wrote:

> Additionally if the old behaviour is desired for now (until
> distributions catch up and add CRDA) CONFIG_WIRELESS_OLD_REGULATORY
> can be enabled and you'll get the old behaviour of defaulting to
> country "US".
> 
> Please let me know if there are any issues.

the point is that this compatibility behavior should have been the
default... since it'll be at least 6 months before current distros will
even ship the userland..


-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-27 17:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-26  5:22 bisected: 2.6.28-rc broke my iwl4965 wireless Arjan van de Ven
2008-10-27 16:38 ` Luis R. Rodriguez
2008-10-27 16:41   ` Johannes Berg
2008-10-27 17:33   ` Arjan van de Ven

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).