Page 1 of 1

Wifi/Internet Disconnection spikes TL-WR1043N/ND v2

Posted: Wed Oct 23, 2019 8:43 pm
by thelordabdo
I am using Gargoyle 1.10.0 , Sometimes I got a Disconnection spikes ( usually for few second ) and I can feel that this is happening many times a day for all of my devices , I have captured the log at the moment of the disconnection now (about 5 seconds of disconnection ) :

Code: Select all

Thu Oct 24 02:26:27 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: authenticated
Thu Oct 24 02:26:27 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: associated (aid 2)
Thu Oct 24 02:26:27 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb RADIUS: starting accounting session EFE9566181978ED4
Thu Oct 24 02:26:27 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb WPA: pairwise key handshake completed (RSN)
Thu Oct 24 02:26:27 2019 daemon.info dnsmasq-dhcp[2304]: DHCPREQUEST(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb 
Thu Oct 24 02:26:27 2019 daemon.info dnsmasq-dhcp[2304]: DHCPACK(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb Abdo_Asus_Wireless
and if I go back at the log I can see that this is happening so many times at a very short interval :

Code: Select all

Wed Oct 23 23:08:45 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: authenticated
Wed Oct 23 23:08:45 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: associated (aid 2)
Wed Oct 23 23:08:45 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb RADIUS: starting accounting session EFE9566181978ED4
Wed Oct 23 23:08:45 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb WPA: pairwise key handshake completed (RSN)
Wed Oct 23 23:08:45 2019 daemon.info dnsmasq-dhcp[2304]: DHCPREQUEST(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb 
Wed Oct 23 23:08:45 2019 daemon.info dnsmasq-dhcp[2304]: DHCPACK(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb Abdo_Asus_Wireless
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Wed Oct 23 23:13:07 2019 daemon.err uhttpd[1472]: sh: write error: Broken pipe
Thu Oct 24 00:15:09 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: authenticated
Thu Oct 24 00:15:09 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: associated (aid 2)
Thu Oct 24 00:15:09 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb RADIUS: starting accounting session EFE9566181978ED4
Thu Oct 24 00:15:09 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb WPA: pairwise key handshake completed (RSN)
Thu Oct 24 00:15:09 2019 daemon.info dnsmasq-dhcp[2304]: DHCPREQUEST(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb 
Thu Oct 24 00:15:09 2019 daemon.info dnsmasq-dhcp[2304]: DHCPACK(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb Abdo_Asus_Wireless
Thu Oct 24 00:33:05 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: authenticated
Thu Oct 24 00:33:05 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: associated (aid 2)
Thu Oct 24 00:33:05 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb RADIUS: starting accounting session EFE9566181978ED4
Thu Oct 24 00:33:05 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb WPA: pairwise key handshake completed (RSN)
Thu Oct 24 00:33:05 2019 daemon.info dnsmasq-dhcp[2304]: DHCPREQUEST(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb 
Thu Oct 24 00:33:05 2019 daemon.info dnsmasq-dhcp[2304]: DHCPACK(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb Abdo_Asus_Wireless
Thu Oct 24 00:49:30 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: authenticated
Thu Oct 24 00:49:30 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: associated (aid 2)
Thu Oct 24 00:49:30 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb RADIUS: starting accounting session EFE9566181978ED4
Thu Oct 24 00:49:30 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb WPA: pairwise key handshake completed (RSN)
Thu Oct 24 00:49:31 2019 daemon.info dnsmasq-dhcp[2304]: DHCPREQUEST(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb 
Thu Oct 24 00:49:31 2019 daemon.info dnsmasq-dhcp[2304]: DHCPACK(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb Abdo_Asus_Wireless
Thu Oct 24 01:03:26 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: authenticated
Thu Oct 24 01:03:26 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: associated (aid 2)
Thu Oct 24 01:03:26 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb RADIUS: starting accounting session EFE9566181978ED4
Thu Oct 24 01:03:26 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb WPA: pairwise key handshake completed (RSN)
Thu Oct 24 01:03:26 2019 daemon.info dnsmasq-dhcp[2304]: DHCPREQUEST(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb 
Thu Oct 24 01:03:26 2019 daemon.info dnsmasq-dhcp[2304]: DHCPACK(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb Abdo_Asus_Wireless
Thu Oct 24 02:26:27 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: authenticated
Thu Oct 24 02:26:27 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb IEEE 802.11: associated (aid 2)
Thu Oct 24 02:26:27 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb RADIUS: starting accounting session EFE9566181978ED4
Thu Oct 24 02:26:27 2019 daemon.info hostapd: wlan0: STA dc:85:de:e4:a2:fb WPA: pairwise key handshake completed (RSN)
Thu Oct 24 02:26:27 2019 daemon.info dnsmasq-dhcp[2304]: DHCPREQUEST(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb 
Thu Oct 24 02:26:27 2019 daemon.info dnsmasq-dhcp[2304]: DHCPACK(br-lan) 192.168.0.50 dc:85:de:e4:a2:fb Abdo_Asus_Wireless
this is my Wireless settings :

Code: Select all

config wifi-device 'radio0'
	option type 'mac80211'
	option path 'platform/qca955x_wmac'
	option country 'JP3'
	option channel '13'
	option noscan '1'
	option hwmode '11g'
	option htmode 'HT40-'
	option txpower '24'

config wifi-iface 'ap_g'
	option device 'radio0'
	option mode 'ap'
	option network 'lan'
	option disassoc_low_ack '0'
        option wpa_strict_rekey '1'
        option wpa_group_rekey '86400'
	option wds '1'
	option ssid 'Abdo-Gargoyle'
	option encryption 'psk2'
	option key 'hidden'
For weeks I am trying to modify configuration using WinSCP , but this disconnections keep happening , any ideas ?

Re: Wifi/Internet Disconnection spikes TL-WR1043N/ND v2

Posted: Wed Oct 23, 2019 10:48 pm
by Lantis
Is this the only client that has this issue?
Also JP3 is not a valid country setting that I'm aware of.

Re: Wifi/Internet Disconnection spikes TL-WR1043N/ND v2

Posted: Thu Oct 24, 2019 5:07 am
by thelordabdo
Lantis wrote:Is this the only client that has this issue?
Also JP3 is not a valid country setting that I'm aware of.
No , this was with my Laptop because its the only active device at this time interval , but I saw this happening before with my phone and many other family devices , they are all Complaining from disconnection spikes sometimes , its just hardly to notice because the recover takes just few seconds (sometimes alot more) .
For JP3 its for Japan Code , as I found this Country code has the most stable channel 13

Re: Wifi/Internet Disconnection spikes TL-WR1043N/ND v2

Posted: Thu Oct 24, 2019 6:20 am
by RomanHK
Linux (OpenWrt - Gargoyle) does not support "JP3" (also "EU") see: https://git.kernel.org/pub/scm/linux/ke ... ree/db.txt

Changing the country does not affect stability. Changing the country changes only the power, frequency range and 5GHz DFS.

:!: Please observe the country's statutory performance and do not violate standards (eg IEEE 802.11n-2009)!

Re: Wifi/Internet Disconnection spikes TL-WR1043N/ND v2

Posted: Thu Oct 24, 2019 6:33 am
by RomanHK
:idea: I assume frequent reconnections due to key reinstallation. Try deleting these rows:

Code: Select all

option wpa_strict_rekey '1'
option wpa_group_rekey '86400'

Re: Wifi/Internet Disconnection spikes TL-WR1043N/ND v2

Posted: Thu Oct 24, 2019 2:12 pm
by ispyisail
Are you trying to use a country that your not in?

Re: Wifi/Internet Disconnection spikes TL-WR1043N/ND v2

Posted: Sat Oct 26, 2019 6:20 am
by thelordabdo
RomanHK wrote:Linux (OpenWrt - Gargoyle) does not support "JP3" (also "EU") see:
Thank for the information , I have changed the country code to JP , but I am wondering if JP3 is not valid option , how could the Wifi worked all this time with a non valid country code , also I remember I could get the frequency list by running 'iw reg get' with the JP3 !

I have removed :

Code: Select all

option wpa_strict_rekey '1'
option wpa_group_rekey '86400'
to see if the disconnection problem would be fixed , although I have added these two lines one week ago while trying to fix stability problem as per some guides at openwrt forums .

Re: Wifi/Internet Disconnection spikes TL-WR1043N/ND v2

Posted: Sat Oct 26, 2019 6:34 am
by thelordabdo
ispyisail wrote:Are you trying to use a country that your not in?
Yes for many reasons :
first : at my country many of the routers and wifi devices are sold without my country code option .
second : although channel 13 is available for my country code , but the channels has a slightly different range for different country codes ( I am not very sure ) , so some of my devices cant see the wifi at all for some codes while other codes are working at the same channel .
Third : where I live most of the people are not using the country code or don't even know about it , and for the Wifi Authorities _ dont think they are exit here :roll: _ I don't think they even care about it .
The only authorities here I can imagine they may look for wifi frequencies are the National Security and the Military intelligence and they don't care about commercial frequences .

Re: Wifi/Internet Disconnection spikes TL-WR1043N/ND v2

Posted: Sat Oct 26, 2019 2:49 pm
by ispyisail
From my understanding the firmware has some smarts build it to detect where you actually live.

It then won't let you............

Lantis will have a better answer

Re: Wifi/Internet Disconnection spikes TL-WR1043N/ND v2

Posted: Sat Oct 26, 2019 5:59 pm
by Lantis
You're not supposed to use the wrong country code is the long and short of it.

Your Wi-Fi disconnections are likely not a Gargoyle only problem and exist in the upstream project.
You can try a later version for a hopeful fix, or try OpenWrt to see if if behaves better.