tags 401413 patch
thanks

Hi Torquil,

On Sunday 03 December 2006 21:19, Torquil Macdonald Sørensen wrote:
> I am trying to connect to a wired network with IEEE8021X authentication.

Ok. Something I admit to having very little experience with.

> Thus I have no wpa-ssid line in /etc/network/interfaces, following the
> advise given here:
> http://lists.shmoo.com/pipermail/hostap/2006-November/014522.html
>
> But looking at the function conf_wpa_supplicant() in
> /etc/wpasupplicant/functions.sh, the effect of not setting the ssid is
> that none of the options, e.g. wpa-key-mgmt, wpa-identity, wpa-eap,...
> are read from /etc/network/interfaces. I have the following paragraph in
> the interfaces file:
>
> iface eth0 inet dhcp
>       wpa-ap-scan 0
>       wpa-driver wired
>       wpa-key-mgmt IEEE8021X
>       wpa-eap PEAP
>       wpa-phase1 peaplabel=0
>       wpa-phase2 auth=MSCHAPV2
>       wpa-eapol-flags 0
>       wpa-identity [secret]
>       wpa-password [secret]
>
> Best regards,

Please try using attached diff to /etc/wpasupplicant/functions.sh

Can you paste output of 'ifup --verbose eth0' and possibly 
add 'wpa-maint-debug 1' and give mass output from ifupdown.sh|functions.sh 
(set -x).

Thanks, Kel.

Index: functions.sh
===================================================================
--- functions.sh	(revision 774)
+++ functions.sh	(working copy)
@@ -188,11 +188,6 @@
 		if [ -n "$IF_WPA_DRIVER" ]; then
 			WPA_SUP_DRIVER="$IF_WPA_DRIVER"
 			wpa_msg verbose "wpa-driver $WPA_SUP_DRIVER"
-
-			if [ "$IF_WPA_DRIVER" = "wired" ]; then
-				IF_WPA_AP_SCAN="0"
-				wpa_msg verbose "forcing ap_scan=0 (required for wired IEEE8021X auth)"
-			fi
 		else
 			WPA_SUP_DRIVER="wext"
 			wpa_msg verbose "using default driver type: wpa-driver $WPA_SUP_DRIVER"
@@ -459,6 +454,11 @@
 	if [ -n "$WPA_ACTION_SCRIPT" ]; then
 		return 0
 	fi
+
+	if [ "$IF_WPA_DRIVER" = "wired" ]; then
+		IF_WPA_AP_SCAN="0"
+		wpa_msg verbose "forcing ap_scan=0 (required for wired IEEE8021X auth)"
+	fi
 	
 	wpa_cli_do "$IF_WPA_AP_SCAN" raw \
 		ap_scan wpa-ap-scan
@@ -466,7 +466,7 @@
 	wpa_cli_do "$IF_WPA_PREAUTHENTICATE" raw \
 		preauthenticate wpa-preauthenticate
 		
-	if [ -n "$IF_WPA_SSID" ]; then
+	if [ -n "$IF_WPA_SSID" ] || [ "$IF_WPA_DRIVER" = "wired" ]; then
 		
 		case "$IF_WPA_SSID" in
 			'"'*'"')

Reply via email to