[FIX]WiFi Fix

Search This thread

clewis

Senior Member
Apr 19, 2011
384
129
London
dlb-network.com
Seems this is not the magic fix i thought it was, battery drained a huge amount overnight in idle mode when i was asleep. Corresponds to roughly what other people said in other forums about battery draining at about 5% per hour in idle mode as opposed to 0.5% per hour at default setting.

Seems its more an issue of Sony having to optimise WIFI settings to work correctly as it's probably mostly at default Android settings currently (with some changes by Sony, but clearly not enough changes).

I could be wrong but i don't think its a software issue, i have had two sony phones and they both had poor wi-fi signal and range compared to other's like htc etc.

i just think sony uses poor wi-fi modules in xperia devices, because the same conversation was going on with my last xperia play and that never really got fixed.
 

bolzass

Member
Jan 9, 2008
17
6
Final WiFi fix

If you have a WiFi permanently disabled or very weak, try to do it:

  1. Open the file /system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini in text editor.
  2. Change the line gEnableBmps = 1 to gEnableBmps = 0
  3. Save and reboot

This increases the stability of the WiFi and fixes WiFi from regular stops.


Hi @ll!!. This is my own solution for fixing WiFi range, drops & performance. With these tweaks I have reduced at all drops, and increased the range and performance significantly (absolutely no battery drains...).

2 files:
  • /system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini
    You must change:
    gAPMacAddr=GET_FROM_YOUR_CONFIGFILE
    at line 76 by your proper value (see your original file)

  • /system/build.prop
    You must add this content to the end of your own build.prop
    net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960
    net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960

And then reboot & enjoy ;)

(Tested on .257, but should work in any 4.1.2)
 

Attachments

  • Improve-wiFi_XSP.zip
    3.3 KB · Views: 1,020
Last edited:

Pietertje_

Member
Apr 22, 2013
37
3
Hi @ll!!. This is my own solution for fixing WiFi range, drops & performance. With these tweaks I have reduced at all drops, and increased the range and performance significantly (absolutely no battery drains...).

2 files:
  • /system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini
    You must change: at line 76 by your proper value (see your original file)

  • /system/build.prop
    You must add this content to the end of your own build.prop

And then reboot & enjoy ;)

(Tested on .257, but should work in any 4.1.2)

Doesn't work for me.
Have you used it together with alivanov79 his fix?
 

bolzass

Member
Jan 9, 2008
17
6
Doesn't work for me.
Have you used it together with alivanov79 his fix?

Hi!, no, I don't use it with alivanov79 fix (I'm not confortable with battery drain).
If you use another fix, my suggestion is to use them or only use this changes or made tests... (I was reading a lot, getting helpfull info&solutions, tuning them and making T&T)...

Is strange if it does not make sense on you... Can you explain a bit more your scenario?

Some tips to take into account:
- Don't believe on status bar wifi bars
- I supose you checked your router:
- Channel not too much overlaped (use wifi analizer or similar). Change to an unused/more free one (not permit other channel overlap you with more power...)
- If your router is using HT-40 (20/40MHz channels), try to fix to 20MHz...

- Make test with some tool (file copying over local network instead: from desktop to mobile with ES explorer for example)
- Check that your mobile as no issues with resources (no free RAM/paging, local storage ko, CPU too busy,...)

- If you have other tweaks, coming from ICS, please forget them:
- build.prop... (tcp.xxxxx, etc.)
- init.d tweaks... (/sys/xxxxx, etc.)
- sysctl...(ip.xxxx, etc.)

-...

Just an over the fly numbers:
Before,
I got 1.5-1.7MBps file copy from my file server. Close to router.
Got some drops/cuts from the next side room to router 1 wall-5meters: 1.1-1.3MBps filecopy
Got a lot of disconnections/drops next in the terrace close to the above room: 500KBps-800KBps

After,
Got 2.35-2.52MBps close to router
Got 2.2-2.4MBps close to the next room. No drops
Got 1.9-2.1MBps in the terrace. No drops.

I also changed to 20MHz channels on the router.
 
Last edited:

Pietertje_

Member
Apr 22, 2013
37
3
I tried it with only your fix. I have tried the fix from alivanov79 before but it didn't work.

The first step is to change gAPMacAddr=GET_FROM_YOUR_CONFIGFILE.
I don't have GET_FROM_YOUR_CONFIGFILE. I have got some numbers in place, I geuss my MAC adress.

I have added the last two lines in build.prop

The router setting are set correctly and I don't have any apps running on SP.
 

bolzass

Member
Jan 9, 2008
17
6
I tried it with only your fix. I have tried the fix from alivanov79 before but it didn't work.

The first step is to change gAPMacAddr=GET_FROM_YOUR_CONFIGFILE.
I don't have GET_FROM_YOUR_CONFIGFILE. I have got some numbers in place, I geuss my MAC adress.

I have added the last two lines in build.prop

The router setting are set correctly and I don't have any apps running on SP.

