wireless: fix regression caused by regulatory config option
Subsystems (3)
PATCH 1/1 wireless: fix regression caused by regulatory config option
Quoted 1 line
From
9095a0f6005a8f50c79e51f4aaceda95e361a891Mon Sep 17 00:00:00 2001
From: Arjan van de Ven <[email protected]>
Date: Sun, 26 Oct 2008 10:25:30 -0700
Subject: [PATCH] wireless: fix regression caused by regulatory config option
The default for the regulatory compatibility option is wrong; if you picked the default you ended up with a non-functional wifi system (at least I did on Fedora 9 with iwl4965).
I don't think even the October 2008 releases of the various distros has the new userland so clearly the default is wrong, and also we can't just go about deleting this in 2.6.29...
Change the default to "y" and also adjust the config text a little to reflect this.
This patch fixes regression #11859
With thanks to Johannes Berg for the diagnostics
--- net/wireless/Kconfig | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-)
net/wireless/Kconfig +5 -6
@@ -16,7 +16,7 @@ config NL80211 config WIRELESS_OLD_REGULATORY bool "Old wireless static regulatory definitions" - default n + default y ---help--- This option enables the old static regulatory information and uses it within the new framework. This is available
@@ -40,11 +40,10 @@ config WIRELESS_OLD_REGULATORY ieee80211_regdom module parameter. This is being phased out and you should stop using them ASAP. - Say N unless you cannot install a new userspace application - or have one currently depending on the ieee80211_regdom module - parameter and cannot port it to use the new userspace interfaces. - - This is scheduled for removal for 2.6.29. + Say Y unless you have installed a new userspace application. + Also say Y if have one currently depending on the ieee80211_regdom + module parameter and cannot port it to use the new userspace + interfaces. config WIRELESS_EXT bool "Wireless extensions"
Signature · 8 lines
1.5.6.5 -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org
Quoted 12 lines · Arjan van de Ven
From
9095a0f6005a8f50c79e51f4aaceda95e361a891Mon Sep 17 00:00:00 2001
From: Arjan van de Ven <[email protected]>
Date: Sun, 26 Oct 2008 10:25:30 -0700
Subject: [PATCH] wireless: fix regression caused by regulatory config optionThe default for the regulatory compatibility option is wrong; if you picked the default you ended up with a non-functional wifi system (at least I did on Fedora 9 with iwl4965).
I don't think even the October 2008 releases of the various distros has the new userland so clearly the default is wrong, and also we can't just go about deleting this in 2.6.29...
Quoted 2 lines
Change the default to "y" and also adjust the config text a little to reflect this.
Is it common practice to have compatibility options default to "y"? I'm not saying it shouldn't be, just wondering if it has been traditionally?
John
Signature · 2 lines
John W. Linville Linux should be at the core [email protected] of your literate lifestyle.
On Sun, 26 Oct 2008 16:09:39 -0400
"John W. Linville" <[email protected]> wrote:
f
Quoted 6 lines
Quoted 2 lines
Change the default to "y" and also adjust the config text a little to reflect this.
Is it common practice to have compatibility options default to "y"? I'm not saying it shouldn't be, just wondering if it has been traditionally?
yes
default should be "keep working as before"
it's not always nice, especially if you're trying to get rid of some nasty stuff, but think of it this way: you should be able to use a new kernel on an existing distro, at least for a reasonable type of distro (eg something shipped in, say, the last 2 years). In this case:
even Fedora 10 is not likely to work!
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
Johannes Berg
maintainerQuoted 6 lines · Arjan van de Ven
Quoted 3 lines
Is it common practice to have compatibility options default to "y"? I'm not saying it shouldn't be, just wondering if it has been traditionally?
yes
Quoted 7 lines
default should be "keep working as before"
it's not always nice, especially if you're trying to get rid of some nasty stuff, but think of it this way: you should be able to use a new kernel on an existing distro, at least for a reasonable type of distro (eg something shipped in, say, the last 2 years). In this case:
even Fedora 10 is not likely to work!
Well, actually, it _ought_ to work fine, with a smaller set of channels, but you seem to be hit an iwlwifi bug that triggers only with this, which is rather odd.
johannes
Quoted 10 lines · Johannes Berg
Quoted 8 lines · Arjan van de Ven
Quoted 3 lines
Is it common practice to have compatibility options default to "y"? I'm not saying it shouldn't be, just wondering if it has been traditionally?
yes
default should be "keep working as before"
Quoted 7 lines
Quoted 5 lines
it's not always nice, especially if you're trying to get rid of some nasty stuff, but think of it this way: you should be able to use a new kernel on an existing distro, at least for a reasonable type of distro (eg something shipped in, say, the last 2 years). In this case:
even Fedora 10 is not likely to work!Well, actually, it _ought_ to work fine, with a smaller set of channels,
Really? It will still break if your AP uses one of those channels, right?
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Johannes Berg
maintainerQuoted 9 lines · Pavel Machek
Quoted 7 lines
Quoted 5 lines
it's not always nice, especially if you're trying to get rid of some nasty stuff, but think of it this way: you should be able to use a new kernel on an existing distro, at least for a reasonable type of distro (eg something shipped in, say, the last 2 years). In this case:
even Fedora 10 is not likely to work!Well, actually, it _ought_ to work fine, with a smaller set of channels,
Really? It will still break if your AP uses one of those channels, right?
Well yes, but the driver itself shouldn't simply fail as it did in Arjan's case, it should just not find the AP rather than saying "sorry, found error and can't continue" or something like that.
johannes
Quoted 12 lines · Arjan van de Ven
On Sun, 26 Oct 2008 16:09:39 -0400
"John W. Linville" <[email protected]> wrote:
fQuoted 6 lines
Quoted 2 lines
Change the default to "y" and also adjust the config text a little to reflect this.
Is it common practice to have compatibility options default to "y"? I'm not saying it shouldn't be, just wondering if it has been traditionally?
yes
Quoted 7 lines
default should be "keep working as before"
it's not always nice, especially if you're trying to get rid of some nasty stuff, but think of it this way: you should be able to use a new kernel on an existing distro, at least for a reasonable type of distro (eg something shipped in, say, the last 2 years). In this case:
even Fedora 10 is not likely to work!
Well, I intended to make sure the Fedora guys picked the right option. :-)
Anyway, I'm fine with default 'y'...however, Luis is probably somewhere buying a gun and looking-up your home address...just kidding...mostly... :-)
John
Signature · 2 lines
John W. Linville Linux should be at the core [email protected] of your literate lifestyle.
Hi Arjan,
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Change the default to "y" and also adjust the config text a little to reflect this.
Is it common practice to have compatibility options default to "y"? I'm not saying it shouldn't be, just wondering if it has been traditionally?
yes
Quoted 7 lines
default should be "keep working as before"
it's not always nice, especially if you're trying to get rid of some nasty stuff, but think of it this way: you should be able to use a new kernel on an existing distro, at least for a reasonable type of distro (eg something shipped in, say, the last 2 years). In this case:
even Fedora 10 is not likely to work!
I think with the new patches from Johannes to make the regulatory interaction easier for hardware that has hardware/EEPROM based regulatory enforcement like our wireless cards, it should be all good.
That seems to be 2.6.20 stuff and then it seems to be safe to remove the WIRELESS_OLD_REGULATORY option and it would still work with old userspace (or missing crda/iw) in cases the hardware does regulatory enforcement.
Regards
Marcel
Quoted 4 lines · John W. Linville
Is it common practice to have compatibility options default to "y"? I'm not saying it shouldn't be, just wondering if it has been traditionally?
Yes. Generally the rule should be that
make oldconfig
with 'default values for all new options' should give you a configuration that is essentially identical to the old one.
So if it's a config option to enable compatibility with old kernels, it should default to 'y'. If it's a new driver or a new feature that didn't exist in previous kernels, it should default to 'n'.
Linus
net/wireless/Kconfig config WIRELESS_OLD_REGULATORY · line 46
Quoted 9 lines
net/wireless/Kconfig +4
-5- Say N unless you cannot install a new userspace application - or have one currently depending on the ieee80211_regdom module - parameter and cannot port it to use the new userspace interfaces. - - This is scheduled for removal for 2.6.29. + Say Y unless you have installed a new userspace application. + Also say Y if have one currently depending on the ieee80211_regdom + module parameter and cannot port it to use the new userspace + interfaces.
Ignoring the main debate :) -- I might point out the actual help text here in is a bit user-unfriendly. "installed a new userspace application" (which? I just installed Firefox, does that count?) "Also say Y if [you] have [an application]..."
Signature · 1 line
Bob Copeland %% www.bobcopeland.com