android_kernel_xiaomi_sm8350/net/mac80211
Zhu Yi a10605e599 mac80211: free ifsta->extra_ie and clear IEEE80211_STA_PRIVACY_INVOKED
I'm not sure if this is best choice, someone might have better
solutions. But this patch fixed the connection problem when switching
from a WPA enabled AP (using wpa_supplicant) to an open AP (using
iwconfig). The root cause is when we connect to a WPA enabled AP,
wpa_supplicant sets the ifsta->extra_ie thru SIOCSIWGENIE. But if we
stop wpa_supplicant and connect to an open AP with iwconfig, there is
no way to clear the extra_ie so that mac80211 keeps connecting with that.

Someone could argue wpa_supplicant should clear the extra_ie during
its shutdown. But mac80211 should also handle the unexpected shutdown
case (ie. killall -9 wpa_supplicant).

On Wed, 2007-11-21 at 16:19 +0100, Johannes Berg wrote:
> Yeah. Can you amend the patch to also clear the
> IEEE80211_STA_PRIVACY_INVOKED flag?

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2007-11-29 18:08:47 -05:00
..
aes_ccm.c cleanup asm/scatterlist.h includes 2007-11-02 08:47:06 +01:00
aes_ccm.h
cfg.c [MAC80211]: implement cfg80211's change_interface hook 2007-10-10 16:54:20 -07:00
cfg.h [MAC80211]: rename ieee80211_cfg.h to cfg.h 2007-10-10 16:52:34 -07:00
debugfs_key.c [NET]: Introduce and use print_mac() and DECLARE_MAC_BUF() 2007-10-10 16:51:42 -07:00
debugfs_key.h
debugfs_netdev.c [PATCH] mac80211: validate VLAN interfaces better 2007-10-10 16:52:57 -07:00
debugfs_netdev.h
debugfs_sta.c [MAC80211]: kill vlan_id 2007-10-10 16:52:33 -07:00
debugfs_sta.h
debugfs.c [MAC80211]: remove key threshold stuff 2007-10-10 16:52:29 -07:00
debugfs.h
event.c [NET]: Introduce and use print_mac() and DECLARE_MAC_BUF() 2007-10-10 16:51:42 -07:00
ieee80211_i.h Merge branch 'fixes-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 2007-11-14 19:44:02 -08:00
ieee80211_iface.c [PATCH] ieee80211_if_set_type: make check for master dev more explicit 2007-10-10 16:55:23 -07:00
ieee80211_ioctl.c mac80211: use IW_AUTH_PRIVACY_INVOKED rather than IW_AUTH_KEY_MGMT 2007-11-10 22:01:25 -08:00
ieee80211_key.h [PATCH] mac80211: remove crypto algorithm typedef 2007-10-10 16:53:00 -07:00
ieee80211_led.c [MAC80211]: Add association LED trigger 2007-10-10 16:54:20 -07:00
ieee80211_led.h [MAC80211]: Add association LED trigger 2007-10-10 16:54:20 -07:00
ieee80211_rate.c mac80211: don't allow registering the same rate control twice 2007-11-10 21:59:43 -08:00
ieee80211_rate.h mac80211: make simple rate control algorithm built-in 2007-11-10 21:59:23 -08:00
ieee80211_sta.c Merge branch 'fixes-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 2007-11-14 19:44:02 -08:00
ieee80211.c mac80211: free ifsta->extra_ie and clear IEEE80211_STA_PRIVACY_INVOKED 2007-11-29 18:08:47 -05:00
Kconfig mac80211: fix MAC80211_RCSIMPLE Kconfig 2007-11-10 22:01:42 -08:00
key.c [MAC80211]: remove ALG_NONE 2007-10-10 16:54:18 -07:00
Makefile mac80211: make simple rate control algorithm built-in 2007-11-10 21:59:23 -08:00
michael.c
michael.h
rc80211_simple.c mac80211: make simple rate control algorithm built-in 2007-11-10 21:59:23 -08:00
regdomain.c
rx.c mac80211: make "decrypt failed" messages conditional upon MAC80211_DEBUG 2007-11-10 22:01:34 -08:00
sta_info.c [MAC80211]: add sta_notify callback 2007-10-10 16:54:21 -07:00
sta_info.h [MAC80211]: kill vlan_id 2007-10-10 16:52:33 -07:00
tkip.c [PATCH] mac80211: fix TKIP IV update 2007-10-10 16:53:16 -07:00
tkip.h [PATCH] mac80211: fix TKIP IV update 2007-10-10 16:53:16 -07:00
tx.c [MAC80211]: improve radiotap injection 2007-10-10 16:54:18 -07:00
util.c [MAC80211]: fix warnings introduced by the doc patches 2007-10-10 16:52:30 -07:00
wep.c mac80211: make "decrypt failed" messages conditional upon MAC80211_DEBUG 2007-11-10 22:01:34 -08:00
wep.h [PATCH] mac80211: remove ieee80211_wep_get_keyidx 2007-10-10 16:53:14 -07:00
wme.c [MAC80211]: remove management interface 2007-10-10 16:54:15 -07:00
wme.h
wpa.c mac80211: make "decrypt failed" messages conditional upon MAC80211_DEBUG 2007-11-10 22:01:34 -08:00
wpa.h [PATCH] mac80211: consolidate encryption 2007-10-10 16:53:14 -07:00