PDA

View Full Version : [FIX] Wifi dropping on Gingerbread Sense ROMs


gtg465x
1st May 2011, 07:17 AM
Removed. snq- will provide a new fix soon that should be more kosher than my workaround. Looks like the proper fix needs to be built into kernels.

capychimp
1st May 2011, 07:18 AM
A lot of people have been asking me for this so hopefully this will satisfy everyone.

If you don't already know, HTC programmed their Gingerbread ROMs to drop wifi connections if the signal falls below -88dBm. I'm not sure why they did that because -88dBm is a perfectly usable signal. With this fix, your wifi connection won't drop until the signal falls below -108dBm.

Select the correct version for your ROM and flash through Clockwork Recovery.


If you appreciate my work, donations of any amount are very much appreciated.
http://img217.imageshack.us/img217/2833/paypaldonatebutton.gif (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SJBLXAHPHVYQJ)
thx man nice to put it in a thread for all

shree.cse
1st May 2011, 07:22 AM
A lot of people have been asking me for this so hopefully this will satisfy everyone.

If you don't already know, HTC programmed their Gingerbread ROMs to drop wifi connections if the signal falls below -88dBm. I'm not sure why they did that because -88dBm is a perfectly usable signal. With this fix, your wifi connection won't drop until the signal falls below -108dBm.

Select the correct version for your ROM and flash through Clockwork Recovery.


If you appreciate my work, donations of any amount are very much appreciated.
http://img217.imageshack.us/img217/2833/paypaldonatebutton.gif (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SJBLXAHPHVYQJ)
Fixes rolling out like pearls. Developers in this section are very fast
Thank you!

eliashadow
1st May 2011, 07:22 AM
U are the man!!!Thanks a lot!!!And i was looking around about that!!!

VrxZroX
1st May 2011, 07:43 AM
Tq Buddy ~ i need it so much =)

lampz
1st May 2011, 09:12 AM
Is cyanogen 2.31 right?

Sent from my Desire HD using Tapatalk

m-deejay
1st May 2011, 09:14 AM
thanks man :)
already included in my ROM :)

gtg465x
1st May 2011, 09:21 AM
Is cyanogen 2.31 right?

Sent from my Desire HD using Tapatalk

I changed the title of the thread just for you. :)

capychimp
1st May 2011, 09:22 AM
LOL 10char

maple85
1st May 2011, 09:24 AM
One question... If the Rom gets an update (Base Is the same) have we to reflash this fix after update right?

capychimp
1st May 2011, 09:31 AM
One question... If the Rom gets an update (Base Is the same) have we to reflash this fix after update right?
well if the framework.jar changes yes

but m-deejay and i are both including this m-deejay already did, i do on next release

gtg465x
1st May 2011, 09:32 AM
One question... If the Rom gets an update (Base Is the same) have we to reflash this fix after update right?

Probably not. I'm sure ROM devs will include this in any new releases from here on out.

lampz
1st May 2011, 09:33 AM
Gb sense rom.
Errr hehe thanks dude.. so this cnt be use for cm7.. thanks

Sent from my Desire HD using Tapatalk

gtg465x
1st May 2011, 09:34 AM
Gb sense rom.
Errr hehe thanks dude.. so this cnt be use for cm7.. thanks

Sent from my Desire HD using Tapatalk

Lol, no problem. Don't worry, CM7 doesn't have the problem. No fix required for it.

LINKSLOVESANDROID
1st May 2011, 09:50 AM
is this a issue on rcmixhd 6.0.0.1? im watching netflix over wifi and on my xbox and downloading shadow guardian hd from gameloft and its taking 4ever

gtg465x
1st May 2011, 09:52 AM
is this a issue on rcmixhd 6.0.0.1? im watching netflix over wifi and on my xbox and downloading shadow guardian hd from gameloft and its taking 4ever

It's not gonna help you with speed. Just with drops.

LINKSLOVESANDROID
1st May 2011, 10:03 AM
It's not gonna help you with speed. Just with drops.

ye i know that much but is it possible that its dropping while its downloading and thats y its taking so long? i have the most expensive internet in my area and never seen it take this long to dl a 250 mb file

amm009uk
1st May 2011, 10:05 AM
I can tell you I've been thinking something is wrong for weeks didn't realise it was caused by me moving to GB. This fix works 100% I'm back on wireless where I get a real weak signal in the office.

Thanks man!!!!:D

gtg465x
1st May 2011, 10:14 AM
I can tell you I've been thinking something is wrong for weeks didn't realise it was caused by me moving to GB. This fix works 100% I'm back on wireless where I get a real weak signal in the office.

Thanks man!!!!:D

I noticed it immediately when I first flashed a Gingerbread Sense ROM a few weeks ago. My router is in my basement so wifi was practically unusable in some areas of my house. I spent a whole day researching, looking through code, and trying everything under the sun (including changing settings on my router lol) just to get this fixed. I've actually had the fix for a couple weeks now but just recently realized that all Gingerbread Sense ROMs have the issue.

gtg465x
1st May 2011, 10:18 AM
ye i know that much but is it possible that its dropping while its downloading and thats y its taking so long? i have the most expensive internet in my area and never seen it take this long to dl a 250 mb file

You tell me. If it drops you'll see the wifi indicator go away and the 3G/H data indicator pop up.

mike1986.
1st May 2011, 10:47 AM
Damn now every mod with no-wifi-tweaked framework.jar will revert to bad wifi signal. I hate the way Android can me modded...

Baarf
1st May 2011, 11:19 AM
Thanks man, it's works great ! :)

preacher65
1st May 2011, 11:36 AM
Edit: Wrong thread! Sorry. :o

Thanks for this fix, very useful.

Euphorie
1st May 2011, 11:53 AM
Damn now every mod with no-wifi-tweaked framework.jar will revert to bad wifi signal. I hate the way Android can me modded...
That sounds not good :/

tmh
1st May 2011, 12:07 PM
Damn now every mod with no-wifi-tweaked framework.jar will revert to bad wifi signal. I hate the way Android can me modded...

Just curious here, but what kind of mods include framework.jar? I mean, battery mods etc. include framework.res-apk, I know that, but never heard of anything with framework.jar in it?

preacher65
1st May 2011, 12:34 PM
Just curious here, but what kind of mods include framework.jar? I mean, battery mods etc. include framework.res-apk, I know that, but never heard of anything with framework.jar in it?
I think RTL language mods use it.

jerrylzy
2nd May 2011, 11:31 AM
Useful..Thanks....And who can explain that why i connect to a wifi router successfully but i can't access internet but itouch can?

gtg465x
2nd May 2011, 11:48 AM
Useful..Thanks....And who can explain that why i connect to a wifi router successfully but i can't access internet but itouch can?

Peter Pan can explain.

henv
2nd May 2011, 02:39 PM
Useful..Thanks....And who can explain that why i connect to a wifi router successfully but i can't access internet but itouch can?

Do you use mac filtering on router? That could be a reason.

Sent from my Desire HD

CdTDroiD
3rd May 2011, 10:17 AM
Just double checking... I should be able to flash this with the HTC Desire (not HD) with the iNsertCoin Gingersense ROM, it has the ACE S 2.36.8 base

EDIT: flag that lol, dosent work... still drops at -88

L-ViZ
3rd May 2011, 05:31 PM
Made my day, thx a lot :-)

Sent from my Desire HD using XDA App

jwzg
4th May 2011, 02:24 PM
What are the exact changes made using this .zip?

mcreego
4th May 2011, 02:41 PM
Thank You Sir, I just came from the Sgs and in the same spot wifi signal of Desire Hd keeps disconnecting. Now all problems are solved. You are genious!:):)

sergiu_07_07
4th May 2011, 08:05 PM
how can I install ?Do I need root?

tmh
4th May 2011, 08:15 PM
how can I install ?Do I need root?

Root, S-Off and ClockWorkMod recovery yeah :)

Vilem
4th May 2011, 09:49 PM
Thank you very much, I was already thinking about going back to 2.2.

Sent from my Desire HD using XDA App

snq-
6th May 2011, 09:42 PM
If you don't already know, HTC programmed their Gingerbread ROMs to drop wifi connections if the signal falls below -88dBm.

htc never programmed anything like that, there's no trace of this anywhere in the fx

recent broadcom wifi drivers/firmware blobs otoh have an rssi threshold for _scan_results_ (-88dBm), and the kernel also sends low_rssi events
(see <here> (https://github.com/LeeDroid-/Ace-2.6.35/blob/ca1bd0ce44cdfa2c7b88da431c3038d76aa64bda/drivers/net/wireless/bcm4329_204/dhd_cdc.c#L1289), <here> (https://github.com/LeeDroid-/Ace-2.6.35/blob/44bf43af631ebbcff7f9acba0e7a77e24607f0f7/drivers/net/wireless/bcm4329_204/wl_iw.c#L7927), in the corresponding Makefile, and in the firmware blob)

Select the correct version for your ROM and flash through Clockwork Recovery.

breaking the aosp framework.jar is not necessary to workaround the rssi threshold issue
and for the sweet love of god, guys, pretty please: don't distribute someones own calibration file (+with fake mac in it)

gtg465x
6th May 2011, 09:51 PM
htc never programmed anything like that, there's no trace of this anywhere in the fx

recent broadcom wifi drivers/firmware blobs otoh have an rssi threshold for _scan_results_ (-88dBm), and the kernel also sends low_rssi events
(see <here> (https://github.com/LeeDroid-/Ace-2.6.35/blob/ca1bd0ce44cdfa2c7b88da431c3038d76aa64bda/drivers/net/wireless/bcm4329_204/dhd_cdc.c#L1289), <here> (https://github.com/LeeDroid-/Ace-2.6.35/blob/44bf43af631ebbcff7f9acba0e7a77e24607f0f7/drivers/net/wireless/bcm4329_204/wl_iw.c#L7927), in the corresponding Makefile, and in the firmware blob)



breaking the aosp framework.jar is not necessary to workaround the rssi threshold issue
and for the sweet love of god, guys, pretty please: don't distribute someones own calibration file (+with fake mac in it)

I know the method I used to work around the issue is ghetto, but it works. If you can fix it the proper way, please do. And the calibration file is pulled straight from a RUU.

lilil
6th May 2011, 10:00 PM
Before flashing I had 3/4 bars in the WLAN symbol and after flashing the fix I have only 1 bar... What's the problem ???

gtg465x
6th May 2011, 10:08 PM
Before flashing I had 3/4 bars in the WLAN symbol and after flashing the fix I have only 1 bar... What's the problem ???

Sounds like only the calibration file got flashed and not the framework. Maybe just wait for a new fix from snq-. I assume he can implement a proper fix since he felt the need to bash my fix.

lilil
6th May 2011, 10:12 PM
Thanks for the quick reply.
Then I have to wait... :)

mike1986.
6th May 2011, 10:50 PM
The only difference in calibration file is rssi_offset=-20 at the bottom. I don't know the differences in framework.jar file.

DubelBoom
7th May 2011, 06:09 PM
can you make this fix also for 0.81.651.0???
thanks!

Tifon
7th May 2011, 06:53 PM
For me the patch is working very very good, thanks for sharing!!.

Baarf
8th May 2011, 08:52 PM
News of the new fix ?

Without fix, it's unusable in my home... :(

tuan_ok
9th May 2011, 08:15 AM
waiting for a fix wifi, now can not use in my home ... :(

@I have updated this version [ RUU_Ace_Gingerbread_S_HTC_WWE_2.36.405.8_R_Radio_1 2.54.60.25_26.09.04.11_M2_release ] everything went well used good, but the wifi is very weak to move away .... , S-OFF the machine, but I can not flash another radio ... please help fix wifi .sr my bad english

gtg465x
10th May 2011, 05:10 AM
waiting for a fix wifi, now can not use in my home ... :(

@I have updated this version [ RUU_Ace_Gingerbread_S_HTC_WWE_2.36.405.8_R_Radio_1 2.54.60.25_26.09.04.11_M2_release ] everything went well used good, but the wifi is very weak to move away .... , S-OFF the machine, but I can not flash another radio ... please help fix wifi .sr my bad english

Ask snq-. Kernel devs need to implement the fix in their kernels. snq- knows how.

euplio
31st May 2011, 11:04 PM
when the new fix?

mike1986.
31st May 2011, 11:07 PM
when the new fix?

Will never come. snq- said he know the better way, gtg465x removed first post because of snq- being smart but finally snq- didn't provide better fix. I will post the original one here in few minutes.

mike1986.
31st May 2011, 11:13 PM
Uploading - give it few minutes.

http://tinyurl.com/447t99g

Baarf
31st May 2011, 11:15 PM
He's included in ARHD 5.1.8 ? ^^


Sent from my Desire HD using XDA Premium App

mike1986.
31st May 2011, 11:18 PM
He's included in ARHD 5.1.8 ? ^^


Sent from my Desire HD using XDA Premium App

Was removed in 5.1.8 for test but it's back in 5.1.9.

C0mpu13rFr34k
31st May 2011, 11:18 PM
Uploading - give it few minutes.

http://tinyurl.com/447t99g

Oh come one! You just got my hopes up ;) Link's broken.

EDIT: Found it on your server. Nvm. Oh and thanks BTW. Original link is also working now :)

euplio
31st May 2011, 11:35 PM
Uploading - give it few minutes.

http://tinyurl.com/447t99g

Thank very much, really quick! I have installed it via recovery (update from sd card), now how I do to see if it's been installed?

mike1986.
31st May 2011, 11:38 PM
Thank very much, really quick! I have installed it via recovery (update from sd card), now how I do to see if it's been installed?

If you installed it then it's installed :p

Check your calibration file inside system/etc if it has rssi_offset=-20 at the bottom. If it has then all fine.

LeeDroid
31st May 2011, 11:44 PM
I will have a word with snq- when I catch him next and whip up a kernel patch ;)

Edit: il take a look at the WiFi drivers when I get home....

Sent from my LeeDrOID loaded Desire HD

euplio
31st May 2011, 11:56 PM
If you installed it then it's installed :p

Check your calibration file inside system/etc if it has rssi_offset=-20 at the bottom. If it has then all fine.
Sorry but I'm unable to open the calibration file...


Sent from my Desire HD using XDA App

mike1986.
31st May 2011, 11:58 PM
Sorry but I'm unable to open the calibration file...


Sent from my Desire HD using XDA App

Open it with root explorer or es file explorer :)

euplio
1st June 2011, 12:02 AM
Open it with root explorer or es file explorer :)
Done, all right it worked well, again thank-you.


