yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] TheFluffyOne:
Very true. I put up with about 7 months of my Nexus 4 being unable to have WiFi and Bluetooth enabled at the same time, to the point where, if I forgot to disable WiFi before using my BT headset, the Nexus BT stack would just die completely and need a reboot.

At least it seems possible for them to co-exist on the Nexus 5, but I've had this slow-down issue right from first getting the Nexus 4 back in Dec 2012 -- it became obvious when I was unable to stream HD trailers and YouTube videos without massive buffering. To see the same issue appear on the Nexus 5 as well is just... disappointing :(

For me, in every case I can just disable and re-enable WiFi using the quick-settings and speeds return to normal. Others in this thread have suggested that they need to do a full reboot to restore WiFi speed.

To diagnose this further, I suspect we need to be able to identify whatever it is that is triggering the slow-down. So far this has completely eluded me other than to see that it happens "some time" after WiFi is enabled.

---------- Post added at 04:47 PM ---------- Previous post was at 04:38 PM ----------

Just to summarise my environment:

Bluetooth: Disabled when the problem occurs.

GPS: Same setting when WiFi speed is both bad and good (battery saving setting).

Fix: Toggle WiFi fixes it every time. No need to reboot.

Router: N600 (WNDR3700), FW 1.0.16.98

WiFi config: 5GHz 802.11n channels 44+48 (have tried other channels -- same issue), up to 300Mbps, WPA2-PSK.
[Nexus 5 Q&A, Help & Troubleshooting] NCguy:
just out of curiosity, after you toggle wifi and return to normal do you have any additional impact from a wifi connection on your after-toggle, normal running connection?
[Nexus 5 Q&A, Help & Troubleshooting] TheFluffyOne:
Not sure I exactly understand, but I don't see any obvious impact on anything else after toggling WiFi. I should note that the vast majority of my usage is on WiFi, so I probably wouldn't notice if it affected my 3G connection, for example.
[Nexus 5 Q&A, Help & Troubleshooting] NCguy:
Sorry, I meant to say do you see any additional impact from toggling BT when running your wifi testing?
[Nexus 5 Q&A, Help & Troubleshooting] TheFluffyOne:
My internet connection seems a bit flaky at the moment (I imagine this is peak time, so probably a fair bit of contention going on), so these are a bit rough:

Using 5Ghz 802.11n:

Bluetooth off: 38Mbps DL / 7.9Mbps UL

Bluetooth on: 36Mbps DL / 8Mbps UL

Bluetooth active (music playing to headset): 36Mbps DL / 8Mbps UL

Using 2.4Ghz 802.11n:

Bluetooth off: 31Mbps DL / 10Mbps UL

Bluetooth on: 26Mbps DL / 10Mbps UL

Bluetooth active:16Mbps DL / 10Mbps UL

I repeated the tests a few times to get averaged values, so it looks as though actively using BT slows down the 2.4GHz WiFi connection by about 50% -- perhaps not exactly a massive surprise since they're sharing the available spectrum in that range. 5GHz WiFi doesn't seem to be affected, but again that's as one would expect.
[Nexus 5 Q&A, Help & Troubleshooting] t2002:
I have 2 access points. In a part of the house between the 2, If the wifi connection slows down, I can switch to the other AP. Download speeds then go back to normal. No need to reset wifi on the phone. This is with static IP set, so the connection change between the 2 APs is pretty much instant.
[Nexus 5 Q&A, Help & Troubleshooting] bblzd:
Might have something to do with the WiFi "always on" feature using it as your Location finder.
[Nexus 5 Q&A, Help & Troubleshooting] NCguy:
Thank you for those detailed tests. My APs are are only 2.4 and your BT degradation is consistent with mine at 2.4. I think it's safe to assume it's probably across the board on 2.4 with the N5's. I'm getting ready to order an R7000 and if the range is good enough I'll switch the phones to 5GHz. That may solve my issues although I'm still trying to determine if your issue may also be affecting me at times.
[Nexus 5 Q&A, Help & Troubleshooting] bynodeapps:
For me.. i think LTE is dropped too frequently for my liking...
[Nexus 5 Q&A, Help & Troubleshooting] terminal addict:
Well I'll be...

Same for me. I had to make sure I quit Speedtest completely, but sure enough..

GPS disabled: 1.37Mbps Down 2.73Mbps Up

GPS enabled: 19.13Mbps Down 10.08Mbps Up

Crazy...
[Nexus 5 Q&A, Help & Troubleshooting] RyYYZ:
As far as I can tell so far this problem only affects Speedtest. In fact, when I ran some other downloads at the same time Speedtest was slow with GPS turned off, they ran fine. And then Speedtest started running at full speed again without me re-enabling GPS.

There may be something more going on. At least we have one issue that is repeatable and independently reproduced.
[Nexus 5 Q&A, Help & Troubleshooting] thejordan:
Do you guys have your device set as a priority in your router config?

I have DD-WRT flashed to my router and heavily optimized.

I just ran similar tests with BT/GPS/etc and got within 0.8mbps of each other with all of them.

You either have interference (other devices) or a poorly config'd router.
[Nexus 5 Q&A, Help & Troubleshooting] jojoluton:
not slow here, check out these numbers!!!

View attachment 2401900
[Nexus 5 Q&A, Help & Troubleshooting] TheFluffyOne:
I think you've mistaken this for a ****-measuring thread. I don't see how that contributes anything to this discussion.
[Nexus 5 Q&A, Help & Troubleshooting] t2002:
You're my hero.
[Nexus 5 Q&A, Help & Troubleshooting] t2002:
Seems to be exactly the same problem as this:

https://code.google.com/p/android/issues/detail?id=40306
[Nexus 5 Q&A, Help & Troubleshooting] bblzd:
So is this just a problem with the Speed Test app and Battery Saving location mode?
[Nexus 5 Q&A, Help & Troubleshooting] t2002:
No!
[Nexus 5 Q&A, Help & Troubleshooting] f0000d:
Christ this really is infuriating. I've had the issue when connected to a friend's BT Home Hub too.
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
Same problem here.

I have TWO Nexus 5s. One seems to have the problem and the other not. After some time, download speeds over WiFi drop from 40mb/s to 1mb/s for no obvious reason. I spot it because YouTube just cannot stream videos any more.

The connection to WiFi router remains connected at high speed (50 to 70mb/s).

Both of my phones are using the 5GHz band.

I've tried with and without BT on. No difference.

I've tried Static and DHCP IPs. No difference.

I've tried limiting WiFi band to 5GHz only. No difference.

WiFi Optimisation is off. (EDIT: Also happens with it on. With on it vastly improves battery life by eliminating wifi_rx_wake wakelocks)

Scanning always available on.

Keep WiFi on during sleep is on.

Avoid poor connections is off.

Location mode has always been High Accuracy.

Both phones are rooted, but stock ROM.

I've ran a full Netalyzr test. No problems shown other sometimes DNS is reported as slow (900ms). But then everything is slow so I believe that's a red herring.

Both phones have the exact same WiFi, BT, and Location Settings.

WiFi was set up on both phones via Google account sync (different accounts on each phone).
[Nexus 5 Q&A, Help & Troubleshooting] t2002:
Are both phones on the same mobile network?
[Nexus 5 Q&A, Help & Troubleshooting] yogeshmha:
there is surely problem with wifi on this device..

the range when i used nexus 4 i used to get on my net gear router. i used to get easily to the second floor keeping the signal to one bar.

now on nexus 5 it doesnt even survive the stairs up the first floor.

there is surely some problem with the wifi ckt . have already erased the device twice. no charm.
[Nexus 5 Q&A, Help & Troubleshooting] LNJ:
Another thing to try is to disable QoS in your router.
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
One is on GiffGaff (the one that goes slow), the other Three.

I would try this, but both of my Nexus 5s are on the same router - yet one is fine and the other not.

Also tried since posting: Enabling WiFi Optimisation. This made no difference to the issue, but it did vastly improve battery life due to eliminating wifi_rx_wake wakelocks.

Tried using just 5GHz, just 2.4GHz (same router but different SIDs on different bands).

Tried completely different static IPs, just in case I had a clash somewhere. All my IPs are static. For reference DHCP doesn't fix it either.

I can't think of anything that's different on my two phones other than one is on GiffGaff (900MHz) and one is Three (1800MHz) - but why should that affect WiFi at all?

Verified that when it goes slow it's still actually using WiFi and not mobile data by verifying external IP address to be that of my broadband. Also "Avoid Poor Connections" is off. Also on the GiffGaff phone I only get 2g at home which is like 0.01mb/s. Speed test shows approximately 1mb/s when it goes slow, and 30-40 when it's fast.

I've double checked both phones have the exact same WiFi settings, both for the connection and in the global Advanced settings. Everything is exactly the same other than the IP address of course. I've tried toggling all of the settings and the problem persists.

Nearly all of the other settings on both phones are the same too. Different ringtones - that's about it. Both have High Accuracy location on (somebody said it was a GPS issue). Bluetooth is off (someone mentioned it interferes). Different apps on each phone too of course... but again... why would that make a difference?

I get the feeling it goes slow in the middle of a big download. For example, it happens right in the middle of a YouTube video, or a big app update from the Play Store. I don't recall ever picking up the phone and finding it already slow. This could be just coincidence of course. It's also possible both phones do have the problem, and I've just never noticed it on one, but given the frequency (i.e. several times a day) I notice it going slow I find this unlikely.

Feel free to fire questions at me - I appreciate I'm probably in a great position to test stuff given I have two N5s where one goes slow and one doesn't.

EDIT: Phone that works fine has developer mode on. Going to try activating that for the hell of it.
[Nexus 5 Q&A, Help & Troubleshooting] t2002:
Have you tried swapping sim cards?
[Nexus 5 Q&A, Help & Troubleshooting] meangreenie:
I bet it's the 2g or the sim.

I got the 0.7 Mbit problem every time I reboot or come out of airplane mode when it's been set a while. Turning wifi off for a few seconds and back on fixes it.

Have the problem on n4 on KitKat, now exactly the same on my n5? the n4 on all its jellybeans was previously fine.

I have both set to 2g, used the same ovivo sim.. can't be coincidence.
[Nexus 5 Q&A, Help & Troubleshooting] t2002:
I followed one of the tips on the Google forums regarding this problem on the N4, which was to delete "supl" from APN type under the APN settings.

This has made things much better, as in I can go hours without the speed dropping. However the slow down does occur still, the pattern of which I haven't figured out yet - I think it is still a problem on one of my access points but not the other. The problematic one is a BT homehub.
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
I don't have anything in the APN Type on the N5 that has the problem. But on the one that doesn't have the problem I have "default,supl,mms".

I'm currently testing adding "default,mms" to the one that was blank (the one with the WiFi problem).
[Nexus 5 Q&A, Help & Troubleshooting] trillyizzle:
work around

I had this same exact problem. The only work around I have found is to put your location settings to device only. The only draw back is some location stuff is affected on Google now.

I have many theories as to why only some people have this problem but nothing scientific.
[Nexus 5 Q&A, Help & Troubleshooting] Ady1976:
Interesting, i was having the same problem with my bt infinity connection and thought it was a new 5ghz router i got from bt that was causing the problem however it is working fine on my N7 2013 on 5ghz with kit kat however on my N5 i have to set the location mode to high accuracy or it drops speed after a while.
[Nexus 5 Q&A, Help & Troubleshooting] meangreenie:
Mine seems to be fixed by stopping 2g and WiFi starting up together. I just turned mobile data off to do this, and now for the first time ever since running KitKat on n4 or n5 my my WiFi turned on at full speed coming out from airplane mode overnight.
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
I find that really interesting. There is another difference between my two N5s. The N5 I have that works fine has a PIN on the SIM card. The N5 that has this randomly occurring slow wifi issue does not. Thus, the N5 that works is delayed in activating mobile data until I've entered my PIN. I wonder if that's a factor.

Still testing adding "default,mms" to the APN Type settings (i.e. leaving out supl). It's only been 12 hours so I'm hesitant to say it fixed it.

If the issue reoccurs I'll try adding a PIN.

I'd love to be able to swap SIMs on the phones to prove it's a SIM/mobile data related issue, but my better half (who uses the N5 with the issue) would die from text message withdrawal. :(
[Nexus 5 Q&A, Help & Troubleshooting] bblzd:
I was experiencing slow WiFi speeds until I stopped using my data connection at the same time.

To make it simple I set an automation (using Llama on stock myself) to switch Data on and off depending on my WiFi connection.

Attached speed tests results. Final one was with data off earlier ones were WiFi scores with data enabled. The result at the top was data only. Wifi optimization always on and don't mind my upload it tops at 1.
[Nexus 5 Q&A, Help & Troubleshooting] TheFluffyOne:
Both my Nexus 4 and Nexus 5 have a PIN enabled on the SIM, and they still exhibit the problem. Not saying it's not worth a try, but I'm not convinced that's a factor.
[Nexus 5 Q&A, Help & Troubleshooting] meangreenie:
I did set APN type to default,supl too after reading your post yesterday as mine was blank as well, so that might of fixed it.

I'll test again with mobile data turned back on tomorrow, see if I get full WiFi speed again when coming out of airplane mode. I'll post what happens.
[Nexus 5 Q&A, Help & Troubleshooting] NCguy:
What am I missing? I thought when you turned on wifi that itself disabled mobile data. Aren't they mutually exclusive?

Edit: on second thought, does it keep mobile data open for text messaging?
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
They are ALMOST mutually exclusive. Any existing connections on mobile data can remain on the the mobile data connection when you switch WiFi on - at least for a time that's for sure. For example, if you start downloading a file in Chrome on Mobile data, then switch WiFi on, you'll notice that the mobile data icon (e.g. H or G or 3G or whatever) does not turn off until the download has completed.

I know it's not using mobile data, because when it's slow and I check my external IP address, it is that of my home broadband not that of my mobile data connection.

That being said, there could be some routing issue involved and perhaps it's not cleanly switching between connections.

That being said again, the issue occurs after WiFi has been on for a while (e.g. in the middle of a YouTube video). So why would it suddenly get messed up by some mobile setting to an already established connection to YouTube?

I love the idea of automatically turning mobile data off when on WiFi. I might set up a Tasker profile to do that later if I still have problems. Currently, changing the APN Type is still under test. Still going fast. Still too soon to be sure though.

---------- Post added at 01:13 PM ---------- Previous post was at 01:08 PM ----------

I'm using "default,mms" at the moment. It was blank before.

Default means it'll use that APN as the first choice. It should only make a difference if you have multiple APNs. Confusingly, you can have more than one default too.

MMS means it'll use that APN for MMS messaging.

SUPL means it'll using the mobile network's location services. This is interesting because other people have claimed that changing the Location settings in Android can affect this issue. However, again, there are contradictions. Some people say turning on High Precision fixes it, but mine has always been on High. Some people say other Location settings fix it.
[Nexus 5 Q&A, Help & Troubleshooting] NCguy:
Doesn't it have to keep mobile data open for texting?
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
No. SMS go through the SMSC (Short Message Service Centre). It's basically send to a special phone number on the network that then routes the data to the target phone. You can send and receive SMS message with data and WiFi off.

However, you do need mobile data for MMS messages, if anyone still actually uses them?
[Nexus 5 Q&A, Help & Troubleshooting] ericjmense:
This is what worked for me.

I disabled back up in back up and restore settings

Did a complete factory restore and did not auto restore. Also I uncheck marked all options during the restore.

I did not install any apps or anything and the WiFi was still slowing down so I did 2 more things

First I went to advanced WiFi settings and unchecked all the boxes.. Second I went to the location settings and moved it to high accuracy and then turned off the location service

Last I powered down and back on

Some combination of what ever I did above worked for me. Its been good for 3 days now I'm installing my apps back one by one and checking and later I will change settings one by one and see if the problem comes back..... Hope this helps.
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
There's a known bug in Android (NOT this issue) that has been around for quite a while now, where sometimes WiFi credentials restored from older versions of Android via the cloud when you get a new phone can cause issues. If you're rooted you can just delete the WiFi config data file and add your WiFi details again and all is good.

I'll make a mental note to diff the wifi config file between the two phones to see if anything is different on them other than the IP address.

However, I suspect that is a different issue. Just to be certain we're talking about the same issue - do you have a perfectly working WiFi connection, that's fast (according to Speedtest it should be similar to your broadband speed, let's say 30mb/s), and then suddenly while using it it goes very slow and Speedtest reports something closer to 1mb/s rather than 30mb/s? Then disabling and enabling WiFi fixes it instantly... until it happens again an hour or 10 later. That's the issue described here anyway. I just want to be certain we're talking about the same thing before testing it.
[Nexus 5 Q&A, Help & Troubleshooting] meangreenie:
Yes that's my problem..keeps slowing to 1mbit or less and switching WiFi on and off again fixes it instantly.. Had this since KitKat on N4 and now on my new n5 too.

ATM, I'm still running with mobile data turned off and today it hasn't dropped a beat so far; even with multiple reboots.
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
I've never noticed it straight after a reboot - in fact a reboot seems to fix it for me (until I discovered turning WiFi on/off fixes it too). It seems to mostly happen for me while in the middle of using the phone (e.g. YouTube). A couple of times I've picked the phone up to find it was already slow.
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
Bad news... the APN Type settings of "default,mms" didn't work. The phone's WiFi went slow again just now.

I tried turning mobile data on/off a few times, but it didn't immediately fix it. Nor did toggling Location on/off. I figured I'd try it in case it fixed it immediately, as that would tell us something. In the end I had to toggle WiFi again.

I'm now testing mobile data off.
[Nexus 5 Q&A, Help & Troubleshooting] phobox360:
Seeing the same issue here on my stock rooted N5, wifi slows down after some time and toggling wifi on/off fixes it for a while until it happens again. However Im fairly convinced this is an android bug and not due to our phones because interestingly I noticed the exact same issue when I flashed a Jelly Bean 4.3 rom on my old Galaxy S3, so this doesnt seem limited to KitKat either.
[Nexus 5 Q&A, Help & Troubleshooting] meangreenie:
Well after a days testing, it seems fairly conclusive at least on my n4, when running kitkat, and on my n5. Is that having 2g selected in the mobile networks settings causes this problem when used on my network.

Setting 3g or turning mobile data off fixes it. Why this should be? I have no idea.
[Nexus 5 Q&A, Help & Troubleshooting] NCguy:
Mine appears to run slow now until I BOTH turn off BT AND toggle wifi. It seems that once BT has been on just turning BT off again won't fix it unless you also toggle wifi.

Mobile data for me seems to have no affect.
[Nexus 5 Q&A, Help & Troubleshooting] t2002:
Isn't 3 a 3G only network, therefore not using 2G unlike GiffGaff?
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
Yes - Three is 3G only. If you set it to 2G on the phone you lose all signal even in the middle of a city.

The 3G versus 2G thing is certainly a difference. As is 900MHz versus 1800MHz band (doubt that makes any difference here).

Still testing disabling mobile data...
[Nexus 5 Q&A, Help & Troubleshooting] ericjmense:
I had mine working but I started changing settings around and it stopped working correctly I moved all the settings back to where they were and it still didn't work so I did a complete reset again and made a new different Google account and it still have problems so I took out my sim card for 3 hours and work just fine until I put the sim card back in and now its starting to slowing down again.I will have to take out the sim for a longer peroid of time and see if it works fixes the slow down problem again
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
Thanks - that's much appreciated.

One problem we're all having is that it's so intermittent. I've gone two days without experiencing it before, so I'd like to see it not happen for a week or two to be sure it's fixed if we ever find a fix.

---------- Post added at 05:39 PM ---------- Previous post was at 05:34 PM ----------

Forgot to say, that means we can eliminate it being old WiFi credentials synced to a new device over the cloud, which is a cause of a similar issue.
[Nexus 5 Q&A, Help & Troubleshooting] LNJ:
Has anyone tried a new router?

I recently decided to buy an AC router since the N5 supports AC. So I picked up a D-link 850L and a 860L as well as a Netgear R6250 to test out and the N5 loves hanging on AC 5Ghz. No drop in speedy at all.

Maybe what most of you are encountering are hardware inconsistency. Common among network adapters of certain chipsets and certain routers...
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
It's not router related. I connect to the same router with both of my N5s. One has the problem and the other doesn't.
[Nexus 5 Q&A, Help & Troubleshooting] LNJ:
With my D-link 651 I fixed it by disabling QoS and disabling 20/40mhz coexistence. But no such issues with my AC routers.
[Nexus 5 Q&A, Help & Troubleshooting] extorian:
I already have those disabled. But I've also tried using 2.4GHz instead of 5GHz.

To be clear, the problem still persists on only ONE of my two Nexus 5 phones - both using the same router, same router settings, same location, same everything apart from a few minor differences discussed earlier (e.g. different mobile phone network).

We can safely eliminate anything that's the same on both phones, including all WiFi settings, all Advanced WiFi settings, all router settings, band used, etc.