From owner-freebsd-current@freebsd.org Sun Aug 9 20:09:05 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38EB699D9EE for ; Sun, 9 Aug 2015 20:09:05 +0000 (UTC) (envelope-from glebius@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 204BE948 for ; Sun, 9 Aug 2015 20:09:05 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1ED1F99D9ED; Sun, 9 Aug 2015 20:09:05 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1E42999D9EB; Sun, 9 Aug 2015 20:09:05 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebius.int.ru", Issuer "cell.glebius.int.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A106D946; Sun, 9 Aug 2015 20:09:03 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.15.2/8.15.2) with ESMTPS id t79K913w073050 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 9 Aug 2015 23:09:01 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.15.2/8.15.2/Submit) id t79K918S073049; Sun, 9 Aug 2015 23:09:01 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Sun, 9 Aug 2015 23:09:01 +0300 From: Gleb Smirnoff To: Gavin Atkinson Cc: current@FreeBSD.org, net@FreeBSD.org Subject: Re: [head up!] WiFi drivers changes Message-ID: <20150809200901.GC889@glebius.int.ru> References: <20150806151355.GL889@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2015 20:09:05 -0000 On Sun, Aug 09, 2015 at 08:32:15PM +0100, Gavin Atkinson wrote: G> On Thu, 6 Aug 2015, Gleb Smirnoff wrote: G> > As part of the "opaque ifnet project" [1], all 802.11 (WiFi) drivers G> > undergo change of not being an interface anymore. Historically in FreeBSD G> > 802.11 stack, 802.11 devices called if_attach() and created an interface. G> > Later this was generalized and real functioning interface is created by G> > net80211 stack. However, remnant of parent interface remained. If you G> > are running Intel Centrino wireless, then you got iwn0 interface and G> > wlan0 interface. However, the former doesn't do anything. You can't G> > assign addresses to it or modify any of it parameters. Or you can G> > modify them, but that affects nothing. G> G> You could, however, change the Ethernet address of the underlying G> interface before creating the wlanX interfaces, which woud then be used by G> the child interfaces. This has traditionally been the only way you could G> change the Ethernet interface of a wifi device - changing it after G> creating the wlanX interface does not work. G> G> How will this be done in the new world? In new world you can change it on wlanX. I've tested on iwn(4), it worked for me, although association went not so quickly as before. -- Totus tuus, Glebius.