Client and Multi AP together disconnects wifi clients

Hi,

I’ve got a boat and plan to use a RUT901 as the boat wifi (Access Point) with internet access through WAN (Starlink) and Marina wifi networks (Multi AP).

I’ve configured:

  • lan0 with dhcp
  • wifi0 as access point with dhcp
  • wifi1 as Multi AP with my home wifi and iphone hotspot configured

All seems to be well when I start the RUT901 and connected clients on lan and wifi0 get internet access through home wifi.
When I turn on my iphone hotspot, the wifi0 clients get disconnected as the SSID disappears, only to reappear after ~10 seconds. Now the internet connection is working through the iphone.

My expectation is that hostapd is not restarted just because the Multi AP connection switches from one network to another. I understand a brief interruption of the internet connection/routing, but disconnecting all clients and restarting the wifi0 if not what I would want to happen.

Below is the log of when this happens.

Is there a way to change the config to not fully restart hostap?

Sat Sep 14 19:08:39 2024 daemon.notice netifd: Interface ‘ifWan1’ is disabled
Sat Sep 14 19:08:39 2024 daemon.notice netifd: Interface ‘ifWan1’ has link connectivity loss
Sat Sep 14 19:08:39 2024 daemon.notice netifd: ifWan1 (3409): udhcpc: received SIGTERM
Sat Sep 14 19:08:39 2024 daemon.notice netifd: ifWan1 (3409): udhcpc: unicasting a release of 192.168.1.37 to 192.168.1.1
Sat Sep 14 19:08:39 2024 daemon.notice netifd: ifWan1 (3409): udhcpc: sending release
Sat Sep 14 19:08:39 2024 daemon.notice netifd: ifWan1 (3409): udhcpc: entering released state
Sat Sep 14 19:08:39 2024 daemon.notice netifd: ifWan1 (3409): Command failed: Permission denied
Sat Sep 14 19:08:39 2024 daemon.notice netifd: Interface ‘ifWan1’ is now down
Sat Sep 14 19:08:39 2024 daemon.warn dnsmasq[3119]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Sat Sep 14 19:08:40 2024 daemon.notice hostapd: Set new config for phy phy0:
Sat Sep 14 19:08:40 2024 daemon.notice hostapd: Remove interface ‘phy0’
Sat Sep 14 19:08:40 2024 daemon.notice hostapd: wlan0-1: interface state ENABLED->DISABLED
Sat Sep 14 19:08:40 2024 daemon.notice hostapd: wlan0-1: AP-STA-DISCONNECTED ac:67:5d:a7:f4:72
Sat Sep 14 19:08:40 2024 kern.notice Lepelaar: WiFi client disconnected: AC:67:5D:A7:F4:72
Sat Sep 14 19:08:40 2024 daemon.notice hostapd: wlan0-1: AP-DISABLED
Sat Sep 14 19:08:40 2024 daemon.notice hostapd: wlan0-1: CTRL-EVENT-TERMINATING
Sat Sep 14 19:08:40 2024 daemon.notice hostapd: nl80211: deinit ifname=wlan0-1 disabled_11b_rates=0
Sat Sep 14 19:08:40 2024 daemon.notice netifd: Network device ‘wlan0-1’ link is down
Sat Sep 14 19:08:40 2024 daemon.notice netifd: Interface ‘ifLan1’ has link connectivity loss
Sat Sep 14 19:08:41 2024 daemon.notice netifd: Interface ‘ifLan1’ is now down
Sat Sep 14 19:08:41 2024 daemon.notice netifd: Interface ‘ifLan1’ is disabled
Sat Sep 14 19:08:41 2024 daemon.notice wpa_supplicant[1872]: Set new config for phy phy0
Sat Sep 14 19:08:41 2024 daemon.notice wpa_supplicant[1872]: Remove interface wlan0-2
Sat Sep 14 19:08:41 2024 kern.info kernel: [ 201.722596] wlan0-2: deauthenticating from 3c:58:5d:cc:65:86 by local choice (Reason: 3=DEAUTH_LEAVING)
Sat Sep 14 19:08:41 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-DISCONNECTED bssid=3c:58:5d:cc:65:86 reason=3 locally_generated=1
Sat Sep 14 19:08:41 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-DSCP-POLICY clear_all
Sat Sep 14 19:08:41 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-DSCP-POLICY clear_all
Sat Sep 14 19:08:41 2024 daemon.notice wpa_supplicant[1872]: nl80211: deinit ifname=wlan0-2 disabled_11b_rates=0
Sat Sep 14 19:08:42 2024 daemon.notice netifd: Wireless device ‘radio0’ is now down
Sat Sep 14 19:08:42 2024 user.notice mwan3-hotplug[7318]: Execute ifdown event on interface ifWan1 (unknown)
Sat Sep 14 19:08:44 2024 user.info mwan3track[3818]: Detect ifdown event on interface ifWan1 (wlan0-2)
Sat Sep 14 19:08:44 2024 user.info mwan3track[3818]: Check (ping) failed for target “1.1.1.1” on interface ifWan1 (wlan0-2). Current score: 6
^[[ISat Sep 14 19:08:46 2024 user.info mwan3track[3818]: Check (ping) failed for target “8.8.8.8” on interface ifWan1 (wlan0-2). Current score: 6
Sat Sep 14 19:08:46 2024 user.notice mwan3track[3818]: Interface ifWan1 (wlan0-2) is disconnecting
Sat Sep 14 19:08:46 2024 kern.notice Password auth succeeded for admin on HTTP from 192.168.3.224
Sat Sep 14 19:08:46 2024 daemon.err uhttpd[2480]: vuci: accepted login for admin from 192.168.3.224
Sat Sep 14 19:08:48 2024 daemon.notice hostapd: Set new config for phy phy0:
Sat Sep 14 19:08:50 2024 daemon.notice wpa_supplicant[1872]: Set new config for phy phy0
Sat Sep 14 19:08:51 2024 daemon.info dnsmasq[3119]: exiting on receipt of SIGTERM
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: started, version 2.89 cachesize 150
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: compile time options: IPv6 GNU-getopt no-RTC no-DBus UBus no-i18n no-regex no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-nftset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: UBus support enabled: connected to system bus
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq-dhcp[7871]: DHCP, IP range 192.168.3.100 – 192.168.3.249, lease time 12h
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: using only locally-known addresses for test
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: using only locally-known addresses for onion
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: using only locally-known addresses for localhost
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: using only locally-known addresses for local
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: using only locally-known addresses for invalid
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: using only locally-known addresses for bind
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: using only locally-known addresses for lan
Sat Sep 14 19:08:52 2024 daemon.warn dnsmasq[7871]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: read /etc/hosts - 12 names
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: read /tmp/hosts/dhcp.cfg01411c - 2 names
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq-dhcp[7871]: read /etc/ethers - 0 addresses
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: read /etc/hosts - 12 names
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq[7871]: read /tmp/hosts/dhcp.cfg01411c - 2 names
Sat Sep 14 19:08:52 2024 daemon.info dnsmasq-dhcp[7871]: read /etc/ethers - 0 addresses
Sat Sep 14 19:08:52 2024 user.notice mwan3track[3818]: Interface ifWan1 (wlan0-2) is offline
Sat Sep 14 19:08:56 2024 daemon.notice wpa_supplicant[1872]: Set new config for phy phy0
Sat Sep 14 19:08:57 2024 daemon.debug dnsmasq-script[7871]: command failed: No such device (-19)
Sat Sep 14 19:08:58 2024 daemon.notice hostapd: Set new config for phy phy0: /var/run/hostapd-phy0.conf
Sat Sep 14 19:08:58 2024 daemon.notice hostapd: Restart interface for phy phy0
Sat Sep 14 19:08:58 2024 user.notice mwan3-hotplug[7922]: Execute disconnected event on interface ifWan1 (wlan0-2)
^[[OSat Sep 14 19:09:00 2024 kern.info WAN (ifWan1) is down, no more backups to switch
Sat Sep 14 19:09:01 2024 daemon.notice hostapd: Initializing BSS (phy phy0) → new PHY
Sat Sep 14 19:09:01 2024 daemon.notice hostapd: wlan0-1: interface state UNINITIALIZED->COUNTRY_UPDATE
Sat Sep 14 19:09:01 2024 daemon.notice netifd: Interface ‘ifLan1’ is enabled
Sat Sep 14 19:09:01 2024 daemon.notice netifd: Interface ‘ifLan1’ is setting up now
Sat Sep 14 19:09:01 2024 daemon.notice netifd: Interface ‘ifLan1’ is now up
Sat Sep 14 19:09:01 2024 daemon.notice hostapd: ACS: Automatic channel selection started, this may take a bit
Sat Sep 14 19:09:01 2024 daemon.notice hostapd: wlan0-1: interface state COUNTRY_UPDATE->ACS
Sat Sep 14 19:09:01 2024 daemon.notice hostapd: wlan0-1: ACS-STARTED
Sat Sep 14 19:09:04 2024 user.notice mwan3-hotplug[8005]: mwan3 hotplug on ifLan1 not called because interface disabled
Sat Sep 14 19:09:05 2024 daemon.notice netifd: Interface ‘ifWan1’ is enabled
Sat Sep 14 19:09:06 2024 daemon.err wpa_supplicant[1872]: nl80211: kernel reports: Registration to specific type not supported
Sat Sep 14 19:09:06 2024 daemon.err wpa_supplicant[1872]: nl80211: kernel reports: Registration to specific type not supported
Sat Sep 14 19:09:07 2024 daemon.notice wpa_supplicant[1872]: Set new config for phy phy0
Sat Sep 14 19:09:08 2024 daemon.notice netifd: Wireless device ‘radio0’ is now up
Sat Sep 14 19:09:09 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[7871]: exiting on receipt of SIGTERM
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[8597]: started, version 2.89 cachesize 150
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[8597]: compile time options: IPv6 GNU-getopt no-RTC no-DBus UBus no-i18n no-regex no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-nftset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[8597]: UBus support enabled: connected to system bus
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq-dhcp[8597]: DHCP, IP range 192.168.2.100 – 192.168.2.249, lease time 12h
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq-dhcp[8597]: DHCP, IP range 192.168.3.100 – 192.168.3.249, lease time 12h
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for test
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for onion
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for localhost
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for local
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for invalid
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for bind
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for lan
Sat Sep 14 19:09:10 2024 daemon.warn dnsmasq[8597]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[8597]: read /etc/hosts - 12 names
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq[8597]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Sat Sep 14 19:09:10 2024 daemon.info dnsmasq-dhcp[8597]: read /etc/ethers - 0 addresses
Sat Sep 14 19:09:11 2024 daemon.info dnsmasq[8597]: read /etc/hosts - 12 names
Sat Sep 14 19:09:11 2024 daemon.info dnsmasq[8597]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Sat Sep 14 19:09:11 2024 daemon.info dnsmasq-dhcp[8597]: read /etc/ethers - 0 addresses
Sat Sep 14 19:09:11 2024 user.notice mwan3-hotplug[8524]: mwan3 hotplug on ifLan1 not called because interface disabled
Sat Sep 14 19:09:12 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
Sat Sep 14 19:09:13 2024 user.notice firewall: Reloading firewall due to ifup of ifLan1 (wlan0-1)
Sat Sep 14 19:09:14 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
Sat Sep 14 19:09:16 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
Sat Sep 14 19:09:18 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
Sat Sep 14 19:09:19 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
Sat Sep 14 19:09:21 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
Sat Sep 14 19:09:21 2024 daemon.notice hostapd: wlan0-1: ACS-COMPLETED freq=2427 channel=4
Sat Sep 14 19:09:22 2024 daemon.notice netifd: Network device ‘wlan0-1’ link is up
Sat Sep 14 19:09:22 2024 daemon.notice netifd: Interface ‘ifLan1’ has link connectivity
Sat Sep 14 19:09:22 2024 kern.info kernel: [ 242.803948] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
Sat Sep 14 19:09:22 2024 daemon.notice hostapd: wlan0-1: interface state ACS->ENABLED
Sat Sep 14 19:09:22 2024 daemon.notice hostapd: wlan0-1: AP-ENABLED
Sat Sep 14 19:09:26 2024 daemon.info dnsmasq[8597]: read /etc/hosts - 12 names
Sat Sep 14 19:09:26 2024 daemon.info dnsmasq[8597]: read /tmp/hosts/dhcp.cfg01411c - 4 names
Sat Sep 14 19:09:26 2024 daemon.info dnsmasq-dhcp[8597]: read /etc/ethers - 0 addresses
Sat Sep 14 19:09:30 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: SME: Trying to authenticate with 36:5c:63:5f:25:9f (SSID=‘Hans iPhone’ freq=2437 MHz)
Sat Sep 14 19:09:30 2024 kern.info kernel: [ 250.719224] wlan0-2: authenticate with 36:5c:63:5f:25:9f
Sat Sep 14 19:09:30 2024 kern.info kernel: [ 250.724766] wlan0-2: 80 MHz not supported, disabling VHT
Sat Sep 14 19:09:30 2024 kern.info kernel: [ 250.942367] wlan0-2: send auth to 36:5c:63:5f:25:9f (try 1/3)
Sat Sep 14 19:09:30 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: Trying to associate with 36:5c:63:5f:25:9f (SSID=‘Hans iPhone’ freq=2437 MHz)
Sat Sep 14 19:09:30 2024 kern.info kernel: [ 250.951750] wlan0-2: authenticated
Sat Sep 14 19:09:30 2024 kern.info kernel: [ 250.968697] wlan0-2: associate with 36:5c:63:5f:25:9f (try 1/3)
Sat Sep 14 19:09:30 2024 kern.info kernel: [ 250.981451] wlan0-2: RX AssocResp from 36:5c:63:5f:25:9f (capab=0x431 status=0 aid=1)
Sat Sep 14 19:09:30 2024 kern.info kernel: [ 250.989803] wlan0-2: associated
Sat Sep 14 19:09:30 2024 daemon.notice netifd: Network device ‘wlan0-2’ link is up
Sat Sep 14 19:09:30 2024 daemon.notice netifd: Interface ‘ifWan1’ has link connectivity
Sat Sep 14 19:09:30 2024 daemon.notice netifd: Interface ‘ifWan1’ is setting up now
Sat Sep 14 19:09:30 2024 kern.debug kernel: [ 251.072132] wlan0-2: Limiting TX power to 20 (20 - 0) dBm as advertised by 36:5c:63:5f:25:9f
Sat Sep 14 19:09:30 2024 daemon.notice netifd: ifWan1 (9087): udhcpc: started, v1.34.1
Sat Sep 14 19:09:30 2024 daemon.notice netifd: ifWan1 (9087): udhcpc: broadcasting discover
Sat Sep 14 19:09:30 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: Associated with 36:5c:63:5f:25:9f
Sat Sep 14 19:09:30 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Sat Sep 14 19:09:31 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: WPA: Key negotiation completed with 36:5c:63:5f:25:9f [PTK=CCMP GTK=CCMP]
Sat Sep 14 19:09:31 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-CONNECTED - Connection to 36:5c:63:5f:25:9f completed [id=1 id_str=]
Sat Sep 14 19:09:31 2024 kern.info kernel: [ 251.638107] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-2: link becomes ready
Sat Sep 14 19:09:31 2024 daemon.notice wpa_supplicant[1872]: wlan0-2: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-29 noise=9999 txrate=1000
Sat Sep 14 19:09:33 2024 daemon.notice netifd: ifWan1 (9087): udhcpc: broadcasting discover
Sat Sep 14 19:09:33 2024 daemon.notice netifd: ifWan1 (9087): udhcpc: broadcasting select for 172.20.10.2, server 172.20.10.1
Sat Sep 14 19:09:33 2024 daemon.notice netifd: ifWan1 (9087): udhcpc: lease of 172.20.10.2 obtained from 172.20.10.1, lease time 86400
Sat Sep 14 19:09:34 2024 daemon.notice netifd: Interface ‘ifWan1’ is now up
Sat Sep 14 19:09:34 2024 daemon.info dnsmasq[8597]: reading /tmp/resolv.conf.d/resolv.conf.auto
Sat Sep 14 19:09:34 2024 daemon.info dnsmasq[8597]: using nameserver 172.20.10.1#53
Sat Sep 14 19:09:34 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for test
Sat Sep 14 19:09:34 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for onion
Sat Sep 14 19:09:34 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for localhost
Sat Sep 14 19:09:34 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for local
Sat Sep 14 19:09:34 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for invalid
Sat Sep 14 19:09:34 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for bind
Sat Sep 14 19:09:34 2024 daemon.info dnsmasq[8597]: using only locally-known addresses for lan
Sat Sep 14 19:09:36 2024 user.notice mwan3-hotplug[9135]: Execute ifup event on interface ifWan1 (wlan0-2)
Sat Sep 14 19:09:38 2024 kern.info Switched to backup WAN (ifWan1)
Sat Sep 14 19:09:38 2024 user.info mwan3track[3818]: Detect ifup event on interface ifWan1 (wlan0-2)
Sat Sep 14 19:09:40 2024 user.notice mwan3track[3818]: Interface ifWan1 (wlan0-2) is online
Sat Sep 14 19:09:42 2024 user.notice firewall: Reloading firewall due to ifup of ifWan1 (wlan0-2)

This topic was automatically closed after 15 days. New replies are no longer allowed.