summaryrefslogtreecommitdiffstats
path: root/patches/01_fix-build-without-ieee8021x-eapol.patch
blob: 10b9d698f4a05c30ce5e496dd54eb398b5a934ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 &&