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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to