Wi-fi on and off problem - Android Q&A, Help & Troubleshooting

Hello,
Last 2-3 weeks a have this strange problem with my phone, when i turn on wifi, the box continiiusly loops ticking and unticking and goes on off without stopping.
I thought initially that this was a problem of the specific rom for Motorola Milestone. But when i installed the initial sbf of the phone, nothing changed :-(
Anyine experienced in the past this issue? Unfortunately this is a reason to change phone and i dont want to buy a new one now...
Thanks in advance
Sent from my NookColor using Tapatalk

It seems that a lot of other users had / have this problem, however i dont know what to do - especially with the wifi-lock help below
http://code.google.com/p/android/issues/detail?id=9677
http://www.htcdesireforum.com/htc-de...g-android-2-2/
http://androidforums.com/captivate-a...i-problem.html

I suppose i am the only user on xda that has this error... :-(
Sent from my NookColor using Tapatalk

A bit dissapointing that there is no help on this :-(
I suppose i should start searching for a new phone.
Sent from my NookColor using Tapatalk

Anyone please? :-(
Sent from my NookColor using Tapatalk

Fekish said:
Anyone please? :-(
Sent from my NookColor using Tapatalk
Click to expand...
Click to collapse
Have you tried installing a new rom?

WiFi - On/Off
I suspect it has something to do with the ROM/HW interface. I would do a complete wipe of your phone back to stock factory settings.
Does it do the same thing on the factory wipe?
Is your problem confined to 1 hotspot or WiFi device or all devices to attempt to attach to?
If the problem continues on the factory ROM and factory settings I would suspect a hardware issue.
ALSO you could try upgrading/downgrading your MODEM to a different one and see if that helps.

Thanks, i really appreicate it guys!
i installed different roms, wiped everything, went back to stock and nothing...
Wifi goes on and off without showing what networks are available.
How to change moden?
Sent from my NookColor using Tapatalk

I had the same Problem with a few ROM's but now I Found CoreDruid for my HTC Desire HD and that problem is history.

When it happens, just reboot!

Fekish said:
Thanks, i really appreicate it guys!
i installed different roms, wiped everything, went back to stock and nothing...
Wifi goes on and off without showing what networks are available.
How to change moden?
Sent from my NookColor using Tapatalk
Click to expand...
Click to collapse
Does that problem occur on a custom rom?

Theonew said:
Does that problem occur on a custom rom?
Click to expand...
Click to collapse
On all custom roms, and atock ones.
Sent from my NookColor using Tapatalk

Have you tried switching ON the OFFLINE mode (Airplane mode) and then switch off OFFLINE mode?? It helps in my Photon...
Further you can try turning WiFi Hotspot On and then Off... Heard that this method also solves WiFi issues in some MoPhos....
Third solution for MoPho, I am not sure it will work for MileStone or not.... goto https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/77706

Please provide some log files, when you turn of wifi: logcat and dmesg. You can get it using app like Quick System Info, or get them using adb.

Try doing this.
Go to Advanced wifi settings and uncheck "Use static IP" .

Hello,
attached is the logcat.
Thanks everyone for spending time in my problem!

From what i see from your log file:
E/wpa_supplicant(19421): ERROR - wpa_driver_tista_private_send - error sending Wext private IOCTL to STA driver (ioctl_cmd = 800508, res = 1, errno = 25)
E/wpa_supplicant(19421): ERROR - Failed to get mac address!
D/WifiStateTracker( 2569): Reset connections and stopping DHCP
I/wpa_supplicant(19421): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00
V/WifiMonitor( 2569): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00]
E/wpa_supplicant(19421): ERROR - wpa_driver_tista_private_send - error sending Wext private IOCTL to STA driver (ioctl_cmd = 8021501, res = 1, errno = 100)
E/wpa_supplicant(19421): ERROR - Failed to do tista scan!
W/wpa_supplicant(19421): Failed to initiate AP scan.
D/WifiStateTracker( 2569): Disabling interface
E/wpa_supplicant(19421): ERROR - wpa_driver_tista_private_send - error sending Wext private IOCTL to STA driver (ioctl_cmd = 8000001, res = -1, errno = 19)
E/wpa_supplicant(19421): ERROR - Failed to start driver!
I/wpa_supplicant(19421): CTRL-EVENT-DRIVER-STATE HANGED
V/WifiMonitor( 2569): Event [CTRL-EVENT-DRIVER-STATE HANGED]
D/wifi ( 2569): wifi doCommand: ret=-1
Click to expand...
Click to collapse
ioctl system calls fail with different errors. Ioctl is used for controlling the device, WiFi chip in your case. Errors mean that either driver is not ok but if you have original rom it shouldn't be the case, or device itself is not operational.
So probably your have a hardware failure.
You can also try with some unencrypted wifi, maybe the problem occurs in WPA mode only.

ok thanks
first time i heard a broken wifi, but it seems that is time for a new phone!

Related

HTC Desire Wi-Fi Problem

Had a wi-fi problem on my htc desire for a while now..
One time I went to turn wi-fi on and it just said "Unable to start wi-fi". It had worked totally fine up until that point.
I've tried doing a factory reset, rooted, updated rom but it's still not working.
When the problem happened I had not rooted the phone or changed anything really.. it just happened.
In logcat it says:
flg=0x10200000 cmp=com.android.settings/.wifi.WifiSettings bnds=[124,404][236,531] }
D/SettingsWifiEnabler( 548): Received wifi state changed from Enabling to Unknown
W/SyncAllWidget( 151): activeSynch is null false
I/ActivityManager( 79): Displayed activity com.android.settings/.wifi.WifiSettings: 495 ms (total 495 ms)
I/WifiHW ( 79): wifi_load_driver enter
D/SettingsWifiEnabler( 548): Received wifi state changed from Unknown to Enabling
D/dalvikvm( 1805): GC freed 3806 objects / 257536 bytes in 97ms
D/NetworkLocationProvider( 79): onCellLocationChanged [1363,22890]
I/WifiHW ( 79): wifi_load_driver end error 2
E/WifiService( 79): Failed to load Wi-Fi driver.
D/SettingsWifiEnabler( 548): Received wifi state changed from Enabling to Unknown
Anyone got any ideas on how to fix this?
h2o pete said:
Had a wi-fi problem on my htc desire for a while now..
One time I went to turn wi-fi on and it just said "Unable to start wi-fi". It had worked totally fine up until that point.
I've tried doing a factory reset, rooted, updated rom but it's still not working.
When the problem happened I had not rooted the phone or changed anything really.. it just happened.
In logcat it says:
flg=0x10200000 cmp=com.android.settings/.wifi.WifiSettings bnds=[124,404][236,531] }
D/SettingsWifiEnabler( 548): Received wifi state changed from Enabling to Unknown
W/SyncAllWidget( 151): activeSynch is null false
I/ActivityManager( 79): Displayed activity com.android.settings/.wifi.WifiSettings: 495 ms (total 495 ms)
I/WifiHW ( 79): wifi_load_driver enter
D/SettingsWifiEnabler( 548): Received wifi state changed from Unknown to Enabling
D/dalvikvm( 1805): GC freed 3806 objects / 257536 bytes in 97ms
D/NetworkLocationProvider( 79): onCellLocationChanged [1363,22890]
I/WifiHW ( 79): wifi_load_driver end error 2
E/WifiService( 79): Failed to load Wi-Fi driver.
D/SettingsWifiEnabler( 548): Received wifi state changed from Enabling to Unknown
Anyone got any ideas on how to fix this?
Click to expand...
Click to collapse
I have the same problem on a ROM i have made... That's just for Tattoo not Desire... But it's the same logcat... So can somebody help us??
Yeah I'm pretty stuck on what to do :/.
Added some information about my software to the first post.
i have same problem on my htc dream
BUMP...
-------------------------------------
Sent from my übercharged HTC Tattoo
Fixed it by setting a static IP address.
Wi-Fi > Menu Button > Advanced > Use static IP
i had yesterday the same problem on my desire,
i fixxed this with flash a "older" stock rom and update it with the build-in updater....
same problem with my desire. how to fix it?
It's broke again. Setting a static IP doesn't fix it any more. Any ideas?
got the same problem here
can any one help???
Bump
Sent from my HTC Desire using XDA App
seems like wlan.ko is not available in /system/lib/modules/
I've had similar problems in the past, but was unable to solve them. You can check several things though.
1) wlan.ko in /system/lib.modules <-- has to match up with the kernel that you are using
2) any entries for wifi and/or dhcp in the init.rc and init.devicenamehere.rc files that are in the ramdisk in the boot.img
3) wifi settings in the build.prop
4) files in /system/etc/wifi
5) I'm not sure about this one, but even some of the files in /system/etc/firmware might have something to do with wifi.
6) files in /system/etc/dhcpd
7) any files in /system/bin and/or /system/xbin that are called by *.rc from #2.
Just take a working ROM (stock is usually what I use), and compare the files with the corresponding files in your build. I use either WinMerge or N-way Folder Compare or just plain old 'diff' in Linux.
I had the same issue.
Flashed a new ROM with full wipe etc. Wifi OK.
Flashed a kernel update on top of the ROM. Wifi broken. Turning wifi on it would error and turn off again.
The only way I could fix it was to flash a full ROM and make sure I wiped everything from the recovery.
Any more info you can provide? Current ROM +version +any other mods applied like status bar or OC kernels?
Did anyone fix this?? I am stuck here, G1 Dream
CM 5.0.8 DS
Please help!!!
Are you getting the same error in logcat as others have? If so, I think .mak fixed it, but he never let us know how.
Same Issues...
Ive tried Reverting to CM 5.07, 5.07 and now the beta 6.0 and all have yet to fix the wifi issue. I also tried switching between the radio's and doing a full format/partition and wipe. Any fix to this yet?
That was Lovely Bro...Really Useful...I got my DESIRE today and could connect to WIFI but was unable to browse...This tip helped me...Thx a lot... Keep up the good work..
Trying to replace bcm4329.ko
I did the OTA update for my Desire today, and of course have the wi-fi problem.
However, when I enable wi-fi, I see the following appear at the end of dmesg:
Code:
<3>[ 8197.511535] bcm4329: version magic '2.6.32.15-g6a358a9 preempt mod_unload
ARMv7 ' should be '2.6.32.15-gf9c0527 preempt mod_unload ARMv7 '
The update zip (via thread 778852) contains a bsdiff patch file patch/system/lib/modules/bcm4329.ko.p... and from some examination of that file it appears just to patch the vermagic field of the .ko file.
I tried to use a hex editor to 'fix' bcm4329 and used adb pull/push to replace it, but I get
Code:
failed to copy 'bcm4329.ko.fix' to '/system/lib/modules/bcm4329.ko': Read-only
file system
Can anyone help me with this?
Update: I am a fool. I was using the wrong goldcard! Once I put the right goldcard in, then sdcard:update.zip applied correctly and wi-fi started working again.
@dleonard, could you please make step by step instructions of how to fix this wifi issue?
thanks
Mixu

