[DEV] Wireless Monitor Mode - Nexus One Android Development

BCM4329 driver source code suggests that monitor mode is possible (for kismet_drone, WIDSs, etc).
http://forum.aircrack-ng.org/index.php?topic=6735.msg34733#msg34733
The idea is to modify wl_iw_set_mode(), and allow IW_MODE_MONITOR by setting these flags:
WLC_SET_MONITOR and maybe WLC_SET_PROMISC too.
Then test with tcpdump if anything changed.

Have you come across anything regarding injection with this driver/chip? Monitoring mode would be nice, but add packet injection to the mix and the Nexus one becomes a lean mean WEP cracking machine.

airo*-ng with gpsd sounds fun.

overridex said:
Have you come across anything regarding injection with this driver/chip? Monitoring mode would be nice, but add packet injection to the mix and the Nexus one becomes a lean mean WEP cracking machine.
Click to expand...
Click to collapse
Confirmed. Damn would that be a seriously good feature for a phone. Wouldn't have to use the laptop then

mer6 said:
Confirmed. Damn would that be a seriously good feature for a phone. Wouldn't have to use the laptop then
Click to expand...
Click to collapse
I would LOVE this. Hate having to drag the laptop around....

I had a go at putting it into monitor mode within a debian Chroot but wasnt having any of it. No idea if its debian/driver/hardware thats stopping it.
Code:
[email protected]:~$ sudo iwconfig eth0
eth0 IEEE 802.11-DS ESSID:"" Nickname:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Bit Rate:72 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Managementmode:All packets received
Link Quality=5/5 Signal level=0 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[email protected]:~$ sudo iwconfig eth0 mode Monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device eth0 ; Invalid argument.
It wont give error when trying to swap into Ad-Hoc but then doesnt swap.

It is about driver, you need to modify it.
If anyone is able to compile & run a compiled wifi driver I can try write a patch for enabling monitor mode.

bump
bump... just wondering

any word on aircrack suite working?

usually broadcom chips don't support it.

fleebailey33 said:
usually broadcom chips don't support it.
Click to expand...
Click to collapse
Can't agree with that assert.
http://aircrack-ng.org/doku.php?id=compatibility_drivers
I'm waiting N1 to be released in my country so I can get one and start investigating.

Any news on this? Would truly be great.

deprecated

fleebailey33 said:
usually broadcom chips don't support it.
Click to expand...
Click to collapse
That's not true, look at the b43 module .. it proves that the broadcom chips are capable of being set into monitor mode, the only thing you'll need is a firmware that is able to supports the monitor mode

sorry for the noob question but what does this accomplish..i see ppl posting not having to carry the laptop and got interested

bonkasnucca said:
sorry for the noob question but what does this accomplish..i see ppl posting not having to carry the laptop and got interested
Click to expand...
Click to collapse
It would basically make our Nexus capable of injecting packets which would allow us to crack a WEP encryption on a secured network to obtain the key and then connect to that network and use the internet

gravufo said:
It would basically make our Nexus capable of injecting packets which would allow us to crack a WEP encryption on a secured network to obtain the key and then connect to that network and use the internet
Click to expand...
Click to collapse
So any work on this been made since OP or is this still being thought about even? Status update would be great.

hi guys,
bcm4329 is also in Desire Z, and Galaxy S I9000.
I posted here in galaxy dev thread,
but there is no further interest..
br
condi

deprecated

gravufo said:
It would basically make our Nexus capable of injecting packets which would allow us to crack a WEP encryption on a secured network to obtain the key and then connect to that network and use the internet
Click to expand...
Click to collapse
There is an app for that try looking for "penetrate" apps on market.
BTW someone need to compil new kernel and drivers files with this flags to test it

Related

Dynamic switching RMNET and PPP without rebooting

