]> err.no Git - linux-2.6/commit
mac80211: use IW_AUTH_PRIVACY_INVOKED rather than IW_AUTH_KEY_MGMT
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 3 Nov 2007 13:11:10 +0000 (13:11 +0000)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 11 Nov 2007 06:01:25 +0000 (22:01 -0800)
commit5b98b1f7daf6d52ccc446486aca0b8bc9a588b2c
tree47d80c61cdebd35ebb8d9b0e577a0e5fd334cde1
parent56db6c52bb61509c114b9f1b1eecc7461229770a
mac80211: use IW_AUTH_PRIVACY_INVOKED rather than IW_AUTH_KEY_MGMT

In the long bug-hunt for why dynamic WEP networks didn't work it
turned out that mac80211 incorrectly uses IW_AUTH_KEY_MGMT while
it should use IW_AUTH_PRIVACY_INVOKED to determine whether to
associate to protected networks or not.

This patch changes the behaviour to be that way and clarifies the
existing code.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h
net/mac80211/ieee80211_ioctl.c
net/mac80211/ieee80211_sta.c