cm9 wifi?? - TouchPad General

I am having wifi issues, it connects fine and doesnt disconnect but very very often it just stops working, the internet i mean. It says im connected but no web pages load, nothing. Is there a fix for this?? ive tried stock .6 and bricked rom .6??

slyr114 said:
I am having wifi issues, it connects fine and doesnt disconnect but very very often it just stops working, the internet i mean. It says im connected but no web pages load, nothing. Is there a fix for this?? ive tried stock .6 and bricked rom .6??
Click to expand...
Click to collapse
I was having that exact issue initially with CM9 0.6. I've been fine for 3 or 4 days now that I replaced the problematic netd daemon with the version that came with CM7 though. I replaced it because of some errant load problems that were tanking performance and battery life, but it seems to have resolved that issue too.
--Matt

is there a tutorial or quick write up on how to do this? Thanks!

Not that I know of. I attached the file that I used. If you unzip it and place it in /system/bin in-place of the existing file (probably want to rename the original first just in case), then set the owner/group to 0/2000, then set the permissions like this:
______Read__Write__Execute
Owner__X_____X______X
Group__X_____________X
Others_X_____________X
You should be good to go. Make sure that you set the owner/permissions like that. If it can't be executed, it'll hang on boot.
--Matt

thanks ill give this a shot

I'll give this a try too. Here's an adb way to implement it:
This assumes you have grabbed the 7z file and uncompressed it to the current working directory.
Code:
adb remount
adb shell mv /system/bin/netd /system/bin/netd.ORIG
adb push netd /system/bin/
adb shell chmod 0755 /system/bin/netd
adb shell chown root /system/bin/netd
adb shell chgrp shell /system/bin/netd
adb reboot
And to roll it back...
Code:
adb remount
adb mv /system/bin/netd.ORIG /system/bin/netd
adb reboot
---------- Post added at 11:26 AM ---------- Previous post was at 11:21 AM ----------
Well, at least initially it doesn't seem to have helped. It connects me and then a few seconds later the connection is dead -- but it still shows I'm connected.
But I will leave it in and see if it maybe improves battery life? idk..

Hrm, that stinks. What's your wifi channel? Mine seems to be the most reliable on 5GHz wireless-n, but lower channels are supposedly more reliable on 2.4GHz networks.
--Matt

mkosem said:
Hrm, that stinks. What's your wifi channel? Mine seems to be the most reliable on 5GHz wireless-n, but lower channels are supposedly more reliable on 2.4GHz networks.
--Matt
Click to expand...
Click to collapse
I've tried a multitude of channels between both A and G.
None seems to do better or worse.
I will say that with the current state of the ath6kl driver, I could not see my "A" APs at all.
At work I can't control the AP channels.
Here's the real screwy part. At home, I can connect using WPA2 and ping, for example, my router (or anything on my network) and get a pretty consistent ping response. However, as soon as I ping something on the outside (i.e. Google), I get 50% packet loss. And as a further test I have a laptop, on the same Wifi link pinging the same Google IP getting 0% packet loss.
That one just messes with my mind...
On an open wifi, I have no issues. Except having a wide open access point. ;-)

im having the same problem..

Related

iwmulticall binary.. (or some way to interace with the BCM4329 PM)

So far, I have not found a way to turn off power management.. Usually it goes like this -
iwconfig eth0 power off
I did notice wmiconfig and thus tried wmiconfig --getpower which gave me:
eth1
Power mode is rec
Power mode can be rec or maxperf..
If any of you have used the broadcom drivers in Linux, you'll know that they slow down big time when power management is set to 'All Packets Received'. On my laptop with a 300mb/sec 5ghz 802.11n connection, I get 2MB/sec with PM on.. 19MB/sec with PM off. It matters..
I haven't been able to find much on wmiconfig due to MS having an identical name for one of its utilities. I'm going to try the iwmulticall binary from my g2 now.... ok.. got errors. it listed lo, tunl0, and gre0.. then it died.. heh.
Has anyone turned off the PM or been able to interface with the bcm wifi chip? It'd be even cooler if we could turn up the tx-power a little.
Nothing? Do you guys think the bottleneck for wifi transfer speed is the emmc?!
Any progress?
I have an Adam, which uses same wmiconfig and BCM4329 wifi.
wmiconfig have options like --power maxperf , but when I use it and try --getpower it reports back rec mode and not maxperf
Also there is option --txoptbursting 1 but not sure if it worked or at lease I don't know how to check if it has changed.
Yes. I can get 4-5MB/second (receive via ubuntu ncftp as client, gtab server) with power management turned off. CIFS has slightly lower speeds - but that's normal. SFTP is also decent (allows me to access / in its entirety as if it were mounted locally).
Anyways... put this in /system/xbin/
http://home.comcast.net/~ibladesi/iwmulticall
and start symlinking to it... like so
# cd /system/xbin/
/system/xbin # ln -s /system/xbin/iwmulticall iwconfig
Here are the symlinks you can create in addition to iwconfig:
iwgetid iwlist iwpriv iwspy
My normal use for it is-
iwconfig wlan0 power off
So I made a script and named it fstwan so its quick to type.
Don't try to set the txpower, that seems to be broken with all android devices.
And yeah, wmiconfig seems to be complete horse****.. that's even worse than bs. I don't think that this will change the tame nature of the wifi radio's power output.. I think it has more to do with system utilization.. its such strange default behavior. For example, using a ssh client to connect to the device is brutal in terms of responsiveness, turn pm off and viola, its like you're using adb.