Hey. Since PPP is faster than the two, it is the ideal connection. But it's not as reliable as RMNET. Well not for now at least. And it does not support wifi tethering (the only reason I am sticking to RMNET)...
So, has anyone been able to allow the phone to switch between RMNET and PPP without rebooting? I have made a workaround, but it still involves rebooting....
if anyone found a solution to switch between the two runtime please post how you did it. Or any suggestions..
I'd be interested in your work around. Please share details..
gatorlounge said:
I'd be interested in your work around. Please share details..
Click to expand...
Click to collapse
+1 for the workaround.
Why even mention a workaround and not even post how to do it??
mentalityx said:
Why even mention a workaround and not even post how to do it??
Click to expand...
Click to collapse
Because I think he's checking whether there is a non-reboot workaround, before incorporating his reboot-workaround in his next build?
Because if you're having to reboot, you could just go into windows first and copy the rootfs from PPP to rmnet, whichever one you wanted?
BobaFeTT_NL said:
Because I think he's checking whether there is a non-reboot workaround, before incorporating his reboot-workaround in his next build?
Click to expand...
Click to collapse
Well then let's hear it all.
Sent from my HTC HD2 using XDA App
I don't think that it would be possible, would it? Because you would at least need to disable all kind of connection activities that are going on, and that would probably bring some problems to this.
Sent from my HTC HD2 using XDA App
My workaround is to have a switch in my startup.txt (similar to how I modified it for the dpi resolution). but it will require a reboot to apply since it has to be read at bootup time. I was wondering if the data connection can be flushed and reloaded (something like remounting a partition can be done from terminal).
Not sure if this will work for you, but if you want to bring interfaces up and down, use ifconfig:
ifconfig rmnet0 down
ifconfig ppp0 up
If the IP changes, you may need to update the gateway with something like this:
route add default gw 123.123.123.123 ppp0
bangsters said:
My workaround is to have a switch in my startup.txt (similar to how I modified it for the dpi resolution). but it will require a reboot to apply since it has to be read at bootup time. I was wondering if the data connection can be flushed and reloaded (something like remounting a partition can be done from terminal).
Click to expand...
Click to collapse
Its a solid start bangsters. A step in the right direction. One restart is better than multiples.
Sent from my HTC HD2 using XDA App
leonowski said:
Not sure if this will work for you, but if you want to bring interfaces up and down, use ifconfig:
ifconfig rmnet0 down
ifconfig ppp0 up
If the IP changes, you may need to update the gateway with something like this:
route add default gw 123.123.123.123 ppp0
Click to expand...
Click to collapse
thanks. it looks like it needs to load driver files before it can bring the ports up tho... is it possible to load both rmnet and ppp drivers, then just activate one?
bangsters said:
thanks. it looks like it needs to load driver files before it can bring the ports up tho... is it possible to load both rmnet and ppp drivers, then just activate one?
Click to expand...
Click to collapse
I have done this before in linux with a problematic ethernet driver for a realtek card. I surely can be loaded after linux is running, don't know about android thoug.
Santroph
Sent from my HTC HD2 using XDA App
bangsters said:
Hey. Since PPP is faster than the two, it is the ideal connection. But it's not as reliable as RMNET. Well not for now at least. And it does not support wifi tethering (the only reason I am sticking to RMNET)...
So, has anyone been able to allow the phone to switch between RMNET and PPP without rebooting? I have made a workaround, but it still involves rebooting....
if anyone found a solution to switch between the two runtime please post how you did it. Or any suggestions..
Click to expand...
Click to collapse
This could help:
While enabling PPP in HyperDroid I realized that actually only one file needs to be replaced: init.rc.
Of course there are also other files needed for PPP, but Pongster already included them all, so I don't know of them, but you probably do .
But by having the one or the other init.rc in place one can switch between RMNET and PPP.
In these two versions of init.rc there is only one line of difference:
The RMNET version includes the line "service ril-daemon /system/bin/rild".
The PPP version includes the line "service ril-daemon /system/bin/rild -l /system/lib/libhtc_ril_wrapper.so -- -d /dev/smd0".
The init.rc is part of the init process and contains services to be set up at boot.
I don't know if it's possible to control services at runtime.
bangsters said:
Hey. Since PPP is faster than the two, it is the ideal connection. But it's not as reliable as RMNET. Well not for now at least. And it does not support wifi tethering (the only reason I am sticking to RMNET)...
Click to expand...
Click to collapse
PPP DOES support wifi tethering. I have been using ppp wifi tethering for ages now.
You just need to use command ipconfig /renew just once after windows pc is connected and complains about no internet connection (traffic) It works everytime with every ppp build that does not give error while enabling hotspot.
Mdeejay's newest builds (such as desire based 2.4.2 and desire hd based 3.4) have ppp almost as stable as rmnet. There is also the newest ril wrapper file which makes ppp better.
There is too much speed difference between RMNET and PPP and with the newer evo based kernels not supporting rmnet anymore, I think PPP is stable enough to forget about rmnet altogether. I get 1.5mbps/0.1mbps D/U with RMNET, and 4mbps/1.5mbps D/U with PPP. Huge difference.
Since RMNET-PPP switch is not something you would frequently do, I believe it is not very important to be able to switch without rebooting. (If PPP is not stable for you, than you make a rmnet switch one time with a reboot and thats all) Your previous startup.txt switch function was very practical.
EDIT: I just saw the date stamp of the post/thread. It was old and was bumped after a month. Well, at least I wrote about PPP/wifi tethering's current situation.
memin1857 said:
There is too much speed difference between RMNET and PPP and with the newer evo based kernels not supporting rmnet anymore, I think PPP is stable enough to forget about rmnet altogether.
Click to expand...
Click to collapse
This is so not true!
Current kernels are faulty regarding PPP and need to be fixed. Just look here.
In terms of stability :
Actually I am sitting in train that
Means many changes between GPRS EDGE and 3G. And almost every time it goes to GPRS the connection is lost and I need to switch on/off airplane mode. That's no fun. Better slow but reliable!
Sent from my HTC HD2 using XDA App
pathologo said:
This is so not true!
Current kernels are faulty regarding PPP and need to be fixed. Just look here.
Click to expand...
Click to collapse
Try newer builds such as mdeejay desire based 2.4 or mdeejay desire hd based 3.4
ppp reliability has improved a lot lately.
I looked at your link. Those hard freezes are fixed already. Your link is a month old!
You are reading a one month old post, while I am using myself and this my own experience. ppp used to be very bad in the past, now it is much much better.
Actually you don't have a choice with the newest evo kernels.
memin1857 said:
I looked at your link. Those hard freezes are fixed already. Your link is a month old!
You are reading a one month old post, while I am using myself and this my own experience.
Click to expand...
Click to collapse
You are wrong! Just go through this thread and you will actually see that is it NOT fixed!
I read through everyone's replies. I found a gscript that can change PPP and RMNET. I'll attach it and let me know if it works for you all.
EDIT: Sorry. It does require reboot.

