BeaglePlay - Create two simultaneously access points (2.4Ghz and 5 Ghz).

I am trying to create two access point at same time but only one is running at a time

hostapd_24g.conf

interface=wlan0
ssid=BeaglePlay_24G
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
wpa_passphrase=Beagleplay
hw_mode=g
channel=1
ieee80211d=1
country_code=IN
ieee80211n=1
wmm_enabled=1
macaddr_acl=0
ignore_broadcast_ssid=0
logger_syslog=-1
logger_syslog_level=2

hostapd_5g.conf

interface=SoftAp0
ssid=BeaglePlay_5G
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
wpa_passphrase=Beagleplay
hw_mode=a
channel=36
ieee80211d=1
country_code=IN
ieee80211n=1
wmm_enabled=1
macaddr_acl=0
ignore_broadcast_ssid=0
logger_syslog=-1
logger_syslog_level=2

random: getrandom() support available
Configuration file: hostapd0.conf
ctrl_interface_group=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-14-72:1
nl80211: Supports Probe Response offload in AP mode
nl80211: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 04 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 04 00 00 00 00 00 00 40
nl80211: Supported vendor command: vendor_id=0x80028 subcmd=0
nl80211: Supported vendor command: vendor_id=0x80028 subcmd=1
nl80211: Supported vendor command: vendor_id=0x80028 subcmd=2
nl80211: Supported vendor event: vendor_id=0x80028 subcmd=0
nl80211: Supported vendor event: vendor_id=0x80028 subcmd=1
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: Enable multi-channel concurrent (driver advertised support)
nl80211: use P2P_DEVICE support
nl80211: key_mgmt=0x1fd0f enc=0xf auth=0x7 flags=0x4000511f363fae0 rrm_flags=0x10 probe_resp_offloads=0x7 max_stations=0 max_remain_on_chan=30000 max_scan_ssids=1
nl80211: interface SoftAp0 in phy phy0
nl80211: Set mode ifindex 6 iftype 3 (AP)
nl80211: Setup AP(SoftAp0) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0xaaab148ba020
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0xaaab148ba020 match= multicast=0
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0xaaab148ba020 match= multicast=0
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0xaaab148ba020 match= multicast=0
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0xaaab148ba020 match= multicast=0
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0xaaab148ba020 match= multicast=0
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0xaaab148ba020 match= multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaab148ba020 match=04 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaab148ba020 match=0501 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaab148ba020 match=0503 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaab148ba020 match=0504 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaab148ba020 match=06 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaab148ba020 match=08 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaab148ba020 match=09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaab148ba020 match=0a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaab148ba020 match=11 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaab148ba020 match=12 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xaaab148ba020 match=7f multicast=0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Add own interface ifindex 6 (ifidx_reason -1)
nl80211: if_indices[16]: 6(-1)
nl80211: Do not open EAPOL RX socket - using control port for RX
phy: phy0
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
Using existing control interface directory.
SoftAp0: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code IN, new country code IN
nl80211: Regulatory information - country=IN
nl80211: 2402-2482 @ 40 MHz 30 mBm
nl80211: 5150-5250 @ 80 MHz 30 mBm
nl80211: 5250-5350 @ 80 MHz 24 mBm (DFS)
nl80211: 5470-5725 @ 160 MHz 24 mBm (DFS)
nl80211: 5725-5875 @ 80 MHz 30 mBm
nl80211: Added 802.11b mode based on 802.11g information
nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484[DISABLED][NO_IR]
nl80211: Mode IEEE 802.11a: 5040[DISABLED] 5060[DISABLED] 5080[DISABLED] 5170 5180 5190 5200 5210 5220 5230 5240 5260[RADAR] 5280[RADAR] 5300[RADAR] 5320[RADAR] 5500[RADAR] 5520[RADAR] 5540[RADAR] 5560[RADAR] 5580[RADAR]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484[DISABLED][NO_IR]
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=30 dBm
Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=34 freq=5170 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=38 freq=5190 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=42 freq=5210 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=46 freq=5230 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=30 dBm
Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=12 freq=2467 MHz max_tx_power=30 dBm
Allowed channel: mode=0 chan=13 freq=2472 MHz max_tx_power=30 dBm
SoftAp0: Last interface to sync - starting all interfaces
Completing interface initialization
Mode: IEEE 802.11a Channel: 36 Frequency: 5180 MHz
DFS 0 channels required radar detection
nl80211: Set freq 5180 (ht_enabled=1, vht_enabled=0, he_enabled=0, bandwidth=20 MHz, cf1=5180 MHz, cf2=0 MHz)

  • freq=5180
  • he_enabled=0
  • vht_enabled=0
  • ht_enabled=1
  • sec_channel_offset=0
  • channel_type=1
    RATE[0] rate=60 flags=0x1
    RATE[1] rate=90 flags=0x0
    RATE[2] rate=120 flags=0x1
    RATE[3] rate=180 flags=0x0
    RATE[4] rate=240 flags=0x1
    RATE[5] rate=360 flags=0x0
    RATE[6] rate=480 flags=0x0
    RATE[7] rate=540 flags=0x0
    hostapd_setup_bss(hapd=0xaaab148b0180 (SoftAp0), first=1)
    nl80211: flush → DEL_STATION SoftAp0 (all)
    Using interface SoftAp0 with hwaddr 6c:30:2a:0a:4a:dc and ssid “BeaglePlay_5G”
    Deriving WPA PSK based on passphrase
    SSID - hexdump_ascii(len=13):
    42 65 61 67 6c 65 50 6c 61 79 5f 35 47 BeaglePlay_5G
    PSK (ASCII passphrase) - hexdump_ascii(len=10):
    42 65 61 67 6c 65 70 6c 61 79 Beagleplay
    PSK (from passphrase) - hexdump(len=32): 8a cd e9 bc 9c f4 51 30 e2 dd b6 45 ff 15 b3 74 6b 2f ac 73 be df 3a ee 4d 8b dc 1d 8e 74 0d 70
    random: Got 20/20 random bytes
    Get randomness: len=32 entropy=0
    GMK - hexdump(len=32): 5d 8d 47 7d de 14 cb 31 2a 9e a2 6c 1d ff 14 3d 08 1b a4 80 fa df 1e 20 ce 6c ef 58 6e 6c f2 b5
    Get randomness: len=32 entropy=0
    Key Counter - hexdump(len=32): d1 a5 c7 59 b1 24 a6 55 23 18 b8 88 9d 21 74 a6 c1 a1 c5 dd 91 a5 fa 89 16 6c 1a d9 21 53 10 ea
    WPA: Delay group state machine start until Beacon frames have been configured
    nl80211: Set beacon (beacon_set=0)
    nl80211: Beacon head - hexdump(len=64): 80 00 00 00 ff ff ff ff ff ff 6c 30 2a 0a 4a dc 6c 30 2a 0a 4a dc 00 00 00 00 00 00 00 00 00 00 64 00 11 00 00 0d 42 65 61 67 6c 65 50 6c 61 79 5f 35 47 01 08 8c 12 98 24 b0 48 60 6c 03 01 24
    nl80211: Beacon tail - hexdump(len=146): 07 1e 49 4e 20 22 01 1e 24 01 1e 26 01 1e 28 01 1e 2a 01 1e 2c 01 1e 2e 01 1e 30 01 1e 95 05 1e 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00 3b 02 73 00 2d 1a 0c 00 1d ff 00 00 00 00 00 00 00 00 00 96 00 01 00 00 00 00 00 00 00 00 00 00 3d 16 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7f 08 04 00 00 02 00 00 00 40 dd 18 00 50 f2 02 01 01 01 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
    nl80211: ifindex=6
    nl80211: beacon_int=100
    nl80211: beacon_rate=0
    nl80211: rate_type=0
    nl80211: dtim_period=2
    nl80211: ssid=BeaglePlay_5G
  • beacon_int=100
  • dtim_period=2
    nl80211: proberesp (offload) - hexdump(len=210): 50 00 00 00 00 00 00 00 00 00 6c 30 2a 0a 4a dc 6c 30 2a 0a 4a dc 00 00 00 00 00 00 00 00 00 00 64 00 11 00 00 0d 42 65 61 67 6c 65 50 6c 61 79 5f 35 47 01 08 8c 12 98 24 b0 48 60 6c 03 01 24 07 1e 49 4e 20 22 01 1e 24 01 1e 26 01 1e 28 01 1e 2a 01 1e 2c 01 1e 2e 01 1e 30 01 1e 95 05 1e 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00 3b 02 73 00 2d 1a 0c 00 1d ff 00 00 00 00 00 00 00 00 00 96 00 01 00 00 00 00 00 00 00 00 00 00 3d 16 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7f 08 04 00 00 02 00 00 00 40 dd 18 00 50 f2 02 01 01 01 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
    nl80211: hidden SSID not in use
    nl80211: privacy=2
    nl80211: auth_algs=0x1
    nl80211: wpa_version=0x2
    nl80211: key_mgmt_suites=0x2
    nl80211: pairwise_ciphers=0x10
    nl80211: group_cipher=0x10
    nl80211: beacon_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
    nl80211: proberesp_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
    nl80211: assocresp_ies - hexdump(len=10): 7f 08 04 00 00 02 00 00 00 40
    > nl80211: Beacon set failed: -16 (Device or resource busy)
    > Failed to set beacon parameters
    SoftAp0: Flushing old station entries
    nl80211: flush → DEL_STATION SoftAp0 (all)
    SoftAp0: Deauthenticate all stations
    nl80211: send_mlme - da=ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 no_encrypt=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
    nl80211: send_mlme - Use bss->freq=5180
    nl80211: send_mlme → send_frame_cmd
    nl80211: CMD_FRAME freq=5180 wait=0 no_cck=0 no_ack=0 offchanok=0
    CMD_FRAME - hexdump(len=26): c0 00 00 00 ff ff ff ff ff ff 6c 30 2a 0a 4a dc 6c 30 2a 0a 4a dc 00 00 03 00
    nl80211: Frame command failed: ret=-16 (Device or resource busy) (freq=5180 wait=0)
    wpa_driver_nl80211_set_key: ifindex=6 (SoftAp0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
    nl80211: DEL_KEY
    broadcast key
    wpa_driver_nl80211_set_key: ifindex=6 (SoftAp0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
    nl80211: DEL_KEY
    broadcast key
    wpa_driver_nl80211_set_key: ifindex=6 (SoftAp0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
    nl80211: DEL_KEY
    broadcast key
    wpa_driver_nl80211_set_key: ifindex=6 (SoftAp0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
    nl80211: DEL_KEY
    broadcast key
    hostapd_free_hapd_data(SoftAp0)
    Interface initialization failed
    SoftAp0: interface state COUNTRY_UPDATE->DISABLED
    SoftAp0: AP-DISABLED
    ctrl_iface not configured!
    hostapd_interface_deinit_free(0xaaab148ae9e0)
    hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
    hostapd_interface_deinit(0xaaab148ae9e0)
    SoftAp0: interface state DISABLED->DISABLED
    hostapd_bss_deinit: deinit bss SoftAp0
    SoftAp0: Deauthenticate all stations
    nl80211: send_mlme - da=ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 no_encrypt=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
    nl80211: send_mlme - Use bss->freq=5180
    nl80211: send_mlme → send_frame_cmd
    nl80211: CMD_FRAME freq=5180 wait=0 no_cck=0 no_ack=0 offchanok=0
    CMD_FRAME - hexdump(len=26): c0 00 00 00 ff ff ff ff ff ff 6c 30 2a 0a 4a dc 6c 30 2a 0a 4a dc 00 00 03 00
    nl80211: Frame command failed: ret=-16 (Device or resource busy) (freq=5180 wait=0)
    SoftAp0: AP-DISABLED
    hostapd_cleanup(hapd=0xaaab148b0180 (SoftAp0))
    SoftAp0: CTRL-EVENT-TERMINATING
    Control interface directory not empty - leaving it behind
    hostapd_free_hapd_data: Interface SoftAp0 wasn’t started
    hostapd_interface_deinit_free: driver=0xaaaaded1e5a0 drv_priv=0xaaab148b4e50 → hapd_deinit
    nl80211: deinit ifname=SoftAp0 disabled_11b_rates=0
    nl80211: Remove monitor interface: refcount=0
    nl80211: Remove beacon (ifindex=6)
    netlink: Operstate: ifindex=6 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
    nl80211: Set mode ifindex 6 iftype 2 (STATION)
    nl80211: Teardown AP(SoftAp0) - device_ap_sme=0 use_monitor=0
    nl80211: Unsubscribe mgmt frames handle 0x888822239c0328a9 (AP teardown)
    hostapd_interface_free(0xaaab148ae9e0)
    hostapd_interface_free: free hapd 0xaaab148b0180
    hostapd_cleanup_iface(0xaaab148ae9e0)
    hostapd_cleanup_iface_partial(0xaaab148ae9e0)
    hostapd_cleanup_iface: free iface=0xaaab148ae9e0

Blockquote

As specification says dual band radios so two simultaneous access point should work. Any thought? Why not working on wlan0
is it due to g and a will not work together need to use n and a only?
channel selection issue?
interface settings issue?
??

No, that’s not what that means. Dual band radio means 2.4 and 5 GHz frequency bands are supported.
The WL18MOD only supports a maximum of 1 AP mode. However, you can do AP mode and client (STA) mode simultaneously.

Below is output and it seems two AP is supported as phy capability. This is not about AP+STA. I am trying two APs (one for 2.4GHz and one for 5Ghz) simultaneously.

iw phy0 info
	valid interface combinations:
		 * #{ managed } <= 2, #{ AP, mesh point, P2P-client, P2P-GO } <= 1, #{ P2P-device } <= 1,
		   total <= 3, #channels <= 2
		 * #{ AP } <= 2, #{ mesh point } <= 1, #{ P2P-device } <= 1,
		   total <= 2, #channels <= 1, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz }

It seems channels=1 restriction not allowing 2.4Ghz and 5Ghz together, I am able to create 2 APs simultaneously for 2.4Ghz operating at same time without issue ( Same channel for both AP, SSID is different.