Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2008 03:51:27 GMT
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 140097 for review
Message-ID:  <200804160351.m3G3pRfE063772@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=140097

Change 140097 by thompsa@thompsa_burger on 2008/04/16 03:50:53

	Add a test for the vap parent being a ndis interface and use the
	appropriate wpa_supplicant driver.

Affected files ...

.. //depot/projects/vap/etc/rc.d/wpa_supplicant#8 edit

Differences ...

==== //depot/projects/vap/etc/rc.d/wpa_supplicant#8 (text+ko) ====

@@ -30,18 +30,21 @@
 	test "$media" = "Ethernet"
 }
 
-case ${ifn} in
-ndis*)
+is_ndis_interface()
+{
+	case `sysctl -n net.wlan.${1#wlan}.%parent 2>/dev/null` in
+		ndis*) true ;;
+		*) false ;;
+	esac
+}
+
+if is_wired_interface ${ifn} ; then
+	driver="wired"
+elif is_ndis_interface ${ifn} ; then
 	driver="ndis"
-	;;
-*)
-	if is_wired_interface ${ifn} ; then
-		driver="wired"
-	else
-		driver="bsd"
-	fi
-	;;
-esac
+else
+	driver="bsd"
+fi
 
 load_rc_config $name
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804160351.m3G3pRfE063772>