summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/01_fix-build-without-ieee8021x-eapol.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/01_fix-build-without-ieee8021x-eapol.patch b/patches/01_fix-build-without-ieee8021x-eapol.patch
new file mode 100644
index 0000000..10b9d69
--- /dev/null
+++ b/patches/01_fix-build-without-ieee8021x-eapol.patch
@@ -0,0 +1,23 @@
+Author: "P. J. McDermott" <pj@pehjota.net>
+Subject: Fix build without IEEE8021X_EAPOL
+
+Fixes:
+
+ wpa_supplicant.c: In function ‘wpa_supplicant_initiate_eapol’:
+ wpa_supplicant.c:303:33: error: ‘ssid’ undeclared (first use in this function)
+ wpa_supplicant.c:303:33: note: each undeclared identifier is reported only once for each function it appears in
+
+diff -Naur src.orig/wpa_supplicant/wpa_supplicant.c src/wpa_supplicant/wpa_supplicant.c
+--- src.orig/wpa_supplicant/wpa_supplicant.c 2014-06-04 09:26:14.000000000 -0400
++++ src/wpa_supplicant/wpa_supplicant.c 2014-08-01 21:49:40.883131289 -0400
+@@ -247,9 +247,9 @@
+ */
+ void wpa_supplicant_initiate_eapol(struct wpa_supplicant *wpa_s)
+ {
++ struct wpa_ssid *ssid = wpa_s->current_ssid;
+ #ifdef IEEE8021X_EAPOL
+ struct eapol_config eapol_conf;
+- struct wpa_ssid *ssid = wpa_s->current_ssid;
+
+ #ifdef CONFIG_IBSS_RSN
+ if (ssid->mode == WPAS_MODE_IBSS &&