[OnePlus 7 Pro Guides, News, & Discussion] T3sla:
Possible solution : Disable ipv6 on router

I've been struggling with this issue more or less 2 years.I had this issue with my old router and my redmi 4 prime which has the same chipset with my current phone redmi note 4x, if that's something that should be noted.I remember i had issues only with oreo roms but i didn't want to stay on nougat so i lived with it.From my investigations i though it was a rom issue, until the router died and bought a new Asus DSL-N14U router.Suddenly all the problems solved without taking any other action.I was so happy that i didn't gave any extra thoughts to the root of the problem.

And here we come to 2019, my isp upgrades all the lines from adsl to vdsl along with a new router, a ZTE Speedport, while also i change my phone to an almost identical one, and somewhere around summer of 2020 guess what... Houston we got a problem, again.I didn't realize the problem was huge until lockdown came along and had to talk a lot more on the phone.The usual google search, again, didn't provide any new solutions so i thought to take a logcat and ask someone who knows more , like a dev .I have limited knowledge about this stuff but i decided to take a look and after trial and error searches in those thousands lines i found some light in the right direction,

[12-17 15:14:49.393 24466:24466 I/wpa_supplicant]

wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=3 locally_generated=1

so googled this and came with various theories and solutions :

-Change channel

-Change to wpa2-AES

-Change to g or n mode

-Change lease time

-Some other sh*t i don't remember

none of them worked.So keep digging the log,

[12-17 16:05:23.339 24466:24466 I/wpa_supplicant]

wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=3 locally_generated=1

and

[12-17 16:55:57.263 24466:24466 I/wpa_supplicant]

wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=3 locally_generated=1

Hey look, my phone is disconnecting every freaking 50m 34s... wth.........

So what happens before that,

[12-17 15:14:49.291 1435:24502 D/DhcpClient]

doQuit

[12-17 15:14:49.297 1435:24502 D/DhcpClient]

onQuitting

[12-17 15:14:49.298 488:670 D/CommandListener]

Setting iface cfg

[12-17 15:14:49.300 1435:24505 D/DhcpClient]

Receive thread stopped

[12-17 15:14:49.335 488:662 I/Netd]

Destroyed 5 sockets on 192.168.1.5 in 1.6 ms

[12-17 15:14:49.391 488:662 I/Netd]

Destroyed 10 sockets on 1abc:a587:2132:31a1:51ab:98b5:d3bf:f3c1 in 0.9 ms

[12-17 15:14:49.391 2356:24530 V/NativeCrypto]

Read error: ssl=0x7b5f9589c8: I/O error during system call, Software caused connection abort

[12-17 15:14:49.391 488:670 D/CommandListener]

Clearing all IP addresses on wlan0

[12-17 15:14:49.393 1435:1519 I/EthernetTracker]

interfaceLinkStateChanged, iface: wlan0, up: false

Why the hell dhpclient quit... at least more weird messages to search.

Long story short, after a lot searching and reading i stumbled upon a post on a forum of my country about networks, where in a similar problem someone proposed to disable ipv6 protocol on the router.And boom... 2 days now without a single wifi drop!!! According to some other guys there, ipv6 protocol still has it's problems and on poorly configured routers it's more of a trouble than solution.All i know is that problem seems to be solved in my case at least.

I can't tell you exactly where you'll find the option to disable ipv6 cause that's different for every router, in my case there was no direct option for that but had to disable it indirectly.More precise i had to disable DHPv6 server and RA service on LAN network but you'll probably have the option to just choose ipv4 somewhere on router's settings, no one knows for sure though.

Sorry for the long post but i felt i should write more things so if someone google logcat lines will have more chances to get here.Also if anyone try this pls report here, especially if you succeed so we can help others.