Install the D-link DWA-131 driver on Ubuntu

Source: Internet
Author: User

Original address: http://all2h.com /? P = 30

 

 

The wireless network card on the book was so miserable that I went on strike more than a month ago. There was something wrong with the network card.

Yesterday in the Pearl River Road hand bought a D-link DWA-131 wireless network card to take over, found in Ubuntu driver compilation is quite difficult

After Google finally solves various errors encountered during compilation, record them

Step 1

Go to the official website to download the latest Linux driver package RealTek
8192su

Step 2

Else"

Decompress the file again, which is the driver file to be compiled. For example, all files are decompressed ~ /Dwa_driver

Step 3

Open the terminal and enter:

Cd ~ /Dwa_driver/include
Nano osdep_service.h

Add a row and modify it as follows. The red part is the added content:

# Ifndef _ osdep_service_h _
# DEFINE _ osdep_service_h _
# Include <drv_conf.h>
# Include <basic_types.h>
# Include <Linux/sched. h>
// # Include <rtl871x_byteorder.h>
......

Then press Ctrl + X to exit and select y to save

Step 4

Return to the upper-level directory, that is, "~ /Dwa_driver"

CD ..

Nano makefile

Modify the text as follows. The red part is the added content.

Extra_cflags + =-O1-wno-unused-variable-wno-unused-value-wno-unused-label-W $
Extra_cflags + =-I $ (SRC)/include-wno-unused-Function

Config_built_in = N

Export topdir: = $ (PWD)
Nullstring: =

Ifeq ($ (config_built_in), Y)
Include $ (SRC)/config
Else
Ifeq ($ (topdir), $ (nullstring ))
Include config
Else
Include $ (topdir)/config
Endif
Endif

Ifeq ($ (config_rtl8711), Y)

Save the modification and exit.

Step 5

Compile and install

Make clean
Make
Sudo make install
Sudo modprobe 8712u
Echo "8712u" | sudo tee-A/etc/modules

Then, directly in the network manager, you will find that you can find the nearby Wi-Fi hotspot that is running properly :)

Note: each time the kernel is updated, it must be re-compiled and installed before it can be properly enabled. In addition, the kernel of 2.6.35-28-generic cannot be used after kernel is updated, and the kernel of previous versions can work normally.

Reference: HOWTO: RealTek 8192su USB dongle (rtl8192su) on Ubuntu 10.04

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.