git: 95db9ef5657b - main - rc.d/wpa_supplicant: remove support for NDIS

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Sat, 11 Jun 2022 20:25:26 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=95db9ef5657b1a3164f4fb4f9506c3da05f86443

commit 95db9ef5657b1a3164f4fb4f9506c3da05f86443
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2022-06-11 20:04:56 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-06-11 20:25:21 +0000

    rc.d/wpa_supplicant: remove support for NDIS
    
    ndis drivers have been remove long ago (early 2021)
---
 libexec/rc/rc.d/wpa_supplicant | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/libexec/rc/rc.d/wpa_supplicant b/libexec/rc/rc.d/wpa_supplicant
index 9e5f64a5373f..46cb8499e12b 100755
--- a/libexec/rc/rc.d/wpa_supplicant
+++ b/libexec/rc/rc.d/wpa_supplicant
@@ -20,14 +20,6 @@ if [ -z "$ifn" ]; then
 	return 1
 fi
 
-is_ndis_interface()
-{
-	case `sysctl -n net.wlan.${1#wlan}.%parent 2>/dev/null` in
-		ndis*) true ;;
-		*) false ;;
-	esac
-}
-
 wpa_poststart() {
 	ifconfig ${ifn} down
 	sleep 2
@@ -36,8 +28,6 @@ wpa_poststart() {
 
 if is_wired_interface ${ifn} ; then
 	driver="wired"
-elif is_ndis_interface ${ifn} ; then
-	driver="ndis"
 else
 	driver="bsd"
 fi