Skip to contentSkip to conversation

mac80211: allow setting drop_unencrypted with wext

PATCH New Johannes Berg 1 participant 1 message Nov 28, 2007 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: allow setting drop_unencrypted with wext

This patch allows wpa_supplicant to set the drop_unencrypted setting in mac80211.

---
This patch applies to both 2.6.24 and #everything

 net/mac80211/ieee80211_ioctl.c |    3 +++
 1 file changed, 3 insertions(+)
net/mac80211/ieee80211_ioctl.c +3 -0
@@ -928,6 +928,9 @@ static int ieee80211_ioctl_siwauth(struc
 	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;