From nobody Wed May 8 11:41:44 2024 X-Original-To: wireless@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 4VZCsj1cMFz5Kw1b for ; Wed, 08 May 2024 11:41:45 +0000 (UTC) (envelope-from bugzilla-noreply@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 4VZCsh6RHsz4GSP for ; Wed, 8 May 2024 11:41:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715168504; a=rsa-sha256; cv=none; b=Ng0N6FjzzSN2EW317X6ft7suDAybSQO1nwUxrXiIggOqbHaHiIIA7PKAt1Bz/vyhJJFKxk yXFaj/7FuytCbcByJs8XSbZ6T/NiP2ECashWVRwl10uruTW9nUdiHUK97HltwQ6ToUv914 Ynvi29IqmS0PAjnqLTemjlCsI46nFc738WMSFjt908rymbMrZfqFFTp1h/ZpvIWZwdqEQu impPycB1ERGZAldJ2bxeGR4lCMLM3D25YKOnNPZCEg12nhNzXz9Am27hHIfeGH+QRKJWDe dleyV4anb8+5hNzoonA2eUoiuiaHaQLl6/abrOsG/8vDJFmnotoRVW3VXxb0VA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715168504; 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: in-reply-to:in-reply-to:references:references; bh=vkIWTOE3x9kUvSc2g1lHYdemjSduNrtKz+ceAGzUUAU=; b=usYKLSwKKmUqMn3IWNArdjKVE+5IlSL860yiZihNevtCdFJ+EuiEuSDniNhzFzJi0p2W6C NVpCbz1aqvKgpCKPskZj/vvO+Be+NrKlz2GdjcLqyzT9GWnQwRS9ku8QabohxY/4XkafHD VAtar4YbCXbIRqY/ol1ZChR8PZ16koN/jxQIdKlMb72Zb1LeLqlJDZFmPYelyVoXcNBoZP gq4MYof3bliFcfxE1LcdMP6N25haIrQX6iAykVejvj9r1q8t4bzN6tz2O2yiXJ2S2lzEWj MmicMsJsV0VKJJhhM2mo7ALJelbqXmy/iGrHA75f6j55VY+41SOKSaZoYySd2g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4VZCsh4jvPzNnq for ; Wed, 8 May 2024 11:41:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 448Bfi9v002473 for ; Wed, 8 May 2024 11:41:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 448Bfilv002472 for wireless@FreeBSD.org; Wed, 8 May 2024 11:41:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 222090] [patch] Add ability to start multiple APs using hostapd(8) Date: Wed, 08 May 2024 11:41:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: Benjamin.Close@clearchain.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-wireless@freebsd.org Sender: owner-freebsd-wireless@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222090 Benjamin Close changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Benjamin.Close@clearchain.c | |om --- Comment #4 from Benjamin Close --- I believe this bug can be closed, testing with FREEBSD 13.2-RELEASE it is indeed possible to have multiple hostapd processes running without the patch being needed. To do this, in rc.conf make sure you have 'hostap' in the ifconfig_ lines. ie: ifonfig_wlan0=3D"hostap ......" An example of a working setup.... /etc/rc.conf: wlans_ath0=3D"wlan0 wlan1" ifconfig_wlan0=3D"hostap inet 192.168.0.1 netmask 255.255.255.0 channel 3:h= t/40+ bintval 50" ifconfig_wlan1=3D"hostap inet 172.16.0.1 netmask 255.255.255.0" create_args_wlan0=3D"wlanmode hostap bssid ssid NAME1 regdomain ROW country= AU txpower 50" create_args_wlan1=3D"wlanmode hostap bssid ssid NAME2" hostapd_enable=3D"YES" This will cause the files /etc/hostapd-wlan0.conf and /etc/hostapd-wlan1.co= nf to be read up a: service netif restart ie: ps ax |grep hostapd 411 - Ss 0:00.32 /usr/sbin/hostapd -P /var/run/hostapd-wlan0.pid -B /etc/hostapd-wlan0.conf 459 - Ss 0:00.28 /usr/sbin/hostapd -P /var/run/hostapd-wlan1.pid -B /etc/hostapd-wlan1.conf Note the 'bssid' is important as it generates a different MAC per cloned devices ifconfig will give: wlan0: flags=3D8843 metric 0 mtu 15= 00 ether b0:aa:bb:cc:dd:ee inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.157.255 groups: wlan ssid NAME1 channel 3 (2422 MHz 11g ht/40+) bssid b0:aa:bb:cc:dd:ee regdomain ROW country AU indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 2 AES-CCM 2:128-bit txpower 30 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi -uapsd wme burst dtimperiod 1 -dfs bintval 50 parent interface: ath0 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running nd6 options=3D29 wlan1: flags=3D8843 metric 0 mtu 15= 00 ether b6:aa:bb:cc:dd:ee inet 172.16.0.1 netmask 0xffffff00 broadcast 172.16.155.255 groups: wlan ssid NAME2 channel 3 (2422 MHz 11g ht/40+) bssid b6:aa:bb:cc:dd:ee regdomain ROW country AU indoor ecm authmode WPA2/802.11i privacy MIXED deftxkey 2 AES-CCM 2:128-bit txpower 30 scanvalid 60 protmode CTS ampdulimit 64k ampdudensity 8 shortgi -uapsd wme burst dtimperiod 1 -dfs bintval 50 parent interface: ath0 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng status: running nd6 options=3D29 --=20 You are receiving this mail because: You are the assignee for the bug.=