From: Johannes Berg <johannes.berg@xxxxxxxxx> 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@xxxxxxxxx> --- 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; -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html