hostapd events with multiple wlans
Michael Baird
Michael.Baird at ecs.vuw.ac.nz
Thu Jan 25 18:52:30 PST 2018
Hi,
When using the control socket (both UDP with my own application and UNIX
with hostapd_cli), I only receive events for the first SSID. How do you
get events from the second?
Do I need to create another connection? - if yes how do i switch to that
interface (preferably with the UDP variant - what should the packet look
like "COOKIE=905102307f369c2b <something here??>")?
Configuration file is attached.
Output from a few commands with hostapd_cli.
> interface
wlan1
> get_config
bssid=02:f6:52:0f:e7:90
ssid=Auth-Link022
wpa=2
key_mgmt=WPA-EAP
group_cipher=CCMP
rsn_pairwise_cipher=CCMP
> status
state=ENABLED
phy=phy1
freq=2447
num_sta_non_erp=0
num_sta_no_short_slot_time=0
num_sta_no_short_preamble=1
olbc=0
num_sta_ht_no_gf=0
num_sta_no_ht=0
num_sta_ht_20_mhz=0
num_sta_ht40_intolerant=0
olbc_ht=0
ht_op_mode=0x0
cac_time_seconds=0
cac_time_left_seconds=N/A
channel=8
secondary_channel=0
ieee80211n=0
ieee80211ac=0
bss[0]=wlan1
bssid[0]=02:f6:52:0f:e7:90
ssid[0]=Auth-Link022
num_sta[0]=0
bss[1]=wlan1_1
bssid[1]=02:f6:52:0f:e7:91
ssid[1]=Guest-Link022
num_sta[1]=1
Thanks,
Michael
-------------- next part --------------
interface=wlan1
# Driver; nl80211 is used with all Linux mac80211 drivers.
driver=nl80211
hw_mode=g
channel=8
ctrl_interface=/var/run/hostapd
ssid=Auth-Link022
bridge=br_200
ieee8021x=1
auth_algs=1
wpa=2
rsn_pairwise=CCMP
wpa_key_mgmt=WPA-EAP
macaddr_acl=0
auth_server_addr=192.168.11.1
auth_server_port=1812
auth_server_shared_secret=radiuspwd
nas_identifier=raspberrypi
# bssid for multiple wlans, the format is like "wlan0_1"
# For the first wlan, there should be no bssid field, otherwise hostapd
# will fail to start.
bss=wlan1_1
ssid=Guest-Link022
bridge=br_300
More information about the Hostap
mailing list