[Q] Question regarding WiFi Scan Methodology - Android Software/Hacking General [Developers Only]

Hi all,
When the Android device screen is off and after some time when the wpa_supplicant driver has stopped, the wifi connectivity is OFF. Again when the user turns the screen ON, the driver tries to jump into the last remembered AP (knowing its SSID and Freq also called active scan), it tries to connect to it. If it is not possible, it scans for other AP's in the vicinity by listening to scan interval time(also called passive scanning).
My question is
In the device, under wifi settings, we can see a list of AP's in the wifi networks. As described above, when the screen is turned ON and when the wpa_supplicant tries to establish connection to an Access Point, what is the procedure followed.
1) Does it poll simultaneously to all the AP's in the list? (OR)
2) Does it poll all AP's in the list one by one? (OR)
3) Does it poll ONLY the last pre-remembered/last attached AP and then goes onto passive scanning ?
Thanks

Related

WiFi issue: no connection, no error (WM6)

Hello everybody
Today I updated my QTEK8310 with WM6. Everything works fine,
also GPRS (MMS and Internet).
Unfortunately, I don't get WiFi to work. It detects the SSID, then I can press
"connect". But nothing happens: no connection; no error
I tried with with WPA protection and without. Both time no success.
My laptop can connect, so the issue must be related to the phone.
Any ideas?
Sounds ridiculous, but did you reboot your phone ?
Yes, of course. --> No success.
It's realy strange. The SSID is shown, the signal strength as well.
If I press connect, I see the WiFi icon changing: dotted-circle for about 1 second, and then the circle disappears again. That's it.
Have you tried with other Wireless AP ?
Unfortunately I only have one
The only thing I can tell you is that the phone detect other
SSIDs at my place. But of course I don't have any access key.
Is there anything I can check? Any log-file or configuration setting?
Thanks!
Ok, what router are you using, if your router supports wireless G only, you might need to adjust a setting so that your phone can connect to G network at B speed
Some router, although is backward compatible with B, but the option is turned off
@karhoe
Thanks! I had to enable the "b" mode! Now it works!
It's time to try out the IP-Phone stuff... but in the
Comm-Manager I cannot activate it. Maybe I should
open a new thread for that.

Tasker help - Associate with specific SSID

I'm new to Tasker and I need help with setting up a profile. Basically, I need to make it log onto (no security) and SSID, then switch and log onto a different SSID. I won't get into specifics, but for me to log onto this network, I have to work connect to one SSID, then after it's connected, I connect to the second SSID and then I have internet access...but I can't figure out how to make it connect to an SSID by name, then pause long enough to connect (maybe 30 seconds), then reconnected with a different SSID...
Any ideas?

Wifi stops working after being left for a while (still connected)

