Commit 36c7928c authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Greg Kroah-Hartman
Browse files

Staging: add rt3090 wireless driver



This is the vendor driver for the Ralink RT3090 chipset.

It should be later cleaned and ported to use the existing rt2x00
infrastructure or just replaced by the proper version.

[ Unfortunately since it follows the same design/implementation like
  rt{286,287,307}0 drivers (already present in the staging tree)
  it is highly unlikely that it will see much love from the wireless
  development community.. ]

However since the development of the cleaner/proper version can take
significant time lets give distros (i.e. openSUSE seems to already
have the package with the original vendor driver) and users "something"
to use in the meantime.

I forward ported it to 2.6.31-rc1, ported to the Linux build system
and did some initial cleanups.  More fixes/cleanups to come later
(it seems that the driver can be made to share most of its code with
the other Ralink drivers already present in the staging tree).

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent fd882783
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -75,6 +75,8 @@ source "drivers/staging/rt2870/Kconfig"

source "drivers/staging/rt3070/Kconfig"

source "drivers/staging/rt3090/Kconfig"

source "drivers/staging/comedi/Kconfig"

source "drivers/staging/asus_oled/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ obj-$(CONFIG_OTUS) += otus/
obj-$(CONFIG_RT2860)		+= rt2860/
obj-$(CONFIG_RT2870)		+= rt2870/
obj-$(CONFIG_RT3070)		+= rt3070/
obj-$(CONFIG_RT3090)		+= rt3090/
obj-$(CONFIG_COMEDI)		+= comedi/
obj-$(CONFIG_ASUS_OLED)		+= asus_oled/
obj-$(CONFIG_PANEL)		+= panel/
+5 −0
Original line number Diff line number Diff line
config RT3090
	tristate "Ralink 3090 wireless support"
	depends on PCI && X86 && WLAN_80211
	---help---
	  This is an experimental driver for the Ralink 3090 wireless chip.
+80 −0
Original line number Diff line number Diff line
obj-$(CONFIG_RT3090)	+= rt3090sta.o

include drivers/staging/rt3090/config.mk

rt3090sta-objs := \
	common/crypt_md5.o \
	common/crypt_sha2.o \
	common/crypt_hmac.o \
	common/mlme.o \
	common/cmm_wep.o \
	common/action.o \
	common/cmm_data.o \
	common/rtmp_init.o \
	common/cmm_tkip.o \
	common/cmm_aes.o \
	common/cmm_sync.o \
	common/eeprom.o \
	common/cmm_sanity.o \
	common/cmm_info.o \
	common/cmm_cfg.o \
	common/cmm_wpa.o \
	common/dfs.o \
	common/spectrum.o \
	common/rtmp_timer.o \
	common/rt_channel.o \
	common/cmm_profile.o \
	common/cmm_asic.o \
	sta/assoc.o \
	sta/auth.o \
	sta/auth_rsp.o \
	sta/sync.o \
	sta/sanity.o \
	sta/rtmp_data.o \
	sta/connect.o \
	sta/wpa.o \
	rt_linux.o \
	rt_profile.o \
	rt_main_dev.o \
	sta_ioctl.o

#ifdef DOT11_N_SUPPORT
ifeq ($(HAS_DOT11_N_SUPPORT),y)
rt3090sta-objs += \
	common/ba_action.o
endif
#endif // DOT11_N_SUPPORT //

#ifdef ETH_CONVERT
ifeq ($(HAS_ETH_CONVERT_SUPPORT), y)
rt3090sta-objs += \
	common/cmm_mat.o \
	common/cmm_mat_iparp.o \
	common/cmm_mat_pppoe.o \
	common/cmm_mat_ipv6.o
endif
#endif // ETH_CONVERT //

ifeq ($(HAS_BLOCK_NET_IF),y)
rt3090sta-objs += common/netif_block.o
endif

ifeq ($(HAS_QOS_DLS_SUPPORT),y)
rt3090sta-objs += sta/dls.o
endif

rt3090sta-objs += \
	pci_main_dev.o \
	rt_pci_rbus.o \
	common/cmm_mac_pci.o \
	common/cmm_data_pci.o \
	common/ee_prom.o \
	common/ee_efuse.o \
	common/rtmp_mcu.o \
	chips/rt30xx.o \
	common/rt_rf.o \
	chips/rt3090.o

ifeq ($(HAS_ATE),y)
rt3090sta-objs += rt_ate.o
endif
+66 −0
Original line number Diff line number Diff line
/*
 *************************************************************************
 * Ralink Tech Inc.
 * 5F., No.36, Taiyuan St., Jhubei City,
 * Hsinchu County 302,
 * Taiwan, R.O.C.
 *
 * (c) Copyright 2002-2007, Ralink Technology, Inc.
 *
 * This program is free software; you can redistribute it and/or modify  *
 * it under the terms of the GNU General Public License as published by  *
 * the Free Software Foundation; either version 2 of the License, or     *
 * (at your option) any later version.                                   *
 *                                                                       *
 * This program is distributed in the hope that it will be useful,       *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 * GNU General Public License for more details.                          *
 *                                                                       *
 * You should have received a copy of the GNU General Public License     *
 * along with this program; if not, write to the                         *
 * Free Software Foundation, Inc.,                                       *
 * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 *                                                                       *
 *************************************************************************

	Module Name:
	aironet.h

	Abstract:

	Revision History:
	Who			When			What
	--------	----------		----------------------------------------------
	Name		Date			Modification logs
	Paul Lin	04-06-15		Initial
*/

#ifndef	__ACTION_H__
#define	__ACTION_H__

typedef struct PACKED __HT_INFO_OCTET
{
#ifdef RT_BIG_ENDIAN
	UCHAR	Reserved:5;
	UCHAR	STA_Channel_Width:1;
	UCHAR	Forty_MHz_Intolerant:1;
	UCHAR	Request:1;
#else
	UCHAR	Request:1;
	UCHAR	Forty_MHz_Intolerant:1;
	UCHAR	STA_Channel_Width:1;
	UCHAR	Reserved:5;
#endif
} HT_INFORMATION_OCTET;


typedef struct PACKED __FRAME_HT_INFO
{
	HEADER_802_11			Hdr;
	UCHAR					Category;
	UCHAR					Action;
	HT_INFORMATION_OCTET	HT_Info;
}   FRAME_HT_INFO, *PFRAME_HT_INFO;

#endif /* __ACTION_H__ */
Loading