TP-Link Archer C7 V5 Wi-Fi and Ethernet Disconnect
I recently installed openWRT 19.07.3 on my Archer C7 V5. It worked flawlessly on all my devices (various laptops, desktop pc, mobile phones) except on one device, my Dell XPS 15 9570.
I can connect to the network for a few seconds, but I get instantly disconnected.
Same scenario applies to connection via ethernet!
I thought the WIFI card is the culprit so I replaced it with a Intel AC9260, but it didn't change anything. Both WIFI and ethernet connection do not work.
I did not change anything in the openWRT settings besides adding an adblocker and DDNS.
I'm using Manjaro Linux with the 5.6 kernel, tried other kernels as well. Never had issues like that before switching to openWRT.
Here are some logs:
Thu Jun 18 09:40:02 2020 daemon.notice hostapd: wlan0: AP-STA-CONNECTED f8:ac:65:f9:9f:25
Thu Jun 18 09:40:02 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 RADIUS: starting accounting session 663578D2E8958FE3
Thu Jun 18 09:40:02 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 WPA: pairwise key handshake completed (RSN)
Thu Jun 18 09:40:02 2020 daemon.info dnsmasq-dhcp[18833]: DHCPREQUEST(br-lan) 192.168.1.108 f8:ac:65:f9:9f:25
Thu Jun 18 09:40:02 2020 daemon.info dnsmasq-dhcp[18833]: DHCPACK(br-lan) 192.168.1.108 f8:ac:65:f9:9f:25 xps15
Thu Jun 18 09:40:03 2020 daemon.info dnsmasq-dhcp[18833]: DHCPDISCOVER(br-lan) f8:ac:65:f9:9f:25
Thu Jun 18 09:40:03 2020 daemon.info dnsmasq-dhcp[18833]: DHCPOFFER(br-lan) 192.168.1.110 f8:ac:65:f9:9f:25
Thu Jun 18 09:40:03 2020 daemon.info dnsmasq-dhcp[18833]: DHCPREQUEST(br-lan) 192.168.1.110 f8:ac:65:f9:9f:25
Thu Jun 18 09:40:03 2020 daemon.info dnsmasq-dhcp[18833]: DHCPACK(br-lan) 192.168.1.110 f8:ac:65:f9:9f:25
Thu Jun 18 09:40:03 2020 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED f8:ac:65:f9:9f:25
Thu Jun 18 09:40:09 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 IEEE 802.11: authenticated
Thu Jun 18 09:40:09 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 IEEE 802.11: associated (aid 4)
Thu Jun 18 09:40:09 2020 daemon.notice hostapd: wlan0: AP-STA-CONNECTED f8:ac:65:f9:9f:25
Thu Jun 18 09:40:09 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 RADIUS: starting accounting session A2027606693333C9
Thu Jun 18 09:40:09 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 WPA: pairwise key handshake completed (RSN)
Thu Jun 18 09:40:09 2020 daemon.info dnsmasq-dhcp[18833]: DHCPREQUEST(br-lan) 192.168.1.108 f8:ac:65:f9:9f:25
Thu Jun 18 09:40:09 2020 daemon.info dnsmasq-dhcp[18833]: DHCPACK(br-lan) 192.168.1.108 f8:ac:65:f9:9f:25 xps15
Thu Jun 18 09:40:10 2020 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED f8:ac:65:f9:9f:25
Are you connected both by cable and wifi?
I can see the same mac asking for dhcp leases although it already has one.
Post also here the output of uci export network; uci export dhcp; uci export wireless
No, only one at a time. Currently using USB tethering via my phone to use internet. I disconnected the USB tethering and tried to connect to WIFI once again, hopefully this is more helpful:
Thu Jun 18 12:13:10 2020 daemon.notice hostapd: wlan0: AP-STA-CONNECTED f8:ac:65:f9:9f:25
Thu Jun 18 12:13:10 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 RADIUS: starting accounting session A7EEE9A19AE10401
Thu Jun 18 12:13:10 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 WPA: pairwise key handshake completed (RSN)
Thu Jun 18 12:13:10 2020 daemon.info dnsmasq-dhcp[18833]: DHCPREQUEST(br-lan) 192.168.1.108 f8:ac:65:f9:9f:25
Thu Jun 18 12:13:10 2020 daemon.info dnsmasq-dhcp[18833]: DHCPACK(br-lan) 192.168.1.108 f8:ac:65:f9:9f:25 xps15
Thu Jun 18 12:13:11 2020 daemon.info dnsmasq-dhcp[18833]: DHCPDISCOVER(br-lan) f8:ac:65:f9:9f:25
Thu Jun 18 12:13:11 2020 daemon.info dnsmasq-dhcp[18833]: DHCPOFFER(br-lan) 192.168.1.110 f8:ac:65:f9:9f:25
Thu Jun 18 12:13:12 2020 daemon.info dnsmasq-dhcp[18833]: DHCPREQUEST(br-lan) 192.168.1.110 f8:ac:65:f9:9f:25
Thu Jun 18 12:13:12 2020 daemon.info dnsmasq-dhcp[18833]: DHCPACK(br-lan) 192.168.1.110 f8:ac:65:f9:9f:25
Thu Jun 18 12:13:12 2020 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED f8:ac:65:f9:9f:25
Thu Jun 18 12:13:17 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 IEEE 802.11: authenticated
Thu Jun 18 12:13:17 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 IEEE 802.11: associated (aid 4)
Thu Jun 18 12:13:17 2020 daemon.notice hostapd: wlan0: AP-STA-CONNECTED f8:ac:65:f9:9f:25
Thu Jun 18 12:13:17 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 RADIUS: starting accounting session D0115BE44E469F17
Thu Jun 18 12:13:17 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 WPA: pairwise key handshake completed (RSN)
Thu Jun 18 12:13:17 2020 daemon.info dnsmasq-dhcp[18833]: DHCPREQUEST(br-lan) 192.168.1.108 f8:ac:65:f9:9f:25
Thu Jun 18 12:13:17 2020 daemon.info dnsmasq-dhcp[18833]: DHCPACK(br-lan) 192.168.1.108 f8:ac:65:f9:9f:25 xps15
Thu Jun 18 12:13:18 2020 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED f8:ac:65:f9:9f:25
Thu Jun 18 12:13:22 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 IEEE 802.11: authenticated
Thu Jun 18 12:13:22 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 IEEE 802.11: associated (aid 4)
Thu Jun 18 12:13:22 2020 daemon.notice hostapd: wlan0: AP-STA-CONNECTED f8:ac:65:f9:9f:25
Thu Jun 18 12:13:22 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 RADIUS: starting accounting session C4A47373C28E37BD
Thu Jun 18 12:13:22 2020 daemon.info hostapd: wlan0: STA f8:ac:65:f9:9f:25 WPA: pairwise key handshake completed (RSN)
Thu Jun 18 12:13:22 2020 daemon.info dnsmasq-dhcp[18833]: DHCPREQUEST(br-lan) 192.168.1.108 f8:ac:65:f9:9f:25
Thu Jun 18 12:13:22 2020 daemon.info dnsmasq-dhcp[18833]: DHCPACK(br-lan) 192.168.1.108 f8:ac:65:f9:9f:25 xps15
Thu Jun 18 12:13:23 2020 daemon.info dnsmasq-dhcp[18833]: DHCPDISCOVER(br-lan) f8:ac:65:f9:9f:25
Thu Jun 18 12:13:23 2020 daemon.info dnsmasq-dhcp[18833]: DHCPOFFER(br-lan) 192.168.1.110 f8:ac:65:f9:9f:25
Thu Jun 18 12:13:23 2020 daemon.info dnsmasq-dhcp[18833]: DHCPREQUEST(br-lan) 192.168.1.110 f8:ac:65:f9:9f:25
Thu Jun 18 12:13:23 2020 daemon.info dnsmasq-dhcp[18833]: DHCPACK(br-lan) 192.168.1.110 f8:ac:65:f9:9f:25
Thu Jun 18 12:13:24 2020 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED f8:ac:65:f9:9f:25
Here is the output of uci export network; uci export dhcp; uci export wireless I obviously changed SSID and keys:
Still the same. The client got the ack from dhcp server and immediately started a new discovery.
Are you using the Network Manager or something like that?
the output of dhcpcd is sending commands to dhcpcd process nothing else... I try to live boot from a USB drive later on, to see if my network configuration is faulty. I'll keep you updated. Thanks for your help once again.
Yes, I ran the command as sudo dhcpcd eth0. I replaced eth0 according to the ethernet device label. Same output, sadly.
Interestingly if I boot with a Manjaro Live USB drive, the connection works flawlessly. Somehow some configuration is wrong, but I never had any issues in the past!
Hi trendy, thanks once again for your help. I think the problem is resolved... I killed the dhcpcd processes, restarted the dhcpcd service. It seems to work now. I'll keep testing for a bit. The whole thing might be docker related as well...
Alright, do your testing and when your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Alright, I'm gonna test today and tomorrow. If all is fine and I can definitely pinpoint what the problem was I will mark the topic as solved. Once again, thank you very much trendy. Truly appreciated. Can I buy you a beer/coffee or something?
So, the problem after all was that I had multiple dhcpcd instances running. So it was not openWRT's fault at all. Once I kill the dhcpcd instances, the ethernet and Wi-Fi connections work. Now I need to research why these instances are spawn. Might be docker related.
Thanks to @trendy once again. This thread can now be closed, already marked as solved as well.