From: Vivek Natarajan Date: Tue, 24 Nov 2009 16:54:10 +0000 (-0500) Subject: cfg80211: Clear encryption privacy when key off is done. X-Git-Tag: v2.6.33-rc1~299^2~14^2~8 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=d55fb891f9da8ee17374349ff482b2715623b7e5;p=~emulex%2Finfiniband.git cfg80211: Clear encryption privacy when key off is done. When the current_bss is not set, 'iwconfig key off' does not clear the private flag. Hence after we connect with WEP to an AP and then try to connect with another non-WEP AP, it does not work. This issue will not be seen if supplicant is used. Signed-off-by: Vivek Natarajan Signed-off-by: John W. Linville --- diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c index 584eb4826e0..54face3d442 100644 --- a/net/wireless/wext-compat.c +++ b/net/wireless/wext-compat.c @@ -479,6 +479,7 @@ static int __cfg80211_set_encryption(struct cfg80211_registered_device *rdev, } err = rdev->ops->del_key(&rdev->wiphy, dev, idx, addr); } + wdev->wext.connect.privacy = false; /* * Applications using wireless extensions expect to be * able to delete keys that don't exist, so allow that.