git: etc/network.subr: enhance wlan initialization

Daniel Fojt deef at crater.dragonflybsd.org
Mon Jun 1 22:45:02 PDT 2020


commit 69dc5784ab8eeaccac82e440c7d219e1a95d5589
Author: Daniel Fojt <df at neosystem.org>
Date:   Fri May 29 19:34:24 2020 +0200

    etc/network.subr: enhance wlan initialization
    
    Introduce new functions wlan_get_unused() and wlan_is_parent(),
    and extend wlan_up() to utilize them.
    
    With this change, devices configured the traditional way in rc.conf(5)
    are created first, and then all other wireless interfaces are assigned
    to next available wlan<index> devices automatically.
    
    This allows either to have wlan configured manually in rc.conf(5) via
    "wlans_<iface>" or to remove the static assignment and let devices be
    auto-created. With dhcpcd_enable and wpa_supplicant_enable in rc.conf,
    no further configuration is then needed to get network connectivity.
    
    Furthermore, this will allow to enhance devd(8) default configuration,
    so that also hot-pluggable wireless interfaces are automatically detected
    and brought up (ie. assigned to wlan<index> devices).
    
    Reviewed by: Aaron LI

Summary of changes:
 etc/network.subr | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/69dc5784ab8eeaccac82e440c7d219e1a95d5589


-- 
DragonFly BSD source repository


More information about the Commits mailing list