From nobody Mon Jan 17 17:01:09 2022 X-Original-To: dev-commits-ports-main@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 56EDC1958045; Mon, 17 Jan 2022 17:01:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jcypt1rK2z3mW4; Mon, 17 Jan 2022 17:01:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642438870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=crvtg4Qj7y2tMO/1iPY2Hn1DpfzrTd1Dh788P4wrv2w=; b=G7NyKKlbnby6eYJWdbFq4ZwwokB2dKD/g7jvQfT+EodIEAiHi5rBXNj6JIQvxOZ3F1/LSP oW+CwvO+kNROZ5Xd599Fvzpe73A8l/T5pNQZyhvm28hShi0K0YOrsSvLHuaB/bSR0Gzx2u 8Fjv/+n4U4W6UdZUuzZkWkJtLPI38em7mjzap1oMUD1hH8Q6u9dzGYW3+GIU89Qt3nxuie dwPjYECApw6kW28/hhAxKK8b34tpi4CORih/ZFEgOhsdIhYRSgTmkH7pNS2SlPm8kylbeN STtWvYI2MOBh/wKE13CAPQDxO4nb8+IXx3IOMhzcVMMpKjBsDe0OQb5cwotxtQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 88FB911476; Mon, 17 Jan 2022 17:01:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20HH19j6069173; Mon, 17 Jan 2022 17:01:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20HH19lt069172; Mon, 17 Jan 2022 17:01:09 GMT (envelope-from git) Date: Mon, 17 Jan 2022 17:01:09 GMT Message-Id: <202201171701.20HH19lt069172@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Cy Schubert Subject: git: f5e549a9f44e - main - net/hostapd: Update to 2.10 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f5e549a9f44e992c0a2f34b2f7686198f5590bad Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642438870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=crvtg4Qj7y2tMO/1iPY2Hn1DpfzrTd1Dh788P4wrv2w=; b=qRfhQcUQCpFdF+xQ0rNvoiqT6HU2YVEdi3COQrVNM2rjraaTdgAy1Kv7wgHa7keCq0WAvu OrAsBJv/wC+DILWmQiyANjsSdrls1gRo0AO/geLa3tqrjmm6KdEEDN0Ai8hySSH3ZtAq+F cO56I5CaEEweannIZl3z+B9HfpZTw362jpAf156i2dFOgiXamsHqYnywgYZuAVJlMps6bn DYfeju/gYrCkmqMALRi1AIoGm5xNQVX/gge6wDFlHy2WO0URq76HHrKl6gYtzDN1sRoTXC TkXvh0rs/83bZmTTWQE8+rXDQzBKwq1zQwxW4KHNgCUtf67+aPKxHOPeE3I1Aw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642438870; a=rsa-sha256; cv=none; b=Z7LjnLSxY2F2wjhkGv1DeSx7m/fWwPGjFd19YAcGZzFpoKV6eHRmJqO8YFOL90zzHI1mDq sNblF8faVTzw0cG46sMZ7odrP2XlutwK7CnQCdfFp8zD13Zz6kSRjiToY3dXngg+/NyJkT NDXKLd6IUDuxs/Q3obJscZIJbk9AwPjQ/InUtSJggf5yWsm+7PgUNn88JwY4hEPuBpIveu i938CwZYOB/wekRvKKsj4C0xPekq1A0WmgAcxM6x2N64MUj+DwH6dRk58GyWKmjhx4bzjB cEX28lRJMgLttawbX3f6K08PNWWZm2DLLclbzrpTUvPibx0p6CwhzcTxby7/Ng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=f5e549a9f44e992c0a2f34b2f7686198f5590bad commit f5e549a9f44e992c0a2f34b2f7686198f5590bad Author: Cy Schubert AuthorDate: 2022-01-17 16:15:43 +0000 Commit: Cy Schubert CommitDate: 2022-01-17 17:00:45 +0000 net/hostapd: Update to 2.10 The long awaited hostapd 2.10 is finally here. --- net/hostapd/Makefile | 8 +--- net/hostapd/distinfo | 12 ++--- net/hostapd/files/patch-src_drivers_driver__bsd.c | 57 +++++++---------------- net/hostapd/files/patch-src_utils_os__unix.c | 18 ------- net/hostapd/files/patch-src_wps_wps__upnp.c | 20 +++----- 5 files changed, 28 insertions(+), 87 deletions(-) diff --git a/net/hostapd/Makefile b/net/hostapd/Makefile index a87a8ed33515..97e774f07b94 100644 --- a/net/hostapd/Makefile +++ b/net/hostapd/Makefile @@ -1,16 +1,10 @@ # Created by: Craig Leres PORTNAME= hostapd -PORTVERSION= 2.9 -PORTREVISION= 4 +PORTVERSION= 2.10 CATEGORIES= net MASTER_SITES= https://w1.fi/releases/ -PATCH_SITES= https://w1.fi/security/2020-1/ -PATCHFILES= 0001-WPS-UPnP-Do-not-allow-event-subscriptions-with-URLs-.patch:-p1 \ - 0002-WPS-UPnP-Fix-event-message-generation-using-a-long-U.patch:-p1 \ - 0003-WPS-UPnP-Handle-HTTP-initiation-failures-for-events-.patch:-p1 - MAINTAINER= cy@FreeBSD.org COMMENT= IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator diff --git a/net/hostapd/distinfo b/net/hostapd/distinfo index c6fd159e26c4..784e7e6d9238 100644 --- a/net/hostapd/distinfo +++ b/net/hostapd/distinfo @@ -1,9 +1,3 @@ -TIMESTAMP = 1591652140 -SHA256 (hostapd-2.9.tar.gz) = 881d7d6a90b2428479288d64233151448f8990ab4958e0ecaca7eeb3c9db2bd7 -SIZE (hostapd-2.9.tar.gz) = 2244312 -SHA256 (0001-WPS-UPnP-Do-not-allow-event-subscriptions-with-URLs-.patch) = 2d9a5b9d616f1b4aa4a22b967cee866e2f69b798b0b46803a7928c8559842bd7 -SIZE (0001-WPS-UPnP-Do-not-allow-event-subscriptions-with-URLs-.patch) = 5909 -SHA256 (0002-WPS-UPnP-Fix-event-message-generation-using-a-long-U.patch) = 49feb35a5276279b465f6836d6fa2c6b34d94dc979e8b840d1918865c04260de -SIZE (0002-WPS-UPnP-Fix-event-message-generation-using-a-long-U.patch) = 2284 -SHA256 (0003-WPS-UPnP-Handle-HTTP-initiation-failures-for-events-.patch) = a8212a2d89a5bab2824d22b6047e7740553df163114fcec94832bfa9c5c5d78a -SIZE (0003-WPS-UPnP-Handle-HTTP-initiation-failures-for-events-.patch) = 1553 +TIMESTAMP = 1642436112 +SHA256 (hostapd-2.10.tar.gz) = 206e7c799b678572c2e3d12030238784bc4a9f82323b0156b4c9466f1498915d +SIZE (hostapd-2.10.tar.gz) = 2440435 diff --git a/net/hostapd/files/patch-src_drivers_driver__bsd.c b/net/hostapd/files/patch-src_drivers_driver__bsd.c index fe3064586710..9a37a1de0174 100644 --- a/net/hostapd/files/patch-src_drivers_driver__bsd.c +++ b/net/hostapd/files/patch-src_drivers_driver__bsd.c @@ -1,42 +1,6 @@ ---- src/drivers/driver_bsd.c.orig 2019-08-07 06:25:25.000000000 -0700 -+++ src/drivers/driver_bsd.c 2021-06-13 23:10:12.570253000 -0700 -@@ -649,7 +649,7 @@ - len = 2048; - } - -- return len; -+ return (len == 0) ? 2048 : len; - } - - #ifdef HOSTAPD -@@ -665,7 +665,11 @@ - static int bsd_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr, - u16 reason_code); - -+#ifdef __DragonFly__ -+const char * -+#else - static const char * -+#endif - ether_sprintf(const u8 *addr) - { - static char buf[sizeof(MACSTR)]; -@@ -1080,7 +1084,14 @@ - mode = 0 /* STA */; - break; - case IEEE80211_MODE_IBSS: -+ /* -+ * Ref bin/203086 - FreeBSD's net80211 currently uses -+ * IFM_IEEE80211_ADHOC. -+ */ -+#if 0 - mode = IFM_IEEE80211_IBSS; -+#endif -+ mode = IFM_IEEE80211_ADHOC; - break; - case IEEE80211_MODE_AP: - mode = IFM_IEEE80211_HOSTAP; -@@ -1336,14 +1347,18 @@ +--- src/drivers/driver_bsd.c.orig 2021-06-02 14:11:18.000000000 -0700 ++++ src/drivers/driver_bsd.c 2021-06-13 23:11:15.089256000 -0700 +@@ -853,14 +853,18 @@ drv = bsd_get_drvindex(global, ifm->ifm_index); if (drv == NULL) return; @@ -58,3 +22,18 @@ wpa_printf(MSG_DEBUG, "RTM_IFINFO: Interface '%s' UP", drv->ifname); wpa_supplicant_event(drv->ctx, EVENT_INTERFACE_ENABLED, +@@ -1220,7 +1224,14 @@ + mode = 0 /* STA */; + break; + case IEEE80211_MODE_IBSS: ++ /* ++ * Ref bin/203086 - FreeBSD's net80211 currently uses ++ * IFM_IEEE80211_ADHOC. ++ */ ++#if 0 + mode = IFM_IEEE80211_IBSS; ++#endif ++ mode = IFM_IEEE80211_ADHOC; + break; + case IEEE80211_MODE_AP: + mode = IFM_IEEE80211_HOSTAP; diff --git a/net/hostapd/files/patch-src_utils_os__unix.c b/net/hostapd/files/patch-src_utils_os__unix.c deleted file mode 100644 index c56eee136a44..000000000000 --- a/net/hostapd/files/patch-src_utils_os__unix.c +++ /dev/null @@ -1,18 +0,0 @@ ---- src/utils/os_unix.c.orig 2015-09-27 19:02:05 UTC -+++ src/utils/os_unix.c -@@ -442,6 +442,7 @@ int os_file_exists(const char *fname) - } - - -+#if !defined __FreeBSD__ && !defined __DragonFly__ - int os_fdatasync(FILE *stream) - { - if (!fflush(stream)) { -@@ -459,6 +460,7 @@ int os_fdatasync(FILE *stream) - - return -1; - } -+#endif - - - #ifndef WPA_TRACE diff --git a/net/hostapd/files/patch-src_wps_wps__upnp.c b/net/hostapd/files/patch-src_wps_wps__upnp.c index 1e3651d33162..ee10b79e48aa 100644 --- a/net/hostapd/files/patch-src_wps_wps__upnp.c +++ b/net/hostapd/files/patch-src_wps_wps__upnp.c @@ -1,20 +1,12 @@ ---- src/wps/wps_upnp.c.orig 2015-03-15 17:30:39 UTC -+++ src/wps/wps_upnp.c -@@ -837,7 +837,7 @@ fail: - } - - --#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) -+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) - #include - #include - #include -@@ -924,7 +924,7 @@ int get_netif_info(const char *net_if, u +--- src/wps/wps_upnp.c.orig 2021-03-16 13:50:10.000000000 -0700 ++++ src/wps/wps_upnp.c 2021-03-18 12:49:19.537874000 -0700 +@@ -963,7 +963,8 @@ goto fail; } os_memcpy(mac, req.ifr_addr.sa_data, 6); --#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) -+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) +-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) ++#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) \ ++ || defined(__DragonFly__) if (eth_get(net_if, mac) < 0) { wpa_printf(MSG_ERROR, "WPS UPnP: Failed to get MAC address"); goto fail;