[Q]WiFi broken? - Please advice - HTC Desire S

I was flashing a JB 4.1.2 ROM several days ago when I noticed that my Desire S doesn't connect to my home WiFi network. As I played with the router settings before that and I didn't have the time to troubleshoot it at that time, I ignored the incident. Next day, I saw that I'm not able to connect to my work WiFi network either...then I've started to wonder what happened.
The long story short, is that I frequently flash several ROMs that are all CM10 derivates: CM10 builds from nk111, Andromadus ROM by Flinny, Paranoid by djpbx (current ROM). I usually flash every new release/build and test it to see if I encounter bugs/issues. Now I am not able to connect to any WiFi with ANY ROM...I don't remember the exact moment from which this happened but since then, I've tried with ROMs on which WiFi worked before like IceColdSandwich ported from Lord ClockaN's ROM, several CM10 builds (newer or older), even with Sense based ROMs (I've tried Fallout and Sabsa Prime). With or without full wipe, doesn't make any difference.
On all I got the same thing: WiFi "see"the surrounding networks but doesn't connect...it's not even say "Authenticating" or "Acquiring IP address". I've tried all the settings in Advanced TAB (WiFi frequency band, WiFi region), I tried with different security options (WEP, WPA, WPA2), I tried with hidden network as well as with visible (SSID is transmitted), I even tried with open network. No success at all. Network is saved but that's all. On hidden networks It says network is not in range, on visible ones is not connecting at all.
I've tried to change radio...I've used the last one (20.4801.30.0822U_3822.10.08.04), I've flashed also the one I was using before and which DID WORK (20.48.30.0822U_3822.09.08.20)...nothing.
I've tried with or without a SIM (I read on a thread that it could influence)
I was hoping to solve it but it seems I was not able to do it. Don't know if it's something hardware related either, but since I can see the visible WiFi networks, at least the scanning part is working. Just that it does not connect. And it was working before, at least with some of the ROMs I've flashed
Now I end up with a Desire S without WiFi. Everything else works: BT, sensors, mobile data and so on. I don;t understand what happened, anyone that can give me clues or what else to check, please let me know. Phone is out of warranty and I exclude the "send it to repair center"" option. I'll do that only as last resort and when I'm going to buy a new phone.
NOTE: To avoid extra questions: I am S-Off, current radio 20.48.30.0822U_3822.09.08.20. I've also posted the problem initailly in Andromadus thread and attached a logcat HERE

I have the same problem with my desire s. BT and WIFI don't have mac adres id.

I am not sure it this much related, but I had plenty of such siituations while porting the Wireless driver into my kernel.
It was a permmission issiue (when certain files were created with certain permission another ramdisk with another permissions was not able to start the WiFi.) Usually a full wipe should fix this. Do not restore any wifi data with Titanium. Use 4EXT recovery if you are still on CWM
Once I managed to fix this by starting WiFi hotspot (on Sense 4 ROM) then stop it and start WiFi. Hope this helps

I've gone through the obvious (for me at least) things. I didn't post here without trying them first. Full wipe, gone through initial setup wizard, then first thing added a WiFi network... Nothing restored with TB or anything else, nothing installed, just flashed the ROM + GAPPS + aGPS patch then setup manually everything. When I've flashed Sabsa Prime I've even setup WiFi dirrectly from the initial setup wizard when it was asking how do I connect to internet. Still nothing
Later edit: I've tried to setup a WiFi access point from mobile (WiFi tethering). The access point is created but not visible to any device. It seems like the "emitting" part is not working, only the "reception" is ok.
Code:
[COLOR="Red"]15:25:47.265 Error hostapd 4245 Configuration file: /data/misc/wifi/hostapd.conf
15:25:47.812 Debug Tethering 1670 sendTetherStateChangedBroadcast 1, 0, 0
15:25:47.920 Warning hostapd 4245 wlan0: Could not connect to kernel driver
15:25:47.920 Error hostapd 4245 Using interface wlan0 with hwaddr d4:20:6d:be:66:76 and ssid 'RapierAP'[/COLOR]
15:25:47.920 Debug CommandListener 1431 Setting iface cfg
15:25:47.920 Debug CommandListener 1431 Trying to bring up wlan0
15:25:47.920 Debug Tethering 1670 Tethering wlan0
15:25:47.920 Debug Tethering 1670 InitialState.processMessage what=2
15:25:47.920 Debug Tethering 1670 sendTetherStateChangedBroadcast 0, 0, 0
15:25:47.920 Debug Tethering 1670 Tethered wlan0
15:25:47.920 Debug Tethering 1670 sendTetherStateChangedBroadcast 0, 1, 0
15:25:47.920 Debug Tethering 1670 MasterInitialState.processMessage what=1
15:25:48.030 Debug TetherController 1431 Setting IP forward enable = 1
15:25:48.030 Debug TetherController 1431 Starting tethering services
15:25:48.030 Debug TetherController 1431 Tethering services running
15:25:48.030 Info dnsmasq 4247 started, version 2.51 cachesize 150
15:25:48.030 Info dnsmasq 4247 compile time options: no-IPv6 GNU-getopt no-DBus no-I18N DHCP no-scripts no-TFTP
15:25:48.030 Warning dnsmasq 4247 warning: no upstream servers configured
15:25:48.030 Info dnsmasq 4247 DHCP, IP range 192.168.48.2 -- 192.168.48.254, lease time 1h
15:25:48.030 Info dnsmasq 4247 DHCP, IP range 192.168.47.2 -- 192.168.47.254, lease time 1h
15:25:48.030 Info dnsmasq 4247 DHCP, IP range 192.168.46.2 -- 192.168.46.254, lease time 1h
15:25:48.030 Info dnsmasq 4247 DHCP, IP range 192.168.45.2 -- 192.168.45.254, lease time 1h
15:25:48.030 Info dnsmasq 4247 DHCP, IP range 192.168.44.2 -- 192.168.44.254, lease time 1h
15:25:48.030 Info dnsmasq 4247 DHCP, IP range 192.168.43.2 -- 192.168.43.254, lease time 1h
15:25:48.031 Info dnsmasq 4247 DHCP, IP range 192.168.42.2 -- 192.168.42.254, lease time 1h
15:25:48.031 Info dnsmasq 4247 read /etc/hosts - 1 addresses
When starting WiFi, I get the following:
Code:
[COLOR="Red"]15:32:47.517 Error WifiHW 1670 Unable to open connection to supplicant on "wlan0": No such file or directory[/COLOR]
15:32:48.171 Verbose SCREEBL 2762 --> ROTATION_0
15:32:48.171 Verbose SCREEBL 2762 --> Orientation IN BOUNDS: 5.0 < 5.00065256449902 < 90.0
15:32:49.596 Debug Tethering 1670 sendTetherStateChangedBroadcast 1, 0, 0
15:32:49.703 Debug Beautiful Widgets 4120000 WIFI_STATE_CHANGED_ACTION
15:32:49.810 Error WifiConfigStore 1670 configuration found for missing network, ignored
It seems a problem with the wlan0 which is not found...

