From nobody Sat Sep 9 11:39:22 2023 X-Original-To: freebsd-net@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 4RjWGm1zpnz4tNQP for ; Sat, 9 Sep 2023 11:39:28 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RjWGk3V4mz4LDV; Sat, 9 Sep 2023 11:39:26 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of guru@unixarea.de designates 178.254.4.101 as permitted sender) smtp.mailfrom=guru@unixarea.de; dmarc=none Received: from [188.174.63.158] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qewJ9-008iY4-FP; Sat, 09 Sep 2023 13:39:23 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 389BdMr0025226 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 9 Sep 2023 13:39:22 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 389BdML6025225; Sat, 9 Sep 2023 13:39:22 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 9 Sep 2023 13:39:22 +0200 From: Matthias Apitz To: freebsd-net@freebsd.org Cc: cy@freebsd.org Subject: security/wpa_supplicant from ports in 14.0-CURRENT does not associate Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: freebsd-net@freebsd.org, cy@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.63.158 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.74 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.944]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:178.254.4.101]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[unixarea.de]; RCPT_COUNT_TWO(0.00)[2]; HAS_REPLYTO(0.00)[guru@unixarea.de]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; BLOCKLISTDE_FAIL(0.00)[188.174.63.158:server fail,178.254.4.101:server fail]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; HAS_XOIP(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; HAS_XAW(0.00)[]; RCVD_TLS_LAST(0.00)[] X-Rspamd-Queue-Id: 4RjWGk3V4mz4LDV security/wpa_supplicant compiled from ports does not associate with my AP, the one from base system works fine. Below are the details matthias pkg info wpa_supplicant wpa_supplicant-2.10_6 Name : wpa_supplicant Version : 2.10_6 Installed on : Sat Sep 9 12:57:45 2023 CEST Origin : security/wpa_supplicant Architecture : FreeBSD:14:amd64 Prefix : /usr/local Categories : security net Licenses : BSD3CLAUSE Maintainer : cy@FreeBSD.org WWW : https://w1.fi/wpa_supplicant/ Comment : Supplicant (client) for WPA/802.1x protocols Options : AKA : off AKA_PRIME : off BSD : on DBUS : on DEBUG_FILE : off DEBUG_SYSLOG : on DELAYED_MIC : off DOCS : on EAPOL_TEST : off EKE : on FAST : on GPSK : on GTC : on HS20 : on HT_OVERRIDES : off IEEE80211AC : off IEEE80211N : off IEEE80211R : on IEEE80211W : on IEEE8021X_EAPOL: on IKEV2 : on INTERWORKING : on LEAP : on MATCH : on MD5 : on MSCHAPV2 : on NDIS : off NONE : off NO_ROAMING : off OTP : on P2P : off PAX : on PEAP : on PKCS12 : on PRIVSEP : off PSK : on PWD : on SAKE : on SIM : off SIM_SIMULATOR : off SMARTCARD : on TDLS : off TEST : off TLS : on TLSV12 : off TNC : on TTLS : on USIM_SIMULATOR : off VHT_OVERRIDES : off WEP : on WIRED : on WPS : on WPS_ER : on WPS_NFC : on WPS_NOREG : off WPS_UPNP : on Shared Libs required: libreadline.so.8 libdbus-1.so.3 Annotations : FreeBSD_version: 1400094 build_timestamp: 2023-08-10T18:26:06+0000 built_by : poudriere-git-3.3.99.20220831 cpe : cpe:2.3:a:wpa_supplicant:wpa_supplicant:2.10:::::freebsd14:x64:6 port_checkout_unclean: no port_git_hash : c84214246 ports_top_checkout_unclean: no ports_top_git_hash: 5914253c5 repo_type : binary repository : FreeBSD Flat size : 1.69MiB Description : wpa_supplicant is a client (supplicant) with support for WPA and WPA2 (IEEE 802.11i / RSN). It is suitable for both desktop/laptop computers and embedded systems. Supplicant is the IEEE 802.1X/WPA component that is used in the client stations. It implements key negotiation with a WPA Authenticator and it controls the roaming and IEEE 802.11 authentication/ association of the wlan driver. wpa_supplicant is designed to be a "daemon" program that runs in the background and acts as the backend component controlling the wireless connection. wpa_supplicant supports separate frontend programs and a text-based frontend (wpa_cli) and a GUI (wpa_gui) are included with wpa_supplicant. WWW: https://w1.fi/wpa_supplicant/ grep wpa /var/log/messages: wpa_supplicant from ports: Sep 9 13:09:14 c720-1400094 wpa_supplicant[1879]: Successfully initialized wpa_supplicant Sep 9 13:09:14 c720-1400094 wpa_supplicant[1879]: ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument Sep 9 13:09:14 c720-1400094 wpa_supplicant[1880]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1 Sep 9 13:09:25 c720-1400094 wpa_supplicant[1880]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1 Sep 9 13:10:02 c720-1400094 wpa_supplicant[1880]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all Sep 9 13:10:02 c720-1400094 wpa_supplicant[1880]: wlan0: CTRL-EVENT-TERMINATING wpa_supplicant from base system FreeBSD c720-1400094 14.0-CURRENT FreeBSD 14.0-CURRENT amd64 1400094 #2 main-n264568-1d7ffb373c9d-dirty: Wed Sep 6 07:13:22 CEST 2023 guru@jet:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 Sep 9 13:14:16 c720-1400094 wpa_supplicant[3517]: Successfully initialized wpa_supplicant Sep 9 13:14:16 c720-1400094 wpa_supplicant[3517]: ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument Sep 9 13:14:24 c720-1400094 wpa_supplicant[3518]: wlan0: Trying to associate with 7c:ff:4d:c8:78:e2 (SSID='XXXXXXXXXXXXXXXXX' freq=2432 MHz) Sep 9 13:14:24 c720-1400094 wpa_supplicant[3518]: wlan0: Associated with 7c:ff:4d:c8:78:e2 Sep 9 13:14:24 c720-1400094 wpa_supplicant[3518]: wlan0: WPA: Key negotiation completed with 7c:ff:4d:c8:78:e2 [PTK=CCMP GTK=CCMP] Sep 9 13:14:24 c720-1400094 wpa_supplicant[3518]: wlan0: CTRL-EVENT-CONNECTED - Connection to 7c:ff:4d:c8:78:e2 completed [id=17 id_str=] Sep 9 13:17:28 c720-1400094 wpa_supplicant[3518]: wlan0: WPA: Group rekeying completed with 7c:ff:4d:c8:78:e2 [GTK=CCMP] -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub