Potential slow WiFi speed fix

darkdragon88

Senior Member
Jan 1, 2012
62
28
0
Hi all,
Before I get started I will say that I just so happened to test this method out and it worked for my problem specifically so it may not be the all WiFi fixing source you are looking for. Second, I'm no developer or programmer, I simply found an old thread, tested, and wanted to share. Let's get started.
Symptoms:
My home internet is 150/150 Mbps download and upload speed. The 5 GHz network always had the full 150 download but upload would be around 5 or 6 (rarely 150) regardless if I forced the 5 GHz connection only. At work on 2.4 GHz I would have much poorer WiFi signal strength than my old OnePlus One. At home my 2.4 GHz connection was very much a hit or miss -I believe this is similar to what many others have felt and the recommended fix is to force the 2.4 GHz connection. An interesting tidbit is when I used my VPN (PIA) the upload speed jumped up to nearly full speed, which made me think this is not a hardware related issue.
Potential fix:
I dug up an old OnePlus 2 article on XDA located here (and specifically page 2): https://forum.xda-developers.com/oneplus-2/general/fix-wifi-mm-based-roms-t3344190/page2
I took the WCNSS.zip, unzipped the WCNSS_qcom_cfg.ini file and replaced the file in system\etc\wifi. Please make a backup of your original but you should also note you can easily re-install it. Also note that this requires root. After doing that I rebooted my phone and my connection speeds at home have been great. It's the weekend so I haven't tested signal strength at work but I know I can adjust the Txpower value slightly and hope it doesn't overheat.
If it matters I am also using the ElementalX kernel with the Westwood TCP congestion algorithm. I also changed the gChannelBondingMode24GHz=1 which is actually not included in Oxygen OS 4.5.5. FWIW I tried to add that line in to the original file and there was no change.

TL;DR Root required. Download OP2 WCNSS.zip from here: https://forum.xda-developers.com/oneplus-2/general/fix-wifi-mm-based-roms-t3344190/page2
Replace the WCNSS_qcom_cfg.ini file located in system\etc\wifi. Reboot.

My last words for this post is that I don't know what effect or effects this may have but I wanted to do something about this issue on my own. Not sure if this helps anyone or not but it helped me so I thought I would share.

EDIT:
I found that changing the two values located near the bottom of the WCNSS_qcom_cfg.ini file for the OP5's original data got me the same results:
TSOEnable=1 to 0 -this is the TCP Offload which seems to change large amounts of network data into smaller bits. This doesn't work for my network apparently so disabling it helped my speed.
gChannelBondingMode24GHz=1 -add this in for wideband support (ie your 2.4GHz network on 40Hz)
gEnableWoW=3 -this is "commented" out with #, so remove that and set this value to 3. This has worked for some for stability and speed.

gEnableIpTcpUdpChecksumOffload=1 *I had this value at 0 but there is no effect for me changing it to 0 so leave it at 1 (default).

Edit 2 (Aug 12): I see that Qualcomm provides the WiFi so I took the WiFi folder from an HTC U11. I still found my upload to be slow so I changed TSOEnable=0 again and so far things have been good -I changed no other values. The wpa_supplicant_overlay.conf and wpa_supplicant.conf are slightly different than the stock OnePlus 5 files so I would recommend replacing the entire folder's contents to test.
https://drive.google.com/open?id=0By0BkGnCgaRUWWo2Q283STJhQ0k I uploaded it here.

OxygenOS 4.5.10 - WiFi fix seems to be fixed! There was an IPv6 issue with Snapdragon 835 (or so I was told by OnePlus).
 
Last edited:

benc88

Senior Member
Mar 21, 2010
236
43
28
London
Hi all,
Before I get started I will say that I just so happened to test this method out and it worked for my problem specifically so it may not be the all WiFi fixing source you are looking for. Second, I'm no developer or programmer, I simply found an old thread, tested, and wanted to share. Let's get started.
Symptoms:
My home internet is 150/150 Mbps download and upload speed. The 5 GHz network always had the full 150 download but upload would be around 5 or 6 (rarely 150) regardless if I forced the 5 GHz connection only. At work on 2.4 GHz I would have much poorer WiFi signal strength than my old OnePlus One. At home my 2.4 GHz connection was very much a hit or miss -I believe this is similar to what many others have felt and the recommended fix is to force the 2.4 GHz connection. An interesting tidbit is when I used my VPN (PIA) the upload speed jumped up to nearly full speed, which made me think this is not a hardware related issue.
Potential fix:
I dug up an old OnePlus 2 article on XDA located here (and specifically page 2): https://forum.xda-developers.com/oneplus-2/general/fix-wifi-mm-based-roms-t3344190/page2
I took the WCNSS.zip, unzipped the WCNSS_qcom_cfg.ini file and replaced the file in system\etc\wifi. Please make a backup of your original but you should also note you can easily re-install it. Also note that this requires root. After doing that I rebooted my phone and my connection speeds at home have been great. It's the weekend so I haven't tested signal strength at work but I know I can adjust the Txpower value slightly and hope it doesn't overheat.
If it matters I am also using the ElementalX kernel with the Westwood TCP congestion algorithm. I also changed the gChannelBondingMode24GHz=1 which is actually not included in Oxygen OS 4.5.5. FWIW I tried to add that line in to the original file and there was no change.

TL;DR Root required. Download OP2 WCNSS.zip from here: https://forum.xda-developers.com/oneplus-2/general/fix-wifi-mm-based-roms-t3344190/page2
Replace the WCNSS_qcom_cfg.ini file located in system\etc\wifi. Reboot.

My last words for this post is that I don't know what effect or effects this may have but I wanted to do something about this issue on my own. Not sure if this helps anyone or not but it helped me so I thought I would share.

Keen to know what you've experience since changing
 

darkdragon88

Senior Member
Jan 1, 2012
62
28
0
Keen to know what you've experience since changing
I've spent the majority of my day trying to use the original OP5 WCNSS_qcom_cfg.ini and find out what made this work for me and I think I did. I put it in my first post but the main part is I think disabling gEnableIpTcpUdpChecksumOffload and TSOEnable helped me reach my speeds. Everything has been pretty good so far in terms of speed. I walked around to each corner of my house and had twitch streams going the entire time on 2.4GHz.

On my personal home network I find that going from one AP to another results in a slow transfer rate for a little bit. I think that is the gActiveMaxChannelTime value but I can live with that.
 

Binary Assault

Senior Member
May 25, 2016
396
89
28
Qualcomm released a new wifi driver recently. It's in the Revan kernel v15. I've personally never had issues with WiFi I, but I wonder if the new driver could help. Feel free to give the kernel a test drive.
 
  • Like
Reactions: darkdragon88

darkdragon88

Senior Member
Jan 1, 2012
62
28
0
Qualcomm released a new wifi driver recently. It's in the Revan kernel v15. I've personally never had issues with WiFi I, but I wonder if the new driver could help. Feel free to give the kernel a test drive.
If I could navigate that kernel sharing drive I would try it out for sure. I guess I'll hope OnePlus includes this in their next update.
 

darkdragon88

Senior Member
Jan 1, 2012
62
28
0
I haven't had any issues, my speed are over 100 on 5GHZ network:good:
Do you mean on actual speed tests, or is that the association rate? I associate at 866Mbps but this is about the max speed I can pull on a speed test:
Unless you two have tweaked your settings in a way that can help those who have had slow WiFi issues I would suggest taking your discussion elsewhere.
 

geoff5093

Senior Member
Jun 13, 2011
3,386
1,103
0
Unless you two have tweaked your settings in a way that can help those who have had slow WiFi issues I would suggest taking your discussion elsewhere.
Well I'm running ElementalX kernel. Its from people sharing experiences and what they're running that we can hopefully narrow down a fix.

Sent from my ONEPLUS A5000 using Tapatalk
 

geoff5093

Senior Member
Jun 13, 2011
3,386
1,103
0
It's actually speed!
That result was a bit lower than usual because i have more than 10 devices connect to the router and netflix pumping...
(I have 1GB internet connection)
Where is the server you connect to? It's extremely strange you get 1ms ping on wifi.

Sent from my ONEPLUS A5000 using Tapatalk
 

mikelsantanen

Member
Aug 14, 2016
25
6
0
Where is the server you connect to? It's extremely strange you get 1ms ping on wifi.

Sent from my ONEPLUS A5000 using Tapatalk
There is nothing strange... i connect to the server located in the same city and same internet provider.
It's a know fact that the internet connections in Finland are top-notch and the infrastruture over-dimensioned. Also, i have a good router.

Do you think i would even waste my time trying to forge the results??? I have more important things to do in life
 

geoff5093

Senior Member
Jun 13, 2011
3,386
1,103
0
There is nothing strange... i connect to the server located in the same city and same internet provider.
It's a know fact that the internet connections in Finland are top-notch and the infrastruture over-dimensioned. Also, i have a good router.

Do you think i would even waste my time trying to forge the results??? I have more important things to do in life
Lol it's about wifi in general, I've never seen that low latency even when pinging your WiFi router.

Sent from my ONEPLUS A5000 using Tapatalk