yashsingh1/xdaforums huggingface dataset:
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
Yeah as far as I remember the WiFi was solid and wasn't dropping

Oh this is interesting! So it's seemingly indeed something to do with the system thinking "oh, poor signal I best switch to mobile data" ?
[OnePlus 7 Pro Guides, News, & Discussion] pratyush28:
I see thats a good sign, enable wifi webrose logging from developer options and check upto what rssi value the wifi is holding up without dropping. This way you can compare the drop intensity across different roms.
[OnePlus 7 Pro Guides, News, & Discussion] Toutatis_:
I've just enabled the option. rssi value varies between -75 and -85 in my usual room. It's been almost two hours now and not a single drop. I have caffeine mode enabled and I keep an eye on the phone, sometimes I do some stuff with it.

These values don't look good considering you said that -90 was "out of range". I'm really close! Wi-Fi is still stable so I don't really care. It will start to drop again as soon as I enable mobile data for sure. This doesn't make any sense.

I think too. Screw that "feature" lol
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
Lol!!

You know what, I'd be half tempted to start a bounty (unsure if that kind of thing goes on or is allowed on xda anymore?!) to get this fixed lol

I'll update you all with how I get on with then kernel backup/restore method....

Oh and also I was doing random research before...

Do you have NearbyMessagingService running? Apparently disabling that has helped other people in different devices re WiFi issues
[OnePlus 7 Pro Guides, News, & Discussion] Toutatis_:
I've just checked Settings > System > Developers options > Running services > Google play services and "NearbyMessagingService" isn't listed there on ResurrectionRemix.

Over three hours now, Wi-Fi is still rock solid. So I think it's safe to say that disabling mobile data is a valid workaround on that ROM. At least, for me, with RR.
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
Cool, worth a shot.

OK this is inspiring! I'll report back asap re the kernel swap method?

Thanks again all for contributing in attempting to get this sorted!
[OnePlus 7 Pro Guides, News, & Discussion] miffymiffy:
this is an early smurf kernel with the stock wifi drivers. test this. not sure its from 10 to be honest...
[OnePlus 7 Pro Guides, News, & Discussion] Toutatis_:
Almost sure it's for Pie. See the MEGA downloads, 10 builds start at 3.1.1 and the Pie folder has 2.9.x zips
[OnePlus 7 Pro Guides, News, & Discussion] mario1634:
Don't Try

Bad ideal for anybody who's tries to do this
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
[MENTION=4880098]Toutatis_[/MENTION] [MENTION=7774486]pratyush28[/MENTION]

Here's an update from my latest efforts:

- I clean flashed CarbonROM and indeed have no WiFi drop-outs there. I backed up the boot.img via TWRP.

- I clean flashed Havoc, confirmed the WiFi issue was there, used TWRP to restore the CarbonROM boot.img, rebooted to system and tested the WiFi. Unfortunately, this didn't help. I even copied over the WiFi folder, that I backed up from OOS, rebooted and that didn't change things

- It was said about the kernel from Kirasukura, for example, uses the latest WiFi drivers and so I flashed this (having restored/rebooted stock Havoc one again), along with the companion magisk module and whilst it didn't break the fingerprint like I thought it may, WiFi didn't get fixed.

As mentioned here already though the only workaround to stopping WiFi dropping out is disabling mobile data connection.

Oh and the GlassROM developer ( [MENTION=5842226]anupritaisno1[/MENTION] ) has been in touch and is helping out with this issue, so hopefully they'll be able to find a solution at some point!
[OnePlus 7 Pro Guides, News, & Discussion] pratyush28:
Damn that's really unfortunate..But atleast it's working with the mobile data turned off. Prior to flashing the carbon rom kernel on havoc, was the wifi dropping even with the mobile data turned off?
[OnePlus 7 Pro Guides, News, & Discussion] Toutatis_:
Thanks for the report. Not sure but weren't you supposed to backup/restore the Wi-Fi folder from CarbonROM instead of OxygenOS? I'm referring to this post from [MENTION=7774486]pratyush28[/MENTION]

Good to know that [MENTION=5842226]anupritaisno1[/MENTION] is willing to dig into this. I haven't tried GlassROM, I'm still on ResurrectionRemix. It's been three days and not a single drop with mobile data disabled. I informed the dev about the issue on the RR thread and provided a log, maybe he'll investigate too.
[OnePlus 7 Pro Guides, News, & Discussion] Toutatis_:
I'm trying something right now: I enabled mobile data and disabled "Mobile data always active" in Developer Settings. Description for said option says "Always keep mobile data active, even when Wi-Fi is active (for fast network switching).

