diff options
author | Tim Gardner <tim.gardner@canonical.com> | 2008-10-14 12:38:03 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:24 -0400 |
commit | 5c7f9b7363bfd10e40cf1a28dfc9048417df7028 (patch) | |
tree | d1e346e54767b1f8573255534f966b0d3dbc928e | |
parent | c12abae333ac550acacf9d324ed54b7d17ead0c0 (diff) |
ipw2x00: change default policy for auto-associate
Do not attempt association until directed to do so by a user space
application. In particular, this avoids race conditions with
NetworkManager association state.
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | Documentation/networking/README.ipw2200 | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/networking/README.ipw2200 b/Documentation/networking/README.ipw2200 index 4f2a40f1dbc6..80c728522c4c 100644 --- a/Documentation/networking/README.ipw2200 +++ b/Documentation/networking/README.ipw2200 | |||
@@ -147,7 +147,7 @@ Where the supported parameter are: | |||
147 | driver. If disabled, the driver will not attempt to scan | 147 | driver. If disabled, the driver will not attempt to scan |
148 | for and associate to a network until it has been configured with | 148 | for and associate to a network until it has been configured with |
149 | one or more properties for the target network, for example configuring | 149 | one or more properties for the target network, for example configuring |
150 | the network SSID. Default is 1 (auto-associate) | 150 | the network SSID. Default is 0 (do not auto-associate) |
151 | 151 | ||
152 | Example: % modprobe ipw2200 associate=0 | 152 | Example: % modprobe ipw2200 associate=0 |
153 | 153 | ||
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 6e988d2486a7..079dbd07e2f6 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -185,7 +185,7 @@ MODULE_LICENSE("GPL"); | |||
185 | static int debug = 0; | 185 | static int debug = 0; |
186 | static int mode = 0; | 186 | static int mode = 0; |
187 | static int channel = 0; | 187 | static int channel = 0; |
188 | static int associate = 1; | 188 | static int associate = 0; |
189 | static int disable = 0; | 189 | static int disable = 0; |
190 | #ifdef CONFIG_PM | 190 | #ifdef CONFIG_PM |
191 | static struct ipw2100_fw ipw2100_firmware; | 191 | static struct ipw2100_fw ipw2100_firmware; |
@@ -201,7 +201,7 @@ module_param(disable, int, 0444); | |||
201 | MODULE_PARM_DESC(debug, "debug level"); | 201 | MODULE_PARM_DESC(debug, "debug level"); |
202 | MODULE_PARM_DESC(mode, "network mode (0=BSS,1=IBSS,2=Monitor)"); | 202 | MODULE_PARM_DESC(mode, "network mode (0=BSS,1=IBSS,2=Monitor)"); |
203 | MODULE_PARM_DESC(channel, "channel"); | 203 | MODULE_PARM_DESC(channel, "channel"); |
204 | MODULE_PARM_DESC(associate, "auto associate when scanning (default on)"); | 204 | MODULE_PARM_DESC(associate, "auto associate when scanning (default off)"); |
205 | MODULE_PARM_DESC(disable, "manually disable the radio (default 0 [radio on])"); | 205 | MODULE_PARM_DESC(disable, "manually disable the radio (default 0 [radio on])"); |
206 | 206 | ||
207 | static u32 ipw2100_debug_level = IPW_DL_NONE; | 207 | static u32 ipw2100_debug_level = IPW_DL_NONE; |
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index 13633d8274a3..6ec6de2960ee 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -87,7 +87,7 @@ static int channel = 0; | |||
87 | static int mode = 0; | 87 | static int mode = 0; |
88 | 88 | ||
89 | static u32 ipw_debug_level; | 89 | static u32 ipw_debug_level; |
90 | static int associate = 1; | 90 | static int associate; |
91 | static int auto_create = 1; | 91 | static int auto_create = 1; |
92 | static int led = 0; | 92 | static int led = 0; |
93 | static int disable = 0; | 93 | static int disable = 0; |
@@ -11913,7 +11913,7 @@ module_param(disable, int, 0444); | |||
11913 | MODULE_PARM_DESC(disable, "manually disable the radio (default 0 [radio on])"); | 11913 | MODULE_PARM_DESC(disable, "manually disable the radio (default 0 [radio on])"); |
11914 | 11914 | ||
11915 | module_param(associate, int, 0444); | 11915 | module_param(associate, int, 0444); |
11916 | MODULE_PARM_DESC(associate, "auto associate when scanning (default on)"); | 11916 | MODULE_PARM_DESC(associate, "auto associate when scanning (default off)"); |
11917 | 11917 | ||
11918 | module_param(auto_create, int, 0444); | 11918 | module_param(auto_create, int, 0444); |
11919 | MODULE_PARM_DESC(auto_create, "auto create adhoc network (default on)"); | 11919 | MODULE_PARM_DESC(auto_create, "auto create adhoc network (default on)"); |