[Q] Solution for wireless issues?

I have been having Wifi connectivity issues for some time. Basically, I can use wifi about 4 times before it just stops working.
I get the message "Error" in the settings. The message was "Unable to start Wifi" in Android 2.1.
I've tried SEUS, I'm tried resets, wipes, re-installs, and nothing. I'm not an expert when it comes to seriously technical phone settings but here's some info. I think that maybe my settings are corrupted. From the service menu:
Wifi State: Unknown
Network State: Unknown
Supplicant: Uninitialized
RSSI:-200
Hidden SSID: False
IPaddr: 0.0.0.0
MAC addr: (Blank)
Network ID: -1
Link SPeed: -1 mbps
Scan Results: (blank)
After running ping test
PingIPAddr: Fail - not reachable
Ping Hostname: Fail
HTTP client: Fail: IOException
Also, when I try to go into "Wifi API" and hit "getConfiguredNetworks" nothing happens.
have u rooted ur phone or installed any custom Roms ??
No I haven't, its stock except that it is unlocked. Maybe rooting it will let me take control of things such as these?

[Q] Fascinate on Page Plus/ICS ROMs

Hello,
I'm new to the world of Fascinate and am currently running my Fascinate on Page Plus. Using the stock TouchWiz ROM, I have 3G working with no problems. Once I flash to an AOSP ROM such as AOKP or MIUI, 3G no longer works. Does anyone know of anything I could be doing wrong, or if there are any files that I can modify to make 3G work on AOSP/ICS ROMs using Page Plus Cellular?
Thanks!
ac_lanham said:
Hello,
I'm new to the world of Fascinate and am currently running my Fascinate on Page Plus. Using the stock TouchWiz ROM, I have 3G working with no problems. Once I flash to an AOSP ROM such as AOKP or MIUI, 3G no longer works. Does anyone know of anything I could be doing wrong, or if there are any files that I can modify to make 3G work on AOSP/ICS ROMs using Page Plus Cellular?
Thanks!
Click to expand...
Click to collapse
Prolly just need to copy over the network specific stuff in the build . Prop and the apn -config
Sent from my Glitched AOKP Unicorn.
Stephen.k.spear said:
Prolly just need to copy over the network specific stuff in the build . Prop and the apn -config
Sent from my Glitched AOKP Unicorn.
Click to expand...
Click to collapse
Thanks sir. I'm going to give that a shot.
Ok, I'm making some slight progress on this issue.
I ran an ADB logcat on the device (excuse me if I got the terminology wrong, very new to Android) and got the following message
E/ConnectivityService( 261): Exception trying to add a route: java.lang.IllegalStateException: Unable to communicate with native dameon to add routes - com.android.server.NativeDaemonConnectorException: Cmd {interface route add ppp0 default 0.0.0.0 0 66.174.168.64} failed with code 400 : {Failed to add route to default table (No such device)}
D/NetworkPolicy( 261): applying policy NetworkPolicy[NetworkTemplate: matchRule
=MOBILE_ALL, subscriberId=valid]: cycleDay=3, warningBytes=2147483648, limitBytes=-1, lastSnooze=-1 to ifaces [ppp0]
D/pppd ( 4014): using channel 163
I/pppd ( 4014): Using interface ppp0
I/pppd ( 4014): Connect: ppp0 <--> /dev/ttyCDMA0
W/pppd ( 4014): Warning - secret file /etc/ppp/pap-secrets has world and/or group access
I had to dink around with the chap-secrets and pap-secrets some and it finally authenticated. Hopefully when I get past this it will be smooth sailing.
Damn this thing is kicking my butt. If anyone has any suggestions, please help
I'm getting the following message now in adb logcat
E/pppd ( 4275): Could not determine local IP address
I/pppd ( 4275): Connect time 0.2 minutes.
I/pppd ( 4275): Sent 97 bytes, received 58 bytes.
I/pppd ( 4275): LCP terminated by peer
W/Netd ( 202): No subsystem found in netlink event
D/NetlinkEvent( 202): Unexpected netlink message. type=0x11
Almost acts as if it may be DHCP
ac_lanham said:
Hello,
I'm new to the world of Fascinate and am currently running my Fascinate on Page Plus. Using the stock TouchWiz ROM, I have 3G working with no problems. Once I flash to an AOSP ROM such as AOKP or MIUI, 3G no longer works. Does anyone know of anything I could be doing wrong, or if there are any files that I can modify to make 3G work on AOSP/ICS ROMs using Page Plus Cellular?
Thanks!
Click to expand...
Click to collapse
I can't speak for MIUI (never tried it), but AOSP, AOKP, THS and CM9 ICS ROMs work fine for my on PagePlus. I've never had any 3G issues. I've never had to make any changes to get 3G to work.