No drop so far, it's been about 15 minutes since I disabled it. I'll let you know how it goes.

Edit: Nevermind, it literally dropped right after I posted this. Back with mobile data disabled for now.
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
No, I didn't test that but it seems disabling mobile data is a solid workaround....

Ah yes I should have done that! Hmmmm dam, not sure I'll reinstall it all again today but perhaps I'll try that another time. The GlassROM dev may be looking at kernel logs for me, let's keep our fingers crossed!
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
Hmmm that's disabled by default on havoc, as I tried toggling it to see if it helped, which for me, didn't.

Let us know though
[OnePlus 7 Pro Guides, News, & Discussion] Toutatis_:
See my edit, it dropped as soon as I posted the message. Safe to ignore that setting, it doesn't make any difference indeed.
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
Worth a shot though eh!
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
Just wanted to update that I'm nicely settled on Havoc now. I'm using Macrodroid to automate mobile data enabling upon WiFi disconnect and disable up on WiFi reconnect. I've even used The Data Disabled Icon to hide the fact that mobile data is disabled, as that little cross in the icon was bugging me lol

I did test without disabling data for a while yesterday and whilst it did still cut out every now and then, it really is only when signal was quite low. Still though, I'm really liking this workaround as I'd manually toggle WiFi anyway when at home or leaving, so in ways, this workaround is perfect and doesn't present an issue to me any more.

Ill pop this in the first post for information.
[OnePlus 7 Pro Guides, News, & Discussion] Toutatis_:
Hopefully some other users using another ROM than Havoc and ResurrectionRemix can also try disabling mobile data and report back whether it also works for them.

Thanks to [MENTION=7774486]pratyush28[/MENTION] for suggesting said workaround first if I remember correctly. Funny we didn't find out that disabling data would solve the issue earlier, instead of messing with ROM/kernels combinations, DNS, MAC addresses, importing Wi-Fi configuration from one ROM to another and so on.

Nevertheless, while the workaround is painless and can be automated indeed (I'm probably going to set up something similar to you with Tasker), I still think this is an issue that makes no sense and hope that it'll be addressed for good at some point.
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
Agreed, many thanks to [MENTION=7774486]pratyush28[/MENTION] for that!

It is indeed strange. As yeah I would have thought that keeping the developer option setting Mobile Data Always Active disabled, may have had the same effect. However clearly when we actually disable the data, that forces the system in to using WiFi despite it being weak.

It's almost like there's a value somewhere that dictates a threshold of acceptable signal strength, in which when weak, it switches. E.g. 'if lower that -90, switch to mobile data', though with the caveat 'if no mobile data available (disabled), remain on WiFi'.

Though I'm unsure if it's as simple as this. Also when I copied over that WiFi folder from OOS, that didn't change anything, so something else is going on. Seemingly, at least from our efforts, it's nothing to do with that WiFi folder or kernels, yet strangely the kernel swap method fixed for pratyush28...?! So it's a very weird issue indeed.

Oh and just in case you didn't know of the following app, it has a logging tool which can monitor WiFi drop outs. Useful to have...

https://play.google.com/store/apps/details?id=com.vrem.wifianalyzer
[OnePlus 7 Pro Guides, News, & Discussion] pratyush28:
Thanks for the mention :) I'm glad that my workaround is woking well for you guys. But the problem doesn't end here, as your device is still new there is a possibility that this bug might evolve and it won't be as simple to fix in future major android upgrades. Just like when I was on Oreo/Pie nothing worked for me. Fortunately, my device is near its EOL and im surely going to refrain form purchasing OnePlus devices in future.

So, your best bet would be to somehow get the attention of devs so that they can atleast find out the root cause if this happening in the first place.

---------- Post added at 10:53 AM ---------- Previous post was at 10:20 AM ----------

Its true that the wifi folder in /systen/vendor/etc/wifi doesnt do much, in fact in most roms the contents of wcnss config file is almost identical. Also when i was reading about different wifi drop issues on the web i found a new directory where wifi related files are present. It's situated at /system/vendor/firmware/wlan. Next time when i jump roms ill make sure i take a backup of this folder too.

As far as I remember this wifi to mobile data handover "feature" was present in older roms. It was named as "aggressive wifi to cellular handover" under developer options but in newer Android version it was removed from developer options.

I just re-read some articles about this and they mention that this setting reduces the RSSI value of the connected wifi to make the system think the connection is weak and switches to mobile data. Coming to think of it, the wifi signal strength is always low on custom roms compared to stock roms. So im guessing this feature in embedded in android 10 roms?

