create same subnet for lan and wlan with hotspot setup

How do I create ether5 (any LAN) and wlan1 on the same subnet ip pool? I need hotspot setup for both LAN and WLAN. Currently, I am only able to get Internet connection only if I set up different subnet for ether5 and wlan1.

# model = 951Ui-2nD
# serial number = 8B0008F2C555
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no frequency=auto \
    mode=ap-bridge ssid="HOME WIFI"
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
add dns-name=wifi.home.wifi.com.np hotspot-address=10.10.10.1 \
    html-directory=flash/hotspot login-by=http-chap name=hsprof1
add dns-name=wifi.home.wifi.com.np hotspot-address=10.10.5.1 \
    html-directory=flash/hotspot login-by=http-chap name=hsprof2
/ip pool
add name=hs-pool-6 ranges=10.10.8.1-10.10.10.0,10.10.10.2-10.10.11.254
add name=hs-pool-1 ranges=10.10.5.2-10.10.5.254
/ip dhcp-server
add address-pool=hs-pool-6 disabled=no interface=ether5 lease-time=1h name=\
    dhcp1
add address-pool=hs-pool-1 disabled=no interface=wlan1 lease-time=1h name=\
    dhcp2
/ip hotspot
add address-pool=hs-pool-6 addresses-per-mac=1 disabled=no interface=ether5 \
    name=hotspot1 profile=hsprof1
add address-pool=hs-pool-1 addresses-per-mac=1 disabled=no interface=wlan1 \
    name=hs-wlan1 profile=hsprof2
/ip hotspot user profile
add address-pool=hs-pool-6 name=uprof1 shared-users=300
add address-pool=hs-pool-1 keepalive-timeout=1d2m name=uprof2 shared-users=\
    200 status-autorefresh=6h1m
/ip address
add address=192.168.1.5/24 interface=ether1 network=192.168.1.0
add address=10.10.10.1/22 interface=ether5 network=10.10.8.0
add address=10.10.5.1/24 interface=wlan1 network=10.10.5.0
/ip dhcp-server network
add address=10.10.5.0/24 comment="hotspot network" gateway=10.10.5.1
add address=10.10.8.0/22 comment="hotspot network" gateway=10.10.10.1
/ip dns
set allow-remote-requests=yes servers=192.168.1.254,1.1.1.1
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
    src-address=10.10.8.0/22
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
    src-address=10.10.5.0/24
add action=masquerade chain=srcnat out-interface=wlan1 src-address=\
    10.10.5.0/24
/ip hotspot user
add name=wifi password=password profile=uprof1 server=hotspot1
add name=wifi password=password profile=uprof2 server=hs-wlan1
/ip route
add distance=1 gateway=192.168.1.254

I would say two ways.
1 - create a bridge,
a. add the bridge ports of ether5 and wlan1 to the bridge
b. - have the bridge responsible for DHCP etc…
Here you will only need one subnet.

    • Use Bridge with vlans (my preference as I dont like bridges doing dhcp and has room for future growth very easily)
      a. create as many vlans as you require (one for hotspot customers, one for home, one for internet devices etc…) and associate to bridge.
      b. vlans have their own dhcp
      c. add bridge port of ther5 and wlan1 (ingress, access ports)
      d. add bridge vlan settings (egress)

In this case just use the same vlan (same subnet) as you will be sending vlanxx to both eth5 and the WLAN1.