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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
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)
[-- Attachment #2 --]
<div dir="ltr"><div><div>Hello Bjoern!</div><div><br></div><div>/etc/rc.conf:</div><div>---</div><div>wlans_iwlwifi0="wlan0"<br>create_args_wlan0="wlanmode sta regdomain ETSI country PT"<br>ifconfig_wlan0_ipv6="inet6 accept_rtadv"<br>ifconfig_wlan0="WPA SYNCDHCP"<br>rtsold_enable="YES"</div><div>---<br></div><div><br></div><div>`ifconfig wlan0`:</div><div>---</div><div>wlan0: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500<br> ether 6c:6a:77:df:09:21<br> inet6 fe80::6e6a:77ff:fedf:921%wlan0 prefixlen 64 scopeid 0x3<br> groups: wlan<br> ssid "" channel 6 (2437 MHz 11g)<br> regdomain ETSI country PT authmode WPA1+WPA2/802.11i privacy MIXED<br> deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60 protmode CTS wme<br> roaming MANUAL bintval 0<br> parent interface: iwlwifi0<br> media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)<br> status: no carrier<br> nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL></div><div>---<br></div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
(a) this is unlikely related to IPv6? The only thing that would do<br>
is pass down more multicast addresses than with just IPv4 (and that's<br>
after assoc normally). I run some on IPv6-only.<br>
Let me ask you anyway, so we can be sure. If you remove the IPv6 config,<br>
does wpa_supplicant associate fine? (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> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(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. And that remains a problem<br>
for some conditions I am also facing. More on 11a than 11g.</blockquote><div> </div><div>`ifconfig wlan0 list scan`:</div><div>---</div><div>SSID/MESH ID BSSID CHAN RATE S:N INT CAPS<br>MEO-3637C0 00:06:91:36:37:c0 11 54M -53:-96 100 EP RSN BSSLOAD HTCAP WPS WME<br>MEO-WiFi 00:06:91:36:37:c2 11 54M -53:-96 100 E BSSLOAD HTCAP WME<br>MEO-3637C0 00:06:91:36:37:c1 60 54M -61:-96 100 EP RSN BSSLOAD HTCAP VHTCAP VHTOPMODE VHTPWRENV WPS WME<br>MEO-WiFi 00:06:91:36:37:c6 60 54M -60:-96 100 E BSSLOAD HTCAP VHTCAP VHTOPMODE VHTPWRENV WME</div><div>---<br></div><div><br></div><blockquote class="gmail_quote" style="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. If it does try the following sequence<br>
to make it try more often:<br>
CMD=wpa_cli<br>
SSID=<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: (nil) error: Inappropriate ioctl for device</div><div>---<br></div><div> </div><blockquote class="gmail_quote" style="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> `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="gmail_quote" style="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="-sdd" in /etc/rc.conf which will log to syslog instead<br>
of the debug file but it'll increase debugging a lot (and warning, it<br>
may also log keying material).<br></blockquote><div><br></div><div>Ok.</div><div><br></div></div></div>Cheers,<br><div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committer (ports)</span></div></div></div></div>
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7ULG6F3v8=VWaCw8Qe2-iBnctHo1ij2WzFPX034EzXDeXw>
