Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO D-Link DWA-125 wireless usb adapter
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
natalizi
n00b
n00b


Joined: 13 Feb 2007
Posts: 17
Location: Rio de Janeiro - Brasil

PostPosted: Thu Apr 08, 2010 3:24 pm    Post subject: HOWTO D-Link DWA-125 wireless usb adapter Reply with quote

Based on (in portuguese): http://www.vivaolinux.com.br/topico/Debian/Dlink-DWA-125-1

1. Install the packages madwifi-ng-tools, wireless-tools, wpa_supplicant
For package wpa_supplicant enable madwifi as use flag

2. Download de linux driver in ftp://www.dlinkla.com/pub/drivers/DWA-125/
Extract the file for a local folder, for example using:
Code:
tar -xzvf <path to the file>


3. Install the driver
As root, enter the folder extracted an run:
Code:
make
make install

4. Plug the adpater on USB
Verify if the module rt3070sta (or similar) is loaded, with command:
Code:
lsmod | grep rt


5. Restart dbus
Code:
/etc/init.d/dbus restart


6. Edit /etc/conf.d/net
This is my example (using wpa):
Code:
modules=( "wpa_supplicant" )
wpa_supplicant_ra0="-Dwext"
config_ra0=( "dhcpcd" )


7. Create or edit /etc/wpa_supplicant/wpa_supplicant.conf
This is my example:
Code:
update_config=1
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
    ssid="YOURNETWORKNAME"
    key_mgmt=WPA-PSK
    psk="YOURPASSPHRASE"
    priority=5
}


8. Create the service net.ra0 with command:
Code:
ln -s net.lo /etc/init.d/net.ra0


9. Start the service and get connected with:
Code:
/etc/init.d/net.ra0 start


10. Setting the connection to start at boot
Edit the line below in file /etc/conf.d/rc
Code:
RC_PLUG_SERVICES="!net.eth* net.ra0"
# Option !net.eth* avoid other network adapters to start - use wisely
# Option net.ra0 start the adpator at boot, initiating connection

_________________
Daniel Natalizi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54247
Location: 56N 3W

PostPosted: Thu Apr 08, 2010 5:36 pm    Post subject: Reply with quote

Moved from Networking & Security to Documentation, Tips & Tricks.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
rlittle
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 200

PostPosted: Tue Feb 15, 2011 3:42 am    Post subject: Reply with quote

I downloaded 2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO from the RT site

I had to add one step to get it to load the module (rt3070sta)



add:

Code:
MODULE_LICENSE("GPL");


to 2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/usb_main_dev.c

If I didn't, I got:
Code:
rt3070sta: Unknown symbol usb_alloc_urb (err 0)
rt3070sta: Unknown symbol usb_free_urb (err 0)
rt3070sta: Unknown symbol usb_alloc_coherent (err 0)
rt3070sta: Unknown symbol usb_register_driver (err 0)
rt3070sta: Unknown symbol usb_put_dev (err 0)
rt3070sta: Unknown symbol usb_get_dev (err 0)
rt3070sta: Unknown symbol usb_submit_urb (err 0)
rt3070sta: Unknown symbol usb_free_coherent (err 0)
rt3070sta: Unknown symbol usb_control_msg (err 0)
rt3070sta: Unknown symbol usb_deregister (err 0)
rt3070sta: Unknown symbol usb_kill_urb (err 0)


whenever I tried to load the module.
_________________
I need a better signature...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum