From patchwork Wed Nov 16 09:17:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [19/18] driver_nl80211: don't encrypt 802.1X WEP EAPOL Date: Tue, 15 Nov 2011 23:17:35 -0000 From: Johannes Berg X-Patchwork-Id: 125964 Message-Id: <1321435055.4773.13.camel@jlt3.sipsolutions.net> To: hostap@lists.shmoo.com From: Johannes Berg Set the NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT flag for nl80211 to tell drivers (mac80211) to not encrypt the EAPOL frames for WEP 802.1X. Signed-hostap: Johannes Berg --- src/drivers/driver_nl80211.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 7c56fec..af6c332 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -4985,6 +4985,10 @@ static int wpa_driver_nl80211_set_ap(void *priv, num_suites * sizeof(u32), suites); } + if (params->key_mgmt_suites & WPA_KEY_MGMT_IEEE8021X && + params->pairwise_ciphers & (WPA_CIPHER_WEP104 | WPA_CIPHER_WEP40)) + NLA_PUT_FLAG(msg, NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT); + num_suites = 0; if (params->pairwise_ciphers & WPA_CIPHER_CCMP) suites[num_suites++] = WLAN_CIPHER_SUITE_CCMP;