Post Reply

use USB WiFi dongle on TF201

OP tux_mind

15th June 2012, 01:06 PM   |  #1  
OP Senior Member
Thanks Meter: 294
 
198 posts
Join Date:Joined: Mar 2012
Donate to Me
Hi folks!

one user ask if there is a method for using USB WiFi dongle on TF201, I've a working WG111v3 [RTL8187] which i use for connect when signal is weak, sniffing wifi packets , dump WPA handshakes and make some love ;P.

however i get all this working on TF201 by compile the kernel modules.
because not all users have a chroot with a stock kernel tree, i think to realease a package with all these modules inside.

so, for extract the modules from the package :
tar xzf wifi_ko.tar.gz -C path/to/
or
tar xjf wifi_ko.tar.bz2 -C path/to/

and all you have to do for use the wifi dongle is:
1) open termianl emulator
2) su
3) insmod path/to/module.ko
4) ifconfig wlan1 up
5) wpa_supplicant -i wlan1 -c /path/to/wpa_supplicant.conf -B
6) dhcpcd wlan1

i suppose that the new device is wlan1.
the step 5 and 6 is for connecting to a wireless Access Point, but if you use the dongle for other purposes just skip these.
I make these modules with debug information, so, if you have some problem look at `dmesg | grep "$module" ' output.
for a working wpa_supplicant.conf file take the /data/misc/wifi/wpa_supplicant.conf and remove extra information such as device-id and other android stuff.

Here you are the packages: ( if someone want to upload to another hoster will be better )
https://docs.google.com/open?id=0B0R...kRheUMxNjRPTGc
https://docs.google.com/open?id=0B0R...21NZ3dTNzNHYTQ

Hope this help.
Regeards.
( sorry for my doggish english , i will update it soon )
The Following 3 Users Say Thank You to tux_mind For This Useful Post: [ View ]
17th September 2012, 11:57 AM   |  #2  
Junior Member
Thanks Meter: 1
 
11 posts
Join Date:Joined: Jan 2011
Quote:
Originally Posted by tux_mind

Hi folks!

one user ask if there is a method for using USB WiFi dongle on TF201, I've a working WG111v3 [RTL8187] which i use for connect when signal is weak, sniffing wifi packets , dump WPA handshakes and make some love ;P.

however i get all this working on TF201 by compile the kernel modules.
because not all users have a chroot with a stock kernel tree, i think to realease a package with all these modules inside.

so, for extract the modules from the package :
tar xzf wifi_ko.tar.gz -C path/to/
or
tar xjf wifi_ko.tar.bz2 -C path/to/

and all you have to do for use the wifi dongle is:
1) open termianl emulator
2) su
3) insmod path/to/module.ko
4) ifconfig wlan1 up
5) wpa_supplicant -i wlan1 -c /path/to/wpa_supplicant.conf -B
6) dhcpcd wlan1

i suppose that the new device is wlan1.
the step 5 and 6 is for connecting to a wireless Access Point, but if you use the dongle for other purposes just skip these.
I make these modules with debug information, so, if you have some problem look at `dmesg | grep "$module" ' output.
for a working wpa_supplicant.conf file take the /data/misc/wifi/wpa_supplicant.conf and remove extra information such as device-id and other android stuff.

is it possible to use this on Aurora 2??? thanks for the post!
1st January 2013, 08:42 PM   |  #3  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Jan 2013
This is great.. But have a question
Quote:
Originally Posted by tux_mind

Hi folks!

one user ask if there is a method for using USB WiFi dongle on TF201, I've a working WG111v3 [RTL8187] which i use for connect when signal is weak, sniffing wifi packets , dump WPA handshakes and make some love ;P.

however i get all this working on TF201 by compile the kernel modules.
because not all users have a chroot with a stock kernel tree, i think to realease a package with all these modules inside.

so, for extract the modules from the package :
tar xzf wifi_ko.tar.gz -C path/to/
or
tar xjf wifi_ko.tar.bz2 -C path/to/

and all you have to do for use the wifi dongle is:
1) open termianl emulator
2) su
3) insmod path/to/module.ko
4) ifconfig wlan1 up
5) wpa_supplicant -i wlan1 -c /path/to/wpa_supplicant.conf -B
6) dhcpcd wlan1

i suppose that the new device is wlan1.
the step 5 and 6 is for connecting to a wireless Access Point, but if you use the dongle for other purposes just skip these.
I make these modules with debug information, so, if you have some problem look at `dmesg | grep "$module" ' output.
for a working wpa_supplicant.conf file take the /data/misc/wifi/wpa_supplicant.conf and remove extra information such as device-id and other android stuff.


Hope this help.
Regeards.
( sorry for my doggish english , i will update it soon )

What kernel did you use to compile these drivers on?
1st December 2013, 09:33 AM   |  #4  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Dec 2013
Cannot insmod
Hello,

could you please answer what kernel version is this working with? Any chance you could re-compile with newest kernel? When trying to ismod, I'm getting error:
insmod: init_module '...path...' failed (No such file or directory)

Before you ask - yes, the path is correct, just init_module returns non-zero.

Thanks for any help,
Martin
6th January 2014, 02:11 AM   |  #5  
Senior Member
Thanks Meter: 19
 
265 posts
Join Date:Joined: Sep 2011
More
Is it possible to have a Atheros AR9271 driver?
I tried all athXX.ko, but "init_module '...path...' failed (No such file or directory)"always happened.

Quote:
Originally Posted by tux_mind

Hi folks!

one user ask if there is a method for using USB WiFi dongle on TF201, I've a working WG111v3 [RTL8187] which i use for connect when signal is weak, sniffing wifi packets , dump WPA handshakes and make some love ;P.

however i get all this working on TF201 by compile the kernel modules.
because not all users have a chroot with a stock kernel tree, i think to realease a package with all these modules inside.

Last edited by tennyleaz; 6th January 2014 at 02:36 AM.
17th January 2014, 11:05 AM   |  #6  
OP Senior Member
Thanks Meter: 294
 
198 posts
Join Date:Joined: Mar 2012
Donate to Me
Quote:
Originally Posted by tennyleaz

Is it possible to have a Atheros AR9271 driver?
I tried all athXX.ko, but "init_module '...path...' failed (No such file or directory)"always happened.

if i remember fine you need the ath9k or the ath9k_htc module.
btw the main trouble is that the module fails to load the device firmware.
it is probably due to wrong path.

module was probably compiled with "/system/lib/firmware/htc_9271.fw" but you have "/lib/firmware/htc_9271.fw".
please check dmesg immediately after the modprobe, you will see the path used by the module.

i solved by doing a symlink from /system/lib to /lib.

sorry for late replies but i never comes on XDA.
17th January 2014, 11:11 AM   |  #7  
OP Senior Member
Thanks Meter: 294
 
198 posts
Join Date:Joined: Mar 2012
Donate to Me
i read now all the previous questions.

the kernel i use is this: https://github.com/tux-mind/tf201-kernel
16th February 2014, 11:02 PM   |  #8  
Junior Member
Thanks Meter: 3
 
4 posts
Join Date:Joined: Nov 2012
insmod
Like a previous post I am getting: init_module rtl8192ce.ko failed (no such file or directory)

1) I could not find a path/to so I just made one on the MicroSD and extracted the files.
2) I am executing insmod rtl8192ce.ko from the path/to/ directory
3) To me the issue is that the insmod is trying to write to a location that does not exist.
4) Per a previous post I added a directory "firmware" under system/lib still no luck.

Any help would be appreciated.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes