Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Oct 2018 20:49:52 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339695 - head/libexec/rc
Message-ID:  <201810242049.w9OKnqil097925@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Wed Oct 24 20:49:51 2018
New Revision: 339695
URL: https://svnweb.freebsd.org/changeset/base/339695

Log:
  Remove code that is dead since r287197. Today wlan(4) interfaces aren't
  children of some other interface. Creation happens only in wlan_up().

Modified:
  head/libexec/rc/network.subr

Modified: head/libexec/rc/network.subr
==============================================================================
--- head/libexec/rc/network.subr	Wed Oct 24 19:40:09 2018	(r339694)
+++ head/libexec/rc/network.subr	Wed Oct 24 20:49:51 2018	(r339695)
@@ -1469,39 +1469,12 @@ clone_down()
 #	Create and configure child interfaces.  Return 0 if child
 #	interfaces are created.
 #
-#	XXXGL: the wlan code in this functions is superseded by wlan_up(),
-#	and will go away soon.
-#
 childif_create()
 {
-	local cfg child child_vlans child_wlans create_args debug_flags ifn i
+	local cfg child child_vlans create_args debug_flags ifn i
 	cfg=1
 	ifn=$1
 
-	# Create wireless interfaces
-	child_wlans=`get_if_var $ifn wlans_IF`
-
-	for child in ${child_wlans}; do
-		create_args="wlandev $ifn `get_if_var $child create_args_IF`"
-		debug_flags="`get_if_var $child wlandebug_IF`"
-
-		if expr $child : 'wlan[0-9][0-9]*$' >/dev/null 2>&1; then
-			${IFCONFIG_CMD} $child create ${create_args} && cfg=0
-			if [ -n "${debug_flags}" ]; then
-				wlandebug -i $child ${debug_flags}
-			fi
-		else
-			i=`${IFCONFIG_CMD} wlan create ${create_args}`
-			if [ -n "${debug_flags}" ]; then
-				wlandebug -i $i ${debug_flags}
-			fi
-			${IFCONFIG_CMD} $i name $child && cfg=0
-		fi
-		if autoif $child; then
-			ifn_start $child
-		fi
-	done
-
 	# Create vlan interfaces
 	child_vlans=`get_if_var $ifn vlans_IF`
 
@@ -1536,16 +1509,8 @@ childif_create()
 #
 childif_destroy()
 {
-	local cfg child child_vlans child_wlans ifn
+	local cfg child child_vlans ifn
 	cfg=1
-
-	child_wlans=`get_if_var $ifn wlans_IF`
-	for child in ${child_wlans}; do
-		if ! ifexists $child; then
-			continue
-		fi
-		${IFCONFIG_CMD} -n $child destroy && cfg=0
-	done
 
 	child_vlans=`get_if_var $ifn vlans_IF`
 	for child in ${child_vlans}; do



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