aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-11-28 05:04:21 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:55:29 -0500
commitb1357a81a9ba1cf173747a0e50c24795640327f5 (patch)
tree9f74bf5b837167dee910a473df2155067853fc65
parente38bad4766a110b61fa6038f10be16ced8c6cc38 (diff)
mac80211: allow setting drop_unencrypted with wext
This patch allows wpa_supplicant to set the drop_unencrypted setting in mac80211. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/mac80211/ieee80211_ioctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c
index dc03bd796fee..161f3bdec41b 100644
--- a/net/mac80211/ieee80211_ioctl.c
+++ b/net/mac80211/ieee80211_ioctl.c
@@ -930,6 +930,9 @@ static int ieee80211_ioctl_siwauth(struct net_device *dev,
930 case IW_AUTH_RX_UNENCRYPTED_EAPOL: 930 case IW_AUTH_RX_UNENCRYPTED_EAPOL:
931 case IW_AUTH_KEY_MGMT: 931 case IW_AUTH_KEY_MGMT:
932 break; 932 break;
933 case IW_AUTH_DROP_UNENCRYPTED:
934 sdata->drop_unencrypted = !!data->value;
935 break;
933 case IW_AUTH_PRIVACY_INVOKED: 936 case IW_AUTH_PRIVACY_INVOKED:
934 if (sdata->type != IEEE80211_IF_TYPE_STA) 937 if (sdata->type != IEEE80211_IF_TYPE_STA)
935 ret = -EINVAL; 938 ret = -EINVAL;