Edit: Thanks for the app ill check it out.
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
Agreed, both the Havoc and Glassrom devs have been made aware of this, as well as others, but seemingly its a tricky one to investigate!

I've seen a couple of old apps that try and keep the WiFi alive, I tried WiFiSwitcher Pro on which you can even enter a custom value for it to adhere to, before dropping, but it didn't have any effect and was overridden by the system.

I've just tried various WCNSS_qcom_cfg.ini tweaks, but none helped.

I also tried build prop tweaks such as the ro.wifi.channels= setting, currently blank and set to 13, but that didn't help either.

I don't want to admit defeat on this.... Not just yet!!
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
Just too update: I'm not experiencing any WiFi drop out issue on Resurrection Remix rom! See attached for the clean install method (which of also done for Havoc which of course didn't help, but still this method is a nice and clean flash and seems to have worked nicely), hope that also works for you!
[OnePlus 7 Pro Guides, News, & Discussion] Toutatis_:
Glad you no longer have the issue! As I said in this post, I'm still having drops with ResurrectionRemix on my end.

I've been on the ROM for two weeks and a couple of days ago I set up a Tasker profile to automatically toggle mobile data whenever Wi-Fi is enabled or disabled. Drops are gone. I'm OK with that.

I saw you said in the RR thread that it's your new favorite ROM, told you it was excellent :) (it has always been over the years by the way)

The amount of features is crazy and the dev has been very responsive. crDroid and MSM Xtended are also awesome.
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
It really is great, soooo many features, buttery smooth and I'm at 5 hours screen on time and still 30% battery life - not bad for the first battery cycle too!

I knew I was on to a good thing here with RR as when beginning the first setup, it found and preferred my 5ghz signal and not the 2ghz one first, in the room normally where normally other roms struggle to even see it!

Its really strange that this issue exists but so long as we have some form of resolution. It's even stranger that I'm not having the issue on RR whereas you are, there's some difference somewhere but who knows what!?
[OnePlus 7 Pro Guides, News, & Discussion] Sebi1moi:
Hello there,

I use a galaxy note 3 and the HavocOS 3.5 and I have the same problem with the Wifi drop out. I used the RR custom roms and I have this too. Do you know what to do ?

thank you very much !
[OnePlus 7 Pro Guides, News, & Discussion] cd993:
Unfortunately I've no solution offer. The issue seems to only affect some people and therefore inconsistently. Strangely I had it on Havoc but not in RR. The only things I could possibly suggest is do the thorough clean flash (format data will full internal storage wipe) and if that doesn't work, try disabling data. Which is not ideal, but a workaround nonetheless. Also try make contact with your rom developers, but good luck!
[OnePlus 7 Pro Guides, News, & Discussion] Mash1ro:
I've been suffering from this issue on custom ROMs for a while now. Today I've tried my hardest to log it, and this is what I came across every time the connection dropped. Not sure if it's possible for the rom developers to change the threshold values, but if it is, it might fix these annoying drops. I've attached the log entry as well
[OnePlus 7 Pro Guides, News, & Discussion] Toutatis_:
You should post this in whatever ROM you're using thread, maybe the maintainer will investigate.

Do you still have drop with mobile data turned off? This workaround has been working fine for me on ResurrectionRemix and crDroid so far.
[OnePlus 7 Pro Guides, News, & Discussion] Mash1ro:
Yes, unfortunately I still have drops even with mobile data turned off. And no, no worries, I have direct contact with the developers of the rom I am using, just wanted to hopefully shed some more light on this issue.
[OnePlus 7 Pro Guides, News, & Discussion] Mash1ro:
I made a post on the RR thread and tagged the developer: https://xdaforums.com/showpost.php?p=82927337&postcount=1142

Let's see if he says anything
[OnePlus 7 Pro Guides, News, & Discussion] wcouri:
Having this issue on RR on my O7P. Was my first custom ROM on this phone and immediately noticed really bad WiFi performance compared to stock OOS. Going to just switch to 2.4ghz for now unfortunately since I get longer range in my house.
[OnePlus 7 Pro Guides, News, & Discussion] pratyush28:
Damn why so many OnePlus 7 series devices are affected by this bug? Could this be a firmware related thing which oneplus messes up after a major update?
[OnePlus 7 Pro Guides, News, & Discussion] hellcat50:
i do have this issue on ob16 too, and i always disable mobile data while using wifi
[OnePlus 7 Pro Guides, News, & Discussion] pratyush28:
I thought using SMT mode in msm tool fixed the drops for you, or was it fixed on your 3T? Why do I feel the wifi hardware on all oneplus devices after OP2 are faulty?:eek:

My oneplus 2 has better wifi signal strength compared to my 3T even when keeping both devices side by side i notice a ~10 dBm difference between both, op2 always being higher.

Nowadays i see many users posting on oneplus forums saying that they are unable to connect to 5ghz wifi some can't even see the 5ghz band in the wifi list. It's either the firmware or the wifi hardware that is faulty in the newer oneplus devices
[OnePlus 7 Pro Guides, News, & Discussion] hellcat50:
it was on my oneplus 3. on my oneplus 7 pro Oxygen OS Stable (10.0.6) is the only ROM apparently for me that doesn't have this issue
[OnePlus 7 Pro Guides, News, & Discussion] pratyush28:
Anyone tested wifi drops on Android 11 roms?
[OnePlus 7 Pro Guides, News, & Discussion] evgo1977:
Is this problem(poor wifi signal) persist yet in all custom roms ? Already one month from last post in this tread. Any news ?
[OnePlus 7 Pro Guides, News, & Discussion] pratyush28:
I recently tried an Android 11 custom rom and got the same problem sadly
[OnePlus 7 Pro Guides, News, & Discussion] imaGine00:
Quick question: if I'm running latest OOS but with a custom kernel, did I get the wifi drop-out issue ? Is it kernel related or something missing in the ROM of custom roms ?

Thank you in advance
[OnePlus 7 Pro Guides, News, & Discussion] Toutatis_:
I didn't have the issue back when I was on OOS + Smurf. I'd say that as long as you stick with OOS you're fine.

I'm on crDroid 7 (based on Android 11) and the issue is still there. But the workaround with mobile data disabled still works too.
[OnePlus 7 Pro Guides, News, & Discussion] T3sla:
As you say it's a combination of things, in my case my other phones, one tested with android 8 and 9 (mokee) and one running lineage nougat doesn't disconnect.My laptop never disconnects.My current phone running original firmware, Miui android 7 also does not disconnect but with every other custom rom from android 7 to 10 disconnects.Maybe it's a router - wifi driver problem as i guess custom roms use different driver.I'm far from calling myself an expert, just making some assumptions based on observations.The sure thing is that this problem is old, you can find multiple threads here on xda, on other forums, reddit etc. and so far remains a mystery.The general feeling i had all this time is like the problem is so hard to solve that devs don't even care to investigate or that the problem is anything but a custom rom problem, blame the router, the user, etc.

Just curious, which router and wifi repeater you' re using?
[OnePlus 7 Pro Guides, News, & Discussion] dwardo:
tplink archer c9v1 and tplink re450v1
[OnePlus 7 Pro Guides, News, & Discussion] T3sla:
If i am right our routers use Broadcom SoC, maybe irrelevant maybe not...
[OnePlus 7 Pro Guides, News, & Discussion] dwardo:
So I googled some more and found this reddit post which hinted at RDNSS RA (Router Advertisement) issues as the cause of the disconnections...

This actually made sense to me as the fe80::a in NeighborEvent{@40531564,RTM_NEWNEIGH,if=30,fe80::a,NUD_FAILED,[null]} is none other than the Link Local ipv6 of my ddwrt router's lan interface which serves as main dns server (with dnsmasq) to all lan hosts.

Furthermore fe80::a is only Advertized for RDNSS...

This is what the all hosts connected to the ddwrt router receive for RDNSS RA (obtained with radvdump)

RDNSS fe80::a
{
AdvRDNSSLifetime 86400;
}; # End of RDNSS definition

I didn't want to replace RDNSS RA with google's ipv6 (or equivalent as suggested by the reddit post) as that would not resolve my network dhcp hosts...

What I did instead is :

Setup dnsmasq on my openwrt wifi repeater (ULA ipv6 fddd::100) so that it only does forwarding to dnsmasq on my ddwrt router (ULA ipv6 fddd::a)

Configured odhcpd RA relay on the openwrt wifi repeater so that as it relays the ddwrt's router's RA it "on the fly" replaces the fe80::a RDNSS entry with its own ULA ipv6 fddd::100

So hosts behind the openwrt wifi repeater are now getting the RDNSS RA below instead of that above​

RDNSS fddd::100
{
AdvRDNSSLifetime 86400;
}; # End of RDNSS definition

And since I've done these 2 things It seems the wifi drop-out issue is gone (was getting it every minute before...).

Will report back if it comes back.

