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