yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] Globespy:
Hi Bruce,

When I say stock firmware I mean grabbing the nexus 4 toolkit (MrSkip) and following his guide to returning your phone back to COMPLETELY stock, using factory firmware builds (toolkit automatically downloads, extracts and installs) from Google - JDQ39 if you want 4.2.2 and actually want any chance of having a problem free 5ghz experience. The toolkit uses a process that flashes using fastboot, which will erase EVERYTHING from your phone (custom recovery, all storage data, previous ROM, kernels - EVERYTHING!! So do a backup of things you want to keep.

Of course if you have the pro version of the toolkit (donate minimum of 4 pounds sterling - 6 bucks), you can have 4.3 factory firmware, but that's the root of the problem. The free v7 will let you downgrade to 4.2.2 so no need to buy pro unless you want to support the developer.

If you still have some ability to connect to 5ghz bands right now, then there's a good chance you will be able to completely resolve your issue if you choose the 4.2.2 JDQ39 build - my original phone's issues were not resolved which is why I got a replacement device. Then just wait for Kit Kat to be released and wait a week or so to see if it's still causing issues with Wi-Fi. If not then update to 4.4, but I'm waiting at least 2 weeks before leaving 4.2.2 pure Google stock phone - no root, no changes at all.

Funnily enough stock 4.2.2 is much smoother than stock 4.3 - I got over 4.5 hours screen on time yesterday.

https://db.tt/8gcwLviC

https://db.tt/JJL9zCZ3
[Nexus 4 Android Development] bruce7373:
I wish had read your post a couple of hours ago. I inadvertently wiped my internal storage (dumb, dumb, dumb...don't ask). I already had the pro version of the toolkit (have it for N10 as well), so I figured since I cleaned house I might as well start fresh with stock 4.3. I flashed Kalo's ROM as I was going to try his Wi-Fi fix, but after booting I had no mobile connection and no APNs (I couldn't even create my T-Mobile one....it wouldn't save...don't know what's up with that).

So...back to the toolkit and stock. Fortunately I backed up my apps to Drive so I'm reinstalling now, but I think I'll take your advice and just go down to 4.2.2 and start over. I had a little bit of trouble with the kit though, getting stuck on the Google splash screen after rooting, probably neglected to do something, I dunno. It's been a fun afternoon. ;)

Do you think if I root with 4.2.2 it'll mess with Wi-Fi? I don't mind skipping the LTE hack, but can I live without root, lol? How soon before KitKat rolls out?
[Nexus 4 Android Development] Globespy:
I think flashing JDQ39 is s smart idea. Kit Kat is rumored to release OTA on Tuesday this week.

I'm leaving non rooted at least until I see how kit Kat performs.

Let me know if going back to stock 4.2.2 fixes your issue.
[Nexus 4 Android Development] bruce7373:
It helped a little, basically from 24Mbps to 52Mb (it hit 65Mb once but I was right next to the router). I read somewhere that 65 is the max for N4. Have you ever heard that?
[Nexus 4 Android Development] Globespy:
That's about as good as it gets. But you should find you 5hhz connection is much more stable.
[Nexus 4 Android Development] bruce7373:
Thanks. By the way, just curious, if I'm transferring files between the N10 and N4, do they both need to be on the same band for maximum speed?
[Nexus 4 Android Development] Globespy:
That's a good question!

It won't stop your file transfer being on separate bands, no.

I would pick the fastest most reliable band for your devices - usually the 5ghz is my choice as there are too many 2.4ghz bands in my neighborhood that interfere and inevitably slow down the speed.

I would try and see.
[Nexus 4 Android Development] fairyshacker:
will it work on latest cm 10.2 ?
[Nexus 4 Android Development] tupac4u:
Yes...Regards
[Nexus 4 Android Development] Sir_gpm:
Do web need to apply every time we flash new rom?.

Pd: I feel that my connection Wi-Fi or data runs really slow now.

Enviado desde mi Nexus 4 usando Tapatalk 4
[Nexus 4 Android Development] HeyyMyNameIs:
sorry but it did not work on mine =( running 4.3 stock rooted, i have not had a problem with my wifi speed ever since yesterday

---------- Post added at 01:30 AM ---------- Previous post was at 12:44 AM ----------

it did not work and it also made my phone dependent of the fix. When i apply the default settings, my phone is able to connect to the wifi network but no connection whatsoever, the signal thing on the notif bar is just grey too
[Nexus 4 Android Development] luiseteyo:
I am having this kind of issues in Kit Kat build so I did the same job as Kalo did (all credits go for him, not for me) for kit kat. I haven't been able to test wifi speeds yet, till I am in the office, but If someone want to test it, will be great.

[B]system/etc/wifi/WCNSS_qcom_cfg.ini
---# WiFi fix by kalo86
[COLOR="Lime"]gDataInactivityTimeout=200[/COLOR][/B]

Download​
[Nexus 4 Android Development] viamais.net:
I have a Nexus with Android 4.3 updated via OTA, can I use any of the files posted here earlier to solve the problem of wifi?
[Nexus 4 Android Development] Dark Emotion:
You can try and see if this works for you but you also need root permissions.
[Nexus 4 Android Development] leju29:
I'm on this 4.4 ROM for a week http://xdaforums.com/showthread.php?t=2507021 and have very slow wifi conexion, I try to edit system/etc/wifi/WCNSS_qcom_cfg.ini and write this : gDataInactivityTimeout=200 but it solve nothing.

Here a picture to show the difference between my N4 and my old SGS I9000

Any idea ? :(
[Nexus 4 Android Development] :
This worked wonderfully for my phone, running stock 4.4 KRT16S.

Thanks a lot!
[Nexus 4 Android Development] luiseteyo:
Thank you for reporting! :)
[Nexus 4 Android Development] jpirog:
I'm stuck in a boot loop now, do you have a flashable zip to revert this?
[Nexus 4 Android Development] bombadier:
If you have access to a computer you could always make a copy of the zip and replace with the original,although do not know why flashing that has resulted in a bootloop?
[Nexus 4 Android Development] jpirog:
You got me, this was pretty much a fresh install (as of last night) and this was the only thing I flashed as of a few minutes ago.

Clearly this broke it.
[Nexus 4 Android Development] :
they are in the OP.

But seriously, how can changing 1 line in your WIFI SETTINGS cause a bootloop??? :^)
[Nexus 4 Android Development] jpirog:
OP has 4.3 not 4.4
[Nexus 4 Android Development] leandronb:
i want to know if this fix can help me increase my download speed. looks like my speed is limited to 400KBps. even in speedtest app. i checked my router settings and there is no qos or another limiter enabled. i have a 20mbps connection and in my pc is very fast to watch youtube in 1080p without buffer, but in my phone i cant watch in hd, because speed varies between 200~400KBps, even in front of the router. i changed my router recently but didnt solve the problem, and tried 5ghz band too.

my nexus 4 is in 4.4 stock rooted.
[Nexus 4 Android Development] ilemur:
Can somebody please upload a flashable zip with default WCNSS_qcom_cfg.ini file for 4.3 JWR66Y?

I flashed the Nexus4_default_wifi_settings_AOSP-4.3.zip from this topic but still do not manage to push the OTA update to 4.4 as it is complaining on the WCNSS_qcom_cfg.ini having "unexpected content"
[Nexus 4 Android Development] kalo86:
First post updated for the new Android KitKat release.

Minor version will not be supported because Android 4.4 KitKat is much better than Android 4.1 - 4.2 - 4.3 Jelly Bean.

Regards,

kalo86
[Nexus 4 Android Development] rwaempires:
Just flash on top of Nexus 5 port ( odexed )....no problem on booting up....
[Nexus 4 Android Development] ilemur:
Actually now i'm quite confused. The WCNSS_qcom_cfg.ini file contains a mac address so i wonder how can i restore it back for the OTA via custom recovery to succeed. Any help appreciated
[Nexus 4 Android Development] CoolApps:
The actual Mac address file is in /persist/WiFi/.macaddr

I would replace the mac address in that .ini file and then change it with the one that shows in that Mac address file.
[Nexus 4 Android Development] Akoolive:
Can someone post the 4.3 WiFi fix? I accidentally deleted it

sent from my nexus⁴
[Nexus 4 Android Development] cjunk:
Don't need the zip. I used this for stock 4.2 & 4.3. I had to use it for CM 4.2, but not 4.3. I keep it in my ColorNote so I can paste in in if needed after flashing.
[Nexus 4 Android Development] rofik_gitara:
get in my dropbox dude

hope help you

:laugh:
[Nexus 4 Android Development] bmakk2055:
So this is for stock rom 4.4?
[Nexus 4 Android Development] justin6b37:
Can I flash this on stock 4.3?
[Nexus 4 Android Development] Razer(x):
It should be added back to 1st page together with 4.4 version
[Nexus 4 Android Development] iBustCh3rries:
Out of curiosity... Will this work for the N5?
[Nexus 4 Android Development] iowabeakster:
I updated to 4.4 yesterday (nexus 5 experience CM version). And I started having problems with my WIFI constantly disconnecting/reconnecting. I never had any issues before (used old and hybrid version radios for LTE).

I use 5ghz at my house.

It was very noticeable playing my time-waster game CLash of Clans, which needs a connection or the game stops. It was several times per minute. And like I said, I never had problems before (I jumped from 4.2 straight to 4.4).

So I gave the 4.4 wifi fix a shot.

I tried a download on my LAN, before and after (as my Internet is capped at 16 Mbps, so it's not really much of a test to measure internet speed). It was slightly faster (about 5%). But that's not all that much.

But the good news is that I played the game for 10 minutes or so. It did not drop one single time. It's still fairly early to tell, but I think it works great. Before that flash, it would have dropped/reconnected more than a dozen times in that amount of time. I will report back if anything changes. But for now, you can mark me down as a success story.

Thanks.

EDIT-- A few more hours of time has revealed that his did not solve my issue. My problem is probably ROM related as it has only showed up since flashing a new one yesterday, and I had no problems prior (as long as I wasn't using a radio that borked 5ghz).

Thanks again for the effort anyway. I am off to play some more with router settings to see if that might help.
[Nexus 4 Android Development] TheLawIX:
Really quick now!!
[Nexus 4 Android Development] areyie9292:
yeahh, my wifi become faster.. :victory:
[Nexus 4 Android Development] spike378:
PA 3.99

After 4.3 fix = gdatainactivity... it was around 1-2mbs faster from 24-to now 25-26mbs on wifi. Transfering file to my server gain 0.14mb faster of 1.6 to now 1.74ish.

Probably didnt work at all but numbers did improve.
[Nexus 4 Android Development] Italico:
Flashed te OP zip on SlimKat Beta 1.7, not so different browser experience but now videos plays well even in HD (before was all choppy and buffering).

So thank You very much!
[Nexus 4 Android Development] Sir_gpm:
Will this fix works in cm 10.2?

Enviado desde mi Nexus 4 usando Tapatalk 4
[Nexus 4 Android Development] chok_thewa:
I fixed ip address instead of get from dhcp server, after that I never face this issue
[Nexus 4 Android Development] Abd121:
The is WiFi fix....

Not a LAN upgrader!!!
[Nexus 4 Android Development] cobhc:
He means it allowed him to connect at a higher rate, not his internet speed has increased...
[Nexus 4 Android Development] wollac11:
Fixed the issue I was having whereby the speed on WiFi decreased massively after a few minutes of being connected to a WiFi network. The speed would then be brought back to full if I disconnected and reconnected by turning wifi on and off but again.

After the patch the speed is not reduced at all so far and I'm over 1 and half hours since connecting. Thanks a bunch!

Edit: things seem to have gone back the way they were :(
[Nexus 4 Android Development] apelael:
Thanks a lot! Solved all my problems!

Went from 2-3mb to 20-25mb.

Probably Ill get even better results as soon as I configure my router properly.

I'm not kidding, I spent the past few days doping every kind of ttests and your zip did a great job.
[Nexus 4 Android Development] atxbang56:
Does anybody have the fix for 4.2.2 please

*** KitKated from my Nexus 4 ***
[Nexus 4 Android Development] wulsic:
you can try to flash it on 4.2.2 but i consider that you go to your etc/wifi folder and open the cfg file and open zip and compare what is missing and what is not so you can add it with root.

check this out also.

http://xdaforums.com/showthread.php?t=2072930
[Nexus 4 Android Development] pcs333:
Works fine for me on 4.4.2 ;)

My wifi speeds go from around 2Mbps to 25Mbsp. I also get a much more stable connection

oops

just realised you require it for 4.2.2
[Nexus 4 Android Development] cjunk:


---------- Post added at 07:40 PM ---------- Previous post was at 07:39 PM ----------

This should work with 4.2 also
[Nexus 4 Android Development] gm.cinalli:
That fix solved my YouTube video blocks. I'm on 4.4.2 stock + Franco Kernel #203. Thanks! :good:
[Nexus 4 Android Development] alan-31:
I came here after searching for this and I installed the zip and I do feel its better but time will tell. I felt the Youtube app was working faster and no loading problem as well. I will report back if I feel it works.

Its sad how they cant test basic functionalists successfully before making these products and you have to install a flash zip to fix something that should be working by default.

AOKP rom + stock kernel (for me, franco kernel 203 causes reboots every now and then - too bad because it does make the phone faster)

I even feel the Reddit app ('reddit is fun') is fetching images much faster. BIG difference as far as I can see for now.

I'll report if there's battery problems. So far so good.
[Nexus 4 Android Development] temo2k:
I have DD-WRT so it's easy for me to compare performance, and it looks like there's a slight (~7mbps) drop when I flash these over the stock settings.
[Nexus 4 Android Development] taodan:
DD-WRT is software for router. Which router do you currently use? And do you use openDNS in your router? If no, then you might want to try openDNS and you will see how fast it is.
[Nexus 4 Android Development] temo2k:
It's a DIR-615, but I just meant with DD-WRT it's easy to see what speed the devices are synchronizing at, the transfer/receiving rate, signal quality, etc. I decided to be slightly more scientific today and test the actual throughput and ping. After comparing them many times I can't really say one is significantly better than the other. The ~7mbps drop when it initially synced (that I noticed yesterday) went away once the phone settled after booting. Actually, if I had to pick one I would say the wifi fix maybe gave slightly better performance at best, and no difference at worst.
[Nexus 4 Android Development] todorcim:
Anyone try this on the nexus 5 port? Would it work?
[Nexus 4 Android Development] alan-31:
At least the AOKP rom people have included this fix (but it hasnt been merged yet - Edit: now merged, nice):

# WiFi fix by kalo86

gDataInactivityTimeout=200

Same as:

http://gerrit.aokp.co/#/c/16253/1/WCNSS_qcom_cfg.ini
[Nexus 4 Android Development] omer7:
Hi,

If we change "Beacon Interval" value to 20ms (lowest in my Linksys router), will it let our phone go to deep sleep? (Sorry if it's a stupid question :D). Or even if phone goes to deep sleep, won't these lowest value make our phone consume more battery?

Thanks :)
[Nexus 4 Android Development] darthaled:
Worked for me :D Thank you!!
[Nexus 4 Android Development] :
Hi. I have a problem with newer 4.4.2 roms. When I flash the fix, wifi doesn't connect with my modem and after 30 seconds it connects but without a working internet connection (internet doesn't work)... please help... without fix, wifi connects in an instant but internet is for a lot of time on 20-40kb/s and sometimes (after one or two minutes) wifi speed is up to 650kb/s...
[Nexus 4 Android Development] ErwinP:
Dear kalo86

As this fix solved the Wifi issues I was having with my D-Link DIR-655 (Hardware Version: C1, Firmware Version: 3.00) on CyanogenMod 11.0 Nightly 20140427, I added it for review on gerrit. If you want me to change anything on the commit message, please do not hesitate in letting me know!

This solves the fact that I was unable to browse and connect to the internet, despite having a full-bars wifi connection and the wifi tile not being oranged out. Furthermore, I can now use Google Music with my chromecast - previously, the chromecast acted like it waited for the next song, while I was playing from a playlist. Finally, I can now also keep on using Google Now voice commands, which was impossible before applying this fix.

Thus in short: thank you!
[Nexus 4 Android Development] mitsos1996:
Nexus4_wifi_solution_by_kalo86_AOSP-4.4.zip i used this , the situation is better but is still lagging. Should i install the default settings?
[Nexus 4 Android Development] mitsos1996:
Actually it's not working,at first it worked then it stopped.I installed the default settings but still the same.Although, my network connection is ok and my pc is connecting to the internet just fine.
[Nexus 4 Android Development] republicano:
#EDIT#

4.4.3 update wifi speed was fixed after a couple of reboots, 5ghz now at 10-12MBs, no patch required

Anyone knows how to increase bandwidth on 5ghz network?, this patched worked on android 4.3 but I haven't managed to improve 5ghz speeds since 4.3

On my local server, 2.4ghz @ 6MBs, 5ghz @ 10-12MBs with 4.3 patch, nexus 7 2013 is the same unpatched and I'm sure they have the same wifi hardware.

With and without the patch the nexus4 speeds are the same so 5ghz is capped at 6MBs.

So far I'm looking in the .ini file to see if I can increase speed ( don't mind battery drain), I don't know if txpower is responsible.
[Nexus 4 Android Development] wheeqo:
I want to upgrade to 4.4.3, I have flash the default wifi settings, but when I sideload the 4.4.3 update it failed --> "/system/etc/wifi/WCNSS_qcom_cfg.ini" has unexpected contents. How to fix it?

Can anyone give the default file WCNSS_qcom_cfg.ini for 4.4.2?
[Nexus 4 Android Development] spider623:
no need, the wifi issues with the slowness are now fixed in the new radio, enjoy the speed!
[Nexus 4 Android Development] wheeqo:
I got solution: flash system.img from 4.4.2 image then flash the OTA 4.4.3 file.
[Nexus 4 Android Development] fastestrunner:
I flashed cyanogen mod 4.3.1 (jb) but wifi didnt connected. Please help!! :)
[Nexus 4 Android Development] villazzo:
I am on 4.4.3 but wifi is slower than 4.4.2 is there any solution?

Nexus 4 cihazımdan Tapatalk kullanılarak gönderildi
[Nexus 4 Android Development] spider623:
Check if you have Westwood in the kernel you are using, charge to any and set it back to Westwood, set it to apply on boot, avoid the kernel fix and use a 4.4.3/4 kernel
[Nexus 4 Android Development] villazzo:
Thank you for reply. I did everything you said but nothing changed its still slow. I flashed factory image and radio twice but its not solved.

Edit: solved. Just a modem problem.

Nexus 4 cihazımdan Tapatalk kullanılarak gönderildi
[Nexus 4 Android Development] dougiefresh36:
Anyone know if this WiFi fix is needed on stock 4.4.4?

Thank you ?
[Nexus 4 Android Development] The Zel:
Do you feel that your wifi connection is slow with your nexus conpared to other devices? I'm on 4.4.4 and I personally don't have any issues with the speed

N⁴
[Nexus 4 Android Development] ashhanlove:
Dirty Unicorn - Does it work

Hi anyone knows if it works wit Dirty Unicorn rom?
[Nexus 4 Android Development] dougiefresh36:
^^ mmm not really.
[Nexus 4 Android Development] gabriel1946:
i know this thread is old, but im having some serious problems with wifi.. on both 5.0 and 4.4.4 wifi remains connected but if im tethering or browsing on my phone ill constantly get dead spots and offline pages, than 2-5 mins later sometimes longer ill have full connection.. Im within 10 ft to my router and my brother who is further than i am is not having any problems.. im curious does this fix still work or is there a more current fix?? or does anyone have a solution i'd be very much grateful.. ty

also ive tried radios .98-.104 on both kk and 5.0 nothing really seemed to change
[Nexus 4 Android Development] butthurtlocker:
Need wifi help on 5.0

Hello! I am wondering if this fix will work on Android 5.0.1 My wifi is dreadfully slow, taking 20 minutes to download a 7MB file. Took about 30 minutes to update Google Text-To-Speech, Youtube, Gmail and Maps. Have no idea what to do ! ANy response would be greatly apreciated

Thanks
[Nexus 4 Android Development] yethz:
Whats your download speed in your PC with a direct connection to a router via cable?

You may check your internet speed, Android 5.x.x Stock setup doesnt have wifi speed issues on me..

Maybe your internet is the problem.. Like, unstable connectivity that can cause bad internet speed..

__________________________________________________

Device: Google Nexus 4 (LG-E960) 16GB (MAKO)

ROM: SimpleAOSP-L-ROM (Stable Build 7)

Kernel: Stuxnet v4.5 (3.4.105)

Gapps: PA-Gapps-5.0.1-BETA4 (MINI)

_________________________________________________
[Nexus 4 Android Development] deryalex96:
Hello,

I recommend this flashable zip to all users, who messed up the WiFi of Nexus 4 with MAC change.

(Do not use Change My MAC - Spoof Wifi MAC and Wifi Mac Changer, they will mess up your Nexus 4's WiFi!)

I tried to change MAC on rooted Lineage 14.1 just for fun. The mentioned apps changed just the second half of the MAC Address.

The first 6 character of MAC is Vendor (10:68:3f in my case (LgEletr)). This vendor became 00:00:00, and after this, I could only change the second half of the MAC.

Wifi worked with some of the new MACs, but first part remained to be 00:00:00. In some cases it could be a problem, some routers have mac address filter, and do not allow to access internet, because it cannot be an entirely random number.

I tried to copy/paste the files in etc/wifi from another Nexus 4, but it did not worked.

Flash original google firmwares and factory reset did not work.

However what worked is:

TWRP recovery, Rooted phone, Root Browser (ES File Explorer is not good here, because somehow it cannot see the content of some root folders.)

Navigate to

persist/wifi/.macaddr

I opened it, and it showed something weird: ??????XXXXXX Vendor number was not in a readable format, but the X letters showed the second half of my MAC properly.

I deleted this file, and then I made a new file, named it .macaddr

Enter Your (original) MAC address into it in XXXXXXXXXXXX format.

Save it.

I do not know adb, busybox, command line well, because I am not a programmer at all, so do let's it the easiest way.

In Root Browser set these permissions:

to persist/wifi directory: for everybody: execute and read

In Root Browser set the ownership:

to .macaddr:

Owner 1010: wifi

Group 1010: wifi

In Root Browser set these permissions:

to .macaddr:

Owner: read and write

Group: read and write

(so it is 0660 or -rw-rw----)

After these, I rebooted into recovery via adb (SkipSoft Android Toolkit - very very useful)

So, after making .macaddr file, immediately reboot into TWRP recovery.

Flash Nexus4_wifi_solution_by_kalo86_AOSP-4.4.zip from the #1 post in this thread.

Voila, now You have Your original MAC, and a working wireless internet access.

(Just changing .macaddr without flashing this zip made WiFi not to turn on, and stuck in Turning on Wifi... state.

I knew my original MAC from my Router's statistics.

There is no efs folder in Nexus4.)

I hope this helped somebody

Sorry for my lower-intermediate English

Thank You
[MENTION=5210194]bandit97[/MENTION]

https://xdaforums.com/showpost.php?p=47505090&postcount=3

SkipSoft Android Toolkit

TWRP