Sent from my Desire HD using XDA App

LeeDroid
1st June 2011, 02:21 AM
Hi guys, been doing some investing and it turns out that no thresholds have been adjusted at kernel level, I'm running some tests with slightly less conservative threasholds now, il feedback as soon as I am satisfied

Sent from my LeeDrOID loaded Desire HD

Baarf
1st June 2011, 04:51 AM
Was removed in 5.1.8 for test but it's back in 5.1.9.

Strange... Before, I have many many WiFi problem with all 2.36.405.8 base, but now no problem with your ARHD 5.1.8.



Sent from my Desire HD using XDA Premium App

amm009uk
1st June 2011, 10:25 AM
I am relieved Lee & Mike are looking into this.

ARHD 5.1.7 works perfectly for Wifi. LeeDroid did too and I think that was 3.1.0 but I can't be sure now.

I think problem only shows on weak signals plus some other variables what ever they are. I certainly have it and I've tested it with ARHD 5.1.8 (patch 5.19 and gtg) and LeeDroid 3.1.1. 5.1.7 simply works so there is something in there:rolleyes: ARHD 5.1.7 plus gtg files made it worst:eek:

Traukoman
30th June 2011, 07:32 PM
Uploading - give it few minutes.

http://tinyurl.com/447t99g

Hi friend. Do you think this could be flashed in any GingerSense ROM, like HD2 roms?

Thanks in advance :D

spd00
4th July 2011, 05:46 PM
i cant't find the fix/patch for wifi drop out anywhere in this thread. ????

eliashadow
4th July 2011, 05:52 PM
i cant't find the fix/patch for wifi drop out anywhere in this thread. ????

Take it mate..;)

645367

spd00
4th July 2011, 07:00 PM
Take it mate..;)

645367

thanks alot. i've installed it, but now my DHD woun't start anymore :))) i`m running RS_sensation ROM. rooted all s-off. :)

this fix is for android revolution users, the files in the zip file are from revolution rom. i', having trouble running replaced files on other roms, u might wanna mention this. :)

Neutrino22
19th August 2011, 10:39 PM
Would this fix work on old Desire? S-Off; Rooted; Revolutionary; Running stock 2.3? Thanks in advance! :D

euplio
1st October 2011, 08:03 PM
Can this fix be ported to the newest base?