[Q] Wrong ARP WiFi annoucements with JB ROMs - Desire HD Q&A, Help & Troubleshooting

I've got a significant problem with my DHD when running any of the latest JB releases I've tested -- the problem appears with the JellyTime, codefireX, pipelinerard's CM and also the AOKP ROM's I've tested, even on a clean install (complete wipe of everything but the radio, install only the ROM; gapps not needed to cause the issue). The problem is however not manifest in IceColdSandwich, so I suspect something is broken in the way JB uses the WiFi network compared to how ICS did it. Maybe that triggers a bug somehow in the radio or misses some important radio settings?
To some/many people, it may not be immediately visible, but if you have this problem and use your phone on a large network, you might get banned/kicked off the network if they use rules similar to what e.g. Princeton recently implemented. You may also experience this as intermittent network problems with some hosts being unavailable from time to time.
Here is what happens:
Whenever the phone sleeps (i.e. the screen is off), it sends out bogus ARP message every 15.1 seconds (give and take 10mS or so). The message typically announces "IP x.y.z.v is at MAC ii:ii:ii:ii:ii:ii:ii" where the MAC address is the one of the phone and the IP addresses seems to come from some predetermined list and/or the routers IP -- or it might be 0.0.0.0.
On my network, when using one of the AP's, it will send out seemingly "real" IP addresses that will clog up the main router, trigger additional traffic to poll the ARP addresses and eventually cause misfunction and loss of connectivity also for other clients on the network -- it will however heal itself after some minutes, when the ARP cache times out, just to reappear again later randomly.
On the other AP it will always announce an IP of 0.0.0.0, which is obviously incorrect -- but doesn't cause any direct malfunction.
From time to time, I've also seen incorrectly formatted ARP packages.
I've debugged this with wireshark and pcap's on my network (as I started to wonder about more frequent network problems after using this phone).
I've also tried running tcpdump on the phone itself, and have inspected the pcap from the locally captured file. That pcap does NOT contain the ARP messages, so somehow somewhere deep down the kernel or in the radio, ARP messages are triggered to be sent out (i.e. below the capture interface).
To see if you have this problem, you need to run wireshark on another device and check for traffic from your phone's MAC address. It is easy to see if you know what to look for. You cannot know if you have this problem unless you check for it -- but you might suffer weird connectivity issues from time to time also on other devices/PC's, depending on the rest of your network components, that are not immediately discernable as related to the phone.
Technically this looks similar to ARP spoofing/flooding, with similar symptoms.
Does anyone have any ideas how to fix this? I think this requires someone with kernel/network knowledge, and it is likely related to how parts of the legacy parts (binaries) are being used.
I'm initialy trying to figuring out what runs every 15 seconds on the phone, and would then like to start tracing/bisect ICS vs JB code here.
Would also be nice if someone else could confirm this -- even though the specific symptoms apparently depend on certain WiFi related parameters.
Any ideas?
For reference, I'm using the latest radio 12.69.60.29_26.17.14.11_M. But as ICS does not have this problem, it might not be related to the radio version directly.

Related

[Q] Network Errors, 404s and Other Wi-Fi Issues After 2.2 OTA Update

I accepted and installed the 2.2 OTA Update as soon as it was pushed out. Yeah I know, Big Mistake (re: rooting). Please forgive me, I'm new here.
Anyway, ever since the update I've been experiencing intermittent (but more often than not) network errors, 404s and an assortment of other data-related issues when connecting via Wi-Fi. It seems to occur whether the Mobile Network is enabled or not. I experienced none of these issues before the update.
A few examples:
Attempting to use Android Market throws "An error has occured..." or "A network error has occured. Retry, or cancel...".
Viewing pages using the stock browser results in "Web page not available". At the same time, Opera Mini is unaffected.
Weather shows "No weather data available" and throws "Connection error | Sorry but the connection dropped while your weather information was downloading...." when I try to refresh.
Entering text in a form field via voice recognition throws "There is a problem with the network connection.".
Pandora throws "Service unavailable" errors.
These issues don't occur all at once or with any regularity (that I can see). Market might work fine while the browser fails. Sometimes the browser issue only affects certain certain sites (and most often google.com (?)) while others work fine. Sometimes affected sites only partially load, or load everything but images.
My Wi-Fi sleep policy is set to 'Never'. I have a solid router and a very strong signal with (effectively) zero interference. Obtaining an IP address is never a problem; my connection is never dropped.
Performing a ##3282# Data Restore doesn't help, nor does a ##786# Full Reset. I just performed a Full Reset and am having problems even before installing any apps.
Anyone else experiencing this? Any ideas for fixing it?
-thanks
Edit: forgot to mention that I'm currently operating on 3G only. Might have a chance to test in a 4G zone later on this evening.
Alright, I think I've pinned this down to my ISP's crappy DNS servers, though I haven't had a chance to test on a different one to confirm. However, I manually configured my Wi-Fi connection to use OpenDNS servers and things have worked fine all morning. Then, just for kicks, I set DNS back to the ISP (gateway) and the issues returned immediately. Switch back to OpenDNS and no problems.
This leads me to another question: is it possible to manually configure DNS, yet still obtain a dynamic IP?

