📜 ⬆️ ⬇️

Installing the D-Link DWA-125 A3 driver in Debian Squeeze

The other day I bought a USB WI-FI card - D-Link DWA-125 in order to finally connect my home server without wires. He began to dig the Internet on installing drivers. I downloaded the driver from the off-site D-Link. We managed to collect them from the second attempt, since I had to put in advance:
aptitude install build-essentials

But even after the assembly the whistle did not start.

I tried to install support for Ralink devices (it is on this chipset that the DWL-125 is compiled) as described on the Debian site:
')
Ralink RT2070, RT2770, RT2870, RT3070, RT3071, RT3072 devices (rt2870sta)

Also unsuccessful. It appeared in the list of devices by lsusb, but iwconfig stubbornly refused to see it.

After three hours of googling, it turned out that I had a DWA-125 carriage rev. A3.

This is how it looks in issuing the lsusb command:
root@Debian:~# lsusb Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 2001:3c19 D-Link Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 


Data on it can be found on the site Ralink - D-Link DWA-125 rev A3. In the same place the link contains the source of drivers - www.ralinktech.com/en/04_support/support.php?sn=501 . It turned out that my card has an RT5370 chipset. I downloaded and assembled the driver from the Ralink website and the map was started up on the first attempt. To build the drivers do the following:

Extract the archive from the Ralink website:
 bunzip2 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.bz2 


There is an error in the file name. Inside bzip should be a tar. After unpacking, rename the unpacked file to .tar and then unpack it again:
 tar -xvvf 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.tar 


go to the resulting folder and open the file os / linux / config.mk in the editor

There you have to replace two lines with the following:
 # Support Wpa_Supplicant HAS_WPA_SUPPLICANT=y # Support Native WpaSupplicant for Network Maganger HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y 


Otherwise, then WPA encryption will not work.

we assemble and install the driver:
 make make install 


Run the driver:
 modprobe rt5370sta 


After that, the whistle blinked happily and became visible in iwconfig:
 root@Debian:~# iwconfig lo no wireless extensions. eth0 no wireless extensions. ra0 Ralink STA ESSID:"sw0001" Nickname:"RT2870STA" Mode:Managed Frequency=2.437 GHz Access Point: 84:C9:B2:64:5F:B2 Bit Rate=54 Mb/s RTS thr:off Fragment thr:off Encryption key:11A1-9CF1-439E-7E01-81F1-CD71-28E1-6E42 Security mode:restricted Security mode:open Link Quality=100/100 Signal level:-46 dBm Noise level:-76 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 pan0 no wireless extensions. 


Well, then it remains only to assign the encryption type and password to the access point.

I did this through the Network Manager.

Source: https://habr.com/ru/post/145726/


All Articles