[Q] Anyone been able to ssh remotely (not with wifi) to their Thunderbolt?

ssh from your computer over wifi is easy, but doing it over LTE seems to be problematic if not impossible (with the phone acting as the server). It doesn't look like we're given a public ipv4 address and they're just doing an NAT magic to translate it into an ipv4 addy on their end, but it doesnt necessarily link back to you always (if you check your ip over a browser).
With my home connection being SOL as far as having ipv6 thanks to craptactular att "we dont need no ipv6 for our customers," I don't see any possible method to reach the phone.
Blackberries had a static ipv4 (when I had one) but I know that's a dying thing for new phones with ipv4's days numbered.
I know there's other solutions (like vpn), but obviously that's not the same.
i have not had any luck either and that makes sense now cuz i remember having issues with trying to run a server on my phone . damn this is annoying.
I cant get ANY data to work with the exception of once and that was only searching google.com but no other website would work... any ideas anyone?
ddarvish said:
i have not had any luck either and that makes sense now cuz i remember having issues with trying to run a server on my phone . damn this is annoying.
I cant get ANY data to work with the exception of once and that was only searching google.com but no other website would work... any ideas anyone?
Click to expand...
Click to collapse
Nope, not really. Probably could set up a vpn server on my VPS server and and vpn into that to get around the NAT though and do some work in iptables for routing. That was the only thing I could come up with.
Hi,
I know that it was stated that "ssh from your computer over wifi is easy," but this process is not immediately obviously to me. I have succeeded in sshing with the phone, but not into it. Can someone explain how to ssh into the phone (from a computer with wifi that the phone is also connected into)?
Thank you,
Michael
mcoughlin said:
Hi,
I know that it was stated that "ssh from your computer over wifi is easy," but this process is not immediately obviously to me. I have succeeded in sshing with the phone, but not into it. Can someone explain how to ssh into the phone (from a computer with wifi that the phone is also connected into)?
Thank you,
Michael
Click to expand...
Click to collapse
You need an ssh server on your phone. You can either use something like dropbear, which comes by default on most AOSP ROMs and you can figure out how to set it up by reading this or you can use something like sshdroid, which is a GUI app.
I'd be willing to bet that verizion simply blocking ports and not giving you a real ip
Sent from my ADR6400L using XDA App
movielover76 said:
I'd be willing to bet that verizion simply blocking ports and not giving you a real ip
Sent from my ADR6400L using XDA App
Click to expand...
Click to collapse
Unless you're roaming, you're always behind NAT and an IP within verizon's network. No one is going to give you a real and static ipv4 address nowadays regardless of the mobile network, there just arent enough left. IPv6 however I do not know if it routes out or not, haven't tested yet and the only place that I have an ipv6 address is my remote server so it doesn't do that much good usability wise to me.
Thank you for the really helpful comment! Now for another silly question: imagine the case where you have your phone connected by USB to your computer. Is it still possible to "ssh" into it using one of the methods described above?
mcoughlin said:
Thank you for the really helpful comment! Now for another silly question: imagine the case where you have your phone connected by USB to your computer. Is it still possible to "ssh" into it using one of the methods described above?
Click to expand...
Click to collapse
if you have the usb cable connected, you could just use adb and type "adb shell"
Otherwise, I don't think so because you aren't registering a network address via usb.
So once you are into your phone with adb, is it possible to run a program like ConnectBot to ssh out from the phone through your computer's adb shell?
mcoughlin said:
So once you are into your phone with adb, is it possible to run a program like ConnectBot to ssh out from the phone through your computer's adb shell?
Click to expand...
Click to collapse
Yes, if you mean ssh into your computer's sshd (ssh server).
ssh client (phone) → ssh server (computer)
or you can go the other way as well if you have an ssh server on your phone.

[Q] App to test wifi password strength

hello all. Since the prime has a tegra 3 and wifi. Would it be powerfully enough to brute force my wifi? Or does the wifi on the prime even have the capabilities needed? Would you have to have a dual boot into linux to run such program with a usb capable wifi solution? Sorry if this has been covered or there is an obvious answer. Just curious since tablets are getting more and more powerful.
Has anyone else been wondering about this?
Idk of any but you can install a Debian chroot to get some stuff I reckon. If searching the market (and Google with the word android prefixed) for password cracker or wifi password cracker doesn't yield anything, you'll need the chroot.
Sent from my Transformer Prime TF201 using Tapatalk
I've found a bit, but most are not standard WEP/WPA cracking, but more specific router hacking oriented :
HHG5XX WEP scanner
WifiPass
WLANAudit
WiFinder
Routerpwn
WPA Decrypter
WPA Tester Defectum
Penetrate Pro (2.11.1)
websec.routerpwn
PulWifi
If you really want a more efficient way to make wifi cracking, I would recommand too to install a linux in chroot, but my prefered distrib for that would be more a BT5 for arm release.
With the USB wifi modules made for Prime, and after apt-geting aircrack tools on my Prime's BT5, I've been able to set my ALFA AWUS036H in monitoring mode and then start playing
Definitely the best solution in my mind.
Thanks reply guys. I think you've set me in the right path. Bibo, I think I might have to give yours a shot. thanks again guys!
Sent from my Inspire 4G using XDA App
Ur welcome.
Btw and once the key would be found, here are some other network analysis apps which can be useful :
Anti : (lite) https://market.android.com/details?...=W251bGwsMSwxLDEsInpJbXBlcml1bS5jb20uYW50aSJd
Fing : https://market.android.com/details?id=com.overlook.android.fing&feature=related_apps
AndroNet Tools : http://fr.androidzoom.com/android_applications/tools/andronet-tools_bnlpr.html?nav=related
Rgds
You're pretty handy, thanks! ill keep your name handy for pm's if/when I have related questions later for sure. thanks once more!
Sent from my Inspire 4G using XDA App

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

