Date: Thu, 11 Aug 2022 16:53:16 +0100 From: Nuno Teixeira <eduardo@freebsd.org> To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> Cc: freebsd-wireless@freebsd.org, FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: [iwlwifi] ipv6 connection problem Message-ID: <CAFDf7ULG6F3v8=VWaCw8Qe2-iBnctHo1ij2WzFPX034EzXDeXw@mail.gmail.com> In-Reply-To: <alpine.BSF.2.00.2208072108480.68830@ai.fobar.qr> References: <CAFDf7ULaHmG-yr7_nbi0rWFD3KbNi237FvfFCJGDdBQV0WTP2A@mail.gmail.com> <alpine.BSF.2.00.2208072108480.68830@ai.fobar.qr>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000009e42d805e5f92aa4 Content-Type: text/plain; charset="UTF-8" Hello Bjoern! /etc/rc.conf: --- wlans_iwlwifi0="wlan0" create_args_wlan0="wlanmode sta regdomain ETSI country PT" ifconfig_wlan0_ipv6="inet6 accept_rtadv" ifconfig_wlan0="WPA SYNCDHCP" rtsold_enable="YES" --- `ifconfig wlan0`: --- wlan0: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 6c:6a:77:df:09:21 inet6 fe80::6e6a:77ff:fedf:921%wlan0 prefixlen 64 scopeid 0x3 groups: wlan ssid "" channel 6 (2437 MHz 11g) regdomain ETSI country PT authmode WPA1+WPA2/802.11i privacy MIXED deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60 protmode CTS wme roaming MANUAL bintval 0 parent interface: iwlwifi0 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> --- (a) this is unlikely related to IPv6? The only thing that would do > is pass down more multicast addresses than with just IPv4 (and that's > after assoc normally). I run some on IPv6-only. > Let me ask you anyway, so we can be sure. If you remove the IPv6 config, > does wpa_supplicant associate fine? (could also be a different > tooling issue). With ipv4 wireless work ok and wpa_supplicant associate ok. > (b) does `ifconfig wlan0 list scan` show your AP when it doesn't? > If it doesn't that is more likely the problem. And that remains a problem > for some conditions I am also facing. More on 11a than 11g. `ifconfig wlan0 list scan`: --- SSID/MESH ID BSSID CHAN RATE S:N INT CAPS MEO-3637C0 00:06:91:36:37:c0 11 54M -53:-96 100 EP RSN BSSLOAD HTCAP WPS WME MEO-WiFi 00:06:91:36:37:c2 11 54M -53:-96 100 E BSSLOAD HTCAP WME MEO-3637C0 00:06:91:36:37:c1 60 54M -61:-96 100 EP RSN BSSLOAD HTCAP VHTCAP VHTOPMODE VHTPWRENV WPS WME MEO-WiFi 00:06:91:36:37:c6 60 54M -60:-96 100 E BSSLOAD HTCAP VHTCAP VHTOPMODE VHTPWRENV WME --- (c) Then the question is if wpa_supplicant blacklists the network; > `wpa_cli blacklist` would show. If it does try the following sequence > to make it try more often: > CMD=wpa_cli > SSID=<your ssid> > ${CMD} blacklist clear > ${CMD} disable ${SSID} > ${CMD} enable ${SSID} > ${CMD} list_networks > `wpa_cli blacklist`: --- Failed to connect to non-global ctrl_ifname: (nil) error: Inappropriate ioctl for device --- > (d) given you didn't say, what does `freebsd-version -r -u` > say, just to rule out you are missing the latest wpa fixes. > `freebsd-version -r -u`: --- 14.0-CURRENT 14.0-CURRENT --- @1ffd352bc25b (e) what you can do is enable more wpa_supplicant logging; I often use > wpa_supplicant_flags="-sdd" in /etc/rc.conf which will log to syslog > instead > of the debug file but it'll increase debugging a lot (and warning, it > may also log keying material). > Ok. Cheers, -- Nuno Teixeira FreeBSD Committer (ports) --0000000000009e42d805e5f92aa4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div>Hello Bjoern!</div><div><br></div><div>/etc/rc.c= onf:</div><div>---</div><div>wlans_iwlwifi0=3D"wlan0"<br>create_a= rgs_wlan0=3D"wlanmode sta regdomain ETSI country PT"<br>ifconfig_= wlan0_ipv6=3D"inet6 accept_rtadv"<br>ifconfig_wlan0=3D"WPA S= YNCDHCP"<br>rtsold_enable=3D"YES"</div><div>---<br></div><di= v><br></div><div>`ifconfig wlan0`:</div><div>---</div><div>wlan0: flags=3D8= c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500= <br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 ether 6c:6a:77:df:09:21<br>=C2=A0 =C2=A0 = =C2=A0 =C2=A0 inet6 fe80::6e6a:77ff:fedf:921%wlan0 prefixlen 64 scopeid 0x3= <br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: wlan<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0= ssid "" channel 6 (2437 MHz 11g)<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 = regdomain ETSI country PT authmode WPA1+WPA2/802.11i privacy MIXED<br>=C2= =A0 =C2=A0 =C2=A0 =C2=A0 deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60 pro= tmode CTS wme<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 roaming MANUAL bintval 0<br>= =C2=A0 =C2=A0 =C2=A0 =C2=A0 parent interface: iwlwifi0<br>=C2=A0 =C2=A0 =C2= =A0 =C2=A0 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)<br>= =C2=A0 =C2=A0 =C2=A0 =C2=A0 status: no carrier<br>=C2=A0 =C2=A0 =C2=A0 =C2= =A0 nd6 options=3D23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL></div><di= v>---<br></div><div><br></div><div class=3D"gmail_quote"><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"> (a) this is unlikely related to IPv6?=C2=A0 The only thing that would do<br= > is pass down more multicast addresses than with just IPv4 (and that's<b= r> after assoc normally).=C2=A0 I run some on IPv6-only.<br> Let me ask you anyway, so we can be sure.=C2=A0 If you remove the IPv6 conf= ig,<br> does wpa_supplicant associate fine?=C2=A0 (could also be a different<br> tooling issue).</blockquote><div><br></div><div>With ipv4 wireless work ok = and wpa_supplicant associate ok.<br></div><div>=C2=A0</div><blockquote clas= s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r= gb(204,204,204);padding-left:1ex"> (b) does `ifconfig wlan0 list scan` show your AP when it doesn't?<br> If it doesn't that is more likely the problem.=C2=A0 And that remains a= problem<br> for some conditions I am also facing.=C2=A0 More on 11a than 11g.</blockquo= te><div>=C2=A0</div><div>`ifconfig wlan0 list scan`:</div><div>---</div><di= v>SSID/MESH ID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0BSSID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0CHAN= RATE =C2=A0 =C2=A0S:N =C2=A0 =C2=A0 INT CAPS<br>MEO-3637C0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A000:06:= 91:36:37:c0 =C2=A0 11 =C2=A0 54M =C2=A0-53:-96 =C2=A0 100 EP =C2=A0 RSN BSS= LOAD HTCAP WPS WME<br>MEO-WiFi =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A000:06:91:36:37:c2 =C2=A0 11= =C2=A0 54M =C2=A0-53:-96 =C2=A0 100 E =C2=A0 =C2=A0BSSLOAD HTCAP WME<br>ME= O-3637C0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A000:06:91:36:37:c1 =C2=A0 60 =C2=A0 54M =C2=A0-61:-96 =C2= =A0 100 EP =C2=A0 RSN BSSLOAD HTCAP VHTCAP VHTOPMODE VHTPWRENV WPS WME<br>M= EO-WiFi =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A000:06:91:36:37:c6 =C2=A0 60 =C2=A0 54M =C2=A0-60:-9= 6 =C2=A0 100 E =C2=A0 =C2=A0BSSLOAD HTCAP VHTCAP VHTOPMODE VHTPWRENV WME</d= iv><div>---<br></div><div><br></div><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"> (c) Then the question is if wpa_supplicant blacklists the network;<br> `wpa_cli blacklist` would show.=C2=A0 If it does try the following sequence= <br> to make it try more often:<br> CMD=3Dwpa_cli<br> SSID=3D<your ssid><br> ${CMD} blacklist clear<br> ${CMD} disable ${SSID}<br> ${CMD} enable ${SSID}<br> ${CMD} list_networks<br></blockquote><div><br></div><div>`wpa_cli blacklist= `:</div><div>---</div><div>Failed to connect to non-global ctrl_ifname: (ni= l) =C2=A0error: Inappropriate ioctl for device</div><div>---<br></div><div>= =C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0= .8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> (d) given you didn't say, what does `freebsd-version -r -u`<br> say, just to rule out you are missing the latest wpa fixes.<br></blockquote= ><div><br></div><div>=C2=A0`freebsd-version -r -u`:</div><div>---</div><div= >14.0-CURRENT<br>14.0-CURRENT</div><div>---<br></div><div>@1ffd352bc25b<br>= </div><div><br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px = 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> (e) what you can do is enable more wpa_supplicant logging; I often use<br> wpa_supplicant_flags=3D"-sdd"=C2=A0 in /etc/rc.conf which will lo= g to syslog instead<br> of the debug file but it'll increase debugging a lot (and warning, it<b= r> may also log keying material).<br></blockquote><div><br></div><div>Ok.</div= ><div><br></div></div></div>Cheers,<br><div>-- <br><div dir=3D"ltr" class= =3D"gmail_signature"><div dir=3D"ltr"><span style=3D"color:rgb(102,102,102)= ">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div></div></div></div> --0000000000009e42d805e5f92aa4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7ULG6F3v8=VWaCw8Qe2-iBnctHo1ij2WzFPX034EzXDeXw>