Having an issue with the Tab 2 where you go to pick it up and start browsing after it has been sitting around a while (not sure if the time matters, but it seems like after sitting for most of the day) and the wifi is still connected, but nothing works than needs data. It acts like it would if you had not internet connection. Toggling the wifi off and on will fix the issue and notificaitons and emails start pouring in.
Anyone else have this problem? I found a similar issue on the 7.7 forums but nobody reported a solution and I am not even sure if it would have worked on the Tab 2 anyways. I am thinking about making a script that toggles the wifi automatically if it detects it can't connect to the internet. But that is a little ridiculous needing to do that. It shouldn't be losing connection in the first place.
Hi Pirate
it's a bit depending on the ROM you have installed - but since Android 4 you have a quite reliable setting. The default behavior of Android devices is to deactivate the wifi connection when it goes to sleep.
Some ROMs don't recognize the disconnection and the switch/button still shows "Wifi on" although disconnected.
First step: go to settings / wifi settings, hit the menu button (top right three dots) and check the advanced settings.
Somewhat like "Keep WLAN active in standby" - set this to always.
That should solve it already under android 4.x
If this doesn't help, look into Play Store - search for "wifi keep alive". But for the SGT 2 you shouldn't need it
Greetz - Chris
It was already set to "Always" so I don't think that will help. I will look at that app to see what it does.
Sent from my Nexus 7 using Tapatalk HD
wifi turns off when not in use to save battery. I think it might be a default even if you have it set to always on.
guncrasher said:
wifi turns off when not in use to save battery. I think it might be a default even if you have it set to always on.
Click to expand...
Click to collapse
The problem is that it never comes back on. Well it shows the wifi icon and the signal and everything but it just doesn't have any data connection. Any apps that use data act like wifi is off. The only way to get it to start working again is to toggle wifi or reboot. I also forgot to mention it is the stock ROM, only rooted. It got the OTA a few days ago too and it has happened since then.
You're not alone
Skurvy_Pirate said:
Having an issue with the Tab 2 where you go to pick it up and start browsing after it has been sitting around a while (not sure if the time matters, but it seems like after sitting for most of the day) and the wifi is still connected, but nothing works than needs data. It acts like it would if you had not internet connection. Toggling the wifi off and on will fix the issue and notificaitons and emails start pouring in.
Anyone else have this problem? I found a similar issue on the 7.7 forums but nobody reported a solution and I am not even sure if it would have worked on the Tab 2 anyways. I am thinking about making a script that toggles the wifi automatically if it detects it can't connect to the internet. But that is a little ridiculous needing to do that. It shouldn't be losing connection in the first place.
Click to expand...
Click to collapse
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
I know this isn't super helpful but I had the same bug you describe on the previous version of carbon. When I updated to the latest it seems to have stopped.
Sent from my GT-p5113 using xda premium
I had similar issue with my aTab Phone 4 and TP-Link TL-WR941ND (OpenWRT)
After disabling WMM capability in the router the problem disappeared!
Change router lease time to "2weeks"
Sent from my GT-I8190N using XDA Premium 4 mobile app
Same issue.
karankahlon said:
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
Click to expand...
Click to collapse
Same issue. also using connectify and also tried all things you have described. If you find any solution please let me know.
I had the same problem on my Huawei Honor. You need to set static IP in wifi settings (when connecting to AP, press "show advanced settings").
Mine settings were:
IP adress: 192.168.1.75 (make sure other devices are not connected with this IP)
Gateway: 192.168.1.254 (it could be different. Use the same as you're using to connect to your router)
Network prefix length: 24
DNS 1: 8.8.8.8
DNS 2: 4.4.4.4
No option for static IP in connectify
jopsinas said:
I had the same problem on my Huawei Honor. You need to set static IP in wifi settings (when connecting to AP, press "show advanced settings").
Mine settings were:
IP adress: 192.168.1.75 (make sure other devices are not connected with this IP)
Gateway: 192.168.1.254 (it could be different. Use the same as you're using to connect to your router)
Network prefix length: 24
DNS 1: 8.8.8.8
DNS 2: 4.4.4.4
Click to expand...
Click to collapse
There is no option in connectify for static IP and in USB wifi dongle also there is no option to set static IP.
Help!
---
---
Same issue
karankahlon said:
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
Click to expand...
Click to collapse
1. I have had the exact same issue for (atleast) the past 2 years. Have survived by repeatedly turning wifi on and off.
2. I too use connectify. This issue doesnt seem to happen on every wifi connection (just like your case). Even more specifically, it seems to happen ONLY when I connect my phone to the hotspot created via my laptop (connectify).
3. Even when the internet is actually working, some apps do not seem to recognise that(take some time to realize it is working), while others are able to connect instantly. Specifially, whatsapp is unable to send/receive messages for about 1-2 mins, after which I receive a whole bunch of messages at once.
This does not seem to be an issue due to connectify as well. I have tried creating a hotspot from my laptop without using connectify as well, but unfortunately, nothing changed. Further, this does not happen when my phone connects to a hotspot created via connectify by some other pc. The wifi and internet work perfectly fine when connected to a hotspot created via my friends computer.
Further, this problem happens only when a mobile connects to the hotspot. Doesn't occur when another laptop/PC connects (not sure about tablets).
I have looked into every nook and cranny on the internet, explored every forum for any working solution, but have been unsuccessful. In fact, this is the first place where I saw the exact same problem as mine, and was wondering if you have found any solution to it .
karankahlon said:
It's the same effing stuff people suggest to every wifi glitch out there.
To people who think it's due to the wifi sleep policy: although I've set it to always, why would wifi not resume, after screen is turned on? It's not the wifi that gets disconnected, it's the internet (or the download speed) that stops working.
To people who suggest it's a power saving feature under low battery conditions: Sorry, I've tested it while charging and with full battery.
To people with the above two arguments: Connection to some routers works perfect with the phone. Like when I turn on the hotspot on another phone, the wifi works great. Also, wifi on the other phone from the same source (laptop used as internet access point) works well.
To people who suggest resetting the router or wifi on phone: The internet does start working again, but only for a few minutes. Even if the screen is turned on, the internet may stop working mid-download.
The actual situation is that the phone disconnects from the internet, but keeps showing a connection to wifi. Like I used connectify hotspot to create an access point, and after a few minutes, the phone moved from "connected clients" list to the "previously connected clients", even as the phone showed connected to wifi with even the download arrows blinking, but no internet (or download speed). This only happens with certain sources (of wifi). And other phones may work well with the same source.
I have tried (several times and in different orders and permutations) the following to no effect:
1. Resetting the router.
2. Resetting the wifi on laptop.
3. Resetting the wifi on phone.
4. Restarting the phone and laptop.
5. Static IPs, gateways and DNSs. (Even though the problem was not with connecting to wifi and even internet works momentarily after resetting wifi).
6. Turning off items controlling wireless network in wireless connection properties.
7. Turning off firewall.
Waiting for a savior.
Click to expand...
Click to collapse
I'm having the exact same prob on my ZTE Grand x V 970
It started when i had kitkat and i couldnt even "fix it" restarting the wifi, i had to reset the phone in order to have my wifi work for like 2-5 mins and then stops recieving data, tried to reconnect and stays on turning on wifi.. Now i changed to the stock Rom and the problem is still there but at least now i can "fix it" restarting the wifi connection until certain point.
Issue sharing internet with Connectify from PC
Go to:
Control Panel\Network and Internet\Network and Sharing Center
On the left column, click on CHANGE ADAPTER SETTINGS.
You should be in: Control Panel\Network and Internet\Network Connections by now.
Then click on: Microsoft Virtual Miniport Adapter and click on Properties, then click on the 'Configure' button in the 'Networking' tab. From this window, go to the 'Power Management' tab and uncheck 'Allow the computer to turn off this device to save power'.
This works for me. Try this out
If this doesn't work further, you can try out mHotspot for the same purpose.
I've had the same issue, with the wifi saying it's connected even though it isn't.
This thread is 4 years old and this issue still hasn't been fixed. What a shame.
Same issue here on OnePlus 3 even after factory reset.
I have this same problem after the security patch Mid March to Jan 1, 2019. The WIFI doesn't show in the top status bar, but toggling wifi off/on fixes it till the next overnight. I did make one change to my wireless about that same time and that was moving the min connect speed from 6Mbps to 12Mbps to help with bandwidth issues being cause by devices using low speeds and having several SSID broadcast. My S7 and Tab A both work fine - so I think it was something in the security patch.

Question about Wi-Fi

Hi. I'd like to keep my phone connected to a local Wi-Fi network so that I can access a server on that network. However that network doesn't have a working internet connection. Can I keep my phone connected to Wi-Fi but let it use 3G for internet connection? Thank you
Normally when the WiFi is connected to a network the data is automatically disabled so I'd say no to your question.
But Super Download might help.
Could WiFi always scanning be used in this case perhaps? Try it by disabling your WiFi but leaving that option enabled under the Advanced settings.
Of course it wont work to use always scanning. It even says scanning in the name, meaning it simply allows the locations service to turn on wifi briefly in order to see local networks so it can use them to locate you.
What OP is asking for is not natively supported, and would probably require a bunch of modifications on a deep level.

WI-FI connection problem

Hi experts. I have an Android 6.0 phone with Mediatek processor (MT6580).
Because I don't have money to hire an internet service, I am forced to use my neighbor's WI-FI.
But there is a problem, and that is that WI-FI is used by an average of 8 devices during the day.
And sometimes, some of those devices make intensive use of the internet connection. causing the WI-FI router to saturate.
When this happens, it seems that the WI-FI router starts transmitting the WI-FI signal intermittently.
Then my phone starts to connect and disconnect from the Wi-Fi network automatically (approximately every 3 seconds).
Because of this, the apps that make use of the internet connection, immediately detect the change in the connection, and this represents a big problem for me.
My neighbor's WI-FI router: "TP-LINK WR720N". with security WPA PSK / CCMP / WPS disabled.
I do not have access to the settings of said router, so I cannot change its settings.
My phone is not rooted, but nevertheless I can access the EngineerMode, in which there are options that allow changing parameters related to the WI-FI connection, but I don't understand anything.
My thought is that through the EngineerMode, I can do something to solve the problem mentioned above.
What is your opinion?
Greetings from Venezuela.

Categories

Resources