[Q] CM 10 wifi issues

Hi all,
I recently purchased a SGS3 and ran the stock ROM for approx 30mins before flashing a CM10 nightly build (i9300 intl). Because of this I am unable to verify if the wifi was working on my home router prior to flashing a custom ROM.
At work I am able to connect to our wifi connection without problemson 2.4ghz or 5ghz. At home I've got a D-Link DSL-G604T wireless router which I am unable to connect to. I've tried changing the wifi channel, password, removing protection, factory reset and installed a seperate CM10 nightly build without any help.
When trying to connect to the WIFI connection I get the following output in adb logcat.
Anyone have any ideas what may be stopping me from connecting ot my wifi?
W/wpa_supplicant( 5841): wlan0: Failed to initiate AP scan
W/wpa_supplicant( 5841): wlan0: Failed to initiate AP scan
W/wpa_supplicant( 5841): wlan0: Failed to initiate AP scan
W/wpa_supplicant( 5841): wlan0: Failed to initiate AP scan
I/wpa_supplicant( 5841): wlan0: Trying to associate with 00:1e:58:80:a2:e2 (SSID
='HOMEWIFI' freq=2452 MHz)
D/CommandListener( 1913): Clearing all IP addresses on wlan0
I/wpa_supplicant( 5841): wlan0: Associated with 00:1e:58:80:a2:e2
I/wpa_supplicant( 5841): wlan0: Authentication with 00:1e:58:80:a2:e2 timed out.
I/wpa_supplicant( 5841): wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00
reason=0
More info of my phone (kernel, build etc): i.imgur.com/PRaEx.png
Cheers
You could try install the latest Siyah kernel, which contains the updated Wifi driver which could help. I used to have my Wifi absolutely fine with my ICS stock ROM. When I upgraded to CM 10 Jelly Bean, my Wifi works but very unstable. Two solutions that worked for me. 1- Use Wifi fixer app 2- Upgrade Siyah 1.7b4 kernel.
And now I can enjoy CM10 and AOKP at the same time without Wifi problems
Hope this helps
this is also happening on the verizon cm10 builds to for the gs3.

