Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 May 2024 11:41:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        wireless@FreeBSD.org
Subject:   [Bug 222090] [patch] Add ability to start multiple APs using hostapd(8)
Message-ID:  <bug-222090-21060-aJseYxG39Y@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-222090-21060@https.bugs.freebsd.org/bugzilla/>
References:  <bug-222090-21060@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222090

Benjamin Close <Benjamin.Close@clearchain.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Benjamin.Close@clearchain.c
                   |                            |om

--- Comment #4 from Benjamin Close <Benjamin.Close@clearchain.com> ---
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_<interfa=
ce>
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <hostap>
        status: running
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
wlan1: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <hostap>
        status: running
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222090-21060-aJseYxG39Y>