Related
Hi Guys. You are the only hope for me to resolve the problem with WiFi on my device.
So the situation is: I received Motorola Defy with Android 2.2.2 on board not from a shop. This device was already hacked a little (root, localization etc..)
So I decided to flash CM 7 on it
I did everything as described in instruction. But after I have flashed this device I found that WiFi does not work. It began to work after flashing for a small period but then it stopped working
Device successfully connects to wifi, receives IP address but no application can connect to Internet. I tried to install some WiFi programs to try to resolve this problem, tried to switch wifi mode on my router (WPA2 AES/TKIP, WEP, no security at all) that did not help
Even pinging my router gives me "request timed out"
I wonder can I somehow investigate deeper into this problem to find solution for my problem? Or this bug cannot be resolved?
No any suggestions?
I would suppose that posting at the CM7 post at http://forum.xda-developers.com/showthread.php?t=1033654 would be more useful.
Some people say that they have wifi problems
Click to expand...
Click to collapse
Sorry I could not be of greater help. =(
matthew5025 said:
I would suppose that posting at the CM7 post at http://forum.xda-developers.com/showthread.php?t=1033654 would be more useful.
Sorry I could not be of greater help. =(
Click to expand...
Click to collapse
I tried to, but I couldn't
New members (those with fewer than 10 posts) are not permitted to post to development-related forums
To ask Questions about developing your device, installing ROMs, software and themes you must go to the Q&A or General Forum.
Click to expand...
Click to collapse
Ah yes...
Anyway wifi is a known issue. Doubt posting would do you much good though.
I suppose it is just best for you to wait for it to be fixed. =(
What's your phones MAC addres? It's there in WiFi settongs somewhere chances are its not a real MAC addy and your router doesn't like it, I thought that issue had been resolved just try a different Rom
Sent from my HTC HD2 using Tapatalk
No
I do not think that my router blocks my phone by mac address as if I use froyo 2.2.2 wifi works perect.
BTW if i use CM7 wifi also ok. I mean connection to my router. Phone receives ip address and this is OK. But internet connection is available only several minutes after flashing the phone. Then I cannot even ping anything from my android terminal
Exactly,
I have wifi issue on my latest 7.2 nightly build, too.
So, it looks like, phone wants to connect to saved connections (wifi status is connecting), but there should be status "searching", and stays on status Disconnected. Pushing Search button, do nothing.
When I delete few saved connections, wifi could do "search", and after that, i can connect!.
I think, there is critical numer of saved connections, when it is riched, then wifi can't do search, and connect to any host.
Try Airplane mode
Hi. For me going to airplane brought wi-fi back to life, and it stayed alive after turning all radios back on. Hope it works for you.
Check you WepKey, It is often that
Is anyone having wifi problems when connecting to a wifi network using 4.1.2?on 4.1.1 and below, wifi always worked perfectly. But it has been kinda broken with every 4.1.2 rom i have tried. Am i the only one?i see a lot of people complaining about wifi issues with 4.1.2 but i see no one mentioning this on our device.
what happens with me is that the phone stays in state "obtaining ip adress" for a long time and then proceeds to properly connect. The "avoid poor connections" option is not enabled. anyone know why this is happening?Also, the signal is worse than with previous android versions!
migueldbr said:
Is anyone having wifi problems when connecting to a wifi network using 4.1.2?on 4.1.1 and below, wifi always worked perfectly. But it has been kinda broken with every 4.1.2 rom i have tried. Am i the only one?i see a lot of people complaining about wifi issues with 4.1.2 but i see no one mentioning this on our device.
what happens with me is that the phone stays in state "obtaining ip adress" for a long time and then proceeds to properly connect. The "avoid poor connections" option is not enabled. anyone know why this is happening?Also, the signal is worse than with previous android versions!
Click to expand...
Click to collapse
I've had that, happens only with certain routers and never really knew why. Also happened on GB though AFAIK.
polobunny said:
I've had that, happens only with certain routers and never really knew why. Also happened on GB though AFAIK.
Click to expand...
Click to collapse
but i have the same router as before and it also happens with my university wifi(and it didnt happen on 4.1.1 and below)! Never had any issues(ever!) with GB, ICS and early JB=/. But for some reason this 4.1.2 messes my wifi.
here is a logcat i took. as you can see the wifi "stuff" begins and then stops. Only after 30 seconds or so it displays the message that the phone is now connected
This could be a rom specific problem or even simply a kernel issue.
Mobile Telephone said:
This could be a rom specific problem or even simply a kernel issue.
Click to expand...
Click to collapse
not a rom specific problem and also not a kernel issue. Have tried several roms and many different kernels!
Had this issue. Sometimes it doesn't even detect my wifi. Had to reboot the router for it to work. I think this is android-specific on SOME routers.
ej8989 said:
Had this issue. Sometimes it doesn't even detect my wifi. Had to reboot the router for it to work. I think this is android-specific on SOME routers.
Click to expand...
Click to collapse
i always detect wifi networks. rebooting router does not fix this. Also, it makes no sense that it is related to the router since it happens with both my home wifi and my university wifi (and with 4.1.1 and below it worked properly on both my home wifi and university).
Some change must have been made in 4.1.2 for the wifi to behave this way. Anyone can get anything from the logcat i provided?
Also, the wifi connects properly if i set static ip on my phone but i can only do that at home because i have acess to my router. Is there any way i can restore wifi files from 4.1.1 to 4.1.2 to make it work properly without having to set static ip?
Same issue here
migueldbr said:
i always detect wifi networks. rebooting router does not fix this. Also, it makes no sense that it is related to the router since it happens with both my home wifi and my university wifi (and with 4.1.1 and below it worked properly on both my home wifi and university).
Some change must have been made in 4.1.2 for the wifi to behave this way. Anyone can get anything from the logcat i provided?
Also, the wifi connects properly if i set static ip on my phone but i can only do that at home because i have acess to my router. Is there any way i can restore wifi files from 4.1.1 to 4.1.2 to make it work properly without having to set static ip?
Click to expand...
Click to collapse
I have the same issue. Can you please let me know if you were able to solve this? If yes, then how?
Hello everybody, this is my first post here but I have been reading the ViperS threads in the development forum since version 2. Awesome rom, I really like it.
However, I have encountered an issue with ViperS 5.1.0 . I would like someone else confirm if this is happening on his sensation too (with ViperS 5.1.0), because its a very annoying bug, and a potential security flaw.
A few days ago I installed ViperS 5.1.0 (from full wipe and no restoring of backups, clean install), and shortly afterwards I noticed that my home computers in my LAN (ethernet and wifi), where having some kind of little micro-cuts in communication with the internet, especially noticeable with google and youtube autocomplete feature and things like that. The communication completely stops for a few seconds, then resumes and works perfectly until a couple of minutes (sometimes less), and it happens again.
I checked my network with a packet sniffer, and found the culprit to be the Sensation. This is what happens:
I have wifi set to always active on the phone and, when the phone is left suspended with screen off, after a little while it begins to send bogus ARP protocol broadcast packets announcing that it has a random (and incorrect) IP associated to his wlan mac. It repeats it again with several other random IPs over time, and sometimes it also says via ARP that it has the same IP as my home router. In that case, it causes all computers and devices on the network, to try to access the internet via the Sensation's wlan card mac, which obviously fails, causing the micro-cuts. After a few seconds, the router sends the correct ARP information and the computers can access the internet again. This is very similar to an ARP spoof attack, but I can't see why the phone is doing it.
It's only happening with ViperS 5.1.0. I have tried disabling ad away and also tried to connect with a fixed IP instead of DHCP, but it keeps happening.
I have attached a screenshot to show the problem.
PD: On other subject, the wifi is buggy when changing access points in the same WLAN (I have 2 APs at home), it turns off, activates mobile data, and then turns wifi on again, taking a long while to do it. In ViperS 3, it just went from one access point to the other without disconnecting. This is a secondary thing, I can live with it, but I thought I should say it just in case it's a easy thing to solve for the devs.
Thanks for your time! I really appreciate your work. :good:
I have been trying to do a packet capture in the phone, and tried to find something in the logs, but I can't see anything. Could this be related to the wifi drivers? Since ARP protocol is in link layer, I can't think of anything else.
Also the other day I connected to a wifi network in other place, and it completely crashed the router, no one else could connect.
@ivicask , I would really appreciate it if you can have a look at this. Because of it, at the moment I'm using mobile data only even at home, and I'm going to use it up pretty quickly
Thanks in advance :good:
raulov said:
I have been trying to do a packet capture in the phone, and tried to find something in the logs, but I can't see anything. Could this be related to the wifi drivers? Since ARP protocol is in link layer, I can't think of anything else.
Also the other day I connected to a wifi network in other place, and it completely crashed the router, no one else could connect.
@ivicask , I would really appreciate it if you can have a look at this. Because of it, at the moment I'm using mobile data only even at home, and I'm going to use it up pretty quickly
Thanks in advance :good:
Click to expand...
Click to collapse
I have been using ViperS for a while, and I it certainly isn't ARP poisoning the network.
Try setting a static IP (set it to that alloted by your DHCP) and see if the issue persists.
Happy to help.
Far_SighT said:
I have been using ViperS for a while, and I it certainly isn't ARP poisoning the network.
Try setting a static IP (set it to that alloted by your DHCP) and see if the issue persists.
Happy to help.
Click to expand...
Click to collapse
That's the first thing I tried, it didn't help.
I have googled it and seems there are some problems with the ARP offload feature in the wifi chip drivers, and several phones have suffered it, the nexus 4 and some HTC devices. A lot of people have reported it in the google code forums.
The thing is that it didn't happen to me in previous ViperS 5.0.0, so something must have been changed in the rom that it's causing it. Do you know where I could look? Maybe it's just something wrong in a config file and can be easily solved.
raulov said:
That's the first thing I tried, it didn't help.
I have googled it and seems there are some problems with the ARP offload feature in the wifi chip drivers, and several phones have suffered it, the nexus 4 and some HTC devices. A lot of people have reported it in the google code forums.
The thing is that it didn't happen to me in previous ViperS 5.0.0, so something must have been changed in the rom that it's causing it. Do you know where I could look? Maybe it's just something wrong in a config file and can be easily solved.
Click to expand...
Click to collapse
While I may not know I shall still try to help once I am home I will quote your post into the correct ROM thread to see if the devs/power users of this ROM can help out
Sent from my HTC Sensation using Tapatalk
ok im posting it now, can you get a logcat to supply to the devs please?
Yes i saw this, but as only person with this problem, i didint investigate. There can be many reasons this is happening to you, but most likely its problem in your own network/routers. My suggestion is first try updating your routers firmware, if there isnt new firmware, just try resting them to factory default and re configure them. I have actual experience with this, my DIR-655 couldn't connect in wifi N mode until i reseted it.
Also HTC ONE users had problems with Dir -655 where it would reboot if HTC one would connect to it (Firmware issue).
Also from your pics i see "duplicate use of 192.168.1.1", are you running 2 routers on same network with same ip address??Than this is the reason of your problems, you cant have 2 devices with same IP in same network, even worse will happen if those 2 devices are actual routers, or even worse if both of them are running DHCP.So re-check your network, make sure only 1 DHCP is running, and there are no devices with same fixed IP address.
Also here are to 2 tests for phone with different wifi supplicant versions, try them ONLY after you make sure your network is fine.
View attachment Test1.zip
View attachment Test2.zip
EDIT:About wifi switching, same thing happens on my ONEX+ ...
ivicask said:
Also from your pics i see "duplicate use of 192.168.1.1", are you running 2 routers on same network with same ip address??Than this is the reason of your problems, you cant have 2 devices with same IP in same network, even worse will happen if those 2 devices are actual routers, or even worse if both of them are running DHCP.So re-check your network, make sure only 1 DHCP is running, and there are no devices with same fixed IP address.
Click to expand...
Click to collapse
Thanks for your answer. The "duplicate use of 192.168.1.1" is exactly the problem, I know that (I am a telecomms tech, I know how this works )
The matter is that the device that is claiming to have the same IP as the router... is the Sensation! See the "source" column in the pic.
I have only one router. Everything is properly configured in the network, the issue only appears when the sensation is connected to wifi AND with screen off. Then it starts sending the false random ARP packets.
Apart from the "router impostor" packets, there is also the problem that over time the other random packets will fill up the ARP tables in the router memory, causing it to hang, although this hasnĀ“t yet happened to me.
In the threads I saw in the google code forums, people reported the same thing for the nexus 4 and several newer HTC devices with the same broadcom chip, (which also caused notification delays) and said that it disappears when disabling "wifi optimization" (with the rise in battery drain that it implies) , which looks like a bug somewhere in the wifi drivers. Unfortunately, disabling that option does not change anything for me.
This has started happening in 5.1.0. Never had such a problem before.
Thanks for the files, I will try them and report results.
Except for this and a weird bug with h/w accelerated videos screen corruption when free memory less than ~90 mb, the ROM is absolutely awesome :good: . It feels much faster and lighter than previous versions. You devs are doing a very good job :good:. HTC should hire you!
OK, problem solved. The test2 file solved it.
With test 1, it stopped sending random IPs in the ARP packets, but instead claimed to have 0.0.0.0 always, and not the correct IP. Also, it couldn't see channel 13 which I'm using on one of my access points (probably region was set to USA in this file).
With test 2, the ARP packets report the correct assigned IP (via DHCP and fixed), it can see all the wifi channels, and everything works perfect. It also appears to be changing from one AP to the other without disconnecting the wifi. This is the correct way it should work.
Still don't know the need to send the ARP info each 15 seconds , but at least now it's correct and there are no problems.
Thank you very much for your help @ivicask , I have seen that the wpa supplicant in the files you posted has an older date, is it just an older version or have you changed something in them also?
Will you include this fix in the next version of ViperS?
Thanks again :good:
Same for me. Killed my router. Especially if downloading at high speed. My router went upp and down. Now I have on other phone and my senny runs stock. No problems att all.
Flashed Viper to check 3min then router died. (it reboots)
Thanks
I couldnt neither write in the original post. By the way, i have the same problem with my wifi conection.
Now i solved it with Test2.zip. I have european wifi too and my router see fine now.
Thanks a lot for this rom and the help.
I didn't notice any particular issues with my WiFi, but I was having the disconnecting behaviour when switching between APs.
The Test2.zip solved this.
More, I tested the received power with Netgear Wifi Analyzer in an already tested place in my home. After applying the Test2.zip it looks like I gained ~10dBm. Maybe it's just something casual, but I wanted to report.
Last. The wpasupplicant file in the Test2.zip has the same modification time as the one in ViperSC2_3.1.4, so I think it has been taken from there
Good job anyway :good:
Hi all,
I have two annoying problems with my OneS using Cm11.
First problem is that my WiFi has reconnect problems.
I have two WiFi networks I often connect to. One at home (WPA2) and the one at my University (802.1x PEAP).
The problem is as follows:
When I get home from University and had my phone connected to the Universitys WiFi the phone doesn't reconnect to my home network.
Trying to reconnect "manually" via WiFi menu doesn't work either. The network(s) is/are listed, when I try to connect the text shortly(not even a second, more like a flash) changes from "saved..." to "connecting...". Deleting and readding the network is not helping either. Couldn't connect to the WiFI at my parents yesterday either (also WPA2).
Only way to solve this is to reboot the phone.
Vice versa the problem doesn't exist. When I get to University the phone automatically connects to the WiFi.
Radio is 1.11.50.05.28_10.27.50.08L. Is that the correct Radio being from Germany using T-Mobile network?
Second problem is that WhatsApp messages are delayed while I am connect via WiFi. On 3G the messages arrive instantly.
WiFi is always on.WiFi optimisation is off.
I've read that delayed WA messages are pretty common, but the majority has the problem both with WiFi and 3G.
Few days ago I wiped System, data, android_secure and the caches and installed the latest nightly and latest pa-gapps to see if that helps. But it didn't.
Hope someone can help.
Thanks
I have a similar situation, WPA2 802.1x at my university, WPA2 at home and other locations.
My radio is 1.15.50.05.29
I periodically flashed the latest nightly and somehow it feels like wifi has degraded from version to version.
I can initate a connection, often I get a "authenticating...", sometimes a "obtaining IP Address...", but it just won't connect.
Once I got "Avoided poor internet connection" despite being close to the AP.
I just flashed the 20140309 nightly a few hours ago and it seems like I lost wifi entirely, not even rebooting will help.
I will try to make a clean install, but I doubt it will change anything, it didn't help before... :/
Hey,
can you give some feedback after your clean install?
I haven't tried a clean install with cm11, just flashed it over 10.2.
Is eduroam your university network, too?
Cheers.
Push.
Problem still present with Nightly from March, 24th.
Update:
Installed a different ROM yesterday (ViperOne S 3.1.0), but the wifi still isn't connecting when I arrive at home and was connected to my universitys wifi previously.
In ViperOne S I "hot-rebooted (restarts the shell)" and could connect to my home wifi again.
Now I really don't know what's causing this problem.
If it is existing with two different ROMs could my router be the problem?
It is a Speedport W723V, got it from my ISP. WIFI Analyzer says it's made by Arcadyan.
Help :silly:
Ah sorry, totally forgot about this.
Log1c. said:
can you give some feedback after your clean install?
Click to expand...
Click to collapse
Didn't change a thing.
By now I am on 140412, problem still exists.
Is eduroam your university network, too?
Click to expand...
Click to collapse
yep
Hi,
flashed CM11 back 'cause Viper didn't solve the problem.
Also changed my wifi ssid to one word, before I had a blank in it. Didn't solve it either.
Last week after university it flawlessly connect to my home wifi, today it didn't.
I'm clueless :S
So I'll live with it, hopefully the 4.4.3 update will fix it
I'm having exactly the same problem with my One S (S4) and CM11 (M5 Snapshot). I'm only using it for a day but could experience the behaviour when changing from University WiFi (802.1x EAP, eduroam) to home WiFi (WPA2) repeatedly.
Looks like some more people have that issue: http://forum.xda-developers.com/showthread.php?p=50953449
Is there any known solution?
Hi,
as of today I haven't found a solution.
Thanks for the link to other people, with the same problem.
Sadly this problem seems to be not well responded to. I can't post on Cm11 thread yet...
Maybe a bug report would help.
Will try to put one together
Log1c. said:
Hi,
as of today I haven't found a solution.
Thanks for the link to other people, with the same problem.
Sadly this problem seems to be not well responded to. I can't post on Cm11 thread yet...
Maybe a bug report would help.
Will try to put one together
Click to expand...
Click to collapse
There is no solution and its only got worse on CM when they added wifi to the kernel because before you could just turn on airplane mode on/off to fix it.
Darknites said:
There is no solution and its only got worse on CM when they added wifi to the kernel because before you could just turn on airplane mode on/off to fix it.
Click to expand...
Click to collapse
So would flashing a different kernel help?
I'll flash the latest Snapshot today, record a logcat and post a bug report on the cm tracker. Maybe something will come of it
Log1c. said:
So would flashing a different kernel help?
I'll flash the latest Snapshot today, record a logcat and post a bug report on the cm tracker. Maybe something will come of it
Click to expand...
Click to collapse
You could try the tracker and custom kernel will have the same issue.
Thanks.
Will do the bug report tomorrow as reports for nightlies are not allowed.
Will post hit here aswell
Just opened a report: https://jira.cyanogenmod.org/browse/CYAN-3923
Also noticed something while going through my logcat from today:
Code:
I/wpa_supplicant(13930): wlan0: CTRL-EVENT-SSID-REENABLED id=2 ssid="FreeCookies"
I/wpa_supplicant(13930): wlan0: Trying to associate with [MAC-ADRESS] (SSID='FreeCookies' freq=2412 MHz)
I/wpa_supplicant(13930): wlan0: CTRL-EVENT-ASSOC-REJECT bssid=[MAC-ADRESS] status_code=1
I/wpa_supplicant(13930): wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=2 ssid="FreeCookies" auth_failures=16 duration=60
after reboot:
Code:
I/wpa_supplicant(856): Successfully initialized wpa_supplicant
I/wpa_supplicant(856): wlan0: Trying to associate with [MAC-ADRESS] (SSID='FreeCookies' freq=2412 MHz)
I/wpa_supplicant(856): wlan0: Associated with [MAC-ADRESS]
I/wpa_supplicant(856): wlan0: WPA: Key negotiation completed with [MAC-ADRESS] [PTK=CCMP GTK=CCMP]
I/wpa_supplicant(856): wlan0: CTRL-EVENT-CONNECTED - Connection to [MAC-ADRESS] completed (auth) [id=2 id_str=]
well, let's see what comes of it
edit: well...
Ethan Chen on CM bugtracker said:
This is device specific to HTC One S, HTC One XL, HTC EVO 4G LTE, HTC Droid Incredible 4G. They all share the same WLAN driver. Honestly I'm not actually very confident in getting a fix for this, thus far we have been completely unsuccessful in our attempts to update the prima WLAN kernel driver (not for lack of trying, I know of at least 5 separate attempts, each when we found newer wcnss firmware), so we are still stuck using an ancient one with this issue present.
Click to expand...
Click to collapse
Ya bit of a shame but has been a bit crap on sense but not has bad.
Sent from my HTC One_M8 using Tapatalk
I have a smiliar issue since the installation of CM11 (version for hboot 2.16). I can connect to open hotspot, but it is impossible to connect to my personnal WPA network. My radio is 1.20.50.05.16 and i'd like to test with other versions (1.10 for exemple) because i have read that 1.20 is for sense ROM (before, i was using Maximus HD). But when I try to flash another radio, if failed (in recovery). (note that my one s is s-off)
An idea ?
Do you have a dd-wrt router? Try to set the channels to "auto"
Still have the problem, but turning the WIFI AP on and off again seems to be a reliable workaround. At least faster than a reboot.
Just for info, if someone finds this thread and didn't know:
The problem, as of Aug 20th, is fixed!
Quote from Matt Mower on the Bugtracker:
I used to be able to faithfully reproduce this bug whenever I came home from work. This is fixed beginning with nightly 20140819 and will be included in the next M snapshot.
One bug down, and I fully anticipate 17 to open in its place.
Commits: 70636, 70643, 70645, 70646, 70705, and new wcnss blobs
Click to expand...
Click to collapse
Hi all, thanks in advance for your help and comments.
I am running the latest cyanogen mod 13.0 snapshot. I just flashed it maybe 5 days ago and things seemed to be working just great. Today, I came home and when my phone connected to my WiFi network it said "Connected, No Internet." I tried connecting to another WiFi network that I have used, and got the same message. I know that the internet does work on the network because this laptop works, and other android devices I have are working too. I've tried disconnecting, reconnecting, rebooting, changing some settings. So far nothing has worked. Additionally, when I switch to LTE, it works sometimes, but stalls out quite a bit. Earlier today I was using LTE throughout the day with no problems. I'm pretty perplexed by this problem. Does anyone have any ideas what might be wrong? Thanks.
Did you clean flashed cm13 snapshot?
It could be an issue with the Wi-Fi channel frequencies; Try this fix, from Advanced WiFi settings make sure you have "Auto" selected under "Wi-Fi frequency band". Also, try creating a hotspot from your Laptop using your connection and see if the issue still persists. (For creating a hotspot you may use applications such as mhotspot etc.
Hope this helps.
Yeah it was a clean flash.
Thanks for the suggestions. I did switch between the 2 GHz, 5 GHz, and Auto options under the band settings. Never made a difference. I ended up clean flashing PA last night because I was getting so frustrated. WiFi works again, but the PA rom doesn't really have a lot of customization options. I'll have to try something else tonight I guess.
The weird thing about the WiFi issue was that it worked just fine for probably 4 days on the CM snapshot. I honestly don't know what could have changed. I didn't make any big changes to the ROM or anything.
Hmmm...i have the same problem about a week ago but i found out it got nothing to do with the rom but got a thing to do with the theme i used...it seems like the theme i use before doesn't work properly which prevent my wifi to work....i switched my theme and suddenly the wifi is working again....i'm not sure if this can help you but if you do use 3rd parties themes then i suggest you switched to default theme and try your wifi connection...