Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,524 Members 42,030 Now Online
XDA Developers Android and Mobile Development Forum

use USB WiFi dongle on TF201

Tip us?
 
tux_mind
Old
#1  
Senior Member - OP
Thanks Meter 293
Posts: 198
Join Date: Mar 2012

 
DONATE TO ME
Default use USB WiFi dongle on TF201

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: [ Click to Expand ]
 
azaotl
Old
#2  
Junior Member
Thanks Meter 1
Posts: 11
Join Date: Jan 2011
Quote:
Originally Posted by tux_mind View Post
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!
 
LexisDude
Old
#3  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jan 2013
Default This is great.. But have a question

Quote:
Originally Posted by tux_mind View Post
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?
 
martin.triska
Old
#4  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Dec 2013
Default 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
 
tennyleaz
Old
(Last edited by tennyleaz; 6th January 2014 at 02:36 AM.)
#5  
Senior Member
Thanks Meter 19
Posts: 262
Join Date: Sep 2011
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 View Post
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.
 
tux_mind
Old
#6  
Senior Member - OP
Thanks Meter 293
Posts: 198
Join Date: Mar 2012

 
DONATE TO ME
Quote:
Originally Posted by tennyleaz View Post
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.
 
tux_mind
Old
#7  
Senior Member - OP
Thanks Meter 293
Posts: 198
Join Date: 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
 
Y2kdancr
Old
#8  
Junior Member
Thanks Meter 3
Posts: 4
Join Date: Nov 2012
Default 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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes