From owner-freebsd-arch@freebsd.org Sat May 26 17:21:07 2018 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F3716EEF01C for ; Sat, 26 May 2018 17:21:06 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 91ED078252 for ; Sat, 26 May 2018 17:21:06 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 53C88EEF01B; Sat, 26 May 2018 17:21:06 +0000 (UTC) Delivered-To: arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3FEA0EEF01A for ; Sat, 26 May 2018 17:21:06 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D43DC7814F for ; Sat, 26 May 2018 17:21:05 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-2.local (unknown [IPv6:2601:648:8880:1e30:c025:1597:8351:5324]) by mail.baldwin.cx (Postfix) with ESMTPSA id 8EC4F10AFCD; Sat, 26 May 2018 13:21:04 -0400 (EDT) Subject: Re: RFC: Create a default wlan for wireless NICs To: "Rodney W. Grimes" References: <201805260008.w4Q08NoU048243@pdx.rh.CN85.dnsmgr.net> Cc: arch@freebsd.org From: John Baldwin Message-ID: <7c016932-1b9e-e277-1c8a-6385511fbae3@FreeBSD.org> Date: Sat, 26 May 2018 10:21:03 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <201805260008.w4Q08NoU048243@pdx.rh.CN85.dnsmgr.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Sat, 26 May 2018 13:21:04 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 May 2018 17:21:07 -0000 On 5/25/18 5:08 PM, Rodney W. Grimes wrote: >> >From the bikeshed department.... >> >> The change at https://reviews.freebsd.org/D15481 would create a default >> wlan for wireless NICs by default. The default wlan's ifnet name would >> match the name of the adapter (e.g. "iwn0"). Existing configurations >> would still be honored and people who need multiple wlan devices can >> still do so using existing configuration variables in rc.conf, etc. >> >> However, the out of the box experience on a new machine would be that >> 'ifconfig iwn0' would Just Work(tm) for wireless NICs as it does now for >> wired NICs, and you could just use 'ifconfig_iwn0="WPA DHCP"' in rc.conf. >> I think this is more consistent with how we present NICs to users in >> general. > > Yes, Blue Please, with a red stripe. :) > > I asked about documentation in the review, but about all I can > find is: > /etc/defaults/rc.conf: > #wlans_ath0="wlan0" # wlan(4) interfaces for ath0 device > > There is probably stuff in the wiki that would need updated though. I think there are also installer bits that could be simplified. Right now the installer has to use a special sysctl to identify wireless NICs so it can add them to the list of NICs, etc. It also then creates wlan_foo variables in rc.conf. That would need to be updated for this change as well. -- John Baldwin