aboutsummaryrefslogtreecommitdiff
path: root/contrib/hostapd/wpa.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2006-03-27 18:15:24 +0000
committerSam Leffler <sam@FreeBSD.org>2006-03-27 18:15:24 +0000
commitb449aee71d92a35e5293f3df4f0a564f77fbd02b (patch)
tree95de519733c79dfd4eb1c592409eb069c33e9662 /contrib/hostapd/wpa.c
parent89f5e593c04599b48d6b59a8c4841676a988ac4f (diff)
downloadsrc-b449aee71d92a35e5293f3df4f0a564f77fbd02b.tar.gz
src-b449aee71d92a35e5293f3df4f0a564f77fbd02b.zip
Add eapol_version config parameter so folks with clients that (bogusly)
require the authenticator announce EAPOL version 1 don't have to hack the code to get a working setup. Discussed with Jouni; he's committed a similar set of changes to his devel branch and I sent him these changes so I'm committing this on the vendor branch in the expectation it will appear in the next import. MFC after: 1 week
Notes
Notes: svn path=/vendor/hostapd/dist/; revision=157181
Diffstat (limited to 'contrib/hostapd/wpa.c')
-rw-r--r--contrib/hostapd/wpa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/hostapd/wpa.c b/contrib/hostapd/wpa.c
index 4bac473122d6..98eef20ca1e2 100644
--- a/contrib/hostapd/wpa.c
+++ b/contrib/hostapd/wpa.c
@@ -1853,7 +1853,7 @@ static void wpa_send_eapol(struct hostapd_data *hapd, struct sta_info *sta,
if (hdr == NULL)
return;
memset(hdr, 0, len);
- hdr->version = EAPOL_VERSION;
+ hdr->version = hapd->conf->eapol_version;
hdr->type = IEEE802_1X_TYPE_EAPOL_KEY;
hdr->length = htons(len - sizeof(*hdr));
key = (struct wpa_eapol_key *) (hdr + 1);