Rapier said:
I've gone through the obvious (for me at least) things. I didn't post here without trying them first. Full wipe, gone through initial setup wizard, then first thing added a WiFi network... Nothing restored with TB or anything else, nothing installed, just flashed the ROM + GAPPS + aGPS patch then setup manually everything. When I've flashed Sabsa Prime I've even setup WiFi dirrectly from the initial setup wizard when it was asking how do I connect to internet. Still nothing
Click to expand...
Click to collapse
I know that you are here from quite some time and into this things and has no intention to offend you. Have you tried a backup and format of the SDcard? I saw this as a solution in one of the official ICS threads.
And what is the logcat saying when you enable WiFi?
Sent from my HTC Desire S

amidabuddha said:
I know that you are here from quite some time and into this things and has no intention to offend you. Have you tried a backup and format of the SDcard? I saw this as a solution in one of the official ICS threads.
And what is the logcat saying when you enable WiFi?
Sent from my HTC Desire S
Click to expand...
Click to collapse
No, no, please, no offence taken. Sorry if it sounded this way. But as you said, I'm here for some time and learned alot (thanks to this wonderful community) and I just wanted to say that I've tried through the "normal" ways. The logcat is as you see in my previous post (last code quote). There are only some rows because the rest are related to other things....
I've taken another logcat while starting up WiFi and then scan. Attached
I'll also try to format sdcard. This indeed is something I didn't try yet (I thought is not related). Wouldn't be the same thing if I just take out the card completely? For the test purpose I don't care what files are there and if some apps won''t work

Rapier said:
No, no, please, no offence taken. Sorry if it sounded this way. But as you said, I'm here for some time and learned alot (thanks to this wonderful community) and I just wanted to say that I've tried through the "normal" ways. The logcat is as you see in my previous post (last code quote). There are only some rows because the rest are related to other things....
I've taken another logcat while starting up WiFi and then scan. Attached
I'll also try to format sdcard. This indeed is something I didn't try yet (I thought is not related). Wouldn't be the same thing if I just take out the card completely? For the test purpose I don't care what files are there and if some apps won''t work
Click to expand...
Click to collapse
From your first logcat:
E/WifiHW ( 1674): Unable to open connection to supplicant on "/data/system/wpa_supplicant/wlan0": No such file or directory
and you have noticed the other one yourself:
Error WifiHW 1670 Unable to open connection to supplicant on "wlan0": No such file or directory
It seems like a permission issue to me not a hardware fault. LIke I mentioned the same happened to me several times (WiFi works, sees the networks but refuses to connect) What is strange that usually a data wipe/clean install solves this.
Actually I think yours is not seeing the networks (scanning):
"configuration found for missing network, ignored"
Not sure is this possible but your /data partition seems not wiped properly. Can you make a factory reset on your current rom?

Hi I see you are posting again "from over the air"
Have you solved it or using another device?
Sent from my HTC Desire S

amidabuddha said:
Hi I see you are posting again "from over the air"
Have you solved it or using another device?
Sent from my HTC Desire S
Click to expand...
Click to collapse
I wish...unfortunately not . I have mobile data (3G/HSDPA) with 1.5 GB traffic and 7.2 Mbps speed. It's enough for browsing the forum, even to download ROMs and updates.
Now I've noticed that not only WiFi is not workind...BT is not working as well. Cannot connect to my car kit and it was working before with almost all the ROMs.Since I first noticed the WiFi problem, I didn't try BT so I think the problem came in the same moment for both. I realy hope that is not something hardware related and it can be fixed. But I just don't know what else to check/do. I wanted to buy an One S but I didn't receive an answer from my carrier yet.

Rapier said:
I wish...unfortunately not . I have mobile data (3G/HSDPA) with 1.5 GB traffic and 7.2 Mbps speed. It's enough for browsing the forum, even to download ROMs and updates.
Now I've noticed that not only WiFi is not workind...BT is not working as well. Cannot connect to my car kit and it was working before with almost all the ROMs.Since I first noticed the WiFi problem, I didn't try BT so I think the problem came in the same moment for both. I realy hope that is not something hardware related and it can be fixed. But I just don't know what else to check/do. I wanted to buy an One S but I didn't receive an answer from my carrier yet.
Click to expand...
Click to collapse
Maybe trying the latest firmware (from the thread that keeps your recovery and hboot). This is the last resort before going for hardware check I suppose...
Sent from my HTC Desire S

Related

[Q] Eduroam