I'm guessing that by giving the openwrt wifi repeater as dns server to whatever is directly connected to it I've removed an extra hop (and latency ?) in checking availability of dns server that saves the day... For the rest it is functionnaly equivalent and all in all involved only modifying 4 lines of configuration files on the openwrt wifi repeater... If someone else has a better explanation of why this has worked I'm all ears !
[OnePlus 7 Pro Guides, News, & Discussion] dwardo:
Well happyness was short lived... All this has gotten rid of the NUD_FAILED... but wifi is still dropping out... (and on the Nexus 6 now too...)
[OnePlus 7 Pro Guides, News, & Discussion] T3sla:
I wonder why all this happens on LOS and custom roms in general and not on original rom, at least in my case.Can you report your findings on LOS?Unfortunately i'm running an unofficial LOS rom so i don't think i can file a report.
[OnePlus 7 Pro Guides, News, & Discussion] dwardo:
Well I have a workaround solution for now and have found that LOS17.1 doesn't like openwrt odhcpd relayed Router Advertizements... See https://forum.openwrt.org/t/odhcpd-relayed-ra-causing-wifi-drops-for-lineageos-17-1-phones/84879
[OnePlus 7 Pro Guides, News, & Discussion] Venom732:
I have that issue but my wi-fi signal is full. Its still disconnecting not stable. What should i do for fix this. What should i for clean install for this issue. Msm tool or fastboot rom? Help me please.
[OnePlus 7 Pro Guides, News, & Discussion] T3sla:
You didn't even read the last page did you?
[OnePlus 7 Pro Guides, News, & Discussion] Venom732:
I read first the last page but looks complicated for me, I dont understand codes or logs meanings. Also everyone facing with this issue on custom rom. I am facing this issue with stock OxygenOS.
[OnePlus 7 Pro Guides, News, & Discussion] T3sla:
Custom rom or not you have nothing to lose if you try.
[OnePlus 7 Pro Guides, News, & Discussion] Toutatis_:
Disabling mobile data when Wi-Fi is on (and vice versa) has been the only reliable workaround as far as I'm concerned. No more drops. Doing it manually with quick settings tiles is convenient, and you could also automate this with Tasker like I did.
[OnePlus 7 Pro Guides, News, & Discussion] Clyff:
So this might be helpful in some way because this is the issue I am having. I jave blissrom flashed on my Xperia XZ1 and wifi and signal works fine. It is only when I flashed gapps, is when the wifi problem starts. I have tested this multiple times and It seems to always persist like that. I am typing this right now on my phone without gapps installed. Could it be google services possibly causing the problem?
[OnePlus 7 Pro Guides, News, & Discussion] T3sla:
That's interesting, which version of gapps exactly did you flash? e.g. open gapps pico for android 10
[OnePlus 7 Pro Guides, News, & Discussion] Clyff:
Both 10 pico and nano. I never got to test 9 considering I couldn't get pie rom going.
[OnePlus 7 Pro Guides, News, & Discussion] T3sla:
I'll try to test this when i'll find some free time.
[OnePlus 7 Pro Guides, News, & Discussion] ItzJishu:
I toally agree with you on this but in my case its just the Android 11 roms like xtended 4.0 or xtended 5.0 or latest corvus 14.5 which show this problem. Any older roms on android 10 like corvus 5.5 , corvus 10.5, havoc os 3.7, nusantara 1 do not show this(personally tested all of them). I dont why but consistently this problem persists in Android 11. I liked roms like xtended 5.0 and the corvus 14.5 but now I cant use them.
[OnePlus 7 Pro Guides, News, & Discussion] HeroFromEarth:
Hi folks. Faced the same issue on my Xiaomi Redmi 4X with custom ROM (crDroid 7, Android 11). Still not sure about it but it seems that disabling VoLTE fixed the issue
[OnePlus 7 Pro Guides, News, & Discussion] Green Spider:
After almost 2 years the problem still persists the "weak or broken wifi signal".

Comes when we are tired of the stock rom and try a custom rom with a newer android version, new features & promising performance.

But back again when viewed in functionality, the stock rom is still better (all hardware works fine on the stock).

"So, the best rom is stock rom"

Maybe this can help https://code2care.org/pages/android-wifi-wpa2-wpa-connects-and-disconnects-issue

also connect your phone to wifi manualy.
[Treble-Enabled Device Questions and Answers] abbassbhai:
I need help in installing treble gsi on lava R5s play.

Phone supports treble with A/B partition

Arm 64.

Also require stock lava firmware to revert in case of bootloop.

Cannot find official firmware for lava R5s play.