Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] cfg80211: fix IBSS default management key
@ 2010-07-22 11:59 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2010-07-22 11:59 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless

From: Johannes Berg <johannes.berg@intel.com>

When wireless extensions are used to control
an encrypted IBSS, we erroneously can try to
set the default management key. Fix this.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 net/wireless/ibss.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- wireless-testing.orig/net/wireless/ibss.c	2010-07-22 12:28:15.000000000 +0200
+++ wireless-testing/net/wireless/ibss.c	2010-07-22 12:28:27.000000000 +0200
@@ -247,8 +247,10 @@ int cfg80211_ibss_wext_join(struct cfg80
 	if (!netif_running(wdev->netdev))
 		return 0;
 
-	if (wdev->wext.keys)
+	if (wdev->wext.keys) {
 		wdev->wext.keys->def = wdev->wext.default_key;
+		wdev->wext.keys->defmgmt = wdev->wext.default_mgmt_key;
+	}
 
 	wdev->wext.ibss.privacy = wdev->wext.default_key != -1;
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-22 11:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-22 11:59 [PATCH] cfg80211: fix IBSS default management key Johannes Berg

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