[Solved] Wifi disconnects using Asus RT-N56U and 18.06 RC2

I have built one firmware with a very basic set of programs which does not disconnect. When I add all the programs I want both my Android phones start disconnecting every few minutes. This happens even if I only set the root password and setup and start the wifi. The syslog just says that the device disconnected.

Here is a diff between the .config that works and the one that doesn't. dnsmasq is removed from the broken firmware and the rest are added.

CONFIG_PACKAGE_dnsmasq=y
CONFIG_PACKAGE_dnsmasq-dhcpv6=y
CONFIG_PACKAGE_librt=y
CONFIG_PACKAGE_kmod-ipt-conntrack-extra=y
CONFIG_PACKAGE_kmod-ipt-ipopt=y
CONFIG_PACKAGE_kmod-ipt-ipset=y
CONFIG_PACKAGE_kmod-nfnetlink=y
CONFIG_PACKAGE_kmod-mii=y
CONFIG_PACKAGE_kmod-tun=y
CONFIG_PACKAGE_kmod-usb-net=y
CONFIG_PACKAGE_kmod-usb-net-cdc-ether=y
CONFIG_PACKAGE_kmod-usb-net-rndis=y
CONFIG_PACKAGE_libopenssl=y
CONFIG_OPENSSL_WITH_EC=y
CONFIG_OPENSSL_WITH_DEPRECATED=y
CONFIG_OPENSSL_WITH_NPN=y
CONFIG_OPENSSL_WITH_PSK=y
CONFIG_OPENSSL_WITH_SRP=y
CONFIG_PACKAGE_libcurl=y
CONFIG_LIBCURL_OPENSSL=y
CONFIG_LIBCURL_FILE=y
CONFIG_LIBCURL_FTP=y
CONFIG_LIBCURL_HTTP=y
CONFIG_LIBCURL_COOKIES=y
CONFIG_LIBCURL_NO_SMB="!"
CONFIG_LIBCURL_PROXY=y
CONFIG_PACKAGE_liblzo=y
CONFIG_PACKAGE_libmnl=y
CONFIG_PACKAGE_libpcre=y
CONFIG_PACKAGE_libuci-lua=y
CONFIG_PACKAGE_zlib=y
CONFIG_PACKAGE_luci-app-adblock=y
CONFIG_PACKAGE_luci-app-mwan3=y
CONFIG_PACKAGE_luci-app-openvpn=y
CONFIG_PACKAGE_curl=y
CONFIG_PACKAGE_wget=y
CONFIG_PACKAGE_iptables-mod-conntrack-extra=y
CONFIG_PACKAGE_iptables-mod-ipopt=y
CONFIG_PACKAGE_ip-tiny=y
CONFIG_PACKAGE_mwan3=y
CONFIG_PACKAGE_openvpn-openssl=y
CONFIG_OPENVPN_openssl_ENABLE_LZO=y
CONFIG_OPENVPN_openssl_ENABLE_LZ4=y
CONFIG_OPENVPN_openssl_ENABLE_SERVER=y
CONFIG_OPENVPN_openssl_ENABLE_HTTP=y
CONFIG_OPENVPN_openssl_ENABLE_SOCKS=y
CONFIG_OPENVPN_openssl_ENABLE_FRAGMENT=y
CONFIG_OPENVPN_openssl_ENABLE_MULTIHOME=y
CONFIG_OPENVPN_openssl_ENABLE_PORT_SHARE=y
CONFIG_OPENVPN_openssl_ENABLE_DEF_AUTH=y
CONFIG_OPENVPN_openssl_ENABLE_PF=y
CONFIG_OPENVPN_openssl_ENABLE_SMALL=y
CONFIG_PACKAGE_adblock=y
CONFIG_PACKAGE_ipset=y
CONFIG_PACKAGE_libipset=y

I would appreciate any suggestions about which features are more likely to cause the problem or how to debug it on the router. I'm hoping I won't have to add one feature at a time and rebuild/reflash every time.

Thanks.

My hunch would be Adblock or Mwan3. Maybe adblock is filtering domains the android phones use to test internet connectivity (just a random guess) or maybe mwan3 is toggling the wan connection all time.

Indeed it seems to be Adblock, and it's not even enabled. Thanks, I wouldn't have guessed.

Discussion continuing in Adblock support thread

It can't be adblock if this service is disabled.

It was not caused by adblock. The problem seems to have gone away after I downloaded the version of mwan3 that includes this fix: https://github.com/openwrt/packages/commit/b6249f1781efc4fefbdf87b661d53c0923ec7438

If your problem is solved, please consider marking this topic as [Solved]. (Click the pencil behind the topic...)