From nobody Thu Aug 11 15:53:16 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M3WYh6Gkwz4Yhsb; Thu, 11 Aug 2022 15:53:28 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M3WYh5YfXz3grp; Thu, 11 Aug 2022 15:53:28 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660233208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BcI0wKAEYqZ6scpopzV8NrhpxlOaa4/urmXZVtureco=; b=JiRfqVf0RHXEnRYfucohsFYXRJRVMC3jl9C2dJfGHmq+xNTtz3iFYwiXg2r5aKI1ss25bo Eekfhk3FC0SJb5q09ek7wzCD7eZP6K5jbq1ePg1QjdsDaHWLiKZyBiBTVEjcQp+qtKZ0W+ ov3yYnI+aBYfOtHG9F9en50tKSC56dGRoSjQNORSN8aO6zGW+5+gzh9vkdIXSCkacH114y ylIpedsRwF/NOY5lL7r/ACKPH7FTKJ2ufBNUmPHB6dv/6X+zvLuJVaPBgcbU7C2tVmJbWl 2FbEV3MObtmO0q3h7Jl0vlcOuQsFpUOJ7HuKAsST9b+fJ/aqEEu3pwxV+8q1bw== Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4M3WYh4NdmzxNd; Thu, 11 Aug 2022 15:53:28 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vs1-f51.google.com with SMTP id d126so14393135vsd.13; Thu, 11 Aug 2022 08:53:28 -0700 (PDT) X-Gm-Message-State: ACgBeo3rLbXuS9Tmfh1ll3VNg7G3Yn42DLtDPsCkB/wThIh4lCWNrIOo rB14L/t1gnlCs1yAIg4XE5TsQ7neqsOdyK9ug4A= X-Google-Smtp-Source: AA6agR7axSopX94RUV9ZFvnbfe4dhZ98u5LGZIvZ+KaGvb33MJ4VgHh+W8J6vDtFSLYN8ZJLla5m+hnF5cZBDdas10A= X-Received: by 2002:a05:6102:3e02:b0:388:984b:e082 with SMTP id j2-20020a0561023e0200b00388984be082mr10861919vsv.58.1660233208183; Thu, 11 Aug 2022 08:53:28 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Nuno Teixeira Date: Thu, 11 Aug 2022 16:53:16 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [iwlwifi] ipv6 connection problem To: "Bjoern A. Zeeb" Cc: freebsd-wireless@freebsd.org, FreeBSD CURRENT Content-Type: multipart/alternative; boundary="0000000000009e42d805e5f92aa4" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660233208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BcI0wKAEYqZ6scpopzV8NrhpxlOaa4/urmXZVtureco=; b=GrbUmYTmga6TsKAqYNo/XTP7W9foeR865Oz4HRzPz26DaDbvHHnc7UV6sQ0nw3dFpvGSSy X/bRaHfiG/WTJJHKhHhb/4CRli0sbSqw5dsWz0Go1Ypx+1xvcPids2ScnymcrF5oPHQlra 0fMScz1qbBquF8AjqmgRNorg4MxfIBSkIk+3riMPs4+9YPtefDqOFOJGN21G3KIre/44Mn 3t6sdF0/csQbavGIGaMCFjpY05j6v23NChOLcOlFIxeQzcerhB7gDLXQTXF/7iOH0PeSGe m+fQ/3LuwdVj1Z18zs3JJ3o4Y5iNJKwjuLZTSxbb8DIbn/5CcmycLyXttkCd+g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660233208; a=rsa-sha256; cv=none; b=tt2icue70SJ7kTp63EU2c2pYkkReP+5/6uuOz+BXJ0weE9+DMfS6uOGI/+NYeS5Sx8NT9D UjxrYvRK+GA8XNvKg4Q2GJjwUzcZ2DAxhAeCbw7yXk4+S1iqyyVOCuzmupUhbFwi+0Ncn0 IGzDx+BzL93+Z1vrsh07t0vphwAB/7SgI0rdlY/j/C6zPiWvzzKhJGLXkcDVE2FlabqAcp +3cclRKM0IMtLcvsMJwQc01pZvBxmsw/E7MmEJCugyvMmlP+UGIQCKVZIfXot+zN3WFhSW FAVusc2nuAchMhyWWHM8mVJRU/APjGGfbd+qIQ7dXf7aI7YDVEON2TY9dB7TQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --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 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 --- (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= > ${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
Hello Bjoern!

/etc/rc.c= onf:
---
wlans_iwlwifi0=3D"wlan0"
create_a= rgs_wlan0=3D"wlanmode sta regdomain ETSI country PT"
ifconfig_= wlan0_ipv6=3D"inet6 accept_rtadv"
ifconfig_wlan0=3D"WPA S= YNCDHCP"
rtsold_enable=3D"YES"
---

`ifconfig wlan0`:
---
wlan0: flags=3D8= c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ether 6c:6a:77:df:09:21
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 inet6 fe80::6e6a:77ff:fedf:921%wlan0 prefixlen 64 scopeid 0x3=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 groups: wlan
=C2=A0 =C2=A0 =C2=A0 =C2=A0= ssid "" channel 6 (2437 MHz 11g)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = regdomain ETSI country PT authmode WPA1+WPA2/802.11i privacy MIXED
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 deftxkey UNDEF txpower 30 bmiss 7 scanvalid 60 pro= tmode CTS wme
=C2=A0 =C2=A0 =C2=A0 =C2=A0 roaming MANUAL bintval 0
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 parent interface: iwlwifi0
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 status: no carrier
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 nd6 options=3D23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
---

(a) this is unlikely related to IPv6?=C2=A0 The only thing that would do is pass down more multicast addresses than with just IPv4 (and that's after assoc normally).=C2=A0 I run some on IPv6-only.
Let me ask you anyway, so we can be sure.=C2=A0 If you remove the IPv6 conf= ig,
does wpa_supplicant associate fine?=C2=A0 (could also be a different
tooling issue).

With ipv4 wireless work ok = and wpa_supplicant associate ok.
=C2=A0
(b) does `ifconfig wlan0 list scan` show your AP when it doesn't?
If it doesn't that is more likely the problem.=C2=A0 And that remains a= problem
for some conditions I am also facing.=C2=A0 More on 11a than 11g.
=C2=A0
`ifconfig wlan0 list scan`:
---
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
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
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
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
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
---

(c) Then the question is if wpa_supplicant blacklists the network;
`wpa_cli blacklist` would show.=C2=A0 If it does try the following sequence=
to make it try more often:
CMD=3Dwpa_cli
SSID=3D<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: (ni= l) =C2=A0error: Inappropriate ioctl for device
---
= =C2=A0
(d) given you didn't say, what does `freebsd-version -r -u`
say, just to rule out you are missing the latest wpa fixes.

=C2=A0`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=3D"-sdd"=C2=A0 in /etc/rc.conf which will lo= g 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--