[Bug 222090] [patch] Add ability to start multiple APs using hostapd(8)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 08 May 2024 11:41:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222090
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_<interface>
lines.
ie:
ifonfig_wlan0="hostap ......"
An example of a working setup....
/etc/rc.conf:
wlans_ath0="wlan0 wlan1"
ifconfig_wlan0="hostap inet 192.168.0.1 netmask 255.255.255.0 channel 3:ht/40+
bintval 50"
ifconfig_wlan1="hostap inet 172.16.0.1 netmask 255.255.255.0"
create_args_wlan0="wlanmode hostap bssid ssid NAME1 regdomain ROW country AU
txpower 50"
create_args_wlan1="wlanmode hostap bssid ssid NAME2"
hostapd_enable="YES"
This will cause the files /etc/hostapd-wlan0.conf and /etc/hostapd-wlan1.conf
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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
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=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
wlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
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=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
--
You are receiving this mail because:
You are the assignee for the bug.