[Q] Wi-fi disconnecting on AOSP (Non-Sense) ROMs.

After trying out several ROMs I have noticed that my wi-fi randomly disconnects, but only for (Non-HTC/Sense) ROMs.
I'm running OpenDesire at the moment, which I really like, but the arbitrary disconnetion of wi-fi is driving me crazy.
As far as I can tell, it has done this with the other Non-Sense ROMs I have tried as well, and I have no idea why.
Wi-fi does switch on, but (part of) the problem _seems_ to be that the phone has trouble actually getting an IP; other than that, and why it does this, I have no idea.
The settings (in *#*#4636#*#* test mode) are basically the same as they are for, say, the official HTC Sense OTA or Pinky, for which wi-fi seems to work perfectly.
Although, to be honest, I'm not entirely sure what I'm looking at/for...
Anyone have any ideas?
Any help would be much appreciated
It's not having an issue with getting an IP, it's having an issue with authentication.
The first thing I noticed with these roms is they do not re-prompt to enter a password again if you have mis-typed it at all. This leads to wpa_supplicant client to effectively force a connection and get a refusal in quick succession. The wpa_supplicant client on the phone then disables the connection until you step in and either choose to reconnect or edit the password manually.
The issue we are having is related to this;
After being connected to WiFi for a fair period of time, it re-authenticates with the base station/router as it's supposed to do.
From memory, the re-auth happens every 60 minutes and most decent routers are able to change this.
At this point, the client (phone) tries to re-auth and fails (for whatever reason). Instead of prompting for a password (as it should do). It tries 3 times in total and stops.
After the last failed attempt, it disables the connection that it failed to connect to and jumps back to mobile data (if available).
So. Yes, there is a major issue with the wpa_supplicant in non-sense roms. Could we get the devs to investigate this, as it's really getting to be a major pain in the arse!
I see... Thanks for the clarification. Nicely explained.
So, short of jumping ship to Sense, there's really not much I can do then, other than wait for someone more skilled than me to come up with a solution?
No workaround, third party app, router setting or anything?
Unknown at this moment in time.
I'm investigating this in my own limited knowledge of Android and Linux systems, so far I've not come up with anything solid.
As far as settings you can change on your router, it all depends on your router and it's firmware.
I've got three different routers here:
A) Trendnet TEW-435BRM v4.00.07 : No way to change Key Renewal length
B) Linksys WRT160Nv2 v2.0.03 : Able to change Key Renewal length
C) MZK-MF150 v1.00.16 : Able to change Key Renewal length
Check your router, try increasing the length and have a play around. It's not a fix, the issue is either in the AOSP kernels or the wpa_supplicant module.
My NetGear WNR2000 does not seem to have any (easy) way of configuring Key Renewal Length, but I'll have a look around. Else, I guess I'll just have to bite the bullet and go with Sense for a while...
At least now I know it's not just me. That's always comforting.
Thanks for the help acolwill!
No problems at all.
I have been trying to locate an app that will automatically restart the WiFi if a disconnection takes place, however, I've yet to find one :|
Anyone out there know of one?
eham, there's an app on the market called "WiFi Auto ReEnabler"
Give it a try, as it may well be the answer you've been looking for!
Sounds very promising indeed. Will get right on that.
Tried an app called Wifi Fixer, but that was a bust. Actually somehow managed to make things worse (for me, anyway).
Thanks for the tip. I'll be back with an update...
Ok, so "WiFiReEnabler" does actually do just that; re-associate with the network everytime the screen wakes. Unfortunately, what it doesn't do is stay resident.
It will let itself get killed by the system very easily, so I still have had a few times where I had to manually deactivate and activate wifi because WiFiReEnabler didn't have my back.
If the developer could make this a helper app/system service, this seems like it could be a decent workaround though.
I did however find an app called "Fix My WiFi" (£0.99 in Market) that seems to take care of the problem nicely, and quietly, so far (about 16 hours and counting, fingers crossed).
It also has some options to set different levels of aggressiveness, and notifications, which I like.
I also found a free app called "Wifi Reassociate" that seems to address the same issue. Haven't gotten around to trying it yet, as Fix My Wifi still seems to be doing its job.
Still, a tip for anyone with the same problem.
With that (hopefully) outta the way, I'm off to celebrate the anniversary of my birth.
Be well, friends.

