cfg80211: Clear encryption privacy when key off is done.
authorVivek Natarajan <vnatarajan@atheros.com>
Tue, 24 Nov 2009 16:54:10 +0000 (11:54 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Dec 2009 20:10:08 +0000 (15:10 -0500)
When the current_bss is not set, 'iwconfig <iface> 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 <vnatarajan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/wext-compat.c

index 584eb4826e02540973297e975e214bd4553bcd9f..54face3d4424c973ab6b297ea9582daba6c0beab 100644 (file)
@@ -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.