Hi all, this is my first post and sorry for my english
I have a big problem with my galaxy sl, i can't use wifi connection (eduroam) in my uni (http://venus.unive.it/wifi/index.php?cmd=eduroam_android Venice)
I have followed the istruction of my uni, but wifi don't work
I have read http://forum.xda-developers.com/showthread.php?t=1477743, i have tryed all versions but the connection don't work
I use miui rom v2.3.23 (http://forum.xda-developers.com/showthread.php?t=1538234) with default kernel.
Do u have a solutions???
thanks to all
Hey there!! I also have eduroam in my University and I have never been able to connect it. Sorry then!!
Same problem here (with eduroam and another similar wifi network in my university).
Actually I was able to connect, but it worked few times. Usually after a full wipe my phone connects flawlessly to wifi, but after that connection, another full wipe is needed.
In my case, it seems that the phone is unable to get a valid IP, because using a fake IP, gateway etc (in wifi settings press the menu button and then go in advanced) it will immediately enstablish a connection (no internet connection of course). I tried to put valid infos once (I had with me my laptop connected and I copied all the infos from it, I only changed the last number in the IP) and it worked. That's why I think is an IP problem, but maybe it was luck .
Maybe doing a sort of "wifi config reset" solves the problem (at least in my case), but it means that everytime I should reconfigure it... I simply gave up and I use my 3G connection .
I found this weird workaround time ago, but I never tried it. I think it worths a try.
===
EDIT:
Strange, you use a different config. I thought all Eduroam networks would have used the same config. Here mine's:
SSID: eduroam
Security: 802.1x Enterprise
EAP method: TLS
CA certificate: "Not specified"
Client certicate: the downloaded certificate
i will try ur config next week but, my friend can use edoroam with a acer liquid (2.2 foryo) with config written in university site.
IMO there are a bugs in the kernel of galaxy sl because a lot of android phone can connected to eduroam
Up
I tried again after I saw this thread and I now I'm quite sure that my problem is an IP problem. I played a little with airplane mode/static IP in a random way (as suggested in the link I posted) and finally I enstablished a connection.
Usually, right before the connection, my phone asks the credential password. And that's weird.
Anyway I discovered something interesting. In our /system/build.prop we have:
Code:
...
wifi.interface=eth0
...
wifi.interface=tiwlan0
but
Code:
getprop wifi.interface
gives as result tiwlan0 and that's ok, this is our wifi interface.
But after that I went to see some other config files and I found that in our /system/etc/dhcpcd we have
Code:
interface eth0
I think this should be
Code:
interface tiwlan0
(I found reference to eth0 in /system/etc/wifi/wifi.conf too, but I don't what this file is used for).
I wanted to see if changing eth0 with tiwlan0 in /system/etc/dhcpcd/dhcpcd.conf and removing wifi.interface=eth0 from build.prop would have helped, but I had no time and now I'm on holiday.
If your problem is similar to mine, try to do that change, it won't break anything, I already did that and wifi works (at home of course, where I've never had a problem).
I have also eduroam in my university and i am using eduroam fixer and it is working perfectly. İt is in google play and free you can use it
Sent from my GT-I9003 using Tapatalk
Try this app: Transparent Proxy. Input your wifi proxy and port.
It may work...
I also have eduroam in my university and I've managed to make it work.
You just need to enter eduroam config and set it like this (I have my phone in spanish, so the names could be a little messed up ):
Code:
EAP method: TTLS
Phase 2 authentication: PAP
Identity: [I]"your university mail"[/I]
Password: [I]"your university mail password"[/I]
And leave everything else blank. Hope it works for you guys!!

Wifi disconnected periodically

Hi guys this is my first post in HOX forum, I just got mine 1 week ago.
So the main problem I have so far is that my HOX gets disconnected from wifi at home periodically. It just suddenly drops and then reconnects by itself. Does anyone experience the same? If not I'm considering exchange a new one.
Thanks guys!
zihaoyu said:
Hi guys this is my first post in HOX forum, I just got mine 1 week ago.
So the main problem I have so far is that my HOX gets disconnected from wifi at home periodically. It just suddenly drops and then reconnects by itself. Does anyone experience the same? If not I'm considering exchange a new one.
Thanks guys!
Click to expand...
Click to collapse
I do.. but my router's a POS without an external antennae. so I can't give good answer on that.
Mine does, frequently. I've seen posts regarding the problem, and maybe even a fix. But it doesn't bother me enough to risk breaking something else in the process.
Sent from my HTC One X using XDA Premium HD. In between Force Clo...
zihaoyu said:
Hi guys this is my first post in HOX forum, I just got mine 1 week ago.
So the main problem I have so far is that my HOX gets disconnected from wifi at home periodically. It just suddenly drops and then reconnects by itself. Does anyone experience the same? If not I'm considering exchange a new one.
Thanks guys!
Click to expand...
Click to collapse
I upgraded to the beastmode kernel and this started happening to me too.
Running the normal CleanROM 4.5 Rom fixed the problem for me.
Last night I took a logcat of when this disconnect happens... But I dont really know how to debug it.
I have the same issue, with an additional problem. When WiFi disconnects I lose mobile data too. Toggling airplane mode brings back mobile data. WiFi may or may not connect for a little bit afterwards.
Sent from my One X using xda app-developers app
Why don't you all post up what bands your running on and what you have set on your router. We can map it out a little better
18th.abn said:
Why don't you all post up what bands your running on and what you have set on your router. We can map it out a little better
Click to expand...
Click to collapse
Good idea 18th.abn. I'll start.
With BeastMode Kernel v3 I have this problem. However I don't have the problem with the stock CleanROM 4.5 kernel. I will test CleanROM V with CleanKernel tonight and see if the problem is still there.
I did get a logcat while the disconnect happened... I took a couple and will have to remember which one was which... I don't really know how to read a logcat file though. Anyone good with linux? Does that help at all?
Problem happens with 2 separate routers. I'm a BAMF so I have 2 routers on my home network, 1 to service each band, and only that band.
Router 1:
Name: Linksys WRT320N
Firmware: DD-WRT v24-sp2 (04/16/10) mega
(SVN revision 14289)
Band: 5Ghz N-only, 40Mhz channel width, control channel lower, wireless channel auto.
Security: WPA2-PSK (Personal), AES
Router 2:
Name: Netgear WGR614v10
Firmware: Stock
Band: 2.4Ghz G-only, channel 11, "up to 54mbps mode"
Security: WPA2-PSK, AES
EDIT: added logcats.
Okay, so I suck at this and have forgotten which one is which. I believe it was my latest one that shows the disconnect (logcat 3). I can make another soon enough.
Logcat1
Logcat2
Logcat2
Do you have the same issue on both routers?
In logcat3, it looks like it connects for just a little bit, then once disconnected, it attempts but can't get fully connected again....it was a quick glance but is that the case?
---------- Post added at 04:24 PM ---------- Previous post was at 04:07 PM ----------
I believe your issue is right here...could be wrong but
W/wpa_supplicant( 7594): [EAP-MSG] EAP [email protected]: eap_methods not available
I/wpa_supplicant( 7594): [SeamLess] This is already connected so rejected to 00:23:69:eb:98:6a
I/wpa_supplicant( 7594): [SeamLess] flag_disconnect is reset i.e., Seamless is give it up
Here is the why its not working, its looking for sim authentification-
To run an EAP-SIM/AKA authentication you will need a client as wpa_supplicant which has access to a (U)SIM. The WLAN access point on the network has to support EAP (which is often transcribed as WPA(2)-RADIUS or WPA(2)-ENTERPRISE). The WLAN AP has to have access to a RADIUS server who handles the authentication and session key generation. The RADIUS server in a productive environment needs for EAP-SIM/AKA access to the home location register (HLR) of the MNO where the (U)SIMs are registered. For testing a file with precreated values for authentication is sufficient.
I think your security is possibly on Wpa2-EAP, Which would explain the eap-sim call, and I doubt you have a RADIUS server giving out session keys to authenticate....double check your security settings
To add. Here's a good little write up in optimum router settings with your wireless n. I see a few things in your setup that could be killing or seriously slowing your wireless connections...
http://www.smallnetbuilder.com/wireless/wireless-basics/30664-5-ways-to-fix-slow-80211n-speed
I would DEF. drop to 20mhz from 40mhz, that alone might fix your problem. I had big problems with tabs and phones connecting at 40mhz. 20 should help a lot and don't select auto, keep at 20.
Wireless channel, u have set on lower channels, lower channels are usually busier, there's an app, wifi analyzer, it will show you the least busy channels and then choose A channel, don't let it bounce around and choose for you.
Dd-wrt has an infinite amount of twee king/tuning options, as you already know but is extremely easy to make a great connection a worthless one all the same...
Try just switching to 20mhz and nothing else at first......it just might be the root issue for you also
Thanks, I'll try that out and report back.
---------- Post added at 12:19 PM ---------- Previous post was at 11:34 AM ----------
18th.abn said:
Do you have the same issue on both routers?
In logcat3, it looks like it connects for just a little bit, then once disconnected, it attempts but can't get fully connected again....it was a quick glance but is that the case?
Click to expand...
Click to collapse
My problem is that WiFi was fine for a while, then would disconnect, and then reconnect a second or two later. However, I did take a look at that guide you posted (I really like smallnetbuilder) and made some changes to my setup that they (and you) suggested. I'm still in the process of testing it.
18th.abn said:
---------- Post added at 04:24 PM ---------- Previous post was at 04:07 PM ----------
I believe your issue is right here...could be wrong but
W/wpa_supplicant( 7594): [EAP-MSG] EAP [email protected]: eap_methods not available
I/wpa_supplicant( 7594): [SeamLess] This is already connected so rejected to 00:23:69:eb:98:6a
I/wpa_supplicant( 7594): [SeamLess] flag_disconnect is reset i.e., Seamless is give it up
Here is the why its not working, its looking for sim authentification-
To run an EAP-SIM/AKA authentication you will need a client as wpa_supplicant which has access to a (U)SIM. The WLAN access point on the network has to support EAP (which is often transcribed as WPA(2)-RADIUS or WPA(2)-ENTERPRISE). The WLAN AP has to have access to a RADIUS server who handles the authentication and session key generation. The RADIUS server in a productive environment needs for EAP-SIM/AKA access to the home location register (HLR) of the MNO where the (U)SIMs are registered. For testing a file with precreated values for authentication is sufficient.
I think your security is possibly on Wpa2-EAP, Which would explain the eap-sim call, and I doubt you have a RADIUS server giving out session keys to authenticate....double check your security settings
Click to expand...
Click to collapse
My security was (and still is) set as WPA2 Personal with "AES" as the WPA algorithm. This is correct for my home network, is it not? At least that's what I set in the "wireless security" tab of dd-wrt under wireless. I see that there is something under "advanced settings" called "authentication type" which has a radio button for "auto" and "shared key". Right now it's on auto. Think I should change it to "shared key"?
"Authentication Type:
You may choose from Auto or Shared Key. Shared key authentication is more secure, but all devices on your network must also support Shared Key authentication."
18th.abn said:
To add. Here's a good little write up in optimum router settings with your wireless n. I see a few things in your setup that could be killing or seriously slowing your wireless connections...
http://www.smallnetbuilder.com/wireless/wireless-basics/30664-5-ways-to-fix-slow-80211n-speed
I would DEF. drop to 20mhz from 40mhz, that alone might fix your problem. I had big problems with tabs and phones connecting at 40mhz. 20 should help a lot and don't select auto, keep at 20.
Wireless channel, u have set on lower channels, lower channels are usually busier, there's an app, wifi analyzer, it will show you the least busy channels and then choose A channel, don't let it bounce around and choose for you.
Dd-wrt has an infinite amount of twee king/tuning options, as you already know but is extremely easy to make a great connection a worthless one all the same...
Try just switching to 20mhz and nothing else at first......it just might be the root issue for you also
Click to expand...
Click to collapse
I just made some changes based on the guide you posted. I also made sure to drop the channel width down to 20mhz (I didn't know that made so much of an impact. Kudos for that piece of advice. I chose to use channel 36, 5.180Ghz, based on my testing with wifi analyzer. No one else in the neighborhood has a 5Ghz router (Apparently).
I'll see what tonight's testing yields.
Awesome, hope it helps! As far as the disconnecting, catalog shows it searching for aes-sim authentification and I don't know why. Its connected, then disconnects because already connected....*LIGHT BULB* Make sure WiFi settings on device is set to 5ghz and not auto.....that may be why its giving a already connected in catlog
18th.abn said:
Awesome, hope it helps! As far as the disconnecting, catalog shows it searching for aes-sim authentification and I don't know why. Its connected, then disconnects because already connected....*LIGHT BULB* Make sure WiFi settings on device is set to 5ghz and not auto.....that may be why its giving a already connected in catlog
Click to expand...
Click to collapse
Are you saying the WiFi settings on my phone? I won't be able to set it to 5ghz only as I connect to various 2.4ghz networks throughout the day.
I haven't seen the error again yet *knock on wood*
Maybe you fixed it.
Awesome, I bet it was the 40mhz that was doing it glad u got it!
I spoke too soon. I was browsing XDA on my phone, clicked a new page and it disconnected for a second and reconnected immediately.
New logcat. I saved this one only a few seconds after it reconnected. It should say something about WiFi at the very bottom of the logcat file. Do these things even help you guys?
Logcat #4
Check my thread!
[HowTo][INFO] Wifi Drop Caused by "Sign-in to WiFi Network" Notification [KitKat BUG]
http://forum.xda-developers.com/and.../howto-wifi-drop-caused-sign-to-wifi-t2862509
M_J_Nazari said:
Check my thread!
[HowTo][INFO] Wifi Drop Caused by "Sign-in to WiFi Network" Notification [KitKat BUG]
http://forum.xda-developers.com/and.../howto-wifi-drop-caused-sign-to-wifi-t2862509
Click to expand...
Click to collapse
This thread is from 2 years ago... In the future, try not to dig up old threads, especially to promote your own (and irrelevant) thread
I don't care about the date of threads, i just care about the solution and help others! you just do your job, every forum has a admin moderator, and you are not one of them! so do your job.
Best regards
M_J_Nazari said:
I don't care about the date of threads, i just care about the solution and help others! you just do your job, every forum has a admin moderator, and you are not one of them! so do your job.
Best regards
Click to expand...
Click to collapse
You're solving an issue that doesn't really pertain to the original bug. If anything, start a new thread in general here, but don't bring back this thread because of its lack of relevance.
The issue deals with the WiFi on 4.2.2 (not kitkat) dropping out and coming back in. It's an issue that's based on the kernel we had. Your solution is based on timing out. It's not the same bug.
And just for the record, I'm a user. Just like you are. So what would my job exactly be? Yes, I just started to develop too, but don't accuse me of not caring about helping others. I've been helping out for a long while now. I don't believe we really have "jobs" on this forum because none of us are obligated do anything. It's a bunch of people following etiquette and helping each other.

[Q] IPv6 Wifi doesn't get default route CM 10.0

Hi All,
I upgraded to CM 10.0.0 stable this morning and in the course of things noticed that IPv6 wasn't working on my WiFi connection. I have native dual stack available and all my other devices have connectivity for both ipv4 & ipv6 (on WiFi or Ethernet)
After a bit of digging I noticed that the wlan0 interface was getting a global ipv6 address but no default route was being added. The setting that controls router advertisements (RA) for the kernel is /proc/sys/net/ipv6/conf/wlan0/accept_ra_defrtr The accept_ra_defrtr setting is set to 0 for every interface by /init.qcom.sh I believe.
Code:
#
# Suppress default route installation during RA for IPV6; user space will take
# care of this
#
for file in /proc/sys/net/ipv6/conf/*
do
echo 0 > $file/accept_ra_defrtr
done
If I manually set /proc/sys/net/ipv6/conf/wlan0/accept_ra_defrtr to 1, I will get ipv6 connectivity over WiFi. The problem is this isn't persistent across reboots. Another potential problem is it contradicts the stated reason for setting the value to 0 in init.qcom.sh which is to let some user space application handle the configuration of ipv6. I suppose I could get it persistent if I added an echo line to put 1 into accept_ra_defrtr for wlan0 only.
This is as far as I could get, so my questions are:
1) What are these user space application(s)?
2) How can I configure the user space application(s) to configure the default route from RA when on WiFi?
BTW, ipv6 works without any fuss when I connect to LTE. I have the Verizon variant of the Galaxy S3.
This thread tipped me to the accept_ra_defrtr
http://forum.xda-developers.com/showthread.php?t=1672490
It seems that this issue has existed for quite some time. After some more searching, I'm finding reports of this issue with somewhat old time stamps. I'm kind of shocked actually because my old Droid X worked with IPv6 on WiFi. I never even thought to test it with the stock GS3 rom I had on my phone before switching to CM10.
Does anyone know if IPv6 on WiFi works with the stock image?
Oh well, the info is out there. Perhaps some day this will get fixed.
code.google.com/p/android/issues/detail?id=39052
code.google.com/p/android/issues/detail?id=3389 check out the link collection at the bottom.

[Q] [GT-P6210] WIFI problems after updating to Official JB

Hello,
I got my good ol' GT-P6210 back from my brother, the tab was in Stock ICS. Everything was functional, WiFi was set and working, then I decide to move on into Official JB, Odin did the job normally, then I did Wipe everything in order to start fresh, but now I cannot join my Home Network. There is a strange message saying that there is a problem with the authentication, I saw this error in some Galaxy S3 post but I don't see any reports of this on GT+
The funny thing is that I can join an iPhone Hotspot perfectly, so that will discard any problem with the WPA2, but i'm not sure how to fix this, should I return to ICS?
Regards,
darkshadowx07 said:
Hello,
I got my good ol' GT-P6210 back from my brother, the tab was in Stock ICS. Everything was functional, WiFi was set and working, then I decide to move on into Official JB, Odin did the job normally, then I did Wipe everything in order to start fresh, but now I cannot join my Home Network. There is a strange message saying that there is a problem with the authentication, I saw this error in some Galaxy S3 post but I don't see any reports of this on GT+
The funny thing is that I can join an iPhone Hotspot perfectly, so that will discard any problem with the WPA2, but i'm not sure how to fix this, should I return to ICS?
Regards,
Click to expand...
Click to collapse
Delete (forget) your network then connect to it again. You will have to re-enter the security info
Yup, I did that
I see that the tablet tries to do the connection for around 30 or 40 secs, then by some reason it desists. After some minutes it displays a message saying about the authentication problem.
I'm going to try to back to ICS, maybe I miss or did something really wrong
darkshadowx07 said:
Yup, I did that
I see that the tablet tries to do the connection for around 30 or 40 secs, then by some reason it desists. After some minutes it displays a message saying about the authentication problem.
I'm going to try to back to ICS, maybe I miss or did something really wrong
Click to expand...
Click to collapse
I haven;t seen any issues with authentication on the JB ROM. I have seen issues where the channels don;t show up in the US, because this a UK ROM. Try installing an app like WiFi analyzer and see if it gives you any clues. IS your router WPA2 AES?
DigitalMD said:
I haven;t seen any issues with authentication on the JB ROM. I have seen issues where the channels don;t show up in the US, because this a UK ROM. Try installing an app like WiFi analyzer and see if it gives you any clues. IS your router WPA2 AES?
Click to expand...
Click to collapse
Yes, it's the DLINK 2640T (a classic)
DigitalMD said:
I haven;t seen any issues with authentication on the JB ROM. I have seen issues where the channels don;t show up in the US, because this a UK ROM. Try installing an app like WiFi analyzer and see if it gives you any clues. IS your router WPA2 AES?
Click to expand...
Click to collapse
With the Wifi Analyzer I see a lot of message saying that the Suplicant is associating, So i did install a Wifi Fixer tool in order to get a log of something and this what i got:
HTML:
<code>
Current dBm:-44
Supplicant State:DISCONNECTED
Supplicant State:ASSOCIATING
Build:0.9.5.6:983 :Sat Jun 29 21:30:53 CST 2013
Supplicant State:DISCONNECTED
Supplicant State:SCANNING
Supplicant State:ASSOCIATING
Supplicant State:DISCONNECTED
Supplicant State:SCANNING
Build:0.9.5.6:983 :Sat Jun 29 21:31:13 CST 2013
Supplicant State:ASSOCIATING
Supplicant State:DISCONNECTED
Supplicant State:SCANNING
Supplicant State:ASSOCIATING
Build:0.9.5.6:983 :Sat Jun 29 21:31:33 CST 2013
Supplicant State:DISCONNECTED
Supplicant State:SCANNING
Supplicant State:ASSOCIATING
GT-P6210
4.1.2
</code>
could it be the WPA_Supplicant?
I tried joining my home network without password and I still got the error.
actually I was more interested in what it reports your DLINK 2640T as , channel, security, etc.
DigitalMD said:
actually I was more interested in what it reports your DLINK 2640T as , channel, security, etc.
Click to expand...
Click to collapse
I think i have a defective router, it just logs events from ADSL communication
darkshadowx07 said:
I think i have a defective router, it just logs events from ADSL communication
Click to expand...
Click to collapse
My Current WiFi SSID settings are:
Security; WPA2 with WPA2 Pre-authentication
Channel: 6
Group Key Interval: 3600
Beacon interval: 200
DTIM Period: 2
Hidden SSID: Nope
Antenna transmit power: At Full
RTS Threshold: 2347
Frag Threshold: 2346
b/g Mode: Using both b and g
User Isolation: No
QoS Support: No
I also test it today by disabling the whole security (leaving my Wifi open) but without luck
darkshadowx07 said:
My Current WiFi SSID settings are:
Security; WPA2 with WPA2 Pre-authentication
Channel: 6
Group Key Interval: 3600
Beacon interval: 200
DTIM Period: 2
Hidden SSID: Nope
Antenna transmit power: At Full
RTS Threshold: 2347
Frag Threshold: 2346
b/g Mode: Using both b and g
User Isolation: No
QoS Support: No
I also test it today by disabling the whole security (leaving my Wifi open) but without luck
Click to expand...
Click to collapse
Looks normal. Have you tried saving your settings and resetting the router to factory default as a test.?
DigitalMD said:
Looks normal. Have you tried saving your settings and resetting the router to factory default as a test.?
Click to expand...
Click to collapse
Yup, I did that yesterday
Also I was able to rollback into ICS (I took the latest official rom, FOP, i guess), and the WiFi worked normally. Once again, after updating into JB, it cannot join my home network except my iPhone hotspot.
darkshadowx07 said:
Yup, I did that yesterday
Also I was able to rollback into ICS (I took the latest official rom, FOP, i guess), and the WiFi worked normally. Once again, after updating into JB, it cannot join my home network except my iPhone hotspot.
Click to expand...
Click to collapse
Tried any other wifi outside your house? Are you by chance running the offending router in adhoc mode vs. infrastructure?
DigitalMD said:
Tried any other wifi outside your house? Are you by chance running the offending router in adhoc mode vs. infrastructure?
Click to expand...
Click to collapse
Let me try, I will let you know
DigitalMD said:
Tried any other wifi outside your house? Are you by chance running the offending router in adhoc mode vs. infrastructure?
Click to expand...
Click to collapse
I tried several router brands (Linksys and a weird huawei model) and the tab was able to connect perfectly, but not on DLINK routers, except one actually, with a 2011 firnware.
I guess I have to buy another router since my 2640T is not updated anymore since 2007

Getting rid of wlan_rx_wake wakelocks

Hey guys,
have you noticed that your device uses up a lot more battery on certain wifi networks (e.g. at work or university)? It is probably caused by the wlan_rx_wake wakelock.
From the wakelocks database:
Rationale: Wifi chip received a packet from somewhere - On a Galaxy S II, lots of these combined with the fact that the device takes 650 msec to resume from suspend and 150 to go back to sleep means that occasional wifi packets coming in will skyrocket Android OS usage. As an extreme example, run the following from a Linux box when wifi sleep policy is "never" and watch your deep sleep percentages plummet, your battery drain, and Android OS skyrocket: ping -i 5 <wifi IP address of phone>
Know actions: Use a sniffer to determine the cause of the traffic.
Click to expand...
Click to collapse
So apparently some other device in the network keeps waking up the Nexus. If the problem occurs in your home network you can easily find out which device is causing the problem by using Shark and Wireshark. You'll get a log that shows every network activity.
Here are some tips from a similiar thread at the SGSII-forums (thanks!):
use a static IP instead of DHCP (you may have to set a static IP every time you sign up in that particular network)
disable IPv6 protocol on your phone - see below
update your router firmware
buy a gaming adapter for your Wifi network that gets the DHCP IP adress, but gives your phone a static IP
optimise router settings: click
Windows network is causing the problem - solution here: click
Change wireless network encryption method, change wifi channel, instead of using auto baseband use only 2.4 or 5GHz baseband (Wi - Fi - advanced - Wi - Fi frequency band)
turn off uPNP in router/AP
t urn off netbios in windows network ("Go to Network and Sharing Center then change adapter settings. Right click on your wireless and select Properties.
Click on the ipv4 and then the properties button. Select Advanced, go to the Wins tab and disable tcp over netbios.")
Thoravukk FAQ tells you: Q. My device not entering deep sleep if i use Wifi?
A: That's not a Kernel issue! It's a Router and (Windows 7) Network problem. Disable IPv6, IP Helper service, shell hardware detection service and the Windows Media Player Network Sharing Service. Source: here
Other apps and devices that can cause the wakelock:
TP Link routers: disable the print server in USB settings
Asus routers: disable AiCloud
disable Dropbox Lan Sync
disable wireless on (HP) printers
disable Canon network scan utility.
Using another kernel might also help to solve this problem: but I haven't tried that yet.
Try out the Franco kernel: http://forum.xda-developers.com/showthread.php?t=2508284
He has merged some wifi driver patches which should adress this problem. It reduced the wakelocks for me to 1 min in over 8 hours on my home network and to 3 min in one hour ony my university network!
So it should be possible to get rid of this problem in your home network.
But what about work or university networks? There are even more devices connected so the problem gets even worse. In Europe we have the Eduroam wifi network at many universities. If I'm connected to this network I get about 20 min wakeup time in one hour. There are a lot of ARP, DHCP and IPv6 request from different sources. Unfortunately you can't change anything about the configuration on your university/school/work network, so we need to find a solution to block these requests on our phone.
A solution for the IPv6 requests might be to disable IPv6 on your phone if you don't use it. In terminal:
Code:
echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6
Change the 1 to a 0 if you want to reactivate IPv6. Android resets this setting every time you connect to a network, so you might try Tasker to do this.
I still haven't found a solution for the ARP and DHCP requests though. Any help or input would be appreciated.
Thanks
edit (05/14/14): updated OP with other tips you mentioned
Thanks, this was a useful post. When I am at work on their wifi my phone doesn't go to sleep and definitely drains the battery quickly. Hopefully a better solution can be found.
laxor said:
Hey guys,
have you noticed that your device uses up a lot more battery on certain wifi networks (e.g. at work or university)? It is probably caused by the wlan_rx_wake wakelock.
From the wakelocks database:
So apparently some other device in the network keeps waking up the Nexus. If the problem occurs in your home network you can easily find out which device is causing the problem by using Shark and Wireshark. You'll get a log that shows every network activity.
Here are some tips from a similiar thread at the URL="http://forum.xda-developers.com/showthread.php?t=2133176"] SGSII-forums[/URL] (thanks!):
use a static IP instead of DHCP (you may have to set a static IP every time you sign up in that particular network)
disable IPv6 protocol on your phone (Dorimanx kernels have an option for this in ST tweaks or you can use "Android Firewall" for this
update your router firmware
buy a gaming adapter for your Wifi network that gets the DHCP IP adress, but gives your phone a static IP
optimise router settings: click
Windows network is causing the problem - solution here: click
Change wireless network encryption method, change wifi channel, instead of using auto baseband use only 2.4 or 5GHz baseband (Wi - Fi - advanced - Wi - Fi frequency band)
turn off uPNP in router/AP
t urn off netbios in windows network
Thoravukk FAQ tells you: Q. My device not entering deep sleep if i use Wifi?
A: That's not a Kernel issue! It's a Router and (Windows 7) Network problem. Disable IPv6, IP Helper service, shell hardware detection service and the Windows Media Player Network Sharing Service. Source: here
Other apps and devices that can cause the wakelock:
Dropbox Lan Sync, (HP) Wireless printer, Canon network scan utility.
Using another kernel might also help to solve this problem, but I haven't tried that yet.
So it should be possible to get rid of this problem in your home network.
But what about work or university networks? There are even more devices connected so the problem gets even worse. In Europe we have the Eduroam wifi network at many universities. If I'm connected to this network I get about 20 min wakeup time in one hour. There are a lot of ARP, DHCP and IPv6 request from different sources. Unfortunately you can't change anything about the configuration on your university/school/work network, so we need to find a solution to block these requests on our phone.
A solution for the IPv6 requests might be to disable IPv6 on your phone if you don't use it. In terminal:
Code:
echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6
Change the 1 to a 0 if you want to reactivate IPv6. Android resets this setting every time you connect to a network, so you might try Tasker to do this.
I still haven't found a solution for the ARP and DHCP requests though. Any help or input would be appreciated.
Thanks
___
Use the new BBS beta to check your wakelocks.
Click to expand...
Click to collapse
Been having this wakelock as well. Almost all of the packets being picked up by my phone are being sent by my router to random ports. No idea what is really causing it, but it is pretty annoying. Doesnt seem to drain much battery from the device though.
695886915
Apparently this is a known problem. Franco has already merged two fixes from Google in his kernel which reduce the wakelock, but still don't eliminate it completely. But I'm sure that this issue will soon be resolved with custom kernels or even an update from Google.
I'm hoping for this to be fixed too. My N4 didn't exhibit this wakelock, and my N5 is not deep sleeping at all when I'm at work as a result. I'm just using LTE at work, which is okay, but still not the best solution.
Franco Kernel didn´t help at all, since he seem to include all the google wifi patches as well, the official Google update is unlikely to solve the problem... so pissed off by this, eating up my battery so quickly I have to switch off wifi completely (and I hardly have cell data reception here at my workplace) ... sucks!
Thanks finally contained this problem.
Thanks for a great summary of causes and the info I needed to finally contain it. This problem had been dogging me since I got the N5 on my home network.
I tried static IP, no good.
I tried wifi-off on sleep, no good (never got to sleep i guess!!).
I tried forcing 5 GHz, no good.
Finally I followed the advice to Disable IPv6, IP Helper service, shell hardware detection service and the Windows Media Player Network Sharing Service on each Windows PC, and my stay awake time from Android OS plummeted from hours to minutes which I can deal with.
May not work for everyone, but seems to have done it for me. Thanks again.
Thank you for the post. It makes me nervous that I'm getting this wake lock. I previously got it on my GNex and Nexus7 (2012). I tried every method above to fix but got nowhere. For whatever reason my Nexus 4 didn't suffer from this. Hopefully I can figure something out for my new nexus 5
The update to 4.4.1 does not fix this issue. Still getting this wakelock.
Yes. I found the android OS is still killing the battery after updating to 4.4.1
muyoso said:
The update to 4.4.1 does not fix this issue. Still getting this wakelock.
Click to expand...
Click to collapse
Sunkins said:
Yes. I found the android OS is still killing the battery after updating to 4.4.1
Click to expand...
Click to collapse
Wish this would get fixed, as it's my last remaining wakelock issue and the only thing holding me back from getting fantastic battery life.
Sent from my Nexus 5 using xda app-developers app
laxor said:
Hey guys,
have you noticed that your device uses up a lot more battery on certain wifi networks (e.g. at work or university)? It is probably caused by the wlan_rx_wake wakelock.
From the wakelocks database:
So apparently some other device in the network keeps waking up the Nexus. If the problem occurs in your home network you can easily find out which device is causing the problem by using Shark and Wireshark. You'll get a log that shows every network activity.
Here are some tips from a similiar thread at the SGSII-forums (thanks!):
use a static IP instead of DHCP (you may have to set a static IP every time you sign up in that particular network)
disable IPv6 protocol on your phone - see below
update your router firmware
buy a gaming adapter for your Wifi network that gets the DHCP IP adress, but gives your phone a static IP
optimise router settings: click
Windows network is causing the problem - solution here: click
Change wireless network encryption method, change wifi channel, instead of using auto baseband use only 2.4 or 5GHz baseband (Wi - Fi - advanced - Wi - Fi frequency band)
turn off uPNP in router/AP
t urn off netbios in windows network
Thoravukk FAQ tells you: Q. My device not entering deep sleep if i use Wifi?
A: That's not a Kernel issue! It's a Router and (Windows 7) Network problem. Disable IPv6, IP Helper service, shell hardware detection service and the Windows Media Player Network Sharing Service. Source: here
Other apps and devices that can cause the wakelock:
Dropbox Lan Sync, (HP) Wireless printer, Canon network scan utility.
Using another kernel might also help to solve this problem: but I haven't tried that yet.
Try out the Franco kernel: http://forum.xda-developers.com/showthread.php?t=2508284
He has merged some wifi driver patches which should adress this problem. It reduced the wakelocks for me to 1 min in over 8 hours on my home network and to 3 min in one hour ony my university network!
So it should be possible to get rid of this problem in your home network.
But what about work or university networks? There are even more devices connected so the problem gets even worse. In Europe we have the Eduroam wifi network at many universities. If I'm connected to this network I get about 20 min wakeup time in one hour. There are a lot of ARP, DHCP and IPv6 request from different sources. Unfortunately you can't change anything about the configuration on your university/school/work network, so we need to find a solution to block these requests on our phone.
A solution for the IPv6 requests might be to disable IPv6 on your phone if you don't use it. In terminal:
Code:
echo 1 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6
Change the 1 to a 0 if you want to reactivate IPv6. Android resets this setting every time you connect to a network, so you might try Tasker to do this.
I still haven't found a solution for the ARP and DHCP requests though. Any help or input would be appreciated.
Thanks
___
Use the new BBS beta to check your wakelocks.
Click to expand...
Click to collapse
Thanks for this thread. Not sure if it will help or not but I have done all the things in the op and will report back. Have to start somewhere I guess. Although this isn't totally killing my battery in home .8% per hour will sleeping at night It by far is the biggest thing waking my phone. In 9 hrs I have 45 minutes of wake and 35 come from this. If I can get this under control I an sure I can get a little better battery performance. :good:
HP wireless printer
Hi, I have done everything you have listed, though I am still experiencing the wakelock. I have an HP wireless printer so I think this is the problem. Though, what could I do to stop it from creating the wakelock on my phone? This doesn't list what you need to do for the HP printer. Thanks in advance.
Any recommendations for a good modem/router that will not cause these wakelocks?
Sent from my Nexus 5 using xda app-developers app
For those who have tp link routers and get this wake lock, disable the print server in USB settings. It stopped almost all the RX_wake..
Before stopping I used to get some regularly spaced packets from 192.168.1.1 (router) to 255.255.255.255 UDP 7437 .. Bite completely stopped..
Hit thanks if I've helped you.
gpkumaran said:
For those who have tp link routers and get this wake lock, disable the print server in USB settings. It stopped almost all the RX_wake..
Before stopping I used to get some regularly spaced packets from 192.168.1.1 (router) to 255.255.255.255 UDP 7437 .. Bite completely stopped..
Hit thanks if I've helped you.
Click to expand...
Click to collapse
I might sound like a noob, but where do you find the USB settings to disable the print server?
grumpyfuzz said:
I might sound like a noob, but where do you find the USB settings to disable the print server?
Click to expand...
Click to collapse
in ur router setup page 192.168.1.1(probably)
Kyle C said:
Thank you for the post. It makes me nervous that I'm getting this wake lock. I previously got it on my GNex and Nexus7 (2012). I tried every method above to fix but got nowhere. For whatever reason my Nexus 4 didn't suffer from this. Hopefully I can figure something out for my new nexus 5
Click to expand...
Click to collapse
Have you figured anything out yet? I have also tried everything and still getting this wakelock also.
grumpyfuzz said:
Have you figured anything out yet? I have also tried everything and still getting this wakelock also.
Click to expand...
Click to collapse
Franco kernel working to fix this?
Momotani-Hitoshi said:
Franco kernel working to fix this?
Click to expand...
Click to collapse
It didn't work for me, but it might work for other people.

Categories

Resources