Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cfg80211: Clear encryption privacy when key off is done.

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>

authored by

Vivek Natarajan and committed by
John W. Linville
d55fb891 43de004b

+1
+1
net/wireless/wext-compat.c
··· 479 479 } 480 480 err = rdev->ops->del_key(&rdev->wiphy, dev, idx, addr); 481 481 } 482 + wdev->wext.connect.privacy = false; 482 483 /* 483 484 * Applications using wireless extensions expect to be 484 485 * able to delete keys that don't exist, so allow that.