From owner-freebsd-wireless@freebsd.org Sun Jan 22 12:07:36 2017 Return-Path: Delivered-To: freebsd-wireless@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 B6EF9CBC216 for ; Sun, 22 Jan 2017 12:07:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9C0B9D49 for ; Sun, 22 Jan 2017 12:07:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0MC7aMI091888 for ; Sun, 22 Jan 2017 12:07:36 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-wireless@FreeBSD.org Subject: [Bug 214264] iwn regression on 11.0 (Centrino Wireless-N 2230) Date: Sun, 22 Jan 2017 12:07:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: neptunium.element@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2017 12:07:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214264 --- Comment #4 from Neptunium --- Sean Farley wrote: > According to rc.conf(5): > If a wlans_ variable is set, an wlan(4) interface > will be created for each item in the list with the wlandev > argument set to interface. Further wlan cloning arguments >=20 >=20 > This is my network configuration on my laptop running FreeBSD 11. I have= lagg > setup with it too. >=20 > ifconfig_bge0=3D"up" > wlans_iwn0=3D"wlan0" > ifconfig_wlan0=3D"ether aa:bb:cc:dd:ee:ff WPA" > cloned_interfaces=3D"lagg0" > ifconfig_lagg0=3D"laggproto failover laggport bge0 laggport wlan0 DHCP" > ifconfig_lagg0_ipv6=3D"inet6 accept_rtadv" Hm, I'm a bit confused... Let me explain this way: my previous setup, which used to work for me more than 3 years, was like this: defaultrouter=3D"192.168.1.1" wlans_iwn0=3D"wlan0" ifconfig_wlan0=3D"inet 192.168.1.2 netmask 255.255.255.0 WPA ssid ABCDEFG" After upgrading to 11.0, I experienced a regression described in my original post. Per your suggestion that "ifconfig_iwn0=3D..." is "causing something = to trip", I tried to remove that line, which resolved all my problems describe= d in PR, but, of course, caused that no wlan is being created at boot. To overco= me that problem, I now have this in my rc.conf: defaultrouter=3D"192.168.1.1" if ifconfig | grep wlan0 ; then # do nothing else wlans_iwn0=3D"wlan0" fi ifconfig_wlan0=3D"inet 192.168.1.2 netmask 255.255.255.0 WPA ssid ABCDEFG" And now it works just as it used to on 10.X. I asked if there was a more elegant way to achieve this. > Do you have /etc/wpa_supplicant.conf setup? You should not have to set S= SID=20 > in /etc/rc.conf if you do; it will just switch networks for you. I think= =20 > that is what you are asking, yes? I have /etc/wpa_supplicant.conf, but it is not convenient for me to use automatic switching of wifi networks: sometimes I need static IP, sometimes= I have to use DHCP, so, AFAIU, I have to manually change such settings in rc.= conf every time I switch.=20 I mean, one can't have separate ifconfig_wlan0 settings for each entry in wpa_supplicant.conf. If I'm wrong, please correct me (but this was not my problem, just an inconvenience I used to live with). --=20 You are receiving this mail because: You are the assignee for the bug.=