[DEVS]Lets fix cm9!

All dev related posts for fixing cm9 will come here.
All ideas are welcome but dont post for eta and stuff like that..
Currently fixing: Bluetooth
ToDo:
Camera
Internal memory
Graphic flickering
Audio(partially working)
Anything else?
Fixed:Wifi
My device tree: https://github.com/hell-lock-xda/android_device_htc_protou
If you manage to fix anything then send me a pull request.
prototype-U said:
All dev related posts for fixing cm9 will come here.
All ideas are welcome but dont post for eta and stuff like that..
Currently fixing: WiFi
ToDo: Bluetooth
Camera
Internal memory
Graphic flickering
Audio(partially working)
Anything else?
My device tree: https://github.com/hell-lock-xda/android_device_htc_protou
If you manage to fix anything then send me a pull request.
Click to expand...
Click to collapse
Fixed:
Camera atis 112 fixed it (if permissions were granted )
Internal Memory ( same as above )
I'll try ti fix graphical glitches
And wait have you tried using stuff from lliors device trees/ github?
The Android Manual said:
Fixed:
Camera atis 112 fixed it (if permissions were granted )
Internal Memory ( same as above )
I'll try ti fix graphical glitches
And wait have you tried using stuff from lliors device trees/ github?
Click to expand...
Click to collapse
Where is the fix??
BTW @all the above device tree is not working properly.. pls dont compile it.. I will soon make a working device tree
prototype-U said:
Where is the fix??
BTW @all the above device tree is not working properly.. pls dont compile it.. I will soon make a working device tree
Click to expand...
Click to collapse
In atis112's guthub his cm9 build has a functioning camera and internal memory
The Android Manual said:
In atis112's guthub his cm9 build has a functioning camera and internal memory
Click to expand...
Click to collapse
I have his tree forked and camera is nt working.. dunno abt internal
Good news and bad news for ya all!
Bad news:Wifi is still not working properly
Good news:WiFi drivers are loading properly! But its showing probs with supplicant. I was able to replicate such problems on stock rom too so we are pretty close to fixing it!
Code:
23:26:55.120 Error WifiHW 294 Supplicant not running, cannot connect
23:26:44.093 Info logwrapper 4398 /system/bin/wpa_supplicant terminated by exit(255)
23:26:44.093 Error wpa_supplicant 4401 wlan0: Unsupported driver 'nl80211'
23:26:39.065 Error WifiStateMachine 294 Failed to setup control channel, restart supplicant
23:26:24.107 Error wpa_supplicant 3977 wlan0: Unsupported driver 'nl80211'
23:26:24.107 Info logwrapper 3974 /system/bin/wpa_supplicant terminated by exit(255)
Adding the commit to github and will work on that driver..
prototype-U said:
Good news and bad news for ya all!
Bad news:Wifi is still not working properly
Good news:WiFi drivers are loading properly! But its showing probs with supplicant. I was able to replicate such problems on stock rom too so we are pretty close to fixing it!
Code:
23:26:55.120 Error WifiHW 294 Supplicant not running, cannot connect
23:26:44.093 Info logwrapper 4398 /system/bin/wpa_supplicant terminated by exit(255)
23:26:44.093 Error wpa_supplicant 4401 wlan0: Unsupported driver 'nl80211'
23:26:39.065 Error WifiStateMachine 294 Failed to setup control channel, restart supplicant
23:26:24.107 Error wpa_supplicant 3977 wlan0: Unsupported driver 'nl80211'
23:26:24.107 Info logwrapper 3974 /system/bin/wpa_supplicant terminated by exit(255)
Adding the commit to github and will work on that driver..
Click to expand...
Click to collapse
can you upload the built you made??
mhb92 said:
can you upload the built you made??
Click to expand...
Click to collapse
I hate posting here, but if you want the build, check out the sources.
Sent from my awesome, stock, Nexus7!
i will be able to check source from my main pc next week..thats why i want the built rom...i wanna check something about supplicant file
mhb92 said:
i will be able to check source from my main pc next week..thats why i want the built rom...i wanna check something about supplicant file
Click to expand...
Click to collapse
I will upload it in few hrs from now..
new build is compiling
Ok..! Waiting for link
Sent from my HTC Desire X using xda app-developers app
So guys here is the latest build. Sorry I cant put it on d-h.st cuz my connection is slow and I will prefer github until we fix all the bugs.
https://github.com/hell-lock-xda/cm9-packages
Just click on zip.
And the kernel is here..
http://d-h.st/zSS
prototype-U said:
So guys here is the latest build. Sorry I cant put it on d-h.st cuz my connection is slow and I will prefer github until we fix all the bugs.
https://github.com/hell-lock-xda/cm9-packages
Just click on zip.
And the kernel is here..
http://d-h.st/zSS
Click to expand...
Click to collapse
https://raw.github.com/hell-lock-xda/cm9-packages/master/cm-9-20130505-UNOFFICIAL-protou.zip
Error: blob is too big
BTW:
init.rc, that loads the wpa_supplicant service, also specifies nl80211.
WiFi almost fixed. It gets turned on but still few errors left to fix(scanning and stuff not working till now).
Code:
18:47:17.788 Info wpa_supplicant 2988 rfkill: Cannot open RFKILL control device
18:47:17.898 Info wpa_supplicant 2988 WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance
18:47:18.007 Error WifiConfigStore 298 Error parsing configurationjava.io.FileNotFoundException: /data/misc/wifi/ipconfig.txt: open failed: ENOENT (No such file or directory)
18:47:18.007 Error wpa_supplicant 2988 wpa_driver_nl80211_driver_cmd: failed to issue private commands
18:47:18.007 Error WifiStateMachine 298 Failed to set country code in
18:47:18.007 Error wpa_supplicant 2988 wpa_driver_nl80211_driver_cmd: failed to issue private commands
18:47:18.007 Info wpa_supplicant 2988 wlan0: CTRL-EVENT-DRIVER-STATE HANGED
18:47:18.007 Error WifiStateMachine 298 Failed to set frequency band 0
18:47:18.007 Debug CommandListener 137 Clearing all IP addresses on wlan0
18:47:18.007 Info wpa_supplicant 2988 wlan0: CTRL-EVENT-TERMINATING
18:47:18.224 Debug SoftapController 137 Softap fwReload - Ok
18:47:18.224 Debug CommandListener 137 Setting iface cfg
18:47:18.224 Debug CommandListener 137 Trying to bring down wlan0
When I press on "ON", it turns on and then off... this keeps on happening.. so we did something productive today
Wifi fixed!!!!!!!!!!yeyeyeyeyey!!
YEAAAHHHH!
prototype-U said:
Wifi fixed!!!!!!!!!!yeyeyeyeyey!!
Click to expand...
Click to collapse
I love you lol Lets apply it on PA! What do you say?
The Android Manual said:
I love you lol Lets apply it on PA! What do you say?
Click to expand...
Click to collapse
tomorrow :highfive:
prototype-U said:
tomorrow :highfive:
Click to expand...
Click to collapse
Copy That :highfive:
so is wifi fully working now???
mhb92 said:
so is wifi fully working now???
Click to expand...
Click to collapse
Yes

Categories

Resources