Yes, 'GET...' must be changed with your MAC address.
In build prop, ensure you are using. Unix format and probably let an empty trailing line (I suggest usin notepad++).

If you pm me your original files I can do it for you.

What about router & channel?
 

Pietertje_

Member
Apr 22, 2013
37
3
The build.prop is done.
The mac adress that's in WCNSS_qcom_cfg.ini is different from the one i find in the settings/about phone/status.

Router is set to channel 11. 20Mhz. The router is still on wifi b/g/n because some devices in our house don't support wifi n network.
 

bolzass

Member
Jan 9, 2008
17
6
The build.prop is done.
The mac adress that's in WCNSS_qcom_cfg.ini is different from the one i find in the settings/about phone/status.

Router is set to channel 11. 20Mhz. The router is still on wifi b/g/n because some devices in our house don't support wifi n network.

Sorry, I underexplained it to you... Is the MAC address for your mobile when acting as AP (WiFi port on settings for sharing your connection).
Is not really important, just put a valid one (to ensure copy the same value from your original file).

About your channel, check interferences with WiFi analizer (https://play.google.com/store/apps/details?id=com.farproc.wifi.analyzer&hl=es) and choose one that as less interferences/overlaps.

If you fixed to 20MHz (recommended if you have old devices), you can also disable it on WCNSS_qcom_cfg.ini:
gChannelBondingMode5GHz=0

If you still continue experiencing problems, comment out this lines like:
#gVhtRxMCS=2
#gVhtTxMCS=2
 

bolzass

Member
Jan 9, 2008
17
6
Ok!. I will be out and not sure to see your replies. So pm me if you want I help you and will see later.
 

vickzkater

Senior Member
Mar 28, 2012
69
32
Jakarta
vickzkater.blogspot.com
I have another wifi problem:

I tried connect my SP to Wi-Fi, it's connected and has IP, but transfer data (internet) is not working. So I can't browsing anymore via wifi.
But when I connect my laptop to wifi, everything's okay. Internet is working.

So I think my SP has any Wifi problem. What do u think??
Could u give me some solutions?? Thx
 

Qdezi

Senior Member
Apr 24, 2012
119
84
Ho Chi Minh city
Battery super-drain

Did this trick and somehow it worked. But last night i forgot to turn Wifi connection off, after 8 hours I wake up and realize that my phone has only 47% battery left, compared to ~80% right before I fell asleep. This is terrible to me... :eek:
 
  • Like
Reactions: alivanov79

Pietertje_

Member
Apr 22, 2013
37
3
back to normal again.
fix was not working and huge battery drain.
4% per hour in standy.

Edit:
with default settings i have more wifi drops.
so the fix decreased the amount of drops but did not remove them completely.

Sent from my C5303 using xda app-developers app
 
Last edited:

Pietertje_

Member
Apr 22, 2013
37
3
I found in Xperia z forum that changing the last parameter (before end) to

ConnectivityThresholdDBM=-100

Works without battery drain.
I tried it on SP and haven't had any drop or drain since then. :)

Sent from my C5303 using xda app-developers app

I think this fixed it. 8 hours without wifi drop and no battery drain.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 34
    If you have a WiFi permanently disabled or very weak, try to do it:

    1. Open the file /system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini in text editor.
    2. Change the line gEnableBmps = 1 to gEnableBmps = 0
    3. Save and reboot

    This increases the stability of the WiFi and fixes WiFi from regular stops.
    4
    Final WiFi fix

    If you have a WiFi permanently disabled or very weak, try to do it:

    1. Open the file /system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini in text editor.
    2. Change the line gEnableBmps = 1 to gEnableBmps = 0
    3. Save and reboot

    This increases the stability of the WiFi and fixes WiFi from regular stops.


    Hi @ll!!. This is my own solution for fixing WiFi range, drops & performance. With these tweaks I have reduced at all drops, and increased the range and performance significantly (absolutely no battery drains...).

    2 files:
    • /system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini
      You must change:
      gAPMacAddr=GET_FROM_YOUR_CONFIGFILE
      at line 76 by your proper value (see your original file)

    • /system/build.prop
      You must add this content to the end of your own build.prop
      net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960
      net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960

    And then reboot & enjoy ;)

    (Tested on .257, but should work in any 4.1.2)
    4
    I found in Xperia z forum that changing the last parameter (before end) to

    ConnectivityThresholdDBM=-100

    Works without battery drain.
    I tried it on SP and haven't had any drop or drain since then. :)

    Sent from my C5303 using xda app-developers app
    2
    fix wifi resolved

    Please root your phone before edit

    Open the file /system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini in text editor

    Change ConnectivityThresholdDBM=-87 to ConnectivityThresholdDBM=-100

    reboot

    no problem about battery drain.

    my fw is 2.254
    1
    The file is read only.
    How can i edit and save it?

    Mount /sytem as rw in RootExplorer or in some others file managers that support root.