How To USB Tether (For Free). Now With Instructions for Ubuntu, Mac, and Windows.

I am going to give instructions for setting up free USB tethering via Azilink for those using Ubuntu. This will work for other operating systems, but I will leave that up to others.
Notes:
* Unlike PDA Net and Easy Tether, this does not block certain websites (free versions) and does not cost money for a "full version".
* Unlike Wireless tether methods, this allows the battery to charge while tethering.
* This does not require root, but does require adb.
* It may seem complicated the first time, but it really is simple, with great results.
* I am currently using azilink to post this, so I know it works.
To begin:
INSTRUCTIONS FOR UBUNTU​
1. Make sure adb is installed.
2. Download Azilink and install on your phone.
3. To download and install OpenVPN on your computer. Open a terminal and enter
Code:
sudo apt-get install openvpn
4. Download this file and place it in your home directory.
5. In your computer terminal, enter
Code:
adb forward tcp:41927 tcp:41927
6. On the phone, make sure Azilink is running and make sure "Service active" is checked.
7. In your computer terminal, enter
Code:
sudo openvpn --configure ~/azilink.ovpn
8. You should now be online. Enjoy.
INSTRUCTIONS FOR OS X (MAC)​
Note: This may seem complicated at first, but only needs to be done once, after which, connecting is very simple. I have done this myself, and can confirm it does have rewarding results.
1. Make sure adb is installed.
2. Download Azilink and install on your phone.
3. Download and install OpenVPN on your computer.
(i) You will need to compile openvpn from source (not as hard as it sounds).
(ii) You need a C-compiler:
Download the xcode package from here.
You’ll need to register for an Apple Developer Connection account.
Once you’ve registered, login and click Download Software and then Developer Tools.
Find the Download link next to Xcode Tools (version) – CD Image and click it!
Find the downloaded package, doubleclick it and follow the installation instructions to install gcc and a host of other development applications.
(iii) Download OpenVPN, unzip, and in the terminal browse to the top level of the unzipped folder and enter
Code:
sudo ./configure
sudo make
sudo make install
When this finishes, you will have openvpn installed.
(iv) For an OpenVPN GUI, download and install TunnelBlick, which is free and open source.​
4. Download this file and place it in your home directory.
5. In your computer terminal, enter
Code:
adb forward tcp:41927 tcp:41927
6. On the phone, make sure Azilink is running and make sure "Service active" is checked.
7. Open TunnelBlick, and tell it to use as a configuration the downloaded file azilink.opvn.
Open the TunnelBlick details, and make sure "Set nameserver (alternate 1) is selected".
8. You should now be online. Enjoy.
INSTRUCTIONS FOR WINDOWS​
Note: I have not yet tried this, as I do not use windows. I know it can be done, but if I am missing anything, please let me know and I will add to the instructions.
1. Make sure adb is installed.
2. Download Azilink and install on your phone.
3. Download OpenVPN for Windows, and run the installer.
4. Download this file and place it in your home directory.
5. In your computer terminal, enter
Code:
adb forward tcp:41927 tcp:41927
6. On the phone, make sure Azilink is running and make sure "Service active" is checked.
7. Run OpenVPN, and use as a configuration, the downloaded file azilink.opvn.
8. You should now be online. Enjoy.
My method for simple startup.
Ubuntu: Make a script:
Code:
adb forward tcp:41927 tcp:41927
sudo openvpn --configure ~/azilink.ovpn
Save it as azilink, and place in ~/bin (if there is no such directory, make it yourself via mkdir ~/bin and add it to your path). Then in the terminal enter:
Code:
chmod a+x ~/bin/azilink
.
Now, all that needs to be done to go online is turn on azilink on the phone, and enter in the terminal:
Code:
azilink
Mac: Make a script:
Code:
adb forward tcp:41927 tcp:41927
Save it as azilink, and place in ~/bin (if there is no such directory, make it yourself via mkdir ~/bin and add it to your path). Then in the terminal enter:
Code:
chmod a+x ~/bin/azilink
Now, all that needs to be done to go online is turn on azilink on the phone, open TunnelBlick, and enter in the terminal:
Code:
azilink
.
I'm using wireless wired usb tether. I'm running wireless tether and am plugged into usb to charge the phone with the computer. You could probably do the same with a wall wart charger or cigarette lighter charger for the car. Yeah it may be kinda retarded this way but it's simple and works. If I wanted to move around with the laptop, I could just put the phone on the wall charger in the same room. I did this a year ago when I went on vacation with the gf. We each had our laptop and was using wifi from my phone instead of paying for wired internet at the hotel. It wasn't blazing fast but it worked good enough to surf the net minus anything streaming.
herbthehammer said:
I'm using wireless wired usb tether. I'm running wireless tether and am plugged into usb to charge the phone with the computer. You could probably do the same with a wall wart charger or cigarette lighter charger for the car. Yeah it may be kinda retarded this way but it's simple and works. If I wanted to move around with the laptop, I could just put the phone on the wall charger in the same room. I did this a year ago when I went on vacation with the gf. We each had our laptop and was using wifi from my phone instead of paying for wired internet at the hotel. It wasn't blazing fast but it worked good enough to surf the net minus anything streaming.
Click to expand...
Click to collapse
There are four reasons I do not do it that way:
1. I build my computers, and do not put wireless cards in them.
2. I can crack anyone's WEP in about 15 minutes.
3. Having done that in the past with my G1, it destroyed my battery (had to buy a new one).
4. I get download speeds of around 1Mb/s with azilink.
Thanks for the tip though, it may help someone on here.
cloverdale said:
3. Having done that in the past with my G1, it destroyed my battery (had to buy a new one).
Thanks for the tip though, it may help someone on here.
Click to expand...
Click to collapse
This. My hero's battery was toast after about 4 months of doing that every day. The problem is that using wireless tether eats the battery up faster than it can charge, which is not a good thing. Not to mention the battery/phone gets HOT. Which is also very not good. I went from maybe 10 hours of battery life (occasional texting, facebook once or twice an hour maybe) to draining the battery in less than 4 with slightly more use.
Testing this asap.
SirRipo said:
This. My hero's battery was toast after about 4 months of doing that every day. The problem is that using wireless tether eats the battery up faster than it can charge, which is not a good thing. Not to mention the battery/phone gets HOT. Which is also very not good. I went from maybe 10 hours of battery life (occasional texting, facebook once or twice an hour maybe) to draining the battery in less than 4 with slightly more use.
Click to expand...
Click to collapse
This is true.
But if you have no other option BUT wireless tether (for example the rom you are using is currently so bleeding edge none of the other options work) you can just install setcpu or something similiar and create a screen off profile that keeps you max clock speed much lower. For example, on my heroc, my screen off would be 176/245 - min and max - after trial and error I came to the conclusion that this effectively reduces ALL heat issues caused by wireless tether. Even makes battery life manageable if you can't charge it at the time.
Just an FYI for anybody that's ever in a tight spot. Personally I prefer the native tether option available in AOSP roms, but you never know when you're gonna be in a bind. Seems like every new "wave" of roms results in one or the other working. Lots of times in alpha and early beta builds it's one or the other, it seems. Kernel issues the majority of the time, I believe, but that's neither here nor there, now is it.
Using this now and still horrible for streaming video. Are all tethering apps destined to be incapable of streaming? =(
Jeezimus said:
Using this now and still horrible for streaming video. Are all tethering apps destined to be incapable of streaming? =(
Click to expand...
Click to collapse
Are you still going through the sprint proxy?
Tether
cloverdale said:
Are you still going through the sprint proxy?
Click to expand...
Click to collapse
Hey thanks for posting this. This was needed. However, I am newbie to andriod.
Can you please tell me what do you mean by "place it in home directory". Phones directory or computer??? Where are these codes typed? In program with spaces included?..Do you have to do this all everytime to connect net?
cloverdale said:
Are you still going through the sprint proxy?
Click to expand...
Click to collapse
I am as of now but I've been getting much better speeds as of late with Azilink. It may have just been a fluke that one night. The extra step of the adb code is a bit of a pain, but definitely worth it for streaming. Much appreciated for the share =)
gangbang72 said:
Hey thanks for posting this. This was needed. However, I am newbie to andriod.
Can you please tell me what do you mean by "place it in home directory". Phones directory or computer??? Where are these codes typed? In program with spaces included?..Do you have to do this all everytime to connect net?
Click to expand...
Click to collapse
The home directory is your user directory on your computer. The commands are typed in your computer terminal (or command window for windows users). You will have to type steps 5 and 7 each time you connect. I made a script that allows me to connect by simply typing azilink. I will add this to the OP later today.
Still working on getting this to work.
Sent from my SPH-M920 using Tapatalk
jes24cap said:
Still working on getting this to work.
Sent from my SPH-M920 using Tapatalk
Click to expand...
Click to collapse
Where are you having problems?
wired tether for root users is a lot simpler if you have root. And it barely gets hot, unlike wireless tether. And the latest wireless tether can use WPA2 by the way instead of WEP
I got everything installed on my windows 7 laptop & the app on my phone but couldnt get this to work
draztikrhymez said:
I got everything installed on my windows 7 laptop & the app on my phone but couldnt get this to work
Click to expand...
Click to collapse
I have never used it on windows, but I can try to help. Where are you having problems?
I'm trying to get this setup on my Mac, any help? I have installed Tunnelblick as the OpenVPN client on my computer, it connects and everything says its connected but no internet. Help please?
Sent from my PG06100 using XDA App
foolforfood said:
I'm trying to get this setup on my Mac, any help? I have installed Tunnelblick as the OpenVPN client on my computer, it connects and everything says its connected but no internet. Help please?
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
With a MAC you also need to manually set the nameserver to 192.168.56.1 (the phone's NAT IP address). I am not sure how to do this with OSX, but I am sure a quick Google search will tell you.
cloverdale said:
I have never used it on windows, but I can try to help. Where are you having problems?
Click to expand...
Click to collapse
I am not getting a network connection to show up @ all. I have the app running on phone too
danaff37 said:
wired tether for root users is a lot simpler if you have root. And it barely gets hot, unlike wireless tether. And the latest wireless tether can use WPA2 by the way instead of WEP
Click to expand...
Click to collapse
How do i get wired tether to work? It connects, but says no internet connection.

Running 3G and WiFi connections simultaneously

Hello to all.
I was trying to start this thread in Android Software and Hacking General, but got a warning about not having enough posts to submit a thread there, so I'm going to try here.
I have a Samsung Galaxy S II phone with the newest Android version. My goal is to modify the system so that 3G and WiFi are able to run together, side-by-side, simultaneously without 3G being turned off. Now, every time I connect to a WLAN, 3G cuts.
[OK, the spam police won't let me post outside links; Google Mobisocial 3G Wifi Stanford to find the article I'm talking about.]
MobiSocial News wrote about a hack that modifies ConnectivityService.java in a rather crude way, but according to the author of that article, it works on a 2.x Android system. There's not much info about the hack, but it's at least something and sounds plausible.
I tried to follow the instructions; I downloaded newest Android source codes, modified ConnectivityService.java and built the kernel by following these instructions: [a link to source.android.com "Building the System"]. But unfortunately, make didn't produce a services.jar mentioned in the article.
---
Does anyone know anything about using 3G and WiFi at the same time? Is it even possible?
Every piece of information is valuable, so don't be afraid to post. Thanks!
Anyone?
If I was misunderstood in my previous post; I'm not looking to have simultaneous connections, I just want the mobile network device to be online while I'm doing something with WiFi. And when WiFi cuts off, for example in a train tunnel or something, 3G takes its place.
I want to do the same with you
Cherilee said:
Anyone?
If I was misunderstood in my previous post; I'm not looking to have simultaneous connections, I just want the mobile network device to be online while I'm doing something with WiFi. And when WiFi cuts off, for example in a train tunnel or something, 3G takes its place.
Click to expand...
Click to collapse
Hello from me. I done the same job with you! And the Service.jar was created and i pushed to my mobile phone. But still the same default use of the connectivity. You managed to do something?
No it is not possible.
"NEVER CALL YOURSELF NOOB BE A NEWBIE"
PM me if u need help
Sent from MOON......
Moonguy75 said:
No it is not possible.
"NEVER CALL YOURSELF NOOB BE A NEWBIE"
PM me if u need help
Sent from MOON......
Click to expand...
Click to collapse
And why they say that it works?
Cherilee said:
Does anyone know anything about using 3G and WiFi at the same time? Is it even possible?
Click to expand...
Click to collapse
It's possible with a rooted phone.
cboursinos said:
Hello from me. I done the same job with you! And the Service.jar was created and i pushed to my mobile phone. But still the same default use of the connectivity. You managed to do something?
Click to expand...
Click to collapse
Read here:
http://forum.xda-developers.com/showthread.php?t=2197776
Moonguy75 said:
No it is not possible.
Click to expand...
Click to collapse
Actually it is, I found this thread that describes how to do it on an optimus G phone, and based on that I was able to do in on vanilla android 4.3 as well (my rooted nexus 4).
You need to put a couple of scripts together, since you need a series of shell commands for turning this on and off, I recommend the wonderful SH Script Runner for this.
Here is what I did on my Nexus 4. It works perfectly but note that you don't actually see the wifi icon turning on, but if you run "netcfg | grep UP" you will see that the wlan0 interface is up and running (as well as the rmnet_usb0 mobile data interface, both of them will be up and will have the expected IP addresses) and you can access your local LAN while your mobile data 3g/4g whatever provides your default route to the outside world.
Code:
# enable dual-networking:
pkill dhcpcd
svc wifi disable
svc data enable
netcfg wlan0 up
cd /data/misc/wifi/.
wpa_supplicant -B -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
dhcpcd wlan0
ip route add x.x.x.x via x.x.x.y # add any desired local route
# disable dual-networking:
ip route del x.x.x.x/x via x.x.x.y
pkill dhcpcd
pkill wpa_supplicant
rm -rf /data/misc/wifi/wlan0
netcfg wlan0 down
svc wifi disable
svc data disable
Hi guys. I am trying to do the same on my Xiaomi m2. Can someone point me to the correct direction. Much much much appreciated.
Sent from my MI 2 using Tapatalk
wlh03212 said:
Hi guys. I am trying to do the same on my Xiaomi m2. Can someone point me to the correct direction. Much much much appreciated.
Click to expand...
Click to collapse
What's your Android version? Is the phone rooted? Did you try running the above commands I posted, and what was the output?
You could also try the similar commands that worked on another and post the output here.
sordna said:
What's your Android version? Is the phone rooted? Did you try running the above commands I posted, and what was the output?
You could also try the similar commands that worked on another and post the output here.
Click to expand...
Click to collapse
Hi I'm running on Miui v5 4.1.1
I did try the above commands. But I'm not sure about the ip route you mentioned in the coding x. X. X. X via y. Y. Y. Y.
The response of the script was permission denied. I am definitely rooted and I gave permission to SH script runner.
Sent from my MI 2 using Tapatalk
First try the commands on the terminal (adb shell, or terminal app) and make sure to type "su" first, so that all commands get executed with root permissions. After you get things working without errors on the terminal, you can put these commands in script runner.
The x.x.x stuff needs to be replaced with the subnet/netmask of your home LAN, such as 10.0.0.0/24 or whatever and the default gateway (your wireless router) to reach it via.The route stuff assumes a basic understanding of networking... Actually you can remove the route statements, they are only needed if your home LAN is on a different subnet than your WiFi subnet... most home routers put everything on the same subnet.
What is the end goal you are trying to achieve by connecting to 2 networks?
sordna said:
First try the commands on the terminal (adb shell, or terminal app) and make sure to type "su" first, so that all commands get executed with root permissions. After you get things working without errors on the terminal, you can put these commands in script runner.
The x.x.x stuff needs to be replaced with the subnet/netmask of your home LAN, such as 10.0.0.0/24 or whatever and the default gateway (your wireless router) to reach it via.The route stuff assumes a basic understanding of networking... Actually you can remove the route statements, they are only needed if your home LAN is on a different subnet than your WiFi subnet... most home routers put everything on the same subnet.
What is the end goal you are trying to achieve by connecting to 2 networks?
Click to expand...
Click to collapse
Thanks you for your reply. First of all my understanding of networking isn't anywhere basic . What i did with the xxx was replacing it with the internal ip assigned to me, aka 192.x.x.x
For the yyy, I replaced it with the ip of 3g connection. Not sure what I am doing here. Please guide me here (I know the su part which I an required to do in terminal)
And finally my goal. I have Seagate wireless plus and itself is a portable wifi hotspot to its own content. I am able to stream pictures music and video from the battery operated hardisk. I can bridge the connection of the portable hotspot to my home wifi gaining xs to the Internet.
However while I am connected to the Seagate wireless plus, I cannot connect to my 3g. That meaning I can't have Internet on the go which is a very big limitation.
Sent from my MI 2 using Tapatalk
Sent from my MI 2 using Tapatalk
OK. You don't need the "ip route" command, since your WiFi interface will give you access to the Seagate as soon as you connect to it. And the 3G interface, at least in my case, provided default gateway to the internet.
Anyway, try the other commands one by one and see which of them, if any, give you any errors. The netcfg command should show you that 2 interfaces (apart from the lo - 127.0.0.1) are UP and with expected IP addresses if everything goes well.
sordna said:
OK. You don't need the "ip route" command, since your WiFi interface will give you access to the Seagate as soon as you connect to it. And the 3G interface, at least in my case, provided default gateway to the internet.
Anyway, try the other commands one by one and see which of them, if any, give you any errors. The netcfg command should show you that 2 interfaces (apart from the lo - 127.0.0.1) are UP and with expected IP addresses if everything goes well.
Click to expand...
Click to collapse
# enable dual-networking:
............
............
.............
..........
...........
..............
..........
ip route add x.x.x.x via x.x.x.y # add any desired local route -------->( do i remove this row of code entirely? What do i do with this row of coding? Provide my default gateway? I'm not sure what's my default gateway or how i do find out my default gateway or how should i edit this coding to my default gateway.)
Anyway, try the other commands one by one and see which of them, if any, give you any errors. The netcfg command should show you that 2 interfaces (apart from the lo - 127.0.0.1) are UP and with expected IP addresses if everything goes well (In short if the i execute the above commands correctly with the correct default gateway of my 3G, the netcfg command should show my default gateway correctly? is my understanding correct?)
As I said before, you don't need the ip route command, remove that line entirely!
When all is working, netcfg | grep UP should show you your wlan interface with the IP address given to it by the Seagate, and your mobile data interface with the IP address given to it by your cellular provider.
sordna said:
As I said before, you don't need the ip route command, remove that line entirely!
When all is working, netcfg | grep UP should show you your wlan interface with the IP address given to it by the Seagate, and your mobile data interface with the IP address given to it by your cellular provider.
Click to expand...
Click to collapse
Thanks you much! Going to try out when I get home.
Sent from my MI 2 using Tapatalk
OK. Please hit the thanks buttons
sordna said:
OK. Please hit the thanks buttons
Click to expand...
Click to collapse
When i run the code line by line in terminal, i get an error message wlan0: interface not found or invalid
Do I run the code when connected to my hardisk hotspot? When exactly do I run the code.
wlh03212 said:
When i run the code line by line in terminal, i get an error message wlan0: interface not found or invalid
Do I run the code when connected to my hardisk hotspot? When exactly do I run the code.
Click to expand...
Click to collapse
If you try to understand the code you will notice it turns off your Wi-Fi and then turns it on. So actually you don't need to connect to the hotspot first.
Regarding the interface name, here is where you need to do your own investigation and figure the WiFi interface name for your own phone.
The netcfg command without any arguments displays all interfaces, and whenever you are on Wi-Fi, the relevant interface will be UP and will have your assigned IP address next to it.
Look at how much stuff I changed compared to the things posted by the other guy for the optimus phone. Look at his solution and be prepared to investigate and come up with similar amount of changes for your phone. I spent several hours trying different stuff for my Nexus 4, with my only info being the other guy's post. I read about netcfg and everything else googling various websites. You need to do the same and learn a bit about that stuff.
For all I know, the Optimus phone method could be closer to your phone than my method, perhaps. You have to do your own research and figure out the differences, then post them here to help other owners with the same device as yours.
sordna said:
If you try to understand the code you will notice it turns off your Wi-Fi and then turns it on. So actually you don't need to connect to the hotspot first.
Regarding the interface name, here is where you need to do your own investigation and figure the WiFi interface name for your own phone.
The netcfg command without any arguments displays all interfaces, and whenever you are on Wi-Fi, the relevant interface will be UP and will have your assigned IP address next to it.
Look at how much stuff I changed compared to the things posted by the other guy for the optimus phone. Look at his solution and be prepared to investigate and come up with similar amount of changes for your phone. I spent several hours trying different stuff for my Nexus 4, with my only info being the other guy's post. I read about netcfg and everything else googling various websites. You need to do the same and learn a bit about that stuff.
For all I know, the Optimus phone method could be closer to your phone than my method, perhaps. You have to do your own research and figure out the differences, then post them here to help other owners with the same device as yours.
Click to expand...
Click to collapse
Yes. I notice that the wifi switched off and then turns on again. Alright I do some research on my own! Thanks again.
Hope that I will get some breakthrough soon
Sent from my MI 2 using Tapatalk
Hi
I finally got it working. When I am connected to seagate wireless, I have to fiddle with the connection settings inside wifi settings. I assigned a static ip and assigned the gateway to 0.0.0.0
As for the ip, I set a different internal ip with the last digit increased by one. Example 172.25.0.2
Now I am connected to both 3G and LAN.
Sent from my iPhone using Tapatalk

Cannot connect to wifi

Hi,
i cannot connect to any wifi, with password or not, it just saying obtaining ip adress, and then the network disapeare or it just write saved under the network, sometimes i cannot even see any networks, i tried many roms, on all its the same.
currently i am using aokp mix rom, faux kernel 1.45.
please help, thank you
aspico said:
Hi,
i cannot connect to any wifi, with password or not, it just saying obtaining ip adress, and then the network disapeare or it just write saved under the network, sometimes i cannot even see any networks, i tried many roms, on all its the same.
currently i am using aokp mix rom, faux kernel 1.45.
please help, thank you
Click to expand...
Click to collapse
Logcat will help you.
If you are on linux:
Code:
adb logcat -d > /tmp/logcat.txt
grep -i 'wifi\|wpa' /tmp/logcat.txt
On windows, use "adb logcat" saving the output to a text file, like my example above. Try to find strings containing wifi and wpa (or wpa_supplicant).
This way you will know what is really happening.
epinter said:
Logcat will help you.
If you are on linux:
Code:
adb logcat -d > /tmp/logcat.txt
grep -i 'wifi\|wpa' /tmp/logcat.txt
On windows, use "adb logcat" saving the output to a text file, like my example above. Try to find strings containing wifi and wpa (or wpa_supplicant).
This way you will know what is really happening.
Click to expand...
Click to collapse
huh can you explain it a little more better, where i have to write this above? i am on windows...on my atrix i have terminal emuluator, have i there to write this?
There have been several reports over the months of people having trouble connecting to one manufacturers routers..........may be Belkin, but a cannot remember for sure. Also, if you are trying to connect to wireless N at 5GHz, try wireless G instead. I believe the Atrix will not connect at 5GHz, and the symptoms of trying to do so are exactly what you describe. If I try to connect to my router on the 5GHz wireless N band I get the same results as you. One other possibility is the password length. I have read that you should keep it under 8 characters with the Atrix, so maybe try shortening the password, or try connecting unsecured to test this theory out. I am using an Asus RT-N66U right now, but have previously used 2 Netgear routers without issue also. My work uses Cisco repeaters and routers and I have no issues there either.
CaelanT said:
There have been several reports over the months of people having trouble connecting to one manufacturers routers..........may be Belkin, but a cannot remember for sure. Also, if you are trying to connect to wireless N at 5GHz, try wireless G instead. I believe the Atrix will not connect at 5GHz, and the symptoms of trying to do so are exactly what you describe. If I try to connect to my router on the 5GHz wireless N band I get the same results as you. One other possibility is the password length. I have read that you should keep it under 8 characters with the Atrix, so maybe try shortening the password, or try connecting unsecured to test this theory out. I am using an Asus RT-N66U right now, but have previously used 2 Netgear routers without issue also. My work uses Cisco repeaters and routers and I have no issues there either.
Click to expand...
Click to collapse
I cannot connect to any network, 2.4 5 ghz.... secured or not secured, it finds networks, but i cannot connect to them.
CaelanT said:
Also, if you are trying to connect to wireless N at 5GHz, try wireless G instead. I believe the Atrix will not connect at 5GHz, and the symptoms of trying to do so are exactly what you describe. If I try to connect to my router on the 5GHz wireless N band I get the same results as you.
Click to expand...
Click to collapse
Just a heads up, but I can connect to my 5Ghz WiFi at home just fine. What kind of encryption are you using?
Inspiredwire said:
Just a heads up, but I can connect to my 5Ghz WiFi at home just fine. What kind of encryption are you using?
Click to expand...
Click to collapse
it has no matter with encription, i cannot connect at home, cannot connect at the city, cannot connect anywhere. its just showing up the network i try to connect it says saved and nothing happens, later the phone just turn off, i have to pull the battery to turn it on again,
logcat says this when i turn on the wifi:
E/Wifistatemachine (1553): Unable to change interface settings: java.lang.illegalstateexeption: Unable to communicate with native daemon to interface setcfg - com. android.server.NativeDaemonConnectorExeption: Cmd interface setcfg eth0 0.0.0.0 0 down broadcast running multicast failed with code 501: Flag unsupported
EWifiConfigStore (1552) : Missing id while pharsing configuration
Just installed CM7 nightly, everything works fine for now

enable wireless and 4g at the same time

Is there any way to do this? It seems that when I enable wifi, the rmnet_usb0 interface becomes inaccessible (no ipv4 address). When I disable wifi, even the wlan and cfg80211 modules get unloaded. I can't seem to find the way to load them (with wifi set as disabled) to try to ifconfig the interface up. Maybe I am just going about it in the completely wrong way!
All I really want is to have both interfaces up and running at the same time, with the default gateway pointing out the rmnet_usb0 interface so that I can access the internet via 4g, but still being able to route to my local wireless lan.
I think your best bet is going to be setting up a vpn
My laptop has wifi and bluetooth on the same assembly, and only 1 is accessible at once. Maybe its like that.
Sent from my LG-E970 using xda app-developers app
I know they can physically be enabled at the same time, because the phone can be a hotspot. That doesn't really help me though if I want to connect wired devices to it. I want it to remain a wifi client.
There's an app called SuperDownload or something that uses wifi and mobile data simultaneously for downloading. It seems to bring the mobile data up in some special mode where the app can use it but it's not otherwise generally routable. That's what the author says, at least, but I'm not sure that makes sense. Normally when data is in use it basically looks like any other network interface.
A more general way of asking my question might be "what happens behind the scenes when you enable wifi?" if there's a script being run I can see what's going on (loading the module and so on) and maybe adapt it to my needs.
http://forum.xda-developers.com/showthread.php?t=1667025
This app uses them both simultaneously, maybe you can get some info there..
SUCCESS I think: enable wireless and 4g at the same time
bigworm50 said:
http://forum.xda-developers.com/showthread.php?t=1667025
This app uses them both simultaneously, maybe you can get some info there..
Click to expand...
Click to collapse
Yep that's the one I mentioned. Doesn't seem to be much help.
I think I've gotten somewhere. I can't test this fully because I don't have access to any other machines on the current wireless lan, but I can get a dhcp address from it and ping its gateway, while meanwhile traceroutes to the internet are going through the mobile network.
1. Turn off wifi in the normal way (from the phone's user interface) if it's not already off.
All the following steps done in a root shell:
2. load the drivers
busybox insmod /system/lib/modules/cfg80211.ko
busybox insmod /system/lib/modules/wlan.ko
3. start wpa_supplicant to connect to the first available wireless network. The wpa_supplicant.conf file I list below is the one maintained automatically by the phone as you join new networks. If you want more control (e.g. connect to only a specific network), copy the wpa_supplicant.conf file somewhere, modify it as needed, and specify it on the command line.
wpa_supplicant -B -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
4. dhcpcd
busybox pkill dhcpcd
rm /data/misc/dhcp/*
dhcpcd wlan0
5. verify route
busybox route
For me this is showing the original default first on the list (goes through rmnet_usb0) followed by the new one configured for the wireless lan wlan0. Traceroute shows the traffic going out the first one.
Now, at this point if you try to enable wifi normally from the phone it will not work. To make it work:
ifconfig wlan0 down
ifconfig wlan0 unplumb
rmmod wlan
rmmod cfg80211
And you can turn on wireless again.
I was able to test at home, and it is definitely working.
As for what this buys us, there are two things. First, I have crappy satellite internet at home, so I want to be able to transfer files back and forth, and sometimes even use the LG OSP, without my phone having to use that instead of 4G (which is marginal but still better).
More usefully, it allows non-tethered proxying. I can run a socks or http proxy on my phone and point my non-wireless devices at it, letting me browse the web without routing all my internet traffic through the phone.
I'm still a little bit away from non-wireless tethering (i.e. being able to set my pc's default gateway to my phone and have it route all internet traffic through the mobile data connection), but that would be nice as well. I will need to set up some iptables NAT stuff the way wifi tether does, and I haven't gotten the right combination yet since I don't get much opportunity to test it.
works on nexus4 too
Thank you so much for this info, I was able to change things a bit and make it work on my stock / rooted Nexus 4:
Code:
# enable dual-networking:
pkill dhcpcd
svc wifi disable
svc data enable
netcfg wlan0 up
cd /data/misc/wifi/.
wpa_supplicant -B -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
dhcpcd wlan0
ip route add x.x.x.x via x.x.x.y # add any desired local route
# disable dual-networking:
ip route del x.x.x.x/x via x.x.x.y
pkill dhcpcd
pkill wpa_supplicant
rm -rf /data/misc/wifi/wlan0
netcfg wlan0 down
svc wifi disable
svc data disable
I use SH Script runner to create and run the 2 above scripts easily.
I am a newbie... Do I have to just run the script in Sh script runner? And I don't know what IP route to use.
Sent from my GT-I9300 using XDA Premium 4 mobile app
---------- Post added at 12:25 PM ---------- Previous post was at 11:26 AM ----------
I am not able to load the drivers.. It's showing not found.. Even though I have installed busy box using busy box installer pro
Sent from my GT-I9300 using XDA Premium 4 mobile app
---------- Post added at 12:30 PM ---------- Previous post was at 12:25 PM ----------
I checked the directory using root Explorer and I can't find cfg80211.ko and wlan.ko
Sent from my GT-I9300 using XDA Premium 4 mobile app
Whether you have any kernel modules to install with insmod, depends on your phone model, ROM, kernel.
For my nexus 4 with franco.kernel I don't have the modules either, but got it to work fine. So maybe its a similar situation with your phone .
SH script runner is not required, you can run the script in any terminal app after doing su.
EDIT: Some other interesting threads related to this topic are here:
http://forum.xda-developers.com/showthread.php?t=1640472
http://forum.xda-developers.com/showpost.php?p=13758490&postcount=1
http://forum.xda-developers.com/showthread.php?t=1667025

Categories

Resources