Any way to use a USB WiFi Dongle with the Prime?

So I have recently purchased a USB WiFi dongle (from ASUS actually) for my laptop- primarily because it has the 5 ghz band (which, I realize is overstated, but it's still better than the 2.4 at close distances). And given how weak the wifi is on the prime, I was wondering if there's any way to use the dongle with the tablet dock and to get the system to actually recognize and use it instead of its own wifi. I'm guessing no, but hopefully I'll be pleasantly surprised!
there are some people who have gotten them to work. there is a thread on it. you just have to search through the pages for it. I know one person gotten it to work through ubuntu/linux. by loading up the modules/drivers and setting commands for them. check out the thread already made for it. We suggested to asus to add native support for usb wifi dongles. we have yet to hear a response on it.
KDLMaj said:
USB WiFi dongle (from ASUS actually)
Click to expand...
Click to collapse
Hi, i've a working Wi-Fi dongle on TF201.
what model of dongle do you have?
can you post a "lsusb" output ? ( attach the dongle to a linux box and type lsusb in a terminal )
i will compile the module for you and all you have to do when i will done is:
1) open termianl emulator
2) su
3) insmod path/to/module.ko
4) wpa_supplicant -i wlan1 -c /data/misc/wifi/wpa_supplicant.conf
5) dhcpcd wlan1
i suppose that the new device is wlan1. the interestant thing is that with an external wifi dongle you can put the interface in monitor mode, so you can dump the sorround WPA handshakes while sending deauth packets.
Essentially, building your own kernel is the only sure fire way to add support for your particular dong, i mean dongle.
Sent from my Transformer Prime TF201 using xda premium
For serious?
Sorry guys if he cant handle the search button hes not going to be able to figure out the wifi dongle bit. Just can't be done!
bdawg31 said:
Essentially, building your own kernel is the only sure fire way to add support for your particular dong, i mean dongle.
Sent from my Transformer Prime TF201 using xda premium
Click to expand...
Click to collapse
pileot said:
For serious?
Sorry guys if he cant handle the search button hes not going to be able to figure out the wifi dongle bit. Just can't be done!
Click to expand...
Click to collapse
maybe i don't understand your posts....why "Just can't be done!" ?
I have a WG111v3 [ RTL8187 chipset ] working on TF201.
I use it when wifi signal is weak or for sniffing on wifi networks.
....mmmm idea!
wait my next post!
here you are:
http://forum.xda-developers.com/showthread.php?t=1711805
here you can find all USB wifi modules.
byeee!
help
tux_mind said:
Hi, i've a working Wi-Fi dongle on TF201.
what model of dongle do you have?
can you post a "lsusb" output ? ( attach the dongle to a linux box and type lsusb in a terminal )
i will compile the module for you and all you have to do when i will done is:
1) open termianl emulator
2) su
3) insmod path/to/module.ko
4) wpa_supplicant -i wlan1 -c /data/misc/wifi/wpa_supplicant.conf
5) dhcpcd wlan1
i suppose that the new device is wlan1. the interestant thing is that with an external wifi dongle you can put the interface in monitor mode, so you can dump the sorround WPA handshakes while sending deauth packets.
Click to expand...
Click to collapse
hello,
I compiled my drivers but how can I force Android to recognize my usb instead of the onboard card? 'cause I can browse the web and also watch videos but I cannot use the market or download files from browser... or please tell how to config my wpa_supplicant.conf??? please I need some light over here.... thanks

Categories

Resources