Help understanding error log in Archer C7 v4 with OpenWrt Chaos Chalmer

Hi, I'm developing a captive portal with OpenWRT and NodogSplash, and have a few test devices. Right now I'm having issues with one. The router I'm using is an Archer C7 v4 and I'm connected to another router, a Technicolor TG789BVN.

So far I haven't been able to identify what's causing my problem. The thing that happens is that my router might or might not assign IPs to devices connected. If it assigns an IP, when the user gets prompted to enter to the captive portal, it won't display my local webserver, instead it will show the default view like if the webserver didn't have a file in it (index of directory, etc, etc).

If I try to SSH to the router, it will tell me that my password is incorrect, and will only work again after I restart the router.

If I'm connected with my laptop (which isn't restricted by the captive portal), I have access to Internet.

Things I have installed recently are: hostapd-common, hostapd-utils, wpad-mini, iwinfo,

These are the errors I get in the logs:

dmesg

[   10.525330] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   10.530072] ieee80211 phy0: Atheros AR9561 Rev:0 mem=0xb8100000, irq=47
[   10.559462] kmodloader: done loading kernel modules from /etc/modules.d/*
[   16.501388] random: crng init done
[   16.802152] br-lan: port 1(eth0.1) entered blocking state
[   16.807790] br-lan: port 1(eth0.1) entered disabled state
[   16.813652] device eth0.1 entered promiscuous mode
[   16.818647] device eth0 entered promiscuous mode
[   17.806609] eth0: link up (1000Mbps/Full duplex)
[   17.811757] br-lan: port 1(eth0.1) entered blocking state
[   17.817385] br-lan: port 1(eth0.1) entered forwarding state
[   18.309084] br-lan: port 2(wlan0) entered blocking state
[   18.314623] br-lan: port 2(wlan0) entered disabled state
[   18.320396] device wlan0 entered promiscuous mode
[   18.325346] br-lan: port 2(wlan0) entered blocking state
[   18.330829] br-lan: port 2(wlan0) entered forwarding state
[   19.356778] ------------[ cut here ]------------
[   19.361691] WARNING: CPU: 0 PID: 1464 at backports-2017-11-01/net/mac80211/rx.c:629 ieee80211_rx_napi+0x254/0x924 [mac80211]
[   19.373314] Modules linked in: ath9k ath9k_common pppoe ppp_async ath9k_hw ath pppox ppp_generic mac80211 iptable_nat iptable_mangle iptable_filter ipt_REJECT ipt_MASQUERADE ipt_ECN ip_tables cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CLASSIFY x_tables ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_log_common nf_defrag_ipv4 nf_conntrack_rtcache crc_ccitt
[   19.447256]  compat br_netfilter act_connmark nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress ifb tun vfat fat nls_utf8 nls_iso8859_1 nls_cp437 usb_storage ehci_platform sd_mod scsi_mod ehci_hcd gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common crc16 crc32c_generic crypto_hash
[   19.479987] CPU: 0 PID: 1464 Comm: readlink Not tainted 4.9.75 #0
[   19.486276] Stack : 804978fa 00000035 00000000 00000001 87ca3614 80420be7 803d58dc 000005b8
[   19.494977]         80493a40 00000275 00000004 87c19a98 00000000 800a9794 803db0f8 80420000
[   19.503668]         00000003 00000275 803d92c8 87c09d34 00000000 800d90dc 804978fa 00000070
[   19.512368]         00000000 80222e00 00000000 00000000 00000000 00000000 00000000 00000000
[   19.521068]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   19.529768]         ...
[   19.532305] Call Trace:
[   19.534839] [<8006b2e8>] show_stack+0x54/0x88
[   19.539355] [<8007ff60>] __warn+0xe4/0x118
[   19.543585] [<80080028>] warn_slowpath_null+0x1c/0x34
[   19.548897] [<877258d8>] ieee80211_rx_napi+0x254/0x924 [mac80211]
[   19.555258] [<877e7524>] ath_rx_tasklet+0xc98/0xce4 [ath9k]
[   19.561020] [<877e4a34>] ath9k_tasklet+0x18c/0x214 [ath9k]
[   19.566703] [<8008311c>] tasklet_action+0x80/0xc8
[   19.571555] [<80082acc>] __do_softirq+0x250/0x298
[   19.576437] [<801eaa24>] plat_irq_dispatch+0xd4/0x110
[   19.581670] [<800664b8>] handle_int+0x138/0x144
[   19.586355] ---[ end trace d3015d2102e2c674 ]---

logread

Mon Jun 11 19:58:34 2018 daemon.notice nodogsplash[1708]: Detected gateway br-lan at 192.168.2.1 (###########)
Mon Jun 11 19:58:34 2018 daemon.notice nodogsplash[1708]: Created web server on 192.168.2.1:2050
Mon Jun 11 19:58:34 2018 daemon.notice procd: /etc/rc.d/S96led: setting up led WAN
Mon Jun 11 19:58:34 2018 daemon.notice procd: /etc/rc.d/S96led: setting up led WLAN
Mon Jun 11 19:58:34 2018 daemon.notice procd: /etc/rc.d/S96led: Skipping trigger 'phy1tpt' for led 'WLAN' due to missing kernel module
Mon Jun 11 19:58:34 2018 daemon.notice procd: /etc/rc.d/S96led: setting up led WLAN5G
Mon Jun 11 19:58:34 2018 daemon.notice procd: /etc/rc.d/S96led: setting up led LAN1
Mon Jun 11 19:58:34 2018 daemon.notice procd: /etc/rc.d/S96led: setting up led LAN2
Mon Jun 11 19:58:34 2018 daemon.notice procd: /etc/rc.d/S96led: setting up led LAN3
Mon Jun 11 19:58:34 2018 daemon.notice procd: /etc/rc.d/S96led: setting up led LAN4
Mon Jun 11 19:58:35 2018 daemon.notice procd: /etc/rc.d/S96led: setting up led USB1
Mon Jun 11 19:58:35 2018 daemon.notice procd: /etc/rc.d/S96led: Skipping trigger 'usbport' for led 'USB1' due to missing kernel module
Mon Jun 11 19:58:35 2018 daemon.notice procd: /etc/rc.d/S96led: setting up led USB2
Mon Jun 11 19:58:35 2018 daemon.notice procd: /etc/rc.d/S96led: Skipping trigger 'usbport' for led 'USB2' due to missing kernel module
Mon Jun 11 19:58:35 2018 daemon.notice nodogsplash[1708]: Initializing firewall rules
Mon Jun 11 19:58:36 2018 user.notice firewall: Reloading firewall due to ifup of wan (eth0.2)
Mon Jun 11 19:58:36 2018 daemon.info procd: - init complete -
Mon Jun 11 19:58:36 2018 daemon.err odhcpd[1956]: Failed to open routing table: No such file or directory
Mon Jun 11 19:58:37 2018 daemon.err odhcpd[1956]: Unable to open raw socket: Address family not supported by protocol
Mon Jun 11 19:58:37 2018 authpriv.info dropbear[2024]: Child connection from 192.168.2.171:60992
Wed Jun 13 17:38:58 2018 authpriv.notice dropbear[2024]: Password auth succeeded for 'root' from 192.168.2.171:60992
Wed Jun 13 17:39:00 2018 daemon.err odhcpd[2265]: Failed to open routing table: No such file or directory
Wed Jun 13 17:39:00 2018 daemon.err odhcpd[2265]: Unable to open raw socket: Address family not supported by protocol
Wed Jun 13 17:39:01 2018 daemon.notice nodogsplash[1708]: Waiting for connections
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.032108] ------------[ cut here ]------------
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.037049] WARNING: CPU: 0 PID: 0 at backports-2017-11-01/net/mac80211/rx.c:629 ieee80211_rx_napi+0x254/0x924 [mac80211]
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.048373] Modules linked in: ath9k ath9k_common pppoe ppp_async ath9k_hw ath pppox ppp_generic mac80211 iptable_nat iptable_mangle iptable_filter ipt_REJECT ipt_MASQUERADE ipt_ECN ip_tables cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_NETMAP xt_LOG xt_HL xt_DSCP xt_CLASSIFY x_tables ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda slhc nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_log_common nf_defrag_ipv4 nf_conntrack_rtcache crc_ccitt
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.122258]  compat br_netfilter act_connmark nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress ifb tun vfat fat nls_utf8 nls_iso8859_1 nls_cp437 usb_storage ehci_platform sd_mod scsi_mod ehci_hcd gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common crc16 crc32c_generic crypto_hash
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.154970] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.75 #0
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.160893] Stack : 804978fa 00000031 00000000 00000001 80420f74 80420be7 803d58dc 00000000
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.169593]         80493a40 00000275 00000004 87613558 00000000 800a9794 803db0f8 80420000
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.178293]         00000003 00000275 803d92c8 87c09d34 00000000 800d90dc 804978fa 0000006d
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.186993]         00000000 80222e00 00000000 00000000 00000000 00000000 00000000 00000000
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.195693]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.204393]         ...
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.206930] Call Trace:
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.209456] [<8006b2e8>] show_stack+0x54/0x88
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.213982] [<8007ff60>] __warn+0xe4/0x118
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.218210] [<80080028>] warn_slowpath_null+0x1c/0x34
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.223514] [<877258d8>] ieee80211_rx_napi+0x254/0x924 [mac80211]
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.229874] [<877e7524>] ath_rx_tasklet+0xc98/0xce4 [ath9k]
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.235644] [<877e4a34>] ath9k_tasklet+0x18c/0x214 [ath9k]
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.241315] [<8008311c>] tasklet_action+0x80/0xc8
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.246180] [<80082acc>] __do_softirq+0x250/0x298
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.251055] [<801eaa24>] plat_irq_dispatch+0xd4/0x110
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.256285] [<800664b8>] handle_int+0x138/0x144
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.260968] [<80067fa4>] r4k_wait_irqoff+0x18/0x20
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.265922] [<800a4274>] cpu_startup_entry+0x84/0xd0
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.271062] [<80444bb4>] start_kernel+0x44c/0x46c
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.275927] ---[ end trace 1d2f20dfedecf517 ]---
Wed Jun 13 17:39:03 2018 kern.warn kernel: [   34.441700] ------------[ cut here ]------------

These errors repeat a lot.

Thanks for the help in advance

oh God, Chaos Chalmer ? can't you try at least LEDE 17.x if not the OpenWrt 18.06 ?
https://downloads.openwrt.org/releases/18.06-SNAPSHOT/

It looks like the wifi driver is crashing. The ath10k in CC was very buggy and should not be used.

Nodogsplash should be on its own network, like a guest network. That way it doesn't interfere with ssh to the router on the lan network.

I believe the userspace part of nodogsplash assigns IP addresses to captive users. But first you need a kernel that doesn't crash.