Wifi dongle Dlink DWA 121 - to RaspberryPi 2B

I’m lost in confusing articles about how to add this dongle to my RPi. Maybe somebody there are aware of the process and/or could help a little.

These are my files:

/etc/network/interfaces

# Include files from 
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback
iface eth0 inet manual

wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

Please take a look at https://wiki.debian.org/rtl819x (Installation Debian 8 “jessie”)

I guess you’ll have to provide the firmware manually (Step 2 RTL8192U-based devices)

Thanks, not usefull for 121 model.

Could I get some LINUX help (commands line) to understand this paragraph:

Copy the directory containing this file to the build host and change into it.

See bellow the specific extras of this tutorial to understand the context:

===============================================================================
Prerequisites
===============================================================================

- Kernel headers
  - Install with "apt-get install linux-headers-$(uname -r)"
- build-essential package
  - Install with "apt-get install build-essential"
############################################
-  Copy the directory containing this file to the build host and change into it
      before running any of the following commands
############################################################




===============================================================================
RTL8192CU Wireless Driver for D-Link DWA-121
===============================================================================

rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911.tar.gz contains the original
driver package provided in the archive available here:
http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#2772

Steps to patch and build driver:
  tar zxf rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911.tar.gz
  cd rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911
  patch -p1 < ../rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911-bbb.patch
  make

This will build a kernel module called 8192cu.ko
The module can be installed into the kernel module directory structure via:
  cp 8192cu.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless

===============================================================================
hostapd Utility for D-Link DWA-121 and DWA-171
===============================================================================

wpa_supplicant_hostapd-0.8_rtw_r7475.20130812.tar.gz contains the original
hostapd package provided in the archive available here:
http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#2772

No patching is required

Steps to build hostapd
  tar zxf wpa_supplicant_hostapd-0.8_rtw_r7475.20130812.tar.gz
  cd wpa_supplicant_hostapd-0.8_rtw_r7475.20130812
  cd hostapd
  make

This will build the hostapd and hostapd_cli binaries that can be used with the
DWA-121 and DWA-171

Why?

The following list is based on the alias fields of modinfo rtl8192cu in Debian 3.16 (3.16.7-ckt9-3~deb8u1) kernel images.

[…]

USB: 2001:3308 D-Link Corp. DWA-121 802.11n Wireless N 150 Pico Adapter [Realtek RTL8188CUS]