Date: Sun, 22 Jan 2017 12:07:36 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-wireless@FreeBSD.org Subject: [Bug 214264] iwn regression on 11.0 (Centrino Wireless-N 2230) Message-ID: <bug-214264-21060-LHQpAkHMwP@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-214264-21060@https.bugs.freebsd.org/bugzilla/> References: <bug-214264-21060@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214264 --- Comment #4 from Neptunium <neptunium.element@gmail.com> --- Sean Farley wrote: > According to rc.conf(5): > If a wlans_<interface> 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214264-21060-LHQpAkHMwP>