Skip to contentSkip to conversation

Wireless regression in 2.6.32-git

bisected Arjan van de Ven 5 participants 7 messages Sep 27, 2009 – Sep 28, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi,

With todays git my laptop fails to associate with my access point. Bisection points to the commit below, and reverting this one commit on the HEAD of tree also fixes the issue, so I'm pretty confident that this commit is to blame.

I have a 4965 wifi card in my laptop, and the network I'm trying to connect to has no encryption. I'm running Fedora 11 as OS.

I would like to kindly request for this commit to be reverted until a more permanent solution is found (I'm happy to test any patches)..

94f85853324e02c3a32bc3101f090dc9a3f512b4 is first bad commit commit 94f85853324e02c3a32bc3101f090dc9a3f512b4

Author: Johannes Berg <[email protected]>
Date:   Thu Sep 17 17:15:31 2009 -0700

cfg80211: don't overwrite privacy setting

When cfg80211 is instructed to connect, it always uses the default WEP key for the privacy setting, which clearly is wrong when using wpa_supplicant. Don't overwrite the setting, and rely on it being false when wpa_supplicant is not running, instead set it to true when we have keys.

:040000 040000 27fb46273e88eefee373699eb7e3f2923ac0886b
9518ee3e52c8320613cc5eee5ac54aabf082432f M net

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
#2 lore raw
Quoted 4 lines · On Sun, 27 Sep 2009 15:24:10 +0200 Maciej Rutecki <[email protected]>…

Did You have similar messages in dmesg like this:

http://bugzilla.intellinuxwireless.org/show_bug.cgi?id=2089
(use WPA)

nope I don't get a Reason 6 disconnect...

(I get a reason 3 local choice, but that's true for working and non-working both)

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
#3 lore raw
In reply to Arjan van de Ven
Quoted 26 lines · Arjan van de Ven

With todays git my laptop fails to associate with my access point. Bisection points to the commit below, and reverting this one commit on the HEAD of tree also fixes the issue, so I'm pretty confident that this commit is to blame.

I have a 4965 wifi card in my laptop, and the network I'm trying to connect to has no encryption. I'm running Fedora 11 as OS.

I would like to kindly request for this commit to be reverted until a more permanent solution is found (I'm happy to test any patches)..

94f85853324e02c3a32bc3101f090dc9a3f512b4 is first bad commit commit 94f85853324e02c3a32bc3101f090dc9a3f512b4

Author: Johannes Berg <[email protected]>
Date:   Thu Sep 17 17:15:31 2009 -0700

cfg80211: don't overwrite privacy setting

When cfg80211 is instructed to connect, it always uses the default WEP key for the privacy setting, which clearly is wrong when using wpa_supplicant. Don't overwrite the setting, and rely on it being false when wpa_supplicant is not running, instead set it to true when we have keys.

Quoted 5 lines

:040000 040000 27fb46273e88eefee373699eb7e3f2923ac0886b
9518ee3e52c8320613cc5eee5ac54aabf082432f M net

I've a different problem with wireless that Johannes is investigating for me on linux-wireless; but here's a patch that he pointed me to along the way, didn't help my issue but I expect it will help yours...

Subject: cfg80211: don't set privacy w/o key

When wpa_supplicant is used to connect to open networks, it causes the wdev->wext.keys to point to key memory, but that key memory is all empty. Only use privacy when there is a default key to be used.

---
 net/wireless/wext-sme.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/wireless/wext-sme.c +2 -1
@@ -30,7 +30,8 @@ int cfg80211_mgd_wext_connect(struct cfg
 	if (wdev->wext.keys) {
 		wdev->wext.keys->def = wdev->wext.default_key;
 		wdev->wext.keys->defmgmt = wdev->wext.default_mgmt_key;
-		wdev->wext.connect.privacy = true;
+		if (wdev->wext.default_key != -1)
+			wdev->wext.connect.privacy = true;
 	}
 
 	if (!wdev->wext.connect.ssid_len)

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

#4 lore raw
Quoted 38 lines · On Sun, 27 Sep 2009 17:14:04 +0100 (BST) Hugh Dickins…
Quoted 26 lines · Arjan van de Ven

With todays git my laptop fails to associate with my access point. Bisection points to the commit below, and reverting this one commit on the HEAD of tree also fixes the issue, so I'm pretty confident that this commit is to blame.

I have a 4965 wifi card in my laptop, and the network I'm trying to connect to has no encryption. I'm running Fedora 11 as OS.

I would like to kindly request for this commit to be reverted until a more permanent solution is found (I'm happy to test any patches)..

94f85853324e02c3a32bc3101f090dc9a3f512b4 is first bad commit commit 94f85853324e02c3a32bc3101f090dc9a3f512b4

Author: Johannes Berg <[email protected]>
Date:   Thu Sep 17 17:15:31 2009 -0700

cfg80211: don't overwrite privacy setting

When cfg80211 is instructed to connect, it always uses the default WEP key for the privacy setting, which clearly is wrong when using wpa_supplicant. Don't overwrite the setting, and rely on it being false when wpa_supplicant is not running, instead set it to true when we have keys.

Quoted 5 lines

:040000 040000 27fb46273e88eefee373699eb7e3f2923ac0886b
9518ee3e52c8320613cc5eee5ac54aabf082432f M net

I've a different problem with wireless that Johannes is investigating for me on linux-wireless; but here's a patch that he pointed me to along the way, didn't help my issue but I expect it will help yours...

Quoted 6 lines

Subject: cfg80211: don't set privacy w/o key

When wpa_supplicant is used to connect to open networks, it causes the wdev->wext.keys to point to key memory, but that key memory is all empty. Only use privacy when there is a default key to be used.

indeed it does

can we get this into mainline soon ?

maintainer
#5 lore raw
Quoted 11 lines · Arjan van de Ven
Quoted 6 lines

Subject: cfg80211: don't set privacy w/o key

When wpa_supplicant is used to connect to open networks, it causes the wdev->wext.keys to point to key memory, but that key memory is all empty. Only use privacy when there is a default key to be used.

indeed it does

can we get this into mainline soon ?

John's on his way home I suppose.

johannes

#6 lore raw
Quoted 10 lines · Johannes Berg
Quoted 8 lines · Arjan van de Ven
Quoted 6 lines

Subject: cfg80211: don't set privacy w/o key

When wpa_supplicant is used to connect to open networks, it causes the wdev->wext.keys to point to key memory, but that key memory is all empty. Only use privacy when there is a default key to be used.

Quoted 5 lines
Quoted 3 lines

indeed it does

can we get this into mainline soon ?

John's on his way home I suppose.

Yes, I'll get to it today -- sorry for the delays related to my travel!

John

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.