bisected: 2.6.28-rc broke my iwl4965 wireless
Subsystems (2)
[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 <[email protected]> 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.
Signature · 8 lines
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
Quoted 51 lines · Arjan van de Ven
[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...
b2e1b30290539b344cbaff0d9da38012e03aa347is first bad commit commitb2e1b30290539b344cbaff0d9da38012e03aa347Author: Luis R. Rodriguez <[email protected]> Date: Tue Sep 9 23:19:48 2008 -0700cfg80211: 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 kernelWe 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 isCONFIG_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.
Quoted 2 lines
Signed-off-by Luis R. Rodriguez <[email protected]>Signed-off-by John W. Linville <[email protected]>
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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 6 lines · Luis R. Rodriguez
Quoted 2 lines
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_REGULATORYcan 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
Quoted 6 lines · On Mon, 27 Oct 2008 09:38:12 -0700 "Luis R. Rodriguez"…
Additionally if the old behaviour is desired for now (until distributions catch up and add CRDA)
CONFIG_WIRELESS_OLD_REGULATORYcan 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..
Signature · 3 lines
Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org