Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] cfg80211: don't overwrite privacy setting
@ 2009-09-18  0:15 Johannes Berg
  2009-09-18 20:52 ` ASIC Felix
  2009-09-18 21:27 ` Sedat Dilek
  0 siblings, 2 replies; 3+ messages in thread
From: Johannes Berg @ 2009-09-18  0:15 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless, ASIC Felix

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.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>

--- wireless-testing.orig/net/wireless/wext-sme.c	2009-09-17 17:12:03.000000000 -0700
+++ wireless-testing/net/wireless/wext-sme.c	2009-09-17 17:12:53.000000000 -0700
@@ -26,11 +26,11 @@ int cfg80211_mgd_wext_connect(struct cfg
 
 	wdev->wext.connect.ie = wdev->wext.ie;
 	wdev->wext.connect.ie_len = wdev->wext.ie_len;
-	wdev->wext.connect.privacy = wdev->wext.default_key != -1;
 
 	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.connect.ssid_len)



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

end of thread, other threads:[~2009-09-18 21:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-18  0:15 [PATCH] cfg80211: don't overwrite privacy setting Johannes Berg
2009-09-18 20:52 ` ASIC Felix
2009-09-18 21:27 ` Sedat Dilek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox