]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mac80211: allow setting drop_unencrypted with wext
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 28 Nov 2007 10:04:21 +0000 (11:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:55:29 +0000 (14:55 -0800)
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>
net/mac80211/ieee80211_ioctl.c

index dc03bd796fee1b1b88ad50241705cc4b030b4276..161f3bdec41be4818612755893af7e98dca9aaf0 100644 (file)
@@ -930,6 +930,9 @@ static int ieee80211_ioctl_siwauth(struct net_device *dev,
        case IW_AUTH_RX_UNENCRYPTED_EAPOL:
        case IW_AUTH_KEY_MGMT:
                break;
+       case IW_AUTH_DROP_UNENCRYPTED:
+               sdata->drop_unencrypted = !!data->value;
+               break;
        case IW_AUTH_PRIVACY_INVOKED:
                if (sdata->type != IEEE80211_IF_TYPE_STA)
                        ret = -EINVAL;