Returned home from short trip, Wifi connects but does not function

As the title says, I didn't change anything about the phone's configuration when I was out, didn't download any new apps or change any settings that would interfere like this. No one else has changed my home network in my absence.
Nevertheless, most of my apps, such as Instagram, the Play Store, Twitter, Wikipedia, Chrome; almost all their requests time out. There seem to be short windows where data will load, and Instagram appears to load comments and post metadata, but no images. It's basically unusable. Occasionally an exclamation mark will pop up over my Wifi symbol in the notification center. Strangely, I can still reach my Steam and Battle.net authenticators, but the moment I try loading the Steam app, nothing comes up. It's like the device can only handle plaintext over Wifi.
All of the apps work fine over cellular data.
Also, there is a toast that appears whenever I restart my phone that says "Power On" that I've never noticed before. I was rooted using Xposed, the only modules I used were Snapprefs, Xinsta, Physical Button Music Control, and Greenify Experimental Features, all of which I uninstalled. The toast still appears with the latter two disabled. Only other rooted apps I had besides Xposed were Nova Launcher, Greenify, Busybox, and Root Checker Basic, all of which have been removed but Nova.
I am running 6.0.1 with the latest update.
Any ideas? I am still within 15 day warranty so I could theoretically return the phone (which I was contemplating doing anyhow since 10gb of functional storage is a bit too small for me), but would rather not have my hand forced, and eat into my cell data plan.
So far I have tried forgetting the network, wiping cache/dalvik with TWRP, removing the Google VPN, resetting all network settings, and a couple things I can't remember offhand now. Any suggestions will be appreciated.
AbanadonedFace said:
Any ideas? I am still within 15 day warranty so I could theoretically return the phone (which I was contemplating doing anyhow since 10gb of functional storage is a bit too small for me), but would rather not have my hand forced, and eat into my cell data plan.
So far I have tried forgetting the network, wiping cache/dalvik with TWRP, removing the Google VPN, resetting all network settings, and a couple things I can't remember offhand now. Any suggestions will be appreciated.
Click to expand...
Click to collapse
First, if you want to return your device because the 16gb model doesn't have enough space, go ahead.
If it is mostly because of this WiFi issue, I wouldn't return the device, it is almost certainly the case this is some configuration issue (possibly in concert with some Android bug) which can be resolved.
Is it possible when you came home the device connected to a neighbor's AP and thus you couldn't use data, but it wasn't immediately obvious, so you ended up forgetting your own network and reentering the config, but the key was off by a little, and from that point on, it was just assumed the wifi config was correct?
When you say Google VPN, are you using WiFi Assistant and Project Fi? Have you tried disabling auto-connect fir the WiFi Assistant?
Have you tried using the old Lollipop DHCP client (perhaps your IP address got used by another device and the new Android client doesn't handle that well?) Just grasping at straws.
Have you tried turning on Bluetooth while WiFi is on? Perhaps there is a bug with them working independently of each other in certain situations.
sfhub said:
Is it possible when you came home the device connected to a neighbor's AP and thus you couldn't use data, but it wasn't immediately obvious, so you ended up forgetting your own network and reentering the config, but the key was off by a little, and from that point on, it was just assumed the wifi config was correct?
Click to expand...
Click to collapse
I am 100% positive I am on my own home network and that I used the correct key. I'm not sure what you mean with regards to the rest of the 'config', I have always used the standard wifi configuration, just typed in my key and had it work.
sfhub said:
When you say Google VPN, are you using WiFi Assistant and Project Fi? Have you tried disabling auto-connect fir the WiFi Assistant?
Click to expand...
Click to collapse
I actually forget what it was called, it was under Settings>Wireless&Networks>More>VPN. There was one entry there with an icon. I forget the name of it, but the icon looked like a stock Google icon and I think it had google in the name. I am on Project Fi, not using any wifi assistant (at least not in Advanced Wi-Fi Settings), but when I tried to toggle that option on just now, something called "VpnDialogs" crashed, so I assume that VPN entry was that. But again, the assistant wasn't on.
sfhub said:
Have you tried using the old Lollipop DHCP client (perhaps your IP address got used by another device and the new Android client doesn't handle that well?) Just grasping at straws.
Click to expand...
Click to collapse
I did, when I first googled this was one of the things I found, sadly it did not help.
sfhub said:
Have you tried turning on Bluetooth while WiFi is on? Perhaps there is a bug with them working independently of each other in certain situations.
Click to expand...
Click to collapse
I don't use Bluetooth, and trying to toggle it off/on from the control center just gives me a repeated "unfortunately, Bluetooth Share has stopped" error message.
I have decided to get the 32GB 5X since I do want more storage, but since I would like to be able to root my phone again and use Xposed, I would still like to hear any other ideas you have for troubleshooting this problem in case it reoccurs.
I reflashed the latest update to see if that would fix it, no dice. When I send the 16GB model back I have to factory reset it anyway, so I suppose I'll know if that does it.
What puzzles me is why I can load text from instagram posts that have been posted while I've been having this problem, but not images. Makes me think that maybe my connection is being super throttled somehow rather than non-functional, but my PC's speeds are normal. Perhaps some internal part is damaged? I do have a case and it hasn't taken any serious tumbles, but it has had one or two small falls from maybe 2 feet high.
AbanadonedFace said:
What puzzles me is why I can load text from instagram posts that have been posted while I've been having this problem, but not images. Makes me think that maybe my connection is being super throttled somehow rather than non-functional, but my PC's speeds are normal. Perhaps some internal part is damaged? I do have a case and it hasn't taken any serious tumbles, but it has had one or two small falls from maybe 2 feet high.
Click to expand...
Click to collapse
It is easy to test if you have some network connection vs none.
In terminal or adb shell
ifconfig wlan0
ping www.google.com
1st command will tell you (among other things) if your wlan picked up an IP address.
2nd command will test whether you can send ping packets over your connection.
I'm sure there are millions of ways of doing the above, I just gave you one example.
Strangely, the solution seems to have come from factory resetting my router. I ruled this out initially because my other old phones were working fine on wifi, my phone is now getting WiFi again.
Now to figure out what the hell this "Power On" toast is about...
AbanadonedFace said:
Strangely, the solution seems to have come from factory resetting my router. I ruled this out initially because my other old phones were working fine on wifi, my phone is now getting WiFi again.
Now to figure out what the hell this "Power On" toast is about...
Click to expand...
Click to collapse
I've encountered something similar where the router runs out of NVRAM space because it has recorded too many DHCP clients, it won't hand out new IP addresses, but if you are existing or already have one, it is fine.

WiFi connected without internet

Dear All,
My note 10+ loosing internet randomly. While checking WiFi showing the message "WiFi connected without internet". after switching on and off it reconnects but lose connection after sometime. My other android phones are connected to the same WiFi but have no issue.
Please help me solve the issue.
Thank you
Arun
i have noticed its happening during whatsapp call duo calls
arunjyothisp said:
Dear All,
My note 10+ loosing internet randomly. While checking WiFi showing the message "WiFi connected without internet". after switching on and off it reconnects but lose connection after sometime. My other android phones are connected to the same WiFi but have no issue.
Please help me solve the issue.
Thank you
Arun
Click to expand...
Click to collapse
A similar thread was made on the subject - link here https://forum.xda-developers.com/galaxy-note-10+/help/android-10-5g-wifi-dropping-t4037661
For practical intents and purposes it's almost like when the issue happens the phone is not able to resolve a DNS query. I base this on 2 hypothesis - first being that the phone is still connected to the wifi access point and can still access LAN resources. The second being that the phone must either poll the internet (i.e ping a specific address) on a regular basis. If the poll was unsuccessful it flags the connection as "WiFi connected but no internet".
The things you can try are:
update the firmware on your phone (if not already)
factory data reset (read note 1 below)
reset network settings
try a different wireless router (read note 2 and 3 below)
disable private dns (read note 4 below)
If you use tasker create a routine to automate a temporary solution (read note 5)
Notes
The issue maybe a corrupted setting within the phone. I have had similar issues before (not with just this phone) and a factory data reset helped. One thing to take note of is that after the phone had completed it's factory data reset I did not attempt to restore a backup. This is important to keep in mind because any issues that were present (due to corrupted settings) would exist also in the pre-factory data reset backup you made.
With my previous router I had this issue but had since replaced it with a Wifi 6 capable router. After getting the new router I have not had any further issues what so ever. Also make sure your wireless router is up to date on it's firmware. It maybe possible that the wireless router you have is old enough (from when it was released, not from when you bought it) that a replacement might be the only way to resolve the issue.
To help rule out a wireless router issue try using a different one. You can borrow a friend's internet connection for a while, or a public cafe or what ever. Point is you are trying to see if the issue happens again when you are using a totally different wireless access point (by totally different I mean hardware/model and not just renaming the SSID).
I had the issue happen when using private DNS. For what ever reason the issue was with the DNS provider I had choosen. Turning the Private DNS setting off helped resolve the issue. After turning the setting off it may take a bit before the phone recognizes it was turned off, but you can hasten this process by toggling WiFi off and back on.
The Tasker option is one I did and it worked quite well. You may need to adjust the routine to suit your particular needs but it's basically what is at this link here. Best part of this option is that you can have it only activate when your connected to the problematic wifi access point and every X number of minutes (helps ensure that you use it only when needed). The routine (when setup correctly) should run every 10 minutes in where it attempts to access a website and assigns the results to a variable. The variable is then checked to see if it matches a specific result (in this case an error code), and if it does match it will toggle WiFi off and back on (after a brief pause/wait period between toggle off and toggle on) automatically. Granted it sounds like a lot of work, but it's really not that complex. Also I consider this is a temporary solution because you may find that on later firmware updates applied to the phone (or you may end up getting a new wireless router) the issue will have been resolved.
"WiFi connected without internet"
I was having the same issue until I uninstalled the app "WiFi Analyzer"
mike.aguailar said:
I was having the same issue until I uninstalled the app "WiFi Analyzer"
Click to expand...
Click to collapse
Interesting! Which one? The Play Store lists several apps by that name.
WiFi Analyzer
Gary02468 said:
Interesting! Which one? The Play Store lists several apps by that name.[/QUOTE
WiFi Analyzer by Zoltan Pallagi
Click to expand...
Click to collapse

Question SM-F926B sporadic "freezing" data connection [with O2 Germany]

Hello together,
since I couldn't find anything about that issue in detail beyond the usual vague articles (where one copies the mediocre content from someone else, it seems) such as this one, I'd like to share the following:
Using a SM-F926B which natively came with Android 12 (F926BXXU1BVA9 preinstalled and also after having it updated further to F926BXXS1BVB3), I have the issue that the data connection using 4G(+) (APN-wise and nowadays the lovely internet access of course) although staying connected, doesn't pass any traffic anymore at some point. The small "arrow" in the upload direction is periodically showing up then but nothing in the downstream direction, rendering the whole thing effectively offline, both directly and any tethered device connected to it, which is very annoying. Only quick resolution is to toggle the famous airplane mode.
While it is on one hand appreciated to occur not all the time, it also makes it more difficult to narrow down the error. In conjunction with the German provider O2 it occurred maybe every 1-2 days. During the last time it happened, I had a SMS being sent to the Fold which got successfully delivered so the mobile connection itself stays active (neither does the service monitor available though *#0011# shows anything suspicious) so it seems to be an issue with rather the APN-related connection. A problem with the provider network can be ruled out though as a Netgear LBR20 with another SIM from the same contract runs perfectly fine since ~ 180 days.
Meanwhile I downgraded to Android 11 (F926BXXU1AUJ7) to see if the same error occurs as well, hinting on a hardware issue (a very interesting one then, though as the overall data throughput performance of the Fold 3 is amazing) or some incompatibility with Android 12 (which would then however also raise the question why not all exemplars are affected the same way, which suggests hardware differences even within one model line such as that very F926B).
Has anyone of you experienced that or a similar phenomenon?

Categories

Resources