Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2865d42c authored by Larry Finger's avatar Larry Finger
Browse files

staging: r8712u: Add the new driver to the mainline kernel



This code is for a completely new version of the Realtek 8192 USB devices
such as the D-Link DWA-130. The Realtek code, which was originally for
Linux, Windows XP and Windows CE, has been stripped of all code not needed
for Linux. In addition, only one additional configuration variable, which
enables AP mode, remains.

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarFlorian Schilhabel <florian.c.schilhabel@googlemail.com>
Tested-by: default avatarFrederic Leroy <fredo@starox.org>
parent 763008c4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -79,6 +79,8 @@ source "drivers/staging/rtl8192u/Kconfig"

source "drivers/staging/rtl8192e/Kconfig"

source "drivers/staging/rtl8712/Kconfig"

source "drivers/staging/frontier/Kconfig"

source "drivers/staging/dream/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ obj-$(CONFIG_R8187SE) += rtl8187se/
obj-$(CONFIG_RTL8192SU)		+= rtl8192su/
obj-$(CONFIG_RTL8192U)		+= rtl8192u/
obj-$(CONFIG_RTL8192E)		+= rtl8192e/
obj-$(CONFIG_R8712U)		+= rtl8712/
obj-$(CONFIG_SPECTRA)		+= spectra/
obj-$(CONFIG_TRANZPORT)		+= frontier/
obj-$(CONFIG_DREAM)		+= dream/
+18 −0
Original line number Diff line number Diff line
config R8712U
	tristate "RealTek RTL8712U (RTL8192SU) Wireless LAN NIC driver"
	depends on WLAN && USB
	select WIRELESS_EXT
	select WEXT_PRIV
	default N
	---help---
	This option adds the Realtek RTL8712 USB device such as the D-Link DWA-130.
	If built as a module, it will be called r8712u.

config R8712_AP
	bool "Realtek RTL8712U AP code"
	depends on R8712U
	default N
	---help---
	This option allows the Realtek RTL8712 USB device to be an Access Point.

+34 −0
Original line number Diff line number Diff line
r8712u-objs :=				\
		rtl871x_cmd.o		\
		rtl8712_cmd.o		\
		rtl871x_security.o	\
		rtl871x_eeprom.o	\
		rtl8712_efuse.o		\
		hal_init.o		\
		usb_halinit.o		\
		usb_ops.o		\
		usb_ops_linux.o		\
		rtl871x_io.o		\
		rtl8712_io.o		\
		rtl871x_ioctl_linux.o	\
		rtl871x_ioctl_rtl.o	\
		rtl871x_ioctl_set.o	\
		rtl8712_led.o		\
		rtl871x_mlme.o		\
		ieee80211.o		\
		rtl871x_mp_ioctl.o	\
		rtl871x_mp.o		\
		mlme_linux.o		\
		recv_linux.o		\
		xmit_linux.o		\
		usb_intf.o		\
		os_intfs.o		\
		rtl871x_pwrctrl.o	\
		rtl8712_recv.o		\
		rtl871x_recv.o		\
		rtl871x_sta_mgt.o	\
		rtl871x_xmit.o		\
		rtl8712_xmit.o

obj-$(CONFIG_R8712U)	:= r8712u.o
+23 −0
Original line number Diff line number Diff line
#ifndef __BASIC_TYPES_H__
#define __BASIC_TYPES_H__

#define SUCCESS	0
#define FAIL	(-1)

#include <linux/types.h>

#define SIZE_T __kernel_size_t
#define sint signed int
#define FIELD_OFFSET(s, field)	((addr_t)&((s *)(0))->field)

/* Should we extend this to be host_addr_t and target_addr_t for case:
 *	host : x86_64
 *	target : mips64
 */
#define addr_t unsigned long

#define MEM_ALIGNMENT_OFFSET	(sizeof(SIZE_T))
#define MEM_ALIGNMENT_PADDING	(sizeof(SIZE_T) - 1)

#endif /*__BASIC